Skip to content

Instantly share code, notes, and snippets.

@carlokok

carlokok/test.s Secret

Created April 26, 2017 05:22
Show Gist options
  • Save carlokok/7c3c98d2fd8c966671f40a5ad94f19d3 to your computer and use it in GitHub Desktop.
Save carlokok/7c3c98d2fd8c966671f40a5ad94f19d3 to your computer and use it in GitHub Desktop.
.def ___newinst;
.scl 2;
.type 32;
.endef
.globl ___newinst
.p2align 4, 0x90
___newinst: # @__newinst
Lfunc_begin922:
.loc 36 194 0 # utilities.pas:194:0
# BB#0: # %BasicBlock11577
.loc 36 195 7 prologue_end # utilities.pas:195:7
cmpl $0, _f_t24_RemObjects.Elements.System.Utilities.fFinalizer
jne LBB922_2
# BB#1: # %BasicBlock11579
.loc 36 196 9 # utilities.pas:196:9
movl $___default_finalize, _f_t24_RemObjects.Elements.System.Utilities.fFinalizer
LBB922_2: # %BasicBlock11581
.loc 36 0 9 is_stmt 0 # utilities.pas:0:9
pushl %ebp
movl %esp, %ebp
pushl %ebx
pushl %edi
pushl %esi
movl 12(%ebp), %ebx
Ltmp6293:
#DEBUG_VALUE: aSize <- %EBX
movl 8(%ebp), %edi
Ltmp6294:
#DEBUG_VALUE: aTTY <- %EDI
.loc 36 199 7 is_stmt 1 # utilities.pas:199:7
cmpl $0, _f_t24_RemObjects.Elements.System.Utilities.fLoaded
jne LBB922_4
Ltmp6295:
# BB#3: # %BasicBlock11582
#DEBUG_VALUE: aTTY <- %EDI
#DEBUG_VALUE: aSize <- %EBX
.loc 36 199 27 is_stmt 0 # utilities.pas:199:27
calll _ms_t24_RemObjects.Elements.System.Utilities6_LoadGC
Ltmp6296:
LBB922_4: # %BasicBlock11586
#DEBUG_VALUE: aTTY <- %EDI
#DEBUG_VALUE: aSize <- %EBX
.loc 36 200 7 is_stmt 1 # utilities.pas:200:7
pushl %ebx
calll *_f_t24_RemObjects.Elements.System.Utilities.fSharedMemory
addl $4, %esp
movl %eax, %esi
Ltmp6297:
#DEBUG_VALUE: Result <- %ESI
.loc 36 201 7 # utilities.pas:201:7
movl %edi, (%esi)
.loc 36 202 23 # utilities.pas:202:23
addl $4, %eax
addl $-4, %ebx
Ltmp6298:
pushl %ebx
pushl $0
pushl %eax
calll _memset
addl $12, %esp
.loc 36 203 7 # utilities.pas:203:7
movl 32(%edi), %eax
cmpl _f_t24_RemObjects.Elements.System.Utilities.fFinalizer, %eax
je LBB922_6
Ltmp6299:
# BB#5: # %BasicBlock11591
#DEBUG_VALUE: Result <- %ESI
#DEBUG_VALUE: aTTY <- %EDI
.loc 36 204 9 # utilities.pas:204:9
pushl $_ms_t23_RemObjects.Elements.System.__Globalc_GC_finalizernp_vnp_v
pushl %esi
calll *_f_t24_RemObjects.Elements.System.Utilities.fSharedMemory+4
addl $8, %esp
Ltmp6300:
LBB922_6: # %BasicBlock11589
#DEBUG_VALUE: Result <- %ESI
#DEBUG_VALUE: aTTY <- %EDI
.loc 36 206 5 # utilities.pas:206:5
movl %esi, %eax
popl %esi
Ltmp6301:
popl %edi
Ltmp6302:
popl %ebx
popl %ebp
retl
Ltmp6303:
Lfunc_end922:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment