Skip to content

Instantly share code, notes, and snippets.

@kallewoof
Created September 6, 2017 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kallewoof/8b7501ea561c8363757abd52dd547f84 to your computer and use it in GitHub Desktop.
Save kallewoof/8b7501ea561c8363757abd52dd547f84 to your computer and use it in GitHub Desktop.
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 12
.globl __Z14memory_cleansePvm
.p2align 4, 0x90
__Z14memory_cleansePvm: ## @_Z14memory_cleansePvm
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp0:
.cfi_def_cfa_offset 16
Ltmp1:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp2:
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
Ltmp3:
.cfi_offset %rbx, -24
movq %rdi, %rbx
callq ___bzero
## InlineAsm Start
## InlineAsm End
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp4:
.cfi_def_cfa_offset 16
Ltmp5:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp6:
.cfi_def_cfa_register %rbp
movl $32, %edi
callq _malloc
movq $0, 24(%rax)
movq $0, 16(%rax)
movq $0, 8(%rax)
movq $0, (%rax)
## InlineAsm Start
## InlineAsm End
movq %rax, %rdi
callq _free
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
.subsections_via_symbols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment