x86
stringlengths
122
1.3M
arm
stringlengths
122
1.35M
file
stringlengths
20
207
source
stringclasses
2 values
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Description _Thread_Description: ## @Thread_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Thread` type provides a basic primitive for concurrent execution. It acts as a basic wrapper around operating system threads, using WinThreads on Windows and pthreads otherwise." .no_dead_strip _Thread_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Description _Thread_Description: ; @Thread_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Thread` type provides a basic primitive for concurrent execution. It acts as a basic wrapper around operating system threads, using WinThreads on Windows and pthreads otherwise." .no_dead_strip _Thread_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Examples _Thread_Examples: ## @Thread_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Thread_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Thread_Examples.examples _Thread_Examples.examples: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var set_value(var args) {\n assign(get(args, $I(0)), $I(1));\n return NULL;\n}\n\nvar i = $I(0);\n\nvar x = new(Thread, $(Function, set_value));\ncall(x, i);\njoin(x);\n\nshow(i); /* 1 */\n" L_.str.2: ## @.str.2 .asciz "Exclusive Resource" L_.str.3: ## @.str.3 .asciz "var increment(var args) {\n var mut = get(args, $I(0));\n var tot = get(args, $I(1));\n lock(mut);\n assign(tot, $I(c_int(tot)+1));\n unlock(mut);\n return NULL;\n}\n\nvar mutex = new(Mutex);\nvar total = $I(0);\n\nvar threads = new(Array, Box,\n new(Thread, $(Function, increment)),\n new(Thread, $(Function, increment)),\n new(Thread, $(Function, increment)));\n\nshow(total); /* 0 */\n\nforeach (t in threads) {\n call(deref(t), mutex, total);\n}\n\nforeach (t in threads) {\n join(deref(t));\n}\n\nshow(total); /* 3 */\n" .no_dead_strip _Thread_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Examples _Thread_Examples: ; @Thread_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Thread_Examples.examples@PAGE Lloh1: add x0, x0, _Thread_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Thread_Examples.examples _Thread_Examples.examples: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var set_value(var args) {\n assign(get(args, $I(0)), $I(1));\n return NULL;\n}\n\nvar i = $I(0);\n\nvar x = new(Thread, $(Function, set_value));\ncall(x, i);\njoin(x);\n\nshow(i); /* 1 */\n" l_.str.2: ; @.str.2 .asciz "Exclusive Resource" l_.str.3: ; @.str.3 .asciz "var increment(var args) {\n var mut = get(args, $I(0));\n var tot = get(args, $I(1));\n lock(mut);\n assign(tot, $I(c_int(tot)+1));\n unlock(mut);\n return NULL;\n}\n\nvar mutex = new(Mutex);\nvar total = $I(0);\n\nvar threads = new(Array, Box,\n new(Thread, $(Function, increment)),\n new(Thread, $(Function, increment)),\n new(Thread, $(Function, increment)));\n\nshow(total); /* 0 */\n\nforeach (t in threads) {\n call(deref(t), mutex, total);\n}\n\nforeach (t in threads) {\n join(deref(t));\n}\n\nshow(total); /* 3 */\n" .no_dead_strip _Thread_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Get _Thread_Get: ## @Thread_Get .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi callq _get movl %eax, %edi popq %rbp jmp _deref ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Thread_Get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Get _Thread_Get: ; @Thread_Get .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 ldr w0, [x0] bl _get ldp x29, x30, [sp], #16 ; 16-byte Folded Reload b _deref .cfi_endproc ; -- End function .no_dead_strip _Thread_Get .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Get.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Hash _Thread_Hash: ## @Thread_Hash .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _Thread_C_Int ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Thread_Hash .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Hash _Thread_Hash: ; @Thread_Hash .cfi_startproc ; %bb.0: b _Thread_C_Int .cfi_endproc ; -- End function .no_dead_strip _Thread_Hash .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Key_Type _Thread_Key_Type: ## @Thread_Key_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _key_type ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Thread_Key_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Key_Type _Thread_Key_Type: ; @Thread_Key_Type .cfi_startproc ; %bb.0: ldr w0, [x0] b _key_type .cfi_endproc ; -- End function .no_dead_strip _Thread_Key_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Key_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Main_Del _Thread_Main_Del: ## @Thread_Main_Del .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Exception_Main@GOTPCREL(%rip), %rax movl (%rax), %edi callq _del_raw movq _Thread_Main@GOTPCREL(%rip), %rax movl (%rax), %edi popq %rbp jmp _del_raw ## TAILCALL .cfi_endproc ## -- End function .comm _Exception_Main,4,2 ## @Exception_Main .comm _Thread_Main,4,2 ## @Thread_Main .no_dead_strip _Thread_Main_Del .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Main_Del _Thread_Main_Del: ; @Thread_Main_Del .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 Lloh0: adrp x8, _Exception_Main@GOTPAGE Lloh1: ldr x8, [x8, _Exception_Main@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _del_raw Lloh3: adrp x8, _Thread_Main@GOTPAGE Lloh4: ldr x8, [x8, _Thread_Main@GOTPAGEOFF] Lloh5: ldr w0, [x8] ldp x29, x30, [sp], #16 ; 16-byte Folded Reload b _del_raw .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Exception_Main,4,2 ; @Exception_Main .comm _Thread_Main,4,2 ; @Thread_Main .no_dead_strip _Thread_Main_Del .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Main_Del.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Mark _Thread_Mark: ## @Thread_Mark .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _mark ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Thread_Mark .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Mark _Thread_Mark: ; @Thread_Mark .cfi_startproc ; %bb.0: ldr w0, [x0] b _mark .cfi_endproc ; -- End function .no_dead_strip _Thread_Mark .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Mark.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Mem _Thread_Mem: ## @Thread_Mem .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _mem ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Thread_Mem .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Mem _Thread_Mem: ; @Thread_Mem .cfi_startproc ; %bb.0: ldr w0, [x0] b _mem .cfi_endproc ; -- End function .no_dead_strip _Thread_Mem .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Mem.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Name _Thread_Name: ## @Thread_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Thread" .no_dead_strip _Thread_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Name _Thread_Name: ; @Thread_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Thread" .no_dead_strip _Thread_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Rem _Thread_Rem: ## @Thread_Rem .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _rem ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Thread_Rem .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Rem _Thread_Rem: ; @Thread_Rem .cfi_startproc ; %bb.0: ldr w0, [x0] b _rem .cfi_endproc ; -- End function .no_dead_strip _Thread_Rem .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Rem.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Running _Thread_Running: ## @Thread_Running .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %eax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Thread_Running .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Running _Thread_Running: ; @Thread_Running .cfi_startproc ; %bb.0: ldr w0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Thread_Running .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Running.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Start _Thread_Start: ## @Thread_Start .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _call ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Thread_Start .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Start _Thread_Start: ; @Thread_Start .cfi_startproc ; %bb.0: b _call .cfi_endproc ; -- End function .no_dead_strip _Thread_Start .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Start.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Val_Type _Thread_Val_Type: ## @Thread_Val_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _val_type ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Thread_Val_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Val_Type _Thread_Val_Type: ; @Thread_Val_Type .cfi_startproc ; %bb.0: ldr w0, [x0] b _val_type .cfi_endproc ; -- End function .no_dead_strip _Thread_Val_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Val_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _current ## -- Begin function current .p2align 4, 0x90 _current: ## @current .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Current@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _current(%rip), %rdx popq %rbp jmp _type_method ## TAILCALL .cfi_endproc ## -- End function .comm _Current,4,2 ## @Current .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _current ; -- Begin function current .p2align 2 _current: ; @current .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Current@GOTPAGE Lloh1: ldr x8, [x8, _Current@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _current@PAGE Lloh4: add x2, x2, _current@PAGEOFF b _type_method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Current,4,2 ; @Current .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_current.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _lock ## -- Begin function lock .p2align 4, 0x90 _lock: ## @lock .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Lock@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _lock(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Lock,4,2 ## @Lock .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _lock ; -- Begin function lock .p2align 2 _lock: ; @lock .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Lock@GOTPAGE Lloh1: ldr x8, [x8, _Lock@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _lock@PAGE Lloh4: add x2, x2, _lock@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Lock,4,2 ; @Lock .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_lock.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _trylock ## -- Begin function trylock .p2align 4, 0x90 _trylock: ## @trylock .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Lock@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _trylock(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Lock,4,2 ## @Lock .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _trylock ; -- Begin function trylock .p2align 2 _trylock: ; @trylock .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Lock@GOTPAGE Lloh1: ldr x8, [x8, _Lock@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _trylock@PAGE Lloh4: add x2, x2, _trylock@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Lock,4,2 ; @Lock .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_trylock.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _unlock ## -- Begin function unlock .p2align 4, 0x90 _unlock: ## @unlock .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Lock@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _unlock(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Lock,4,2 ## @Lock .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _unlock ; -- Begin function unlock .p2align 2 _unlock: ; @unlock .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Lock@GOTPAGE Lloh1: ldr x8, [x8, _Lock@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _unlock@PAGE Lloh4: add x2, x2, _unlock@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Lock,4,2 ; @Lock .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_unlock.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Brief _Tree_Brief: ## @Tree_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Balanced Binary Tree" .no_dead_strip _Tree_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Brief _Tree_Brief: ; @Tree_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Balanced Binary Tree" .no_dead_strip _Tree_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Clear _Tree_Clear: ## @Tree_Clear .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movq (%rdi), %rsi callq _Tree_Clear_Entry xorps %xmm0, %xmm0 movups %xmm0, (%rbx) addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Clear .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Clear _Tree_Clear: ; @Tree_Clear .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr x1, [x0] bl _Tree_Clear_Entry stp xzr, xzr, [x19] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Clear .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Clear.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Del _Tree_Del: ## @Tree_Del .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _Tree_Clear ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Tree_Del .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Del _Tree_Del: ; @Tree_Del .cfi_startproc ; %bb.0: b _Tree_Clear .cfi_endproc ; -- End function .no_dead_strip _Tree_Del .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Del.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Description _Tree_Description: ## @Tree_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Tree` type is a self balancing binary tree implemented as a red-black tree. It provides key-value access and requires the `Cmp` class to be defined on the key type.\n\nElement lookup and insertion are provided as an `O(log(n))` operation. This means in general a `Tree` is slower than a `Table` but it has several other nice properties such as being able to iterate over the items in order and not having large pauses for rehashing on some insertions.\n\nThis is largely equivalent to the C++ construct [std::map](http://www.cplusplus.com/reference/map/map/)" .no_dead_strip _Tree_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Description _Tree_Description: ; @Tree_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Tree` type is a self balancing binary tree implemented as a red-black tree. It provides key-value access and requires the `Cmp` class to be defined on the key type.\n\nElement lookup and insertion are provided as an `O(log(n))` operation. This means in general a `Tree` is slower than a `Table` but it has several other nice properties such as being able to iterate over the items in order and not having large pauses for rehashing on some insertions.\n\nThis is largely equivalent to the C++ construct [std::map](http://www.cplusplus.com/reference/map/map/)" .no_dead_strip _Tree_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Examples _Tree_Examples: ## @Tree_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Tree_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Tree_Examples.examples _Tree_Examples.examples: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var prices = new(Tree, String, Int);\nset(prices, $S(\"Apple\"), $I(12));\nset(prices, $S(\"Banana\"), $I( 6));\nset(prices, $S(\"Pear\"), $I(55));\n\nforeach (key in prices) {\n var price = get(prices, key);\n println(\"Price of %$ is %$\", key, price);\n}\n" L_.str.2: ## @.str.2 .asciz "Manipulation" L_.str.3: ## @.str.3 .asciz "var t = new(Tree, String, Int);\nset(t, $S(\"Hello\"), $I(2));\nset(t, $S(\"There\"), $I(5));\n\nshow($I(len(t))); /* 2 */\nshow($I(mem(t, $S(\"Hello\")))); /* 1 */\n\nrem(t, $S(\"Hello\"));\n\nshow($I(len(t))); /* 1 */\nshow($I(mem(t, $S(\"Hello\")))); /* 0 */\nshow($I(mem(t, $S(\"There\")))); /* 1 */\n\nresize(t, 0);\n\nshow($I(len(t))); /* 0 */\nshow($I(mem(t, $S(\"Hello\")))); /* 0 */\nshow($I(mem(t, $S(\"There\")))); /* 0 */\n" .no_dead_strip _Tree_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Examples _Tree_Examples: ; @Tree_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Tree_Examples.examples@PAGE Lloh1: add x0, x0, _Tree_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Tree_Examples.examples _Tree_Examples.examples: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var prices = new(Tree, String, Int);\nset(prices, $S(\"Apple\"), $I(12));\nset(prices, $S(\"Banana\"), $I( 6));\nset(prices, $S(\"Pear\"), $I(55));\n\nforeach (key in prices) {\n var price = get(prices, key);\n println(\"Price of %$ is %$\", key, price);\n}\n" l_.str.2: ; @.str.2 .asciz "Manipulation" l_.str.3: ; @.str.3 .asciz "var t = new(Tree, String, Int);\nset(t, $S(\"Hello\"), $I(2));\nset(t, $S(\"There\"), $I(5));\n\nshow($I(len(t))); /* 2 */\nshow($I(mem(t, $S(\"Hello\")))); /* 1 */\n\nrem(t, $S(\"Hello\"));\n\nshow($I(len(t))); /* 1 */\nshow($I(mem(t, $S(\"Hello\")))); /* 0 */\nshow($I(mem(t, $S(\"There\")))); /* 1 */\n\nresize(t, 0);\n\nshow($I(len(t))); /* 0 */\nshow($I(mem(t, $S(\"Hello\")))); /* 0 */\nshow($I(mem(t, $S(\"There\")))); /* 0 */\n" .no_dead_strip _Tree_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Get_Parent _Tree_Get_Parent: ## @Tree_Get_Parent .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq 16(%rsi), %rax andq $-2, %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Get_Parent .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Get_Parent _Tree_Get_Parent: ; @Tree_Get_Parent .cfi_startproc ; %bb.0: ldr x8, [x1, #16] and x0, x8, #0xfffffffffffffffe ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Get_Parent .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Get_Parent.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Is_Red _Tree_Is_Red: ## @Tree_Is_Red .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _Tree_Get_Color ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Tree_Is_Red .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Is_Red _Tree_Is_Red: ; @Tree_Is_Red .cfi_startproc ; %bb.0: b _Tree_Get_Color .cfi_endproc ; -- End function .no_dead_strip _Tree_Is_Red .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Is_Red.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Iter_Type _Tree_Iter_Type: ## @Tree_Iter_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Iter_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Iter_Type _Tree_Iter_Type: ; @Tree_Iter_Type .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Iter_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Iter_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Key _Tree_Key: ## @Tree_Key .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq 28(%rsi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Key .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Key _Tree_Key: ; @Tree_Key .cfi_startproc ; %bb.0: add x0, x1, #28 ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Key .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Key.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Key_Type _Tree_Key_Type: ## @Tree_Key_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Key_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Key_Type _Tree_Key_Type: ; @Tree_Key_Type .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Key_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Key_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Left _Tree_Left: ## @Tree_Left .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rsi, %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Left .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Left _Tree_Left: ; @Tree_Left .cfi_startproc ; %bb.0: mov x0, x1 ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Left .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Left.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Len _Tree_Len: ## @Tree_Len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Len .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Len _Tree_Len: ; @Tree_Len .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Len .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Name _Tree_Name: ## @Tree_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Tree" .no_dead_strip _Tree_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Name _Tree_Name: ; @Tree_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Tree" .no_dead_strip _Tree_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Right _Tree_Right: ## @Tree_Right .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq 8(%rsi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Right .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Right _Tree_Right: ; @Tree_Right .cfi_startproc ; %bb.0: add x0, x1, #8 ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Right .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Right.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Set_Black _Tree_Set_Black: ## @Tree_Set_Black .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %edx, %edx popq %rbp jmp _Tree_Set_Color ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Tree_Set_Black .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Set_Black _Tree_Set_Black: ; @Tree_Set_Black .cfi_startproc ; %bb.0: mov w2, #0 b _Tree_Set_Color .cfi_endproc ; -- End function .no_dead_strip _Tree_Set_Black .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Set_Black.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Set_Color _Tree_Set_Color: ## @Tree_Set_Color .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %edx, %r14d movq %rsi, %rbx callq _Tree_Get_Parent xorl %ecx, %ecx testl %r14d, %r14d setne %cl orq %rax, %rcx movq %rcx, 16(%rbx) popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Set_Color .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Set_Color _Tree_Set_Color: ; @Tree_Set_Color .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x2 mov x20, x1 bl _Tree_Get_Parent cmp w19, #0 cset w8, ne orr x8, x0, x8 str x8, [x20, #16] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Set_Color .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Set_Color.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Set_Parent _Tree_Set_Parent: ## @Tree_Set_Parent .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdx, %r14 movq %rsi, %rbx callq _Tree_Is_Red xorl %ecx, %ecx testq %rax, %rax setne %cl orq %r14, %rcx movq %rcx, 16(%rbx) popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Set_Parent .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Set_Parent _Tree_Set_Parent: ; @Tree_Set_Parent .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x2 mov x20, x1 bl _Tree_Is_Red cmp x0, #0 cset w8, ne orr x8, x8, x19 str x8, [x20, #16] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Set_Parent .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Set_Parent.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Set_Red _Tree_Set_Red: ## @Tree_Set_Red .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1, %edx popq %rbp jmp _Tree_Set_Color ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Tree_Set_Red .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Set_Red _Tree_Set_Red: ; @Tree_Set_Red .cfi_startproc ; %bb.0: mov w2, #1 b _Tree_Set_Color .cfi_endproc ; -- End function .no_dead_strip _Tree_Set_Red .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Set_Red.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Val _Tree_Val: ## @Tree_Val .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movslq (%rdi), %rax addq %rsi, %rax addq $32, %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Val .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Val _Tree_Val: ; @Tree_Val .cfi_startproc ; %bb.0: ldrsw x8, [x0] add x8, x1, x8 add x0, x8, #32 ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Val .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Val.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tree_Val_Type _Tree_Val_Type: ## @Tree_Val_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tree_Val_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tree_Val_Type _Tree_Val_Type: ; @Tree_Val_Type .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Tree_Val_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Tree.c_Tree_Val_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Brief _Tuple_Brief: ## @Tuple_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Basic Collection" .no_dead_strip _Tuple_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Brief _Tuple_Brief: ; @Tuple_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Basic Collection" .no_dead_strip _Tuple_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Definition _Tuple_Definition: ## @Tuple_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Tuple {\n var* items;\n};\n" .no_dead_strip _Tuple_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Definition _Tuple_Definition: ; @Tuple_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Tuple {\n var* items;\n};\n" .no_dead_strip _Tuple_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Description _Tuple_Description: ## @Tuple_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Tuple` type provides a basic way to create a simple collection of objects. Its main use is the fact that it can be constructed on the stack using the `tuple` macro. This makes it suitable for a number of purposes such as use in functions that take a variable number of arguments.\n\nTuples can also be constructed on the heap and stored in collections. This makes them also useful as a simple _untyped_ list of objects.\n\nInternally Tuples are just an array of pointers terminated with a pointer to the Cello `Terminal` object. This makes positional access fast, but many other operations slow including iteration and counting the number of elements. Due to this it is only recommended Tuples are used for small collections. \n\nBecause Tuples are terminated with the Cello `Terminal` object this can't naturally be included within them. This object should therefore only be returned from iteration functions." .no_dead_strip _Tuple_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Description _Tuple_Description: ; @Tuple_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Tuple` type provides a basic way to create a simple collection of objects. Its main use is the fact that it can be constructed on the stack using the `tuple` macro. This makes it suitable for a number of purposes such as use in functions that take a variable number of arguments.\n\nTuples can also be constructed on the heap and stored in collections. This makes them also useful as a simple _untyped_ list of objects.\n\nInternally Tuples are just an array of pointers terminated with a pointer to the Cello `Terminal` object. This makes positional access fast, but many other operations slow including iteration and counting the number of elements. Due to this it is only recommended Tuples are used for small collections. \n\nBecause Tuples are terminated with the Cello `Terminal` object this can't naturally be included within them. This object should therefore only be returned from iteration functions." .no_dead_strip _Tuple_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Examples _Tuple_Examples: ## @Tuple_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Tuple_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Tuple_Examples.examples _Tuple_Examples.examples: .quad L_.str .quad L_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var x = tuple($I(100), $I(200), $S(\"Hello\"));\nshow(x);\nvar y = tuple(Int, $I(10), $I(20));\nvar z = new_with(Array, y);\nshow(z);\n\nforeach (item in x) {\n println(\"%$\", item);\n}\n" .no_dead_strip _Tuple_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Examples _Tuple_Examples: ; @Tuple_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Tuple_Examples.examples@PAGE Lloh1: add x0, x0, _Tuple_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Tuple_Examples.examples _Tuple_Examples.examples: .quad l_.str .quad l_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var x = tuple($I(100), $I(200), $S(\"Hello\"));\nshow(x);\nvar y = tuple(Int, $I(10), $I(20));\nvar z = new_with(Array, y);\nshow(z);\n\nforeach (item in x) {\n println(\"%$\", item);\n}\n" .no_dead_strip _Tuple_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Hash _Tuple_Hash: ## @Tuple_Hash .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 callq _Tuple_Len testq %rax, %rax je LBB0_1 ## %bb.3: movq %rax, %r15 xorl %ebx, %ebx xorl %r12d, %r12d .p2align 4, 0x90 LBB0_4: ## =>This Inner Loop Header: Depth=1 movq (%r14), %rax movl (%rax,%rbx,4), %edi callq _hash xorl %eax, %r12d incq %rbx cmpq %rbx, %r15 jne LBB0_4 jmp LBB0_2 LBB0_1: xorl %r12d, %r12d LBB0_2: movl %r12d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tuple_Hash .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Hash _Tuple_Hash: ; @Tuple_Hash .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 bl _Tuple_Len cbz x0, LBB0_3 ; %bb.1: mov x20, x0 mov x22, #0 mov w21, #0 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr x8, [x19] ldr w0, [x8, x22, lsl #2] bl _hash eor w21, w0, w21 add x22, x22, #1 cmp x20, x22 b.ne LBB0_2 b LBB0_4 LBB0_3: mov w21, #0 LBB0_4: mov x0, x21 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Tuple_Hash .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Iter_Init _Tuple_Iter_Init: ## @Tuple_Iter_Init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax movq (%rax), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tuple_Iter_Init .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Iter_Init _Tuple_Iter_Init: ; @Tuple_Iter_Init .cfi_startproc ; %bb.0: ldr x8, [x0] ldr x0, [x8] ret .cfi_endproc ; -- End function .no_dead_strip _Tuple_Iter_Init .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Iter_Init.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Iter_Last _Tuple_Iter_Last: ## @Tuple_Iter_Last .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq (%rdi), %rbx callq _Tuple_Len cltq movq -8(%rbx,%rax,8), %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tuple_Iter_Last .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Iter_Last _Tuple_Iter_Last: ; @Tuple_Iter_Last .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 ldr x19, [x0] bl _Tuple_Len sub w8, w0, #1 ldr x0, [x19, w8, sxtw #3] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Tuple_Iter_Last .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Iter_Last.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Methods _Tuple_Methods: ## @Tuple_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Tuple_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Tuple_Methods.methods _Tuple_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "tuple" L_.str.1: ## @.str.1 .asciz "#define tuple(...)" L_.str.2: ## @.str.2 .asciz "Construct a `Tuple` object on the stack." .no_dead_strip _Tuple_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Methods _Tuple_Methods: ; @Tuple_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Tuple_Methods.methods@PAGE Lloh1: add x0, x0, _Tuple_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Tuple_Methods.methods _Tuple_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "tuple" l_.str.1: ; @.str.1 .asciz "#define tuple(...)" l_.str.2: ; @.str.2 .asciz "Construct a `Tuple` object on the stack." .no_dead_strip _Tuple_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Name _Tuple_Name: ## @Tuple_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Tuple" .no_dead_strip _Tuple_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Name _Tuple_Name: ; @Tuple_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Tuple" .no_dead_strip _Tuple_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Sort_By _Tuple_Sort_By: ## @Tuple_Sort_By .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %r14 movl %edi, %ebx callq _Tuple_Len leaq -1(%rax), %rdx movl %ebx, %edi xorl %esi, %esi movq %r14, %rcx popq %rbx popq %r14 popq %rbp jmp _Tuple_Sort_Part ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Tuple_Sort_By .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Sort_By _Tuple_Sort_By: ; @Tuple_Sort_By .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 bl _Tuple_Len sub x2, x0, #1 mov x0, x20 mov w1, #0 mov x3, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _Tuple_Sort_Part .cfi_endproc ; -- End function .no_dead_strip _Tuple_Sort_By .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Sort_By.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Tuple_Swap _Tuple_Swap: ## @Tuple_Swap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax movl (%rax,%rsi,4), %ecx movl (%rax,%rdx,4), %edi movl %edi, (%rax,%rsi,4) movl %ecx, (%rax,%rdx,4) popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Tuple_Swap .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Tuple_Swap _Tuple_Swap: ; @Tuple_Swap .cfi_startproc ; %bb.0: ldr x8, [x0] lsl x9, x1, #2 ldr w10, [x8, x9] lsl x11, x2, #2 ldr w12, [x8, x11] str w12, [x8, x9] str w10, [x8, x11] ret .cfi_endproc ; -- End function .no_dead_strip _Tuple_Swap .subsections_via_symbols
AnghaBench/Cello/src/extr_Tuple.c_Tuple_Swap.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Cast_Brief _Cast_Brief: ## @Cast_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Runtime Type Checking" .no_dead_strip _Cast_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Cast_Brief _Cast_Brief: ; @Cast_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Runtime Type Checking" .no_dead_strip _Cast_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Cast_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Cast_Definition _Cast_Definition: ## @Cast_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Cast {\n var (*cast)(var, var);\n};\n" .no_dead_strip _Cast_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Cast_Definition _Cast_Definition: ; @Cast_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Cast {\n var (*cast)(var, var);\n};\n" .no_dead_strip _Cast_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Cast_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Cast_Description _Cast_Description: ## @Cast_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Cast` class provides a rudimentary run-time type checking. By default it simply checks that the passed in object is of a given type but it can be overridden by types which have to do more complex checking to ensure the types are correct." .no_dead_strip _Cast_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Cast_Description _Cast_Description: ; @Cast_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Cast` class provides a rudimentary run-time type checking. By default it simply checks that the passed in object is of a given type but it can be overridden by types which have to do more complex checking to ensure the types are correct." .no_dead_strip _Cast_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Cast_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Cast_Examples _Cast_Examples: ## @Cast_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Cast_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Cast_Examples.examples _Cast_Examples.examples: .quad L_.str .quad L_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var x = $I(100);\nstruct Int* y = cast(x, Int);\nshow(y);\n" .no_dead_strip _Cast_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Cast_Examples _Cast_Examples: ; @Cast_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Cast_Examples.examples@PAGE Lloh1: add x0, x0, _Cast_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Cast_Examples.examples _Cast_Examples.examples: .quad l_.str .quad l_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var x = $I(100);\nstruct Int* y = cast(x, Int);\nshow(y);\n" .no_dead_strip _Cast_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Cast_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Cast_Methods _Cast_Methods: ## @Cast_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Cast_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Cast_Methods.methods _Cast_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "cast" L_.str.1: ## @.str.1 .asciz "var cast(var self, var type);" L_.str.2: ## @.str.2 .asciz "Ensures the object `self` is of the given `type` and returns it if it is." .no_dead_strip _Cast_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Cast_Methods _Cast_Methods: ; @Cast_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Cast_Methods.methods@PAGE Lloh1: add x0, x0, _Cast_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Cast_Methods.methods _Cast_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "cast" l_.str.1: ; @.str.1 .asciz "var cast(var self, var type);" l_.str.2: ; @.str.2 .asciz "Ensures the object `self` is of the given `type` and returns it if it is." .no_dead_strip _Cast_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Cast_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Cast_Name _Cast_Name: ## @Cast_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Cast" .no_dead_strip _Cast_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Cast_Name _Cast_Name: ; @Cast_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Cast" .no_dead_strip _Cast_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Cast_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Size_Brief _Size_Brief: ## @Size_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Type Size" .no_dead_strip _Size_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Size_Brief _Size_Brief: ; @Size_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Type Size" .no_dead_strip _Size_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Size_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Size_Definition _Size_Definition: ## @Size_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Size {\n size_t (*size)(void);\n};\n" .no_dead_strip _Size_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Size_Definition _Size_Definition: ; @Size_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Size {\n size_t (*size)(void);\n};\n" .no_dead_strip _Size_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Size_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Size_Description _Size_Description: ## @Size_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Size` class is a very important class in Cello because it gives the size in bytes you can expect an object of a given type to be. This is used by many methods to allocate, assign, or compare various objects.\n\nBy default this size is automatically found and recorded by the `Cello` macro, but if the type does it's own allocation, or the size cannot be found naturally then it may be necessary to override this method." .no_dead_strip _Size_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Size_Description _Size_Description: ; @Size_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Size` class is a very important class in Cello because it gives the size in bytes you can expect an object of a given type to be. This is used by many methods to allocate, assign, or compare various objects.\n\nBy default this size is automatically found and recorded by the `Cello` macro, but if the type does it's own allocation, or the size cannot be found naturally then it may be necessary to override this method." .no_dead_strip _Size_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Size_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Size_Examples _Size_Examples: ## @Size_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Size_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Size_Examples.examples _Size_Examples.examples: .quad L_.str .quad L_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "show($I(size(Int)));\nshow($I(size(Float)));\nshow($I(size(Array)));\n" .no_dead_strip _Size_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Size_Examples _Size_Examples: ; @Size_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Size_Examples.examples@PAGE Lloh1: add x0, x0, _Size_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Size_Examples.examples _Size_Examples.examples: .quad l_.str .quad l_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "show($I(size(Int)));\nshow($I(size(Float)));\nshow($I(size(Array)));\n" .no_dead_strip _Size_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Size_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Size_Methods _Size_Methods: ## @Size_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Size_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Size_Methods.methods _Size_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "size" L_.str.1: ## @.str.1 .asciz "size_t size(var type);" L_.str.2: ## @.str.2 .asciz "Returns the associated size of a given `type` in bytes." .no_dead_strip _Size_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Size_Methods _Size_Methods: ; @Size_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Size_Methods.methods@PAGE Lloh1: add x0, x0, _Size_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Size_Methods.methods _Size_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "size" l_.str.1: ; @.str.1 .asciz "size_t size(var type);" l_.str.2: ; @.str.2 .asciz "Returns the associated size of a given `type` in bytes." .no_dead_strip _Size_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Size_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Size_Name _Size_Name: ## @Size_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Size" .no_dead_strip _Size_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Size_Name _Size_Name: ; @Size_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Size" .no_dead_strip _Size_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Size_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Assign _Type_Assign: ## @Type_Assign .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _ValueError@GOTPCREL(%rip), %rax movl (%rax), %edi leaq L_.str(%rip), %rsi popq %rbp jmp _throw ## TAILCALL .cfi_endproc ## -- End function .comm _ValueError,4,2 ## @ValueError .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Type objects cannot be assigned." .no_dead_strip _Type_Assign .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Assign _Type_Assign: ; @Type_Assign .cfi_startproc ; %bb.0: Lloh0: adrp x8, _ValueError@GOTPAGE Lloh1: ldr x8, [x8, _ValueError@GOTPAGEOFF] Lloh2: ldr w0, [x8] Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF b _throw .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _ValueError,4,2 ; @ValueError .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Type objects cannot be assigned." .no_dead_strip _Type_Assign .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Assign.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Brief _Type_Brief: ## @Type_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Metadata Object" .no_dead_strip _Type_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Brief _Type_Brief: ; @Type_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Metadata Object" .no_dead_strip _Type_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Builtin_Name _Type_Builtin_Name: ## @Type_Builtin_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _CELLO_CACHE_NUM@GOTPCREL(%rip), %rax movslq (%rax), %rax imulq $1431655766, %rax, %rax ## imm = 0x55555556 movq %rax, %rcx shrq $63, %rcx shrq $32, %rax addl %ecx, %eax cltq movq (%rdi,%rax,8), %rax popq %rbp retq .cfi_endproc ## -- End function .comm _CELLO_CACHE_NUM,4,2 ## @CELLO_CACHE_NUM .no_dead_strip _Type_Builtin_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Builtin_Name _Type_Builtin_Name: ; @Type_Builtin_Name .cfi_startproc ; %bb.0: Lloh0: adrp x8, _CELLO_CACHE_NUM@GOTPAGE Lloh1: ldr x8, [x8, _CELLO_CACHE_NUM@GOTPAGEOFF] Lloh2: ldrsw x8, [x8] mov w9, #21846 movk w9, #21845, lsl #16 mul x8, x8, x9 lsr x9, x8, #63 lsr x8, x8, #32 add w8, w8, w9 ldr x0, [x0, w8, sxtw #3] ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _CELLO_CACHE_NUM,4,2 ; @CELLO_CACHE_NUM .no_dead_strip _Type_Builtin_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Builtin_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Builtin_Size _Type_Builtin_Size: ## @Type_Builtin_Size .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _CELLO_CACHE_NUM@GOTPCREL(%rip), %rax movslq (%rax), %rax imulq $1431655766, %rax, %rax ## imm = 0x55555556 movq %rax, %rcx shrq $63, %rcx shrq $32, %rax addl %ecx, %eax cltq movslq 4(%rdi,%rax,4), %rax popq %rbp retq .cfi_endproc ## -- End function .comm _CELLO_CACHE_NUM,4,2 ## @CELLO_CACHE_NUM .no_dead_strip _Type_Builtin_Size .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Builtin_Size _Type_Builtin_Size: ; @Type_Builtin_Size .cfi_startproc ; %bb.0: Lloh0: adrp x8, _CELLO_CACHE_NUM@GOTPAGE Lloh1: ldr x8, [x8, _CELLO_CACHE_NUM@GOTPAGEOFF] Lloh2: ldrsw x8, [x8] mov w9, #21846 movk w9, #21845, lsl #16 mul x8, x8, x9 lsr x9, x8, #63 lsr x8, x8, #32 add w8, w8, w9 add x8, x0, w8, sxtw #2 ldrsw x0, [x8, #4] ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _CELLO_CACHE_NUM,4,2 ; @CELLO_CACHE_NUM .no_dead_strip _Type_Builtin_Size .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Builtin_Size.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_C_Str _Type_C_Str: ## @Type_C_Str .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _Type_Builtin_Name ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Type_C_Str .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_C_Str _Type_C_Str: ; @Type_C_Str .cfi_startproc ; %bb.0: b _Type_Builtin_Name .cfi_endproc ; -- End function .no_dead_strip _Type_C_Str .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_C_Str.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Cmp _Type_Cmp: ## @Type_Cmp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %rax movq %rdi, %r14 movq _Type@GOTPCREL(%rip), %rcx movl (%rcx), %esi movq %rax, %rdi callq _cast movq %rax, %r15 movq %r14, %rdi callq _Type_Builtin_Name movl %eax, %ebx movq %r15, %rdi callq _Type_Builtin_Name movl %ebx, %edi movl %eax, %esi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _strcmp ## TAILCALL .cfi_endproc ## -- End function .comm _Type,4,2 ## @Type .no_dead_strip _Type_Cmp .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Cmp _Type_Cmp: ; @Type_Cmp .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x8, x1 mov x19, x0 Lloh0: adrp x9, _Type@GOTPAGE Lloh1: ldr x9, [x9, _Type@GOTPAGEOFF] Lloh2: ldr w1, [x9] mov x0, x8 bl _cast mov x20, x0 mov x0, x19 bl _Type_Builtin_Name mov x19, x0 mov x0, x20 bl _Type_Builtin_Name mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _strcmp .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Type,4,2 ; @Type .no_dead_strip _Type_Cmp .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Cmp.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Copy _Type_Copy: ## @Type_Copy .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _ValueError@GOTPCREL(%rip), %rax movl (%rax), %edi leaq L_.str(%rip), %rsi popq %rbp jmp _throw ## TAILCALL .cfi_endproc ## -- End function .comm _ValueError,4,2 ## @ValueError .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Type objects cannot be copied." .no_dead_strip _Type_Copy .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Copy _Type_Copy: ; @Type_Copy .cfi_startproc ; %bb.0: Lloh0: adrp x8, _ValueError@GOTPAGE Lloh1: ldr x8, [x8, _ValueError@GOTPAGEOFF] Lloh2: ldr w0, [x8] Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF b _throw .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _ValueError,4,2 ; @ValueError .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Type objects cannot be copied." .no_dead_strip _Type_Copy .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Copy.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Description _Type_Description: ## @Type_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Type` type is one of the most important types in Cello. It is the object which specifies the meta-data associated with a particular object. Most importantly this says what classes an object implements and what their instances are.\n\nOne can get the type of an object using the `type_of` function.\n\nTo see if an object implements a class `implements` can be used. To call a member of a class with an object `method` can be used.\n\nTo see if a type implements a class `type_implements` can be used. To call a member of a class, implemented `type_method` can be used." .no_dead_strip _Type_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Description _Type_Description: ; @Type_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Type` type is one of the most important types in Cello. It is the object which specifies the meta-data associated with a particular object. Most importantly this says what classes an object implements and what their instances are.\n\nOne can get the type of an object using the `type_of` function.\n\nTo see if an object implements a class `implements` can be used. To call a member of a class with an object `method` can be used.\n\nTo see if a type implements a class `type_implements` can be used. To call a member of a class, implemented `type_method` can be used." .no_dead_strip _Type_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Examples _Type_Examples: ## @Type_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Type_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Type_Examples.examples _Type_Examples.examples: .quad L_.str .quad L_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var t = type_of($I(5));\nshow(t); /* Int */\n\nshow($I(type_implements(t, New))); /* 1 */\nshow($I(type_implements(t, Cmp))); /* 1 */\nshow($I(type_implements(t, Hash))); /* 1 */\n\nshow($I(type_method(t, Cmp, cmp, $I(5), $I(6))));\n" .no_dead_strip _Type_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Examples _Type_Examples: ; @Type_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Type_Examples.examples@PAGE Lloh1: add x0, x0, _Type_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Type_Examples.examples _Type_Examples.examples: .quad l_.str .quad l_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var t = type_of($I(5));\nshow(t); /* Int */\n\nshow($I(type_implements(t, New))); /* 1 */\nshow($I(type_implements(t, Cmp))); /* 1 */\nshow($I(type_implements(t, Hash))); /* 1 */\n\nshow($I(type_method(t, Cmp, cmp, $I(5), $I(6))));\n" .no_dead_strip _Type_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Hash _Type_Hash: ## @Type_Hash .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 callq _Type_Builtin_Name movq %rax, %rbx movq %rax, %rdi callq _strlen movq %rbx, %rdi movl %eax, %esi addq $8, %rsp popq %rbx popq %rbp jmp _hash_data ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Type_Hash .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Hash _Type_Hash: ; @Type_Hash .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _Type_Builtin_Name mov x19, x0 bl _strlen mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _hash_data .cfi_endproc ; -- End function .no_dead_strip _Type_Hash .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Methods _Type_Methods: ## @Type_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Type_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Type_Methods.methods _Type_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .quad L_.str.6 .quad L_.str.7 .quad L_.str.8 .quad L_.str.9 .quad L_.str.10 .quad L_.str.11 .quad L_.str.12 .quad L_.str.13 .quad L_.str.14 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "type_of" L_.str.1: ## @.str.1 .asciz "var type_of(var self);" L_.str.2: ## @.str.2 .asciz "Returns the `Type` of an object `self`." L_.str.3: ## @.str.3 .asciz "instance" L_.str.4: ## @.str.4 .asciz "var instance(var self, var cls);\nvar type_instance(var type, var cls);" L_.str.5: ## @.str.5 .asciz "Returns the instance of class `cls` implemented by object `self` or type `type`. If class is not implemented then returns `NULL`." L_.str.6: ## @.str.6 .asciz "implements" L_.str.7: ## @.str.7 .asciz "bool implements(var self, var cls);\nbool type_implements(var type, var cls);" L_.str.8: ## @.str.8 .asciz "Returns if the object `self` or type `type` implements the class `cls`." L_.str.9: ## @.str.9 .asciz "method" L_.str.10: ## @.str.10 .asciz "#define method(X, C, M, ...)\n#define type_method(T, C, M, ...)" L_.str.11: ## @.str.11 .asciz "Returns the result of the call to method `M` of class `C` for object `X`or type `T`. If class is not implemented then an error is thrown." L_.str.12: ## @.str.12 .asciz "implements_method" L_.str.13: ## @.str.13 .asciz "#define implements_method(X, C, M)\n#define type_implements_method(T, C, M)" L_.str.14: ## @.str.14 .asciz "Returns if the type `T` or object `X` implements the method `M` of class C." .no_dead_strip _Type_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Methods _Type_Methods: ; @Type_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Type_Methods.methods@PAGE Lloh1: add x0, x0, _Type_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Type_Methods.methods _Type_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .quad l_.str.12 .quad l_.str.13 .quad l_.str.14 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "type_of" l_.str.1: ; @.str.1 .asciz "var type_of(var self);" l_.str.2: ; @.str.2 .asciz "Returns the `Type` of an object `self`." l_.str.3: ; @.str.3 .asciz "instance" l_.str.4: ; @.str.4 .asciz "var instance(var self, var cls);\nvar type_instance(var type, var cls);" l_.str.5: ; @.str.5 .asciz "Returns the instance of class `cls` implemented by object `self` or type `type`. If class is not implemented then returns `NULL`." l_.str.6: ; @.str.6 .asciz "implements" l_.str.7: ; @.str.7 .asciz "bool implements(var self, var cls);\nbool type_implements(var type, var cls);" l_.str.8: ; @.str.8 .asciz "Returns if the object `self` or type `type` implements the class `cls`." l_.str.9: ; @.str.9 .asciz "method" l_.str.10: ; @.str.10 .asciz "#define method(X, C, M, ...)\n#define type_method(T, C, M, ...)" l_.str.11: ; @.str.11 .asciz "Returns the result of the call to method `M` of class `C` for object `X`or type `T`. If class is not implemented then an error is thrown." l_.str.12: ; @.str.12 .asciz "implements_method" l_.str.13: ; @.str.13 .asciz "#define implements_method(X, C, M)\n#define type_implements_method(T, C, M)" l_.str.14: ; @.str.14 .asciz "Returns if the type `T` or object `X` implements the method `M` of class C." .no_dead_strip _Type_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Name _Type_Name: ## @Type_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Type" .no_dead_strip _Type_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Name _Type_Name: ; @Type_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Type" .no_dead_strip _Type_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Type_Show _Type_Show: ## @Type_Show .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %edx, %r14d movl %esi, %ebx callq _Type_Builtin_Name leaq L_.str(%rip), %rdx movl %ebx, %edi movl %r14d, %esi movl %eax, %ecx popq %rbx popq %r14 popq %rbp jmp _format_to ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .no_dead_strip _Type_Show .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Type_Show _Type_Show: ; @Type_Show .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x2 mov x20, x1 bl _Type_Builtin_Name mov x3, x0 Lloh0: adrp x2, l_.str@PAGE Lloh1: add x2, x2, l_.str@PAGEOFF mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _format_to .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .no_dead_strip _Type_Show .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_Type_Show.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _implements ## -- Begin function implements .p2align 4, 0x90 _implements: ## @implements .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movl %esi, %ebx callq _Type_Of movl %eax, %edi movl %ebx, %esi addq $8, %rsp popq %rbx popq %rbp jmp _Type_Implements ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _implements ; -- Begin function implements .p2align 2 _implements: ; @implements .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 bl _Type_Of mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _Type_Implements .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_implements.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _implements_method_at_offset ## -- Begin function implements_method_at_offset .p2align 4, 0x90 _implements_method_at_offset: ## @implements_method_at_offset .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdx, %r14 movl %esi, %ebx callq _Type_Of movl %eax, %edi movl %ebx, %esi movq %r14, %rdx popq %rbx popq %r14 popq %rbp jmp _Type_Implements_Method_At_Offset ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _implements_method_at_offset ; -- Begin function implements_method_at_offset .p2align 2 _implements_method_at_offset: ; @implements_method_at_offset .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x2 mov x20, x1 bl _Type_Of mov x1, x20 mov x2, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _Type_Implements_Method_At_Offset .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_implements_method_at_offset.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _instance ## -- Begin function instance .p2align 4, 0x90 _instance: ## @instance .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movl %esi, %ebx callq _Type_Of movl %eax, %edi movl %ebx, %esi addq $8, %rsp popq %rbx popq %rbp jmp _Type_Instance ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _instance ; -- Begin function instance .p2align 2 _instance: ; @instance .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 bl _Type_Of mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _Type_Instance .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_instance.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _method_at_offset ## -- Begin function method_at_offset .p2align 4, 0x90 _method_at_offset: ## @method_at_offset .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rcx, %r14 movq %rdx, %r15 movl %esi, %ebx callq _Type_Of movl %eax, %edi movl %ebx, %esi movq %r15, %rdx movq %r14, %rcx addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _Type_Method_At_Offset ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _method_at_offset ; -- Begin function method_at_offset .p2align 2 _method_at_offset: ; @method_at_offset .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x3 mov x20, x2 mov x21, x1 bl _Type_Of mov x1, x21 mov x2, x20 mov x3, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _Type_Method_At_Offset .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_method_at_offset.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _type_implements ## -- Begin function type_implements .p2align 4, 0x90 _type_implements: ## @type_implements .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _Type_Implements ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _type_implements ; -- Begin function type_implements .p2align 2 _type_implements: ; @type_implements .cfi_startproc ; %bb.0: b _Type_Implements .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_type_implements.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _type_implements_method_at_offset ## -- Begin function type_implements_method_at_offset .p2align 4, 0x90 _type_implements_method_at_offset: ## @type_implements_method_at_offset .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _Type_Implements_Method_At_Offset ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _type_implements_method_at_offset ; -- Begin function type_implements_method_at_offset .p2align 2 _type_implements_method_at_offset: ; @type_implements_method_at_offset .cfi_startproc ; %bb.0: b _Type_Implements_Method_At_Offset .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_type_implements_method_at_offset.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _type_instance ## -- Begin function type_instance .p2align 4, 0x90 _type_instance: ## @type_instance .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _Type_Instance ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _type_instance ; -- Begin function type_instance .p2align 2 _type_instance: ; @type_instance .cfi_startproc ; %bb.0: b _Type_Instance .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_type_instance.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _type_method_at_offset ## -- Begin function type_method_at_offset .p2align 4, 0x90 _type_method_at_offset: ## @type_method_at_offset .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _Type_Method_At_Offset ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _type_method_at_offset ; -- Begin function type_method_at_offset .p2align 2 _type_method_at_offset: ; @type_method_at_offset .cfi_startproc ; %bb.0: b _Type_Method_At_Offset .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_type_method_at_offset.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _type_of ## -- Begin function type_of .p2align 4, 0x90 _type_of: ## @type_of .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _Type_Of ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _type_of ; -- Begin function type_of .p2align 2 _type_of: ; @type_of .cfi_startproc ; %bb.0: b _Type_Of .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/src/extr_Type.c_type_of.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pt_add_suite ## -- Begin function pt_add_suite .p2align 4, 0x90 _pt_add_suite: ## @pt_add_suite .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _num_suites@GOTPCREL(%rip), %rax incl (%rax) popq %rbp jmpq *%rdi ## TAILCALL .cfi_endproc ## -- End function .comm _num_suites,4,2 ## @num_suites .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pt_add_suite ; -- Begin function pt_add_suite .p2align 2 _pt_add_suite: ; @pt_add_suite .cfi_startproc ; %bb.0: Lloh0: adrp x8, _num_suites@GOTPAGE Lloh1: ldr x8, [x8, _num_suites@GOTPAGEOFF] ldr w9, [x8] add w9, w9, #1 str w9, [x8] br x0 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _num_suites,4,2 ; @num_suites .subsections_via_symbols
AnghaBench/Cello/tests/extr_ptest.c_pt_add_suite.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pt_add_test ## -- Begin function pt_add_test .p2align 4, 0x90 _pt_add_test: ## @pt_add_test .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r12 movq _num_tests@GOTPCREL(%rip), %r13 movl (%r13), %esi movq _MAX_TESTS@GOTPCREL(%rip), %rax cmpl (%rax), %esi je LBB0_7 ## %bb.1: movq %rdx, %r15 movq %rdi, %r14 movq %r12, %rdi callq _strlen movq _MAX_NAME@GOTPCREL(%rip), %rcx movq (%rcx), %rbx cmpq %rbx, %rax jge LBB0_2 ## %bb.4: movq %r15, %rdi callq _strlen cmpq %rbx, %rax jge LBB0_5 ## %bb.6: movq %r12, %rsi callq _pt_title_case movq %r15, %rsi callq _pt_title_case movq _tests@GOTPCREL(%rip), %rax movq (%rax), %rax movslq (%r13), %rcx shlq $4, %rcx movq %r14, (%rax,%rcx) incl (%r13) addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_7: leaq L_.str(%rip), %rdi xorl %eax, %eax callq _printf xorl %eax, %eax callq _abort LBB0_2: leaq L_.str.1(%rip), %rdi movq %r12, %rsi jmp LBB0_3 LBB0_5: leaq L_.str.2(%rip), %rdi movq %r15, %rsi LBB0_3: movq %rbx, %rdx xorl %eax, %eax callq _printf xorl %eax, %eax callq _abort .cfi_endproc ## -- End function .comm _num_tests,4,2 ## @num_tests .comm _MAX_TESTS,4,2 ## @MAX_TESTS .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "ERROR: Exceeded maximum test count of %i!\n" .comm _MAX_NAME,8,3 ## @MAX_NAME L_.str.1: ## @.str.1 .asciz "ERROR: Test name '%s' too long (Maximum is %i characters)\n" L_.str.2: ## @.str.2 .asciz "ERROR: Test suite '%s' too long (Maximum is %i characters)\n" .comm _tests,8,3 ## @tests .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pt_add_test ; -- Begin function pt_add_test .p2align 2 _pt_add_test: ; @pt_add_test .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 Lloh0: adrp x22, _num_tests@GOTPAGE Lloh1: ldr x22, [x22, _num_tests@GOTPAGEOFF] ldr w8, [x22] Lloh2: adrp x9, _MAX_TESTS@GOTPAGE Lloh3: ldr x9, [x9, _MAX_TESTS@GOTPAGEOFF] Lloh4: ldr w9, [x9] cmp w8, w9 b.eq LBB0_4 ; %bb.1: mov x20, x2 mov x21, x1 mov x19, x0 mov x0, x1 bl _strlen Lloh5: adrp x8, _MAX_NAME@GOTPAGE Lloh6: ldr x8, [x8, _MAX_NAME@GOTPAGEOFF] Lloh7: ldr x23, [x8] cmp x0, x23 b.ge LBB0_5 ; %bb.2: mov x0, x20 bl _strlen cmp x0, x23 b.ge LBB0_6 ; %bb.3: mov x1, x21 bl _pt_title_case mov x1, x20 bl _pt_title_case Lloh8: adrp x8, _tests@GOTPAGE Lloh9: ldr x8, [x8, _tests@GOTPAGEOFF] Lloh10: ldr x8, [x8] ldrsw x9, [x22] lsl x9, x9, #4 str x19, [x8, x9] ldr w8, [x22] add w8, w8, #1 str w8, [x22] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 ret LBB0_4: str x8, [sp] Lloh11: adrp x0, l_.str@PAGE Lloh12: add x0, x0, l_.str@PAGEOFF bl _printf bl _abort LBB0_5: stp x21, x23, [sp] Lloh13: adrp x0, l_.str.1@PAGE Lloh14: add x0, x0, l_.str.1@PAGEOFF bl _printf bl _abort LBB0_6: stp x20, x23, [sp] Lloh15: adrp x0, l_.str.2@PAGE Lloh16: add x0, x0, l_.str.2@PAGEOFF bl _printf bl _abort .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpAdd Lloh11, Lloh12 .loh AdrpAdd Lloh13, Lloh14 .loh AdrpAdd Lloh15, Lloh16 .cfi_endproc ; -- End function .comm _num_tests,4,2 ; @num_tests .comm _MAX_TESTS,4,2 ; @MAX_TESTS .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "ERROR: Exceeded maximum test count of %i!\n" .comm _MAX_NAME,8,3 ; @MAX_NAME l_.str.1: ; @.str.1 .asciz "ERROR: Test name '%s' too long (Maximum is %i characters)\n" l_.str.2: ; @.str.2 .asciz "ERROR: Test suite '%s' too long (Maximum is %i characters)\n" .comm _tests,8,3 ; @tests .subsections_via_symbols
AnghaBench/Cello/tests/extr_ptest.c_pt_add_test.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pt_assert_run ## -- Begin function pt_assert_run .p2align 4, 0x90 _pt_assert_run: ## @pt_assert_run .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq _num_asserts@GOTPCREL(%rip), %rax incl (%rax) movq _test_passing@GOTPCREL(%rip), %rax cmpl $0, (%rax) movl %r8d, %r9d movq %rcx, %r8 setne %dl testl %edi, %edi setne %cl andb %dl, %cl movzbl %cl, %ecx movl %ecx, (%rax) testl %edi, %edi je LBB0_2 ## %bb.1: movq _num_assert_passes@GOTPCREL(%rip), %rax jmp LBB0_3 LBB0_2: movq %rsi, %r10 movq _assert_err_buff@GOTPCREL(%rip), %rbx movl (%rbx), %edi movq _assert_err_num@GOTPCREL(%rip), %r14 movl (%r14), %edx incl %edx leaq L_.str(%rip), %rsi movq %r10, %rcx callq _sprintf movq _assert_err@GOTPCREL(%rip), %rax movl (%rax), %edi movl (%rbx), %esi callq _strcat incl (%r14) movq _num_assert_fails@GOTPCREL(%rip), %rax LBB0_3: incl (%rax) popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _num_asserts,4,2 ## @num_asserts .comm _test_passing,4,2 ## @test_passing .comm _num_assert_passes,4,2 ## @num_assert_passes .comm _assert_err_buff,4,2 ## @assert_err_buff .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " %i. Assert [ %s ] (%s:%i)\n" .comm _assert_err_num,4,2 ## @assert_err_num .comm _assert_err,4,2 ## @assert_err .comm _num_assert_fails,4,2 ## @num_assert_fails .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pt_assert_run ; -- Begin function pt_assert_run .p2align 2 _pt_assert_run: ; @pt_assert_run .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 Lloh0: adrp x8, _num_asserts@GOTPAGE Lloh1: ldr x8, [x8, _num_asserts@GOTPAGEOFF] ldr w9, [x8] add w9, w9, #1 Lloh2: adrp x10, _test_passing@GOTPAGE Lloh3: ldr x10, [x10, _test_passing@GOTPAGEOFF] str w9, [x8] ldr w8, [x10] cmp w0, #0 ccmp w8, #0, #4, ne cset w8, ne str w8, [x10] cbz w0, LBB0_2 ; %bb.1: Lloh4: adrp x8, _num_assert_passes@GOTPAGE Lloh5: ldr x8, [x8, _num_assert_passes@GOTPAGEOFF] b LBB0_3 LBB0_2: mov x5, x4 mov x4, x3 mov x3, x1 Lloh6: adrp x19, _assert_err_buff@GOTPAGE Lloh7: ldr x19, [x19, _assert_err_buff@GOTPAGEOFF] ldr w0, [x19] Lloh8: adrp x20, _assert_err_num@GOTPAGE Lloh9: ldr x20, [x20, _assert_err_num@GOTPAGEOFF] ldr w8, [x20] add w2, w8, #1 Lloh10: adrp x1, l_.str@PAGE Lloh11: add x1, x1, l_.str@PAGEOFF bl _sprintf Lloh12: adrp x8, _assert_err@GOTPAGE Lloh13: ldr x8, [x8, _assert_err@GOTPAGEOFF] Lloh14: ldr w0, [x8] ldr w1, [x19] bl _strcat ldr w8, [x20] add w8, w8, #1 str w8, [x20] Lloh15: adrp x8, _num_assert_fails@GOTPAGE Lloh16: ldr x8, [x8, _num_assert_fails@GOTPAGEOFF] LBB0_3: ldr w9, [x8] add w9, w9, #1 str w9, [x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpLdrGot Lloh15, Lloh16 .loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14 .loh AdrpAdd Lloh10, Lloh11 .loh AdrpLdrGot Lloh8, Lloh9 .loh AdrpLdrGot Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _num_asserts,4,2 ; @num_asserts .comm _test_passing,4,2 ; @test_passing .comm _num_assert_passes,4,2 ; @num_assert_passes .comm _assert_err_buff,4,2 ; @assert_err_buff .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " %i. Assert [ %s ] (%s:%i)\n" .comm _assert_err_num,4,2 ; @assert_err_num .comm _assert_err,4,2 ; @assert_err .comm _num_assert_fails,4,2 ; @num_assert_fails .subsections_via_symbols
AnghaBench/Cello/tests/extr_ptest.c_pt_assert_run.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function pt_color _pt_color: ## @pt_color .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _colors@GOTPCREL(%rip), %rax movq (%rax), %rax movslq %edi, %rcx movq (%rax,%rcx,8), %rsi leaq L_.str(%rip), %rdi popq %rbp jmp _printf ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .comm _colors,8,3 ## @colors .no_dead_strip _pt_color .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function pt_color _pt_color: ; @pt_color .cfi_startproc ; %bb.0: Lloh0: adrp x8, _colors@GOTPAGE Lloh1: ldr x8, [x8, _colors@GOTPAGEOFF] Lloh2: ldr x8, [x8] ldr x1, [x8, w0, sxtw #3] Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF b _printf .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .comm _colors,8,3 ; @colors .no_dead_strip _pt_color .subsections_via_symbols
AnghaBench/Cello/tests/extr_ptest.c_pt_color.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function pt_title_case _pt_title_case: ## @pt_title_case .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 callq _strcpy movq %r14, %rdi callq _strlen testl %eax, %eax je LBB0_10 ## %bb.1: movl $1, %ecx xorl %ebx, %ebx jmp LBB0_2 LBB0_7: ## in Loop: Header=BB0_2 Depth=1 addb $-32, %al xorl %r15d, %r15d movl %eax, %edx .p2align 4, 0x90 LBB0_8: ## in Loop: Header=BB0_2 Depth=1 movb %dl, (%r14,%rbx) LBB0_9: ## in Loop: Header=BB0_2 Depth=1 incq %rbx movq %r14, %rdi callq _strlen movl %eax, %eax movl %r15d, %ecx cmpq %rax, %rbx jae LBB0_10 LBB0_2: ## =>This Inner Loop Header: Depth=1 movzbl (%r14,%rbx), %eax movb $32, %dl movl $1, %r15d cmpb $32, %al je LBB0_8 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 cmpb $95, %al je LBB0_8 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 xorl %r15d, %r15d testl %ecx, %ecx je LBB0_9 ## %bb.5: ## in Loop: Header=BB0_2 Depth=1 cmpb $97, %al jl LBB0_9 ## %bb.6: ## in Loop: Header=BB0_2 Depth=1 cmpb $122, %al jle LBB0_7 jmp LBB0_9 LBB0_10: addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _pt_title_case .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function pt_title_case _pt_title_case: ; @pt_title_case .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 bl _strcpy mov x0, x19 bl _strlen cbz w0, LBB0_10 ; %bb.1: mov x20, #0 mov w8, #1 b LBB0_5 LBB0_2: ; in Loop: Header=BB0_5 Depth=1 mov w21, #0 sub w9, w8, #32 LBB0_3: ; in Loop: Header=BB0_5 Depth=1 strb w9, [x19, x20] LBB0_4: ; in Loop: Header=BB0_5 Depth=1 add x20, x20, #1 mov x0, x19 bl _strlen cmp x20, w0, uxtw mov x8, x21 b.hs LBB0_10 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldrb w10, [x19, x20] mov w21, #1 mov w9, #32 cmp w10, #32 b.eq LBB0_3 ; %bb.6: ; in Loop: Header=BB0_5 Depth=1 cmp w10, #95 b.eq LBB0_3 ; %bb.7: ; in Loop: Header=BB0_5 Depth=1 mov w21, #0 cbz w8, LBB0_4 ; %bb.8: ; in Loop: Header=BB0_5 Depth=1 sxtb w8, w10 cmp w8, #97 b.lt LBB0_4 ; %bb.9: ; in Loop: Header=BB0_5 Depth=1 cmp w8, #122 b.le LBB0_2 b LBB0_4 LBB0_10: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _pt_title_case .subsections_via_symbols
AnghaBench/Cello/tests/extr_ptest.c_pt_title_case.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function ptest_signal _ptest_signal: ## @ptest_signal .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq _test_passing@GOTPCREL(%rip), %rax movq $0, (%rax) addl $-128, %edi cmpl $2, %edi ja LBB0_2 ## %bb.1: movslq %edi, %rax leaq l_reltable.ptest_signal(%rip), %rcx movslq (%rcx,%rax,4), %rsi addq %rcx, %rsi movq _assert_err_buff@GOTPCREL(%rip), %rax movl (%rax), %edi movq _assert_err_num@GOTPCREL(%rip), %rax movl (%rax), %edx incl %edx callq _sprintf LBB0_2: movq _assert_err_num@GOTPCREL(%rip), %rax incl (%rax) movq _assert_err@GOTPCREL(%rip), %rbx movq (%rbx), %rdi movq _assert_err_buff@GOTPCREL(%rip), %rax movl (%rax), %esi callq _strcat movq _RED@GOTPCREL(%rip), %rax movl (%rax), %edi callq _pt_color movq (%rbx), %rsi leaq L_.str.3(%rip), %rdi callq _printf movq _DEFAULT@GOTPCREL(%rip), %rax movl (%rax), %edi callq _pt_color leaq L_.str.4(%rip), %rdi callq _puts movq _stdout@GOTPCREL(%rip), %rax movl (%rax), %edi callq _fflush xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .comm _test_passing,8,3 ## @test_passing .comm _assert_err_buff,4,2 ## @assert_err_buff .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " %i. Division by Zero\n" .comm _assert_err_num,4,2 ## @assert_err_num L_.str.1: ## @.str.1 .asciz " %i. Illegal Instruction\n" L_.str.2: ## @.str.2 .asciz " %i. Segmentation Fault\n" .comm _assert_err,8,3 ## @assert_err .comm _RED,4,2 ## @RED L_.str.3: ## @.str.3 .asciz "Failed! \n\n%s\n" .comm _DEFAULT,4,2 ## @DEFAULT L_.str.4: ## @.str.4 .asciz " | Stopping Execution." .comm _stdout,4,2 ## @stdout .no_dead_strip _ptest_signal .section __TEXT,__const .p2align 2 ## @reltable.ptest_signal l_reltable.ptest_signal: .long L_.str.2-l_reltable.ptest_signal .long L_.str.1-l_reltable.ptest_signal .long L_.str-l_reltable.ptest_signal .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function ptest_signal _ptest_signal: ; @ptest_signal .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 Lloh0: adrp x8, _test_passing@GOTPAGE Lloh1: ldr x8, [x8, _test_passing@GOTPAGEOFF] Lloh2: str xzr, [x8] sub w8, w0, #128 Lloh3: adrp x19, _assert_err_buff@GOTPAGE Lloh4: ldr x19, [x19, _assert_err_buff@GOTPAGEOFF] Lloh5: adrp x20, _assert_err_num@GOTPAGE Lloh6: ldr x20, [x20, _assert_err_num@GOTPAGEOFF] cmp w8, #2 b.hi LBB0_2 ; %bb.1: Lloh7: adrp x9, l_switch.table.ptest_signal@PAGE Lloh8: add x9, x9, l_switch.table.ptest_signal@PAGEOFF ldr x1, [x9, w8, sxtw #3] ldr w0, [x19] ldr w8, [x20] add w2, w8, #1 bl _sprintf LBB0_2: ldr w8, [x20] add w8, w8, #1 str w8, [x20] Lloh9: adrp x20, _assert_err@GOTPAGE Lloh10: ldr x20, [x20, _assert_err@GOTPAGEOFF] ldr x0, [x20] ldr w1, [x19] bl _strcat Lloh11: adrp x8, _RED@GOTPAGE Lloh12: ldr x8, [x8, _RED@GOTPAGEOFF] Lloh13: ldr w0, [x8] bl _pt_color ldr x1, [x20] Lloh14: adrp x0, l_.str.3@PAGE Lloh15: add x0, x0, l_.str.3@PAGEOFF bl _printf Lloh16: adrp x8, _DEFAULT@GOTPAGE Lloh17: ldr x8, [x8, _DEFAULT@GOTPAGEOFF] Lloh18: ldr w0, [x8] bl _pt_color Lloh19: adrp x0, l_.str.4@PAGE Lloh20: add x0, x0, l_.str.4@PAGEOFF bl _puts Lloh21: adrp x8, _stdout@GOTPAGE Lloh22: ldr x8, [x8, _stdout@GOTPAGEOFF] Lloh23: ldr w0, [x8] bl _fflush mov w0, #0 bl _exit .loh AdrpLdrGot Lloh5, Lloh6 .loh AdrpLdrGot Lloh3, Lloh4 .loh AdrpLdrGotStr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23 .loh AdrpAdd Lloh19, Lloh20 .loh AdrpLdrGotLdr Lloh16, Lloh17, Lloh18 .loh AdrpAdd Lloh14, Lloh15 .loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13 .loh AdrpLdrGot Lloh9, Lloh10 .cfi_endproc ; -- End function .comm _test_passing,8,3 ; @test_passing .comm _assert_err_buff,4,2 ; @assert_err_buff .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " %i. Division by Zero\n" .comm _assert_err_num,4,2 ; @assert_err_num l_.str.1: ; @.str.1 .asciz " %i. Illegal Instruction\n" l_.str.2: ; @.str.2 .asciz " %i. Segmentation Fault\n" .comm _assert_err,8,3 ; @assert_err .comm _RED,4,2 ; @RED l_.str.3: ; @.str.3 .asciz "Failed! \n\n%s\n" .comm _DEFAULT,4,2 ; @DEFAULT l_.str.4: ; @.str.4 .asciz " | Stopping Execution." .comm _stdout,4,2 ; @stdout .no_dead_strip _ptest_signal .section __DATA,__const .p2align 3 ; @switch.table.ptest_signal l_switch.table.ptest_signal: .quad l_.str.2 .quad l_.str.1 .quad l_.str .subsections_via_symbols
AnghaBench/Cello/tests/extr_ptest.c_ptest_signal.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function TestType_Cmp _TestType_Cmp: ## @TestType_Cmp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %esi, %r14d movq _TestType@GOTPCREL(%rip), %r15 movl (%r15), %esi callq _cast movq %rax, %rbx movl (%r15), %esi movl %r14d, %edi callq _cast movl (%rbx), %ecx subl (%rax), %ecx movl %ecx, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _TestType,4,2 ## @TestType .no_dead_strip _TestType_Cmp .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function TestType_Cmp _TestType_Cmp: ; @TestType_Cmp .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x1 Lloh0: adrp x21, _TestType@GOTPAGE Lloh1: ldr x21, [x21, _TestType@GOTPAGEOFF] ldr w1, [x21] bl _cast mov x20, x0 ldr w1, [x21] mov x0, x19 bl _cast ldr w8, [x20] ldr w9, [x0] sub w0, w8, w9 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _TestType,4,2 ; @TestType .no_dead_strip _TestType_Cmp .subsections_via_symbols
AnghaBench/Cello/tests/extr_test.c_TestType_Cmp.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _assert_value ## -- Begin function assert_value .p2align 4, 0x90 _assert_value: ## @assert_value .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp callq _PT_ASSERT xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _assert_value ; -- Begin function assert_value .p2align 2 _assert_value: ; @assert_value .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _PT_ASSERT mov x0, #0 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/tests/extr_test.c_assert_value.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cello_sleep ## -- Begin function cello_sleep .p2align 4, 0x90 _cello_sleep: ## @cello_sleep .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cello_sleep ; -- Begin function cello_sleep .p2align 2 _cello_sleep: ; @cello_sleep .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/tests/extr_test.c_cello_sleep.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _convert_to_int ## -- Begin function convert_to_int .p2align 4, 0x90 _convert_to_int: ## @convert_to_int .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %edi, %r14d movq _Int@GOTPCREL(%rip), %rax movl (%rax), %edi callq _new movl %eax, %ebx movl %eax, %edi movl %r14d, %esi xorl %edx, %edx callq _look_from movl %ebx, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _Int,4,2 ## @Int .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _convert_to_int ; -- Begin function convert_to_int .p2align 2 _convert_to_int: ; @convert_to_int .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, _Int@GOTPAGE Lloh1: ldr x8, [x8, _Int@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _new mov x20, x0 mov x1, x19 mov w2, #0 bl _look_from mov x0, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Int,4,2 ; @Int .subsections_via_symbols
AnghaBench/Cello/tests/extr_test.c_convert_to_int.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _greater_than_two ## -- Begin function greater_than_two .p2align 4, 0x90 _greater_than_two: ## @greater_than_two .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx callq _c_int xorl %ecx, %ecx cmpl $3, %eax cmovgeq %rbx, %rcx movq %rcx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _greater_than_two ; -- Begin function greater_than_two .p2align 2 _greater_than_two: ; @greater_than_two .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _c_int cmp w0, #2 csel x0, x19, xzr, gt ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cello/tests/extr_test.c_greater_than_two.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ANativeActivity_onCreate ## -- Begin function ANativeActivity_onCreate .p2align 4, 0x90 _ANativeActivity_onCreate: ## @ANativeActivity_onCreate .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq L_.str(%rip), %rdi movq %rbx, %rsi callq _LOGV movq _onStart@GOTPCREL(%rip), %rax movl (%rax), %ecx movq 8(%rbx), %rax movl %ecx, 48(%rax) movq _onResume@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 44(%rax) movq _onSaveInstanceState@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 40(%rax) movq _onPause@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 36(%rax) movq _onStop@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 32(%rax) movq _onDestroy@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 28(%rax) movq _onWindowFocusChanged@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 24(%rax) movq _onNativeWindowCreated@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 20(%rax) movq _onNativeWindowDestroyed@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 16(%rax) movq _onInputQueueCreated@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 12(%rax) movq _onInputQueueDestroyed@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 8(%rax) movq _onConfigurationChanged@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 4(%rax) movq _onLowMemory@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, (%rax) movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq _android_app_create movl %eax, (%rbx) addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "ANativeActivity_onCreate: %p\n" .comm _onStart,4,2 ## @onStart .comm _onResume,4,2 ## @onResume .comm _onSaveInstanceState,4,2 ## @onSaveInstanceState .comm _onPause,4,2 ## @onPause .comm _onStop,4,2 ## @onStop .comm _onDestroy,4,2 ## @onDestroy .comm _onWindowFocusChanged,4,2 ## @onWindowFocusChanged .comm _onNativeWindowCreated,4,2 ## @onNativeWindowCreated .comm _onNativeWindowDestroyed,4,2 ## @onNativeWindowDestroyed .comm _onInputQueueCreated,4,2 ## @onInputQueueCreated .comm _onInputQueueDestroyed,4,2 ## @onInputQueueDestroyed .comm _onConfigurationChanged,4,2 ## @onConfigurationChanged .comm _onLowMemory,4,2 ## @onLowMemory .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ANativeActivity_onCreate ; -- Begin function ANativeActivity_onCreate .p2align 2 _ANativeActivity_onCreate: ; @ANativeActivity_onCreate .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x2 mov x20, x1 mov x21, x0 Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF mov x1, x21 bl _LOGV Lloh2: adrp x8, _onStart@GOTPAGE Lloh3: ldr x8, [x8, _onStart@GOTPAGEOFF] Lloh4: ldr w8, [x8] ldr x9, [x21, #8] str w8, [x9, #48] Lloh5: adrp x8, _onResume@GOTPAGE Lloh6: ldr x8, [x8, _onResume@GOTPAGEOFF] Lloh7: ldr w8, [x8] Lloh8: adrp x10, _onSaveInstanceState@GOTPAGE Lloh9: ldr x10, [x10, _onSaveInstanceState@GOTPAGEOFF] Lloh10: ldr w10, [x10] stp w10, w8, [x9, #40] Lloh11: adrp x8, _onPause@GOTPAGE Lloh12: ldr x8, [x8, _onPause@GOTPAGEOFF] Lloh13: adrp x10, _onStop@GOTPAGE Lloh14: ldr x10, [x10, _onStop@GOTPAGEOFF] Lloh15: ldr w8, [x8] Lloh16: ldr w10, [x10] stp w10, w8, [x9, #32] Lloh17: adrp x8, _onDestroy@GOTPAGE Lloh18: ldr x8, [x8, _onDestroy@GOTPAGEOFF] Lloh19: ldr w8, [x8] Lloh20: adrp x10, _onWindowFocusChanged@GOTPAGE Lloh21: ldr x10, [x10, _onWindowFocusChanged@GOTPAGEOFF] Lloh22: ldr w10, [x10] stp w10, w8, [x9, #24] Lloh23: adrp x8, _onNativeWindowCreated@GOTPAGE Lloh24: ldr x8, [x8, _onNativeWindowCreated@GOTPAGEOFF] Lloh25: ldr w8, [x8] Lloh26: adrp x10, _onNativeWindowDestroyed@GOTPAGE Lloh27: ldr x10, [x10, _onNativeWindowDestroyed@GOTPAGEOFF] Lloh28: ldr w10, [x10] stp w10, w8, [x9, #16] Lloh29: adrp x8, _onInputQueueCreated@GOTPAGE Lloh30: ldr x8, [x8, _onInputQueueCreated@GOTPAGEOFF] Lloh31: adrp x10, _onInputQueueDestroyed@GOTPAGE Lloh32: ldr x10, [x10, _onInputQueueDestroyed@GOTPAGEOFF] Lloh33: ldr w8, [x8] Lloh34: ldr w10, [x10] stp w10, w8, [x9, #8] Lloh35: adrp x8, _onConfigurationChanged@GOTPAGE Lloh36: ldr x8, [x8, _onConfigurationChanged@GOTPAGEOFF] Lloh37: ldr w8, [x8] Lloh38: adrp x10, _onLowMemory@GOTPAGE Lloh39: ldr x10, [x10, _onLowMemory@GOTPAGEOFF] Lloh40: ldr w10, [x10] stp w10, w8, [x9] mov x0, x21 mov x1, x20 mov x2, x19 bl _android_app_create str w0, [x21] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh38, Lloh39, Lloh40 .loh AdrpLdrGotLdr Lloh35, Lloh36, Lloh37 .loh AdrpLdrGotLdr Lloh31, Lloh32, Lloh34 .loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh33 .loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28 .loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25 .loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22 .loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19 .loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh16 .loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh15 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "ANativeActivity_onCreate: %p\n" .comm _onStart,4,2 ; @onStart .comm _onResume,4,2 ; @onResume .comm _onSaveInstanceState,4,2 ; @onSaveInstanceState .comm _onPause,4,2 ; @onPause .comm _onStop,4,2 ; @onStop .comm _onDestroy,4,2 ; @onDestroy .comm _onWindowFocusChanged,4,2 ; @onWindowFocusChanged .comm _onNativeWindowCreated,4,2 ; @onNativeWindowCreated .comm _onNativeWindowDestroyed,4,2 ; @onNativeWindowDestroyed .comm _onInputQueueCreated,4,2 ; @onInputQueueCreated .comm _onInputQueueDestroyed,4,2 ; @onInputQueueDestroyed .comm _onConfigurationChanged,4,2 ; @onConfigurationChanged .comm _onLowMemory,4,2 ; @onLowMemory .subsections_via_symbols
AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_ANativeActivity_onCreate.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function android_app_create _android_app_create: ## @android_app_create .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $24, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, %r12 movq %rsi, %r13 movq %rdi, %r14 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -48(%rbp) movl $48, %edi callq _malloc movq %rax, %rbx movq %rax, %rdi xorl %esi, %esi movl $48, %edx callq _memset movq %r14, 40(%rbx) leaq 16(%rbx), %r14 movq %r14, %rdi xorl %esi, %esi callq _pthread_mutex_init leaq 20(%rbx), %r15 movq %r15, %rdi xorl %esi, %esi callq _pthread_cond_init testq %r13, %r13 je LBB0_2 ## %bb.1: movq %r12, %rdi callq _malloc movq %rax, 32(%rbx) movq %r12, (%rbx) movq %rax, %rdi movq %r13, %rsi movq %r12, %rdx callq _memcpy LBB0_2: leaq -56(%rbp), %rdi callq _pipe testq %rax, %rax je LBB0_4 ## %bb.3: movq _errno@GOTPCREL(%rip), %rax movl (%rax), %edi callq _strerror leaq L_.str(%rip), %rdi movl %eax, %esi callq _LOGE xorl %ebx, %ebx jmp LBB0_8 LBB0_4: movl -56(%rbp), %eax movl %eax, 8(%rbx) movl -52(%rbp), %eax movl %eax, 12(%rbx) leaq -60(%rbp), %r12 movq %r12, %rdi callq _pthread_attr_init movq _PTHREAD_CREATE_DETACHED@GOTPCREL(%rip), %rax movl (%rax), %esi movq %r12, %rdi callq _pthread_attr_setdetachstate movq %rbx, %rdi addq $28, %rdi movq _android_app_entry@GOTPCREL(%rip), %rax movl (%rax), %edx movq %r12, %rsi movq %rbx, %rcx callq _pthread_create movq %r14, %rdi callq _pthread_mutex_lock cmpl $0, 24(%rbx) jne LBB0_7 .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 movq %r15, %rdi movq %r14, %rsi callq _pthread_cond_wait cmpl $0, 24(%rbx) je LBB0_5 LBB0_7: movq %r14, %rdi callq _pthread_mutex_unlock LBB0_8: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax cmpq -48(%rbp), %rax jne LBB0_10 ## %bb.9: movq %rbx, %rax addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_10: callq ___stack_chk_fail .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "could not create pipe: %s" .comm _errno,4,2 ## @errno .comm _PTHREAD_CREATE_DETACHED,4,2 ## @PTHREAD_CREATE_DETACHED .comm _android_app_entry,4,2 ## @android_app_entry .no_dead_strip _android_app_create .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function android_app_create _android_app_create: ; @android_app_create .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x22, x2 mov x23, x1 mov x20, x0 mov w0, #48 bl _malloc mov x19, x0 mov w1, #0 mov w2, #48 bl _memset str x20, [x19, #40] add x20, x19, #16 mov x0, x20 mov x1, #0 bl _pthread_mutex_init add x21, x19, #20 mov x0, x21 mov x1, #0 bl _pthread_cond_init cbz x23, LBB0_2 ; %bb.1: mov x0, x22 bl _malloc str x0, [x19, #32] str x22, [x19] mov x1, x23 mov x2, x22 bl _memcpy LBB0_2: add x0, sp, #8 bl _pipe cbz x0, LBB0_4 ; %bb.3: Lloh0: adrp x8, _errno@GOTPAGE Lloh1: ldr x8, [x8, _errno@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _strerror mov x1, x0 Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF bl _LOGE mov x19, #0 b LBB0_7 LBB0_4: ldr d0, [sp, #8] str d0, [x19, #8] add x0, sp, #4 bl _pthread_attr_init Lloh5: adrp x8, _PTHREAD_CREATE_DETACHED@GOTPAGE Lloh6: ldr x8, [x8, _PTHREAD_CREATE_DETACHED@GOTPAGEOFF] Lloh7: ldr w1, [x8] add x0, sp, #4 bl _pthread_attr_setdetachstate add x0, x19, #28 Lloh8: adrp x8, _android_app_entry@GOTPAGE Lloh9: ldr x8, [x8, _android_app_entry@GOTPAGEOFF] Lloh10: ldr w2, [x8] add x1, sp, #4 mov x3, x19 bl _pthread_create mov x0, x20 bl _pthread_mutex_lock ldr w8, [x19, #24] cbnz w8, LBB0_6 LBB0_5: ; =>This Inner Loop Header: Depth=1 mov x0, x21 mov x1, x20 bl _pthread_cond_wait ldr w8, [x19, #24] cbz w8, LBB0_5 LBB0_6: mov x0, x20 bl _pthread_mutex_unlock LBB0_7: mov x0, x19 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 ret .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "could not create pipe: %s" .comm _errno,4,2 ; @errno .comm _PTHREAD_CREATE_DETACHED,4,2 ; @PTHREAD_CREATE_DETACHED .comm _android_app_entry,4,2 ; @android_app_entry .no_dead_strip _android_app_create .subsections_via_symbols
AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_android_app_create.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function android_app_destroy _android_app_destroy: ## @android_app_destroy .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx leaq L_.str(%rip), %rdi callq _LOGV movq %rbx, %rdi callq _free_saved_state leaq 4(%rbx), %r14 movq %r14, %rdi callq _pthread_mutex_lock movq 16(%rbx), %rdi testq %rdi, %rdi je LBB0_2 ## %bb.1: callq _AInputQueue_detachLooper LBB0_2: movl 12(%rbx), %edi callq _AConfiguration_delete movl $1, (%rbx) addq $8, %rbx movq %rbx, %rdi callq _pthread_cond_broadcast movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _pthread_mutex_unlock ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "android_app_destroy!" .no_dead_strip _android_app_destroy .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function android_app_destroy _android_app_destroy: ; @android_app_destroy .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF bl _LOGV mov x0, x19 bl _free_saved_state add x20, x19, #4 mov x0, x20 bl _pthread_mutex_lock ldr x0, [x19, #16] cbz x0, LBB0_2 ; %bb.1: bl _AInputQueue_detachLooper LBB0_2: ldr w0, [x19, #12] bl _AConfiguration_delete mov w8, #1 str w8, [x19] add x0, x19, #8 bl _pthread_cond_broadcast mov x0, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _pthread_mutex_unlock .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "android_app_destroy!" .no_dead_strip _android_app_destroy .subsections_via_symbols
AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_android_app_destroy.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function android_app_entry _android_app_entry: ## @android_app_entry .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx xorl %eax, %eax callq _AConfiguration_new movl %eax, 88(%rbx) movq 80(%rbx), %rcx movl (%rcx), %esi movl %eax, %edi callq _AConfiguration_fromAssetManager movq %rbx, %rdi callq _print_cur_config movq _LOOPER_ID_MAIN@GOTPCREL(%rip), %r12 movl (%r12), %eax leaq 24(%rbx), %r14 movl %eax, 40(%rbx) movq %rbx, 32(%rbx) movq _process_cmd@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, 24(%rbx) movq _LOOPER_ID_INPUT@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, 72(%rbx) movq %rbx, 64(%rbx) movq _process_input@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, 56(%rbx) movq _ALOOPER_PREPARE_ALLOW_NON_CALLBACKS@GOTPCREL(%rip), %rax movl (%rax), %edi callq _ALooper_prepare movq %rax, %r15 movl 48(%rbx), %esi movl (%r12), %edx movq _ALOOPER_EVENT_INPUT@GOTPCREL(%rip), %rax movl (%rax), %ecx movq %r15, %rdi xorl %r8d, %r8d movq %r14, %r9 callq _ALooper_addFd movq %r15, 16(%rbx) leaq 4(%rbx), %r14 movq %r14, %rdi callq _pthread_mutex_lock movl $1, (%rbx) leaq 8(%rbx), %rdi callq _pthread_cond_broadcast movq %r14, %rdi callq _pthread_mutex_unlock movq %rbx, %rdi callq _android_main movq %rbx, %rdi callq _android_app_destroy xorl %edi, %edi callq _pthread_exit xorl %eax, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _LOOPER_ID_MAIN,4,2 ## @LOOPER_ID_MAIN .comm _process_cmd,4,2 ## @process_cmd .comm _LOOPER_ID_INPUT,4,2 ## @LOOPER_ID_INPUT .comm _process_input,4,2 ## @process_input .comm _ALOOPER_PREPARE_ALLOW_NON_CALLBACKS,4,2 ## @ALOOPER_PREPARE_ALLOW_NON_CALLBACKS .comm _ALOOPER_EVENT_INPUT,4,2 ## @ALOOPER_EVENT_INPUT .no_dead_strip _android_app_entry .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function android_app_entry _android_app_entry: ; @android_app_entry .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 bl _AConfiguration_new str w0, [x19, #88] ldr x8, [x19, #80] ldr w1, [x8] bl _AConfiguration_fromAssetManager mov x0, x19 bl _print_cur_config Lloh0: adrp x22, _LOOPER_ID_MAIN@GOTPAGE Lloh1: ldr x22, [x22, _LOOPER_ID_MAIN@GOTPAGEOFF] ldr w8, [x22] str w8, [x19, #40] str x19, [x19, #32] Lloh2: adrp x8, _process_cmd@GOTPAGE Lloh3: ldr x8, [x8, _process_cmd@GOTPAGEOFF] Lloh4: ldr w8, [x8] mov x20, x19 str w8, [x20, #24]! Lloh5: adrp x8, _LOOPER_ID_INPUT@GOTPAGE Lloh6: ldr x8, [x8, _LOOPER_ID_INPUT@GOTPAGEOFF] Lloh7: ldr w8, [x8] str w8, [x19, #72] Lloh8: adrp x8, _process_input@GOTPAGE Lloh9: ldr x8, [x8, _process_input@GOTPAGEOFF] str x19, [x19, #64] Lloh10: ldr w8, [x8] str w8, [x19, #56] Lloh11: adrp x8, _ALOOPER_PREPARE_ALLOW_NON_CALLBACKS@GOTPAGE Lloh12: ldr x8, [x8, _ALOOPER_PREPARE_ALLOW_NON_CALLBACKS@GOTPAGEOFF] Lloh13: ldr w0, [x8] bl _ALooper_prepare mov x21, x0 ldr w1, [x19, #48] ldr w2, [x22] Lloh14: adrp x8, _ALOOPER_EVENT_INPUT@GOTPAGE Lloh15: ldr x8, [x8, _ALOOPER_EVENT_INPUT@GOTPAGEOFF] Lloh16: ldr w3, [x8] mov x4, #0 mov x5, x20 bl _ALooper_addFd str x21, [x19, #16] add x20, x19, #4 mov x0, x20 bl _pthread_mutex_lock mov w8, #1 str w8, [x19] add x0, x19, #8 bl _pthread_cond_broadcast mov x0, x20 bl _pthread_mutex_unlock mov x0, x19 bl _android_main mov x0, x19 bl _android_app_destroy mov x0, #0 bl _pthread_exit mov x0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16 .loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _LOOPER_ID_MAIN,4,2 ; @LOOPER_ID_MAIN .comm _process_cmd,4,2 ; @process_cmd .comm _LOOPER_ID_INPUT,4,2 ; @LOOPER_ID_INPUT .comm _process_input,4,2 ; @process_input .comm _ALOOPER_PREPARE_ALLOW_NON_CALLBACKS,4,2 ; @ALOOPER_PREPARE_ALLOW_NON_CALLBACKS .comm _ALOOPER_EVENT_INPUT,4,2 ; @ALOOPER_EVENT_INPUT .no_dead_strip _android_app_entry .subsections_via_symbols
AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_android_app_entry.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function android_app_free _android_app_free: ## @android_app_free .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx callq _pthread_mutex_lock movq _APP_CMD_DESTROY@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi callq _android_app_write_cmd cmpl $0, 16(%rbx) jne LBB0_3 ## %bb.1: leaq 4(%rbx), %r14 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi movq %rbx, %rsi callq _pthread_cond_wait cmpl $0, 16(%rbx) je LBB0_2 LBB0_3: movq %rbx, %rdi callq _pthread_mutex_unlock movl 12(%rbx), %edi callq _close movl 8(%rbx), %edi callq _close leaq 4(%rbx), %rdi callq _pthread_cond_destroy movq %rbx, %rdi callq _pthread_mutex_destroy movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp _free ## TAILCALL .cfi_endproc ## -- End function .comm _APP_CMD_DESTROY,4,2 ## @APP_CMD_DESTROY .no_dead_strip _android_app_free .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function android_app_free _android_app_free: ; @android_app_free .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _pthread_mutex_lock Lloh0: adrp x8, _APP_CMD_DESTROY@GOTPAGE Lloh1: ldr x8, [x8, _APP_CMD_DESTROY@GOTPAGEOFF] Lloh2: ldr w1, [x8] mov x0, x19 bl _android_app_write_cmd ldr w8, [x19, #16] cbnz w8, LBB0_3 ; %bb.1: add x20, x19, #4 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x20 mov x1, x19 bl _pthread_cond_wait ldr w8, [x19, #16] cbz w8, LBB0_2 LBB0_3: mov x0, x19 bl _pthread_mutex_unlock ldr w0, [x19, #12] bl _close ldr w0, [x19, #8] bl _close add x0, x19, #4 bl _pthread_cond_destroy mov x0, x19 bl _pthread_mutex_destroy mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _free .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _APP_CMD_DESTROY,4,2 ; @APP_CMD_DESTROY .no_dead_strip _android_app_free .subsections_via_symbols
AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_android_app_free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _android_app_post_exec_cmd ## -- Begin function android_app_post_exec_cmd .p2align 4, 0x90 _android_app_post_exec_cmd: ## @android_app_post_exec_cmd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx cmpl $130, %esi je LBB0_6 ## %bb.1: cmpl $129, %esi je LBB0_5 ## %bb.2: cmpl $128, %esi jne LBB0_7 ## %bb.3: leaq 4(%rbx), %r14 movq %r14, %rdi callq _pthread_mutex_lock movq $0, 16(%rbx) jmp LBB0_4 LBB0_6: movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp _free_saved_state ## TAILCALL LBB0_5: leaq 4(%rbx), %r14 movq %r14, %rdi callq _pthread_mutex_lock movl $1, (%rbx) LBB0_4: addq $8, %rbx movq %rbx, %rdi callq _pthread_cond_broadcast movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _pthread_mutex_unlock ## TAILCALL LBB0_7: popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _android_app_post_exec_cmd ; -- Begin function android_app_post_exec_cmd .p2align 2 _android_app_post_exec_cmd: ; @android_app_post_exec_cmd .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 cmp w1, #130 b.eq LBB0_4 ; %bb.1: cmp w1, #129 b.eq LBB0_5 ; %bb.2: cmp w1, #128 b.ne LBB0_7 ; %bb.3: add x20, x19, #4 mov x0, x20 bl _pthread_mutex_lock str xzr, [x19, #16] add x0, x19, #8 b LBB0_6 LBB0_4: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _free_saved_state LBB0_5: add x20, x19, #4 mov x0, x20 bl _pthread_mutex_lock mov w8, #1 str w8, [x19], #8 mov x0, x19 LBB0_6: bl _pthread_cond_broadcast mov x0, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _pthread_mutex_unlock LBB0_7: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_android_app_post_exec_cmd.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _android_app_pre_exec_cmd ## -- Begin function android_app_pre_exec_cmd .p2align 4, 0x90 _android_app_pre_exec_cmd: ## @android_app_pre_exec_cmd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %esi, %ebx leal -128(%rbx), %eax cmpl $8, %eax ja LBB0_13 ## %bb.1: movq %rdi, %r15 leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_10: leaq 20(%r15), %r14 movq %r14, %rdi callq _pthread_mutex_lock movl %ebx, (%r15) LBB0_6: addq $24, %r15 movq %r15, %rdi callq _pthread_cond_broadcast movq %r14, %rdi LBB0_7: addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _pthread_mutex_unlock ## TAILCALL LBB0_9: addq $24, %r15 movq %r15, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _pthread_cond_broadcast ## TAILCALL LBB0_2: leaq 20(%r15), %r14 movq %r14, %rdi callq _pthread_mutex_lock movq 48(%r15), %rdi testq %rdi, %rdi je LBB0_4 ## %bb.3: callq _AInputQueue_detachLooper LBB0_4: movq 56(%r15), %rax movq %rax, 48(%r15) testq %rax, %rax je LBB0_6 ## %bb.5: leaq L_.str(%rip), %rdi callq _LOGV movq 48(%r15), %rdi movl 40(%r15), %esi movq _LOOPER_ID_INPUT@GOTPCREL(%rip), %rax movl (%rax), %edx leaq 36(%r15), %r8 xorl %ecx, %ecx callq _AInputQueue_attachLooper jmp LBB0_6 LBB0_8: leaq 20(%r15), %rbx movq %rbx, %rdi callq _pthread_mutex_lock movl 28(%r15), %eax movl %eax, 32(%r15) addq $24, %r15 movq %r15, %rdi callq _pthread_cond_broadcast movq %rbx, %rdi jmp LBB0_7 LBB0_12: movl $1, 4(%r15) LBB0_13: addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_11: movl 16(%r15), %edi movq 8(%r15), %rax movl (%rax), %esi callq _AConfiguration_fromAssetManager movq %r15, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _print_cur_config ## TAILCALL .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_9, LBB0_9-LJTI0_0 .set L0_0_set_10, LBB0_10-LJTI0_0 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 .set L0_0_set_12, LBB0_12-LJTI0_0 .set L0_0_set_11, LBB0_11-LJTI0_0 LJTI0_0: .long L0_0_set_9 .long L0_0_set_10 .long L0_0_set_10 .long L0_0_set_10 .long L0_0_set_10 .long L0_0_set_2 .long L0_0_set_8 .long L0_0_set_12 .long L0_0_set_11 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Attaching input queue to looper" .comm _LOOPER_ID_INPUT,4,2 ## @LOOPER_ID_INPUT .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _android_app_pre_exec_cmd ; -- Begin function android_app_pre_exec_cmd .p2align 2 _android_app_pre_exec_cmd: ; @android_app_pre_exec_cmd .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 sub w8, w1, #128 cmp w8, #8 b.hi LBB0_12 ; %bb.1: mov x19, x0 Lloh0: adrp x9, lJTI0_0@PAGE Lloh1: add x9, x9, lJTI0_0@PAGEOFF adr x10, LBB0_2 ldrb w11, [x9, x8] add x10, x10, x11, lsl #2 br x10 LBB0_2: mov x20, x1 add x21, x19, #20 mov x0, x21 bl _pthread_mutex_lock str w20, [x19], #24 mov x0, x19 bl _pthread_cond_broadcast mov x0, x21 b LBB0_10 LBB0_3: add x0, x19, #24 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _pthread_cond_broadcast LBB0_4: add x20, x19, #20 mov x0, x20 bl _pthread_mutex_lock ldr x0, [x19, #48] cbz x0, LBB0_6 ; %bb.5: bl _AInputQueue_detachLooper LBB0_6: ldr x8, [x19, #56] str x8, [x19, #48] cbz x8, LBB0_9 ; %bb.7: Lloh2: adrp x0, l_.str@PAGE Lloh3: add x0, x0, l_.str@PAGEOFF bl _LOGV ldr x0, [x19, #48] ldr w1, [x19, #40] Lloh4: adrp x8, _LOOPER_ID_INPUT@GOTPAGE Lloh5: ldr x8, [x8, _LOOPER_ID_INPUT@GOTPAGEOFF] Lloh6: ldr w2, [x8] add x4, x19, #36 mov x3, #0 bl _AInputQueue_attachLooper b LBB0_9 LBB0_8: add x20, x19, #20 mov x0, x20 bl _pthread_mutex_lock ldr w8, [x19, #28] str w8, [x19, #32] LBB0_9: add x0, x19, #24 bl _pthread_cond_broadcast mov x0, x20 LBB0_10: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _pthread_mutex_unlock LBB0_11: mov w8, #1 str w8, [x19, #4] LBB0_12: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret LBB0_13: ldr w0, [x19, #16] ldr x8, [x19, #8] ldr w1, [x8] bl _AConfiguration_fromAssetManager mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _print_cur_config .loh AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .loh AdrpAdd Lloh2, Lloh3 .cfi_endproc .section __TEXT,__const lJTI0_0: .byte (LBB0_3-LBB0_2)>>2 .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_4-LBB0_2)>>2 .byte (LBB0_8-LBB0_2)>>2 .byte (LBB0_11-LBB0_2)>>2 .byte (LBB0_13-LBB0_2)>>2 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Attaching input queue to looper" .comm _LOOPER_ID_INPUT,4,2 ; @LOOPER_ID_INPUT .subsections_via_symbols
AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_android_app_pre_exec_cmd.c
anghabench