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
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.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
cmpl $1, %edi
jle LBB0_1
## %bb.2:
movq 8(%rsi), %rdi
callq _atoi
movl %eax, %ebx
movl $11, %edi
callq _srand
testl %ebx, %ebx
jg LBB0_3
jmp LBB0_5
LBB0_1:
movl $11, %edi
callq _srand
movl $500000, %ebx ## imm = 0x7A120
LBB0_3:
movl %ebx, %r15d
shrl $2, %r15d
leaq L_.str(%rip), %r14
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _rand
cltd
idivl %r15d
imull $271828183, %edx, %esi ## imm = 0x1033C4D7
movq %r14, %rdi
callq _printf
decl %ebx
jne LBB0_4
LBB0_5:
xorl %eax, %eax
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 "%u\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.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
cmp w0, #1
b.le LBB0_2
; %bb.1:
ldr x0, [x1, #8]
bl _atoi
mov x19, x0
mov w0, #11
bl _srand
cmp w19, #1
b.ge LBB0_3
b LBB0_5
LBB0_2:
mov w0, #11
bl _srand
mov w19, #41248
movk w19, #7, lsl #16
LBB0_3:
lsr w21, w19, #2
mov w22, #50391
movk w22, #4147, lsl #16
Lloh0:
adrp x20, l_.str@PAGE
Lloh1:
add x20, x20, l_.str@PAGEOFF
LBB0_4: ; =>This Inner Loop Header: Depth=1
bl _rand
sdiv w8, w0, w21
msub w8, w8, w21, w0
mul w1, w8, w22
mov x0, x20
bl _printf
subs w19, w19, #1
b.ne LBB0_4
LBB0_5:
mov w0, #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 AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%u\n"
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_genint.c_main.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function _renewemptythread
__renewemptythread: ## @_renewemptythread
.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 %rcx, %r14
movq %rdi, %rbx
movq (%rdi), %rax
testq %rax, %rax
je LBB0_5
## %bb.1:
addq $8, %rbx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
cmpq %rsi, %rax
je LBB0_9
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq 8(%rbx), %rax
addq $16, %rbx
testq %rax, %rax
jne LBB0_2
## %bb.4:
addq $-8, %rbx
LBB0_5:
movq %rsi, (%rbx)
cmpl $2, %edx
jl LBB0_7
## %bb.6:
leaq 8(%rbx), %rdi
xorl %esi, %esi
movl $8, %edx
callq _memset
LBB0_7:
movq 8(%rbx), %rax
movq %r14, (%rax)
movq $0, 16(%rbx)
addq $16, %rbx
jmp LBB0_8
LBB0_9:
movq (%rbx), %rax
cmpq %r14, (%rax)
jbe LBB0_13
## %bb.10:
cmpl $2, %edx
jl LBB0_12
## %bb.11:
movq %rbx, %rdi
xorl %esi, %esi
movl $8, %edx
callq _memset
movq (%rbx), %rax
LBB0_12:
movq %r14, (%rax)
LBB0_13:
xorl %ebx, %ebx
LBB0_8:
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip __renewemptythread
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function _renewemptythread
__renewemptythread: ; @_renewemptythread
.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, x3
mov x20, x0
ldr x8, [x0]
cbz x8, LBB0_5
; %bb.1:
add x20, x20, #8
LBB0_2: ; =>This Inner Loop Header: Depth=1
cmp x8, x1
b.eq LBB0_10
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [x20, #8]
add x20, x20, #16
cbnz x8, LBB0_2
; %bb.4:
sub x20, x20, #8
LBB0_5:
str x1, [x20]
cmp w2, #2
b.lt LBB0_7
; %bb.6:
add x0, x20, #8
mov w1, #0
mov w2, #8
bl _memset
LBB0_7:
str xzr, [x20, #16]!
ldur x8, [x20, #-8]
LBB0_8:
str x19, [x8]
LBB0_9:
mov x0, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_10:
ldr x8, [x20]
ldr x9, [x8]
cmp x9, x19
b.ls LBB0_14
; %bb.11:
cmp w2, #2
b.lt LBB0_13
; %bb.12:
mov x0, x20
mov w1, #0
mov w2, #8
bl _memset
ldr x8, [x20]
LBB0_13:
mov x20, #0
b LBB0_8
LBB0_14:
mov x20, #0
b LBB0_9
.cfi_endproc
; -- End function
.no_dead_strip __renewemptythread
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c__renewemptythread.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function _renewmatch
__renewmatch: ## @_renewmatch
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testq %rdi, %rdi
je LBB0_10
## %bb.1:
testl %esi, %esi
jle LBB0_10
## %bb.2:
movq 8(%rdi), %rcx
testq %rcx, %rcx
je LBB0_6
## %bb.3:
movq (%rdx), %rax
cmpq %rcx, 8(%rax)
jge LBB0_4
LBB0_6:
movq _NSUBEXP@GOTPCREL(%rip), %r8
cmpl $0, (%r8)
jle LBB0_7
## %bb.11:
movl %esi, %r9d
xorl %ecx, %ecx
xorl %r10d, %r10d
.p2align 4, 0x90
LBB0_12: ## =>This Inner Loop Header: Depth=1
movq (%rdx), %rax
movups (%rax,%rcx), %xmm0
movups %xmm0, (%rdi,%rcx)
incq %r10
cmpq %r9, %r10
jae LBB0_8
## %bb.13: ## in Loop: Header=BB0_12 Depth=1
addq $16, %rcx
movslq (%r8), %rax
cmpq %rax, %r10
jl LBB0_12
LBB0_8:
cmpl %esi, %r10d
jl LBB0_9
LBB0_10:
popq %rbp
retq
LBB0_4:
jne LBB0_10
## %bb.5:
movq (%rax), %rax
cmpq (%rdi), %rax
jg LBB0_6
jmp LBB0_10
LBB0_7:
xorl %r10d, %r10d
cmpl %esi, %r10d
jge LBB0_10
LBB0_9:
movl %r10d, %ecx
shlq $4, %rcx
addq %rcx, %rdi
notl %r10d
addl %esi, %r10d
shlq $4, %r10
addq $16, %r10
movq %r10, %rsi
callq ___bzero
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NSUBEXP,4,2 ## @NSUBEXP
.no_dead_strip __renewmatch
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function _renewmatch
__renewmatch: ; @_renewmatch
.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
cbz x0, LBB0_9
; %bb.1:
cmp w1, #1
b.lt LBB0_9
; %bb.2:
ldr x9, [x0, #8]
cbz x9, LBB0_4
; %bb.3:
ldr x8, [x2]
ldr x10, [x8, #8]
cmp x10, x9
b.ge LBB0_10
LBB0_4:
Lloh0:
adrp x9, _NSUBEXP@GOTPAGE
Lloh1:
ldr x9, [x9, _NSUBEXP@GOTPAGEOFF]
ldr w8, [x9]
cmp w8, #1
b.lt LBB0_12
; %bb.5:
mov x10, #0
mov x8, #0
mov w11, w1
LBB0_6: ; =>This Inner Loop Header: Depth=1
ldr x12, [x2]
ldr q0, [x12, x10]
str q0, [x0, x10]
add x8, x8, #1
cmp x8, x11
b.hs LBB0_8
; %bb.7: ; in Loop: Header=BB0_6 Depth=1
ldrsw x12, [x9]
add x10, x10, #16
cmp x8, x12
b.lt LBB0_6
LBB0_8:
cmp w8, w1
b.lt LBB0_13
LBB0_9:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
LBB0_10:
b.ne LBB0_9
; %bb.11:
ldr x8, [x8]
ldr x9, [x0]
cmp x8, x9
b.gt LBB0_4
b LBB0_9
LBB0_12:
mov w8, #0
cmp w8, w1
b.ge LBB0_9
LBB0_13:
add x0, x0, w8, uxtw #4
mvn w8, w8
add w8, w8, w1
lsl x8, x8, #4
add x1, x8, #16
bl _bzero
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _NSUBEXP,4,2 ; @NSUBEXP
.no_dead_strip __renewmatch
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c__renewmatch.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function _rrenewemptythread
__rrenewemptythread: ## @_rrenewemptythread
.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 %rcx, %r14
movq %rdi, %rbx
movq (%rdi), %rax
testq %rax, %rax
je LBB0_5
## %bb.1:
addq $8, %rbx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
cmpq %rsi, %rax
je LBB0_9
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq 8(%rbx), %rax
addq $16, %rbx
testq %rax, %rax
jne LBB0_2
## %bb.4:
addq $-8, %rbx
LBB0_5:
movq %rsi, (%rbx)
cmpl $2, %edx
jl LBB0_7
## %bb.6:
leaq 8(%rbx), %rdi
xorl %esi, %esi
movl $8, %edx
callq _memset
LBB0_7:
movq 8(%rbx), %rax
movq %r14, (%rax)
movq $0, 16(%rbx)
addq $16, %rbx
jmp LBB0_8
LBB0_9:
movq (%rbx), %rax
cmpq %r14, (%rax)
jbe LBB0_13
## %bb.10:
cmpl $2, %edx
jl LBB0_12
## %bb.11:
movq %rbx, %rdi
xorl %esi, %esi
movl $8, %edx
callq _memset
movq (%rbx), %rax
LBB0_12:
movq %r14, (%rax)
LBB0_13:
xorl %ebx, %ebx
LBB0_8:
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip __rrenewemptythread
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function _rrenewemptythread
__rrenewemptythread: ; @_rrenewemptythread
.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, x3
mov x20, x0
ldr x8, [x0]
cbz x8, LBB0_5
; %bb.1:
add x20, x20, #8
LBB0_2: ; =>This Inner Loop Header: Depth=1
cmp x8, x1
b.eq LBB0_10
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [x20, #8]
add x20, x20, #16
cbnz x8, LBB0_2
; %bb.4:
sub x20, x20, #8
LBB0_5:
str x1, [x20]
cmp w2, #2
b.lt LBB0_7
; %bb.6:
add x0, x20, #8
mov w1, #0
mov w2, #8
bl _memset
LBB0_7:
str xzr, [x20, #16]!
ldur x8, [x20, #-8]
LBB0_8:
str x19, [x8]
LBB0_9:
mov x0, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_10:
ldr x8, [x20]
ldr x9, [x8]
cmp x9, x19
b.ls LBB0_14
; %bb.11:
cmp w2, #2
b.lt LBB0_13
; %bb.12:
mov x0, x20
mov w1, #0
mov w2, #8
bl _memset
ldr x8, [x20]
LBB0_13:
mov x20, #0
b LBB0_8
LBB0_14:
mov x20, #0
b LBB0_9
.cfi_endproc
; -- End function
.no_dead_strip __rrenewemptythread
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c__rrenewemptythread.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function bldcclass
_bldcclass: ## @bldcclass
.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 ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq _NCCRUNE@GOTPCREL(%rip), %r12
movl (%r12), %eax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r14
movq _CCLASS@GOTPCREL(%rip), %rax
movl (%rax), %ebx
xorl %r13d, %r13d
xorl %eax, %eax
callq _newclass
movq _yyclassp@GOTPCREL(%rip), %rcx
movq %rax, (%rcx)
leaq -49(%rbp), %rdi
callq _nextc
testl %eax, %eax
jne LBB0_3
## %bb.1:
cmpb $94, -49(%rbp)
jne LBB0_3
## %bb.2:
movq _NCCLASS@GOTPCREL(%rip), %rax
movl (%rax), %ebx
leaq -49(%rbp), %rdi
callq _nextc
movw $2570, (%r14) ## imm = 0xA0A
movl $2, %r13d
LBB0_3:
movslq (%r12), %rcx
cmpq %rcx, %r13
jge LBB0_17
## %bb.4:
leaq -49(%rbp), %r15
jmp LBB0_5
.p2align 4, 0x90
LBB0_15: ## in Loop: Header=BB0_5 Depth=1
movb %cl, (%r14,%r13)
movb %cl, 1(%r14,%r13)
addq $2, %r13
LBB0_16: ## in Loop: Header=BB0_5 Depth=1
movq %r15, %rdi
callq _nextc
movslq (%r12), %rcx
cmpq %rcx, %r13
jge LBB0_17
LBB0_5: ## =>This Inner Loop Header: Depth=1
movzbl -49(%rbp), %ecx
testb %cl, %cl
je LBB0_6
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
testl %eax, %eax
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_5 Depth=1
cmpb $93, %cl
je LBB0_17
LBB0_9: ## in Loop: Header=BB0_5 Depth=1
testl %eax, %eax
jne LBB0_15
## %bb.10: ## in Loop: Header=BB0_5 Depth=1
cmpb $45, %cl
jne LBB0_15
## %bb.11: ## in Loop: Header=BB0_5 Depth=1
testq %r13, %r13
je LBB0_6
## %bb.12: ## in Loop: Header=BB0_5 Depth=1
movq %r15, %rdi
callq _nextc
testl %eax, %eax
sete %cl
movzbl -49(%rbp), %eax
cmpb $93, %al
sete %dl
testb %dl, %cl
jne LBB0_6
## %bb.13: ## in Loop: Header=BB0_5 Depth=1
testb %al, %al
je LBB0_6
## %bb.14: ## in Loop: Header=BB0_5 Depth=1
movb %al, -1(%r14,%r13)
jmp LBB0_16
LBB0_17:
leaq (%r14,%r13), %rsi
testq %r13, %r13
movl %ebx, %eax
jle LBB0_25
## %bb.18:
movq %r14, %rdi
jmp LBB0_19
.p2align 4, 0x90
LBB0_24: ## in Loop: Header=BB0_19 Depth=1
addq $2, %rdi
cmpq %rsi, %rdi
jae LBB0_25
LBB0_19: ## =>This Loop Header: Depth=1
## Child Loop BB0_21 Depth 2
cmpq %rsi, %rdi
jae LBB0_24
## %bb.20: ## in Loop: Header=BB0_19 Depth=1
movq %rdi, %rdx
jmp LBB0_21
.p2align 4, 0x90
LBB0_23: ## in Loop: Header=BB0_21 Depth=2
addq $2, %rdx
cmpq %rsi, %rdx
jae LBB0_24
LBB0_21: ## Parent Loop BB0_19 Depth=1
## => This Inner Loop Header: Depth=2
movzbl (%rdx), %ebx
movzbl (%rdi), %ecx
cmpb %cl, %bl
jge LBB0_23
## %bb.22: ## in Loop: Header=BB0_21 Depth=2
movb %cl, (%rdx)
movb %bl, (%rdi)
movzbl 1(%rdx), %ecx
movb %cl, -49(%rbp)
movzbl 1(%rdi), %ebx
movb %bl, 1(%rdx)
movb %cl, 1(%rdi)
jmp LBB0_23
LBB0_25:
movq _yyclassp@GOTPCREL(%rip), %rdi
movq (%rdi), %rdx
movq (%rdx), %rcx
testq %r13, %r13
je LBB0_35
## %bb.26:
movb (%r14), %dl
movb %dl, (%rcx)
movb 1(%r14), %dl
movb %dl, 1(%rcx)
cmpq $3, %r13
jl LBB0_34
## %bb.27:
addq $4, %r14
.p2align 4, 0x90
LBB0_28: ## =>This Inner Loop Header: Depth=1
movzbl -2(%r14), %ebx
cmpb %dl, %bl
jle LBB0_29
## %bb.31: ## in Loop: Header=BB0_28 Depth=1
movb %bl, 2(%rcx)
movzbl -1(%r14), %edx
movb %dl, 3(%rcx)
addq $2, %rcx
jmp LBB0_32
.p2align 4, 0x90
LBB0_29: ## in Loop: Header=BB0_28 Depth=1
movzbl -1(%r14), %ebx
cmpb %dl, %bl
jle LBB0_32
## %bb.30: ## in Loop: Header=BB0_28 Depth=1
movb %bl, 1(%rcx)
LBB0_32: ## in Loop: Header=BB0_28 Depth=1
cmpq %rsi, %r14
jae LBB0_34
## %bb.33: ## in Loop: Header=BB0_28 Depth=1
movzbl 1(%rcx), %edx
addq $2, %r14
jmp LBB0_28
LBB0_34:
addq $2, %rcx
movq (%rdi), %rdx
LBB0_35:
movq %rcx, 8(%rdx)
jmp LBB0_36
LBB0_6:
leaq L_.str(%rip), %rdi
callq _rcerror
xorl %eax, %eax
LBB0_36:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_38
## %bb.37:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_38:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _NCCRUNE,4,2 ## @NCCRUNE
.comm _CCLASS,4,2 ## @CCLASS
.comm _yyclassp,8,3 ## @yyclassp
.comm _NCCLASS,4,2 ## @NCCLASS
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "malformed '[]'"
.no_dead_strip _bldcclass
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function bldcclass
_bldcclass: ; @bldcclass
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.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
sub sp, sp, #16
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-56]
Lloh3:
adrp x23, _NCCRUNE@GOTPAGE
Lloh4:
ldr x23, [x23, _NCCRUNE@GOTPAGEOFF]
ldr w8, [x23]
mov x9, x8
Lloh5:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh6:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x8, x8, #15
and x8, x8, #0x1fffffff0
sub x21, x9, x8
mov sp, x21
Lloh7:
adrp x8, _CCLASS@GOTPAGE
Lloh8:
ldr x8, [x8, _CCLASS@GOTPAGEOFF]
Lloh9:
ldr w19, [x8]
bl _newclass
Lloh10:
adrp x20, _yyclassp@GOTPAGE
Lloh11:
ldr x20, [x20, _yyclassp@GOTPAGEOFF]
str x0, [x20]
sub x0, x29, #57
bl _nextc
mov x22, #0
cbnz w0, LBB0_5
; %bb.1:
ldurb w8, [x29, #-57]
cmp w8, #94
b.ne LBB0_5
; %bb.2:
Lloh12:
adrp x8, _NCCLASS@GOTPAGE
Lloh13:
ldr x8, [x8, _NCCLASS@GOTPAGEOFF]
Lloh14:
ldr w19, [x8]
sub x0, x29, #57
bl _nextc
mov w8, #2570
strh w8, [x21]
mov w22, #2
b LBB0_5
LBB0_3: ; in Loop: Header=BB0_5 Depth=1
strb w8, [x24]
add x22, x22, #2
strb w8, [x24, #1]
LBB0_4: ; in Loop: Header=BB0_5 Depth=1
sub x0, x29, #57
bl _nextc
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldrsw x8, [x23]
cmp x22, x8
b.ge LBB0_15
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
ldurb w8, [x29, #-57]
cbz w8, LBB0_34
; %bb.7: ; in Loop: Header=BB0_5 Depth=1
cbnz w0, LBB0_9
; %bb.8: ; in Loop: Header=BB0_5 Depth=1
cmp w8, #93
b.eq LBB0_15
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
add x24, x21, x22
cbnz w0, LBB0_3
; %bb.10: ; in Loop: Header=BB0_5 Depth=1
cmp w8, #45
b.ne LBB0_3
; %bb.11: ; in Loop: Header=BB0_5 Depth=1
cbz x22, LBB0_34
; %bb.12: ; in Loop: Header=BB0_5 Depth=1
sub x0, x29, #57
bl _nextc
ldurb w8, [x29, #-57]
cmp w8, #93
ccmp w0, #0, #0, eq
b.eq LBB0_34
; %bb.13: ; in Loop: Header=BB0_5 Depth=1
cbz w8, LBB0_34
; %bb.14: ; in Loop: Header=BB0_5 Depth=1
sturb w8, [x24, #-1]
b LBB0_4
LBB0_15:
add x8, x21, x22
cmp x22, #1
b.lt LBB0_23
; %bb.16:
mov x9, x21
b LBB0_18
LBB0_17: ; in Loop: Header=BB0_18 Depth=1
add x9, x9, #2
cmp x9, x8
b.hs LBB0_23
LBB0_18: ; =>This Loop Header: Depth=1
; Child Loop BB0_21 Depth 2
cmp x9, x8
b.hs LBB0_17
; %bb.19: ; in Loop: Header=BB0_18 Depth=1
mov x10, x9
b LBB0_21
LBB0_20: ; in Loop: Header=BB0_21 Depth=2
add x10, x10, #2
cmp x10, x8
b.hs LBB0_17
LBB0_21: ; Parent Loop BB0_18 Depth=1
; => This Inner Loop Header: Depth=2
ldrsb w11, [x10]
ldrsb w12, [x9]
cmp w11, w12
b.ge LBB0_20
; %bb.22: ; in Loop: Header=BB0_21 Depth=2
strb w12, [x10]
strb w11, [x9]
ldrb w11, [x10, #1]
sturb w11, [x29, #-57]
ldrb w12, [x9, #1]
strb w12, [x10, #1]
strb w11, [x9, #1]
b LBB0_20
LBB0_23:
ldr x10, [x20]
ldr x9, [x10]
cbz x22, LBB0_33
; %bb.24:
ldrb w10, [x21]
strb w10, [x9]
ldrb w11, [x21, #1]
strb w11, [x9, #1]
cmp x22, #3
b.lt LBB0_32
; %bb.25:
add x10, x21, #4
LBB0_26: ; =>This Inner Loop Header: Depth=1
ldursb w12, [x10, #-2]
cmp w12, w11, sxtb
b.le LBB0_28
; %bb.27: ; in Loop: Header=BB0_26 Depth=1
strb w12, [x9, #2]!
ldurb w11, [x10, #-1]
strb w11, [x9, #1]
b LBB0_30
LBB0_28: ; in Loop: Header=BB0_26 Depth=1
ldursb w12, [x10, #-1]
cmp w12, w11, sxtb
b.le LBB0_30
; %bb.29: ; in Loop: Header=BB0_26 Depth=1
strb w12, [x9, #1]
LBB0_30: ; in Loop: Header=BB0_26 Depth=1
cmp x10, x8
b.hs LBB0_32
; %bb.31: ; in Loop: Header=BB0_26 Depth=1
ldrb w11, [x9, #1]
add x10, x10, #2
b LBB0_26
LBB0_32:
add x8, x9, #2
ldr x9, [x20]
str x8, [x9, #8]
b LBB0_35
LBB0_33:
str x9, [x10, #8]
b LBB0_35
LBB0_34:
Lloh15:
adrp x0, l_.str@PAGE
Lloh16:
add x0, x0, l_.str@PAGEOFF
bl _rcerror
mov w19, #0
LBB0_35:
ldur x8, [x29, #-56]
Lloh17:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh18:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_37
; %bb.36:
mov x0, x19
sub sp, x29, #48
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
LBB0_37:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.cfi_endproc
; -- End function
.comm _NCCRUNE,4,2 ; @NCCRUNE
.comm _CCLASS,4,2 ; @CCLASS
.comm _yyclassp,8,3 ; @yyclassp
.comm _NCCLASS,4,2 ; @NCCLASS
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "malformed '[]'"
.no_dead_strip _bldcclass
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_bldcclass.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function cant
_cant: ## @cant
.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
subq $112, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
leaq L_.str(%rip), %rsi
leaq -128(%rbp), %rbx
movq %rbx, %rdi
callq _strcpy
movq %rbx, %rdi
movq %r14, %rsi
callq _strcat
movq %rbx, %rdi
callq _rcerror
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -24(%rbp), %rax
jne LBB0_2
## %bb.1:
addq $112, %rsp
popq %rbx
popq %r14
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "can't happen: "
.no_dead_strip _cant
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function cant
_cant: ; @cant
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x20, x19, [sp, #112] ; 16-byte Folded Spill
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.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, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-24]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
add x0, sp, #4
bl _strcpy
add x0, sp, #4
mov x1, x19
bl _strcat
add x0, sp, #4
bl _rcerror
ldur x8, [x29, #-24]
Lloh5:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh6:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
ldp x20, x19, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #144
ret
LBB0_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "can't happen: "
.no_dead_strip _cant
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_cant.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _chartorune ## -- Begin function chartorune
.p2align 4, 0x90
_chartorune: ## @chartorune
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl (%rsi), %r8d
movq _Tx@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl $1, %eax
cmpl %edx, %r8d
jl LBB0_9
## %bb.1:
movl 1(%rsi), %eax
xorl %edx, %eax
movq _Testx@GOTPCREL(%rip), %rcx
movl (%rcx), %r9d
testl %r9d, %eax
je LBB0_2
LBB0_8:
movq _Bad@GOTPCREL(%rip), %rax
movl (%rax), %r8d
movl $1, %eax
LBB0_9:
movl %r8d, (%rdi)
popq %rbp
retq
LBB0_2:
movq _T3@GOTPCREL(%rip), %rcx
cmpl (%rcx), %r8d
jge LBB0_5
## %bb.3:
movq _T2@GOTPCREL(%rip), %rcx
cmpl (%rcx), %r8d
jl LBB0_8
## %bb.4:
movq _Bitx@GOTPCREL(%rip), %rcx
movb (%rcx), %cl
shll %cl, %r8d
orl %eax, %r8d
movq _Rune2@GOTPCREL(%rip), %rax
andl (%rax), %r8d
movslq %r8d, %rcx
movq _Rune1@GOTPCREL(%rip), %rdx
movl $2, %eax
cmpq %rcx, (%rdx)
jge LBB0_8
jmp LBB0_9
LBB0_5:
xorl 2(%rsi), %edx
testl %r9d, %edx
jne LBB0_8
## %bb.6:
movq _T4@GOTPCREL(%rip), %rcx
cmpl (%rcx), %r8d
jge LBB0_8
## %bb.7:
movq _Bitx@GOTPCREL(%rip), %rcx
movb (%rcx), %cl
shll %cl, %r8d
orl %eax, %r8d
shll %cl, %r8d
orl %edx, %r8d
movq _Rune3@GOTPCREL(%rip), %rax
andl (%rax), %r8d
movq _Rune2@GOTPCREL(%rip), %rcx
movl $3, %eax
cmpl (%rcx), %r8d
jle LBB0_8
jmp LBB0_9
.cfi_endproc
## -- End function
.comm _Tx,4,2 ## @Tx
.comm _Testx,4,2 ## @Testx
.comm _T3,4,2 ## @T3
.comm _T2,4,2 ## @T2
.comm _Bitx,4,2 ## @Bitx
.comm _Rune2,4,2 ## @Rune2
.comm _Rune1,8,3 ## @Rune1
.comm _T4,4,2 ## @T4
.comm _Rune3,4,2 ## @Rune3
.comm _Bad,4,2 ## @Bad
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _chartorune ; -- Begin function chartorune
.p2align 2
_chartorune: ; @chartorune
.cfi_startproc
; %bb.0:
ldr w9, [x1]
Lloh0:
adrp x8, _Tx@GOTPAGE
Lloh1:
ldr x8, [x8, _Tx@GOTPAGEOFF]
Lloh2:
ldr w10, [x8]
cmp w9, w10
b.lt LBB0_3
; %bb.1:
ldur w8, [x1, #1]
eor w8, w8, w10
Lloh3:
adrp x11, _Testx@GOTPAGE
Lloh4:
ldr x11, [x11, _Testx@GOTPAGEOFF]
Lloh5:
ldr w11, [x11]
tst w8, w11
b.eq LBB0_5
LBB0_2:
Lloh6:
adrp x8, _Bad@GOTPAGE
Lloh7:
ldr x8, [x8, _Bad@GOTPAGEOFF]
Lloh8:
ldr w9, [x8]
LBB0_3:
mov w8, #1
LBB0_4:
str w9, [x0]
mov x0, x8
ret
LBB0_5:
Lloh9:
adrp x12, _T3@GOTPAGE
Lloh10:
ldr x12, [x12, _T3@GOTPAGEOFF]
Lloh11:
ldr w12, [x12]
cmp w9, w12
b.ge LBB0_9
; %bb.6:
Lloh12:
adrp x10, _T2@GOTPAGE
Lloh13:
ldr x10, [x10, _T2@GOTPAGEOFF]
Lloh14:
ldr w10, [x10]
cmp w9, w10
b.lt LBB0_2
; %bb.7:
Lloh15:
adrp x10, _Bitx@GOTPAGE
Lloh16:
ldr x10, [x10, _Bitx@GOTPAGEOFF]
Lloh17:
ldr w10, [x10]
lsl w9, w9, w10
orr w8, w9, w8
Lloh18:
adrp x9, _Rune2@GOTPAGE
Lloh19:
ldr x9, [x9, _Rune2@GOTPAGEOFF]
Lloh20:
ldr w9, [x9]
and w9, w8, w9
Lloh21:
adrp x8, _Rune1@GOTPAGE
Lloh22:
ldr x8, [x8, _Rune1@GOTPAGEOFF]
Lloh23:
ldr x8, [x8]
cmp x8, w9, sxtw
b.ge LBB0_2
; %bb.8:
mov w8, #2
b LBB0_4
LBB0_9:
ldur w12, [x1, #2]
eor w10, w12, w10
and w11, w10, w11
Lloh24:
adrp x12, _T4@GOTPAGE
Lloh25:
ldr x12, [x12, _T4@GOTPAGEOFF]
Lloh26:
ldr w12, [x12]
cmp w11, #0
ccmp w9, w12, #0, eq
b.ge LBB0_2
; %bb.10:
Lloh27:
adrp x11, _Bitx@GOTPAGE
Lloh28:
ldr x11, [x11, _Bitx@GOTPAGEOFF]
Lloh29:
ldr w11, [x11]
lsl w9, w9, w11
orr w8, w9, w8
lsl w8, w8, w11
orr w8, w8, w10
Lloh30:
adrp x9, _Rune3@GOTPAGE
Lloh31:
ldr x9, [x9, _Rune3@GOTPAGEOFF]
Lloh32:
ldr w9, [x9]
and w9, w8, w9
Lloh33:
adrp x8, _Rune2@GOTPAGE
Lloh34:
ldr x8, [x8, _Rune2@GOTPAGEOFF]
Lloh35:
ldr w8, [x8]
cmp w9, w8
b.le LBB0_2
; %bb.11:
mov w8, #3
b LBB0_4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.loh AdrpLdrGotLdr Lloh27, Lloh28, Lloh29
.cfi_endproc
; -- End function
.comm _Tx,4,2 ; @Tx
.comm _Testx,4,2 ; @Testx
.comm _T3,4,2 ; @T3
.comm _T2,4,2 ; @T2
.comm _Bitx,4,2 ; @Bitx
.comm _Rune2,4,2 ; @Rune2
.comm _Rune1,8,3 ; @Rune1
.comm _T4,4,2 ; @T4
.comm _Rune3,4,2 ; @Rune3
.comm _Bad,4,2 ; @Bad
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_chartorune.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function evaluntil
_evaluntil: ## @evaluntil
.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
movl %edi, %r15d
movq _RBRA@GOTPCREL(%rip), %r13
leaq LJTI0_0(%rip), %r14
jmp LBB0_1
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movl $43, %edi
callq _popand
movq %rax, %rbx
movl $131, %edi
callq _newinst
movq (%rbx), %rcx
movq %rax, (%rcx)
movq 8(%rbx), %rdi
movq %rdi, 16(%rax)
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movq %rax, %rsi
callq _pushand
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl %r15d, (%r13)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _atorp@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpl %r15d, -4(%rax)
jl LBB0_13
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
xorl %eax, %eax
callq _popator
## kill: def $eax killed $eax def $rax
addl $-128, %eax
cmpl $5, %eax
ja LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl $42, %edi
callq _popand
movq %rax, %rbx
movl $131, %edi
callq _newinst
movq (%rbx), %rcx
movq %rax, (%rcx)
movq 8(%rbx), %rcx
movq %rcx, 16(%rax)
movq %rax, %rdi
jmp LBB0_11
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str(%rip), %rdi
callq _rcerror
jmp LBB0_1
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movl $63, %edi
callq _popand
movq %rax, %r12
movl $131, %edi
callq _newinst
movq %rax, %rbx
movq _NOP@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _newinst
movq %rax, 8(%rbx)
movq 8(%r12), %rcx
movq %rcx, 16(%rbx)
movq (%r12), %rcx
movq %rax, (%rcx)
movq %rbx, %rdi
jmp LBB0_11
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl $124, %edi
callq _popand
movq %rax, %r12
movl $124, %edi
callq _popand
movq %r13, %r14
movq %rax, %r13
movq _NOP@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _newinst
movq %rax, %rbx
movq (%r12), %rax
movq %rbx, (%rax)
movq (%r13), %rax
movq %rbx, (%rax)
movl $131, %edi
callq _newinst
movq 8(%r13), %rcx
movq %r14, %r13
leaq LJTI0_0(%rip), %r14
movq %rcx, 16(%rax)
movq 8(%r12), %rcx
movq %rcx, 8(%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq _pushand
jmp LBB0_1
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
xorl %edi, %edi
callq _popand
movq %rax, %rbx
xorl %edi, %edi
callq _popand
movq 8(%rbx), %rcx
movq (%rax), %rdx
movq %rcx, (%rdx)
movq 8(%rax), %rdi
movq (%rbx), %rsi
callq _pushand
jmp LBB0_1
LBB0_13:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_6:
movl $40, %edi
callq _popand
movq %rax, %r15
movl (%r13), %edi
callq _newinst
movq %rax, %rbx
movq _subidp@GOTPCREL(%rip), %r14
movq (%r14), %rax
movq (%rax), %rax
movq %rax, 24(%rbx)
movq (%r15), %rax
movq %rbx, (%rax)
movl $132, %edi
callq _newinst
movq (%r14), %rcx
movq (%rcx), %rcx
movq %rcx, 24(%rax)
movq 8(%r15), %rcx
movq %rcx, (%rax)
movq %rax, %rdi
movq %rbx, %rsi
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _pushand ## TAILCALL
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
.long L0_0_set_9
.long L0_0_set_12
.long L0_0_set_10
.long L0_0_set_7
.long L0_0_set_6
.long L0_0_set_8
.end_data_region
## -- End function
.comm _RBRA,4,2 ## @RBRA
.comm _atorp,8,3 ## @atorp
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unknown operator in evaluntil"
.comm _subidp,8,3 ## @subidp
.comm _NOP,4,2 ## @NOP
.no_dead_strip _evaluntil
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function evaluntil
_evaluntil: ; @evaluntil
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.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
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
mov x19, x0
Lloh0:
adrp x24, _RBRA@GOTPAGE
Lloh1:
ldr x24, [x24, _RBRA@GOTPAGEOFF]
Lloh2:
adrp x20, l_.str@PAGE
Lloh3:
add x20, x20, l_.str@PAGEOFF
Lloh4:
adrp x25, _NOP@GOTPAGE
Lloh5:
ldr x25, [x25, _NOP@GOTPAGEOFF]
Lloh6:
adrp x26, _atorp@GOTPAGE
Lloh7:
ldr x26, [x26, _atorp@GOTPAGEOFF]
Lloh8:
adrp x27, lJTI0_0@PAGE
Lloh9:
add x27, x27, lJTI0_0@PAGEOFF
b LBB0_2
LBB0_1: ; in Loop: Header=BB0_2 Depth=1
mov w0, #63
bl _popand
mov x21, x0
mov w0, #131
bl _newinst
mov x22, x0
ldr w0, [x25]
bl _newinst
mov x1, x0
ldp x9, x8, [x21]
stp x0, x8, [x22, #8]
str x0, [x9]
mov x0, x22
bl _pushand
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr w8, [x24]
cmp w8, w19
b.eq LBB0_4
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [x26]
ldur w8, [x8, #-4]
cmp w8, w19
b.lt LBB0_11
LBB0_4: ; in Loop: Header=BB0_2 Depth=1
bl _popator
sub w8, w0, #128
cmp w8, #5
b.hi LBB0_7
; %bb.5: ; in Loop: Header=BB0_2 Depth=1
adr x9, LBB0_1
ldrb w10, [x27, x8]
add x9, x9, x10, lsl #2
br x9
LBB0_6: ; in Loop: Header=BB0_2 Depth=1
mov w0, #42
bl _popand
mov x21, x0
mov w0, #131
bl _newinst
ldp x8, x9, [x21]
str x0, [x8]
str x9, [x0, #16]
mov x1, x0
bl _pushand
b LBB0_2
LBB0_7: ; in Loop: Header=BB0_2 Depth=1
mov x0, x20
bl _rcerror
b LBB0_2
LBB0_8: ; in Loop: Header=BB0_2 Depth=1
mov w0, #43
bl _popand
mov x21, x0
mov w0, #131
bl _newinst
mov x1, x0
ldp x8, x0, [x21]
str x1, [x8]
str x0, [x1, #16]
bl _pushand
b LBB0_2
LBB0_9: ; in Loop: Header=BB0_2 Depth=1
mov w0, #124
bl _popand
mov x21, x0
mov w0, #124
bl _popand
mov x22, x0
ldr w0, [x25]
bl _newinst
mov x23, x0
ldr x8, [x21]
str x0, [x8]
ldr x8, [x22]
str x0, [x8]
mov w0, #131
bl _newinst
ldr x8, [x22, #8]
ldr x9, [x21, #8]
stp x9, x8, [x0, #8]
mov x1, x23
bl _pushand
b LBB0_2
LBB0_10: ; in Loop: Header=BB0_2 Depth=1
mov w0, #0
bl _popand
mov x21, x0
mov w0, #0
bl _popand
ldp x8, x0, [x0]
ldp x1, x9, [x21]
str x9, [x8]
bl _pushand
b LBB0_2
LBB0_11:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
LBB0_12:
mov w0, #40
bl _popand
mov x19, x0
ldr w0, [x24]
bl _newinst
mov x20, x0
Lloh10:
adrp x21, _subidp@GOTPAGE
Lloh11:
ldr x21, [x21, _subidp@GOTPAGEOFF]
ldr x8, [x21]
ldr x8, [x8]
str x8, [x0, #24]
ldr x8, [x19]
str x0, [x8]
mov w0, #132
bl _newinst
ldr x8, [x21]
ldr x8, [x8]
str x8, [x0, #24]
ldr x8, [x19, #8]
str x8, [x0]
mov x1, x20
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
b _pushand
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh10, Lloh11
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_6-LBB0_1)>>2
.byte (LBB0_1-LBB0_1)>>2
.byte (LBB0_8-LBB0_1)>>2
.byte (LBB0_9-LBB0_1)>>2
.byte (LBB0_12-LBB0_1)>>2
.byte (LBB0_10-LBB0_1)>>2
; -- End function
.comm _RBRA,4,2 ; @RBRA
.comm _atorp,8,3 ; @atorp
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unknown operator in evaluntil"
.comm _subidp,8,3 ; @subidp
.comm _NOP,4,2 ; @NOP
.no_dead_strip _evaluntil
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_evaluntil.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function lex
_lex: ## @lex
.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
movl %edi, %ebx
movq _yyrune@GOTPCREL(%rip), %r15
movq %r15, %rdi
callq _nextc
movl (%r15), %ecx
orl %ebx, %eax
je LBB0_3
LBB0_1:
testl %ecx, %ecx
je LBB0_2
LBB0_5:
movq _RUNE@GOTPCREL(%rip), %rax
jmp LBB0_6
LBB0_3:
leal -36(%rcx), %eax
cmpl $88, %eax
ja LBB0_1
## %bb.4:
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_15:
movq _EOL@GOTPCREL(%rip), %rax
jmp LBB0_6
LBB0_2:
movq _END@GOTPCREL(%rip), %rax
LBB0_6:
movl (%rax), %r14d
LBB0_7:
movl %r14d, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_12:
movq _LBRA@GOTPCREL(%rip), %rax
jmp LBB0_6
LBB0_13:
movq _RBRA@GOTPCREL(%rip), %rax
jmp LBB0_6
LBB0_8:
movq _STAR@GOTPCREL(%rip), %rax
jmp LBB0_6
LBB0_10:
movq _PLUS@GOTPCREL(%rip), %rax
jmp LBB0_6
LBB0_9:
movq _QUEST@GOTPCREL(%rip), %rax
jmp LBB0_6
LBB0_16:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _bldcclass ## TAILCALL
LBB0_11:
movq _OR@GOTPCREL(%rip), %rax
jmp LBB0_6
LBB0_14:
movq _BOL@GOTPCREL(%rip), %rax
jmp LBB0_6
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
.long L0_0_set_15
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_12
.long L0_0_set_13
.long L0_0_set_8
.long L0_0_set_10
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_7
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_9
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_16
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_14
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_11
.end_data_region
## -- End function
.comm _yyrune,4,2 ## @yyrune
.comm _END,4,2 ## @END
.comm _RUNE,4,2 ## @RUNE
.comm _STAR,4,2 ## @STAR
.comm _QUEST,4,2 ## @QUEST
.comm _PLUS,4,2 ## @PLUS
.comm _OR,4,2 ## @OR
.comm _LBRA,4,2 ## @LBRA
.comm _RBRA,4,2 ## @RBRA
.comm _BOL,4,2 ## @BOL
.comm _EOL,4,2 ## @EOL
.no_dead_strip _lex
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function lex
_lex: ; @lex
.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
mov x20, x0
Lloh0:
adrp x21, _yyrune@GOTPAGE
Lloh1:
ldr x21, [x21, _yyrune@GOTPAGEOFF]
mov x0, x21
bl _nextc
ldr w8, [x21]
orr w9, w20, w0
cbz w9, LBB0_3
LBB0_1:
cbz w8, LBB0_6
LBB0_2:
Lloh2:
adrp x8, _RUNE@GOTPAGE
Lloh3:
ldr x8, [x8, _RUNE@GOTPAGEOFF]
b LBB0_7
LBB0_3:
sub w9, w8, #36
cmp w9, #88
b.hi LBB0_1
; %bb.4:
Lloh4:
adrp x8, lJTI0_0@PAGE
Lloh5:
add x8, x8, lJTI0_0@PAGEOFF
adr x10, LBB0_2
ldrb w11, [x8, x9]
add x10, x10, x11, lsl #2
br x10
LBB0_5:
Lloh6:
adrp x8, _EOL@GOTPAGE
Lloh7:
ldr x8, [x8, _EOL@GOTPAGEOFF]
b LBB0_7
LBB0_6:
Lloh8:
adrp x8, _END@GOTPAGE
Lloh9:
ldr x8, [x8, _END@GOTPAGEOFF]
LBB0_7:
ldr w19, [x8]
LBB0_8:
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
ret
LBB0_9:
Lloh10:
adrp x8, _LBRA@GOTPAGE
Lloh11:
ldr x8, [x8, _LBRA@GOTPAGEOFF]
b LBB0_7
LBB0_10:
Lloh12:
adrp x8, _RBRA@GOTPAGE
Lloh13:
ldr x8, [x8, _RBRA@GOTPAGEOFF]
b LBB0_7
LBB0_11:
Lloh14:
adrp x8, _STAR@GOTPAGE
Lloh15:
ldr x8, [x8, _STAR@GOTPAGEOFF]
b LBB0_7
LBB0_12:
Lloh16:
adrp x8, _PLUS@GOTPAGE
Lloh17:
ldr x8, [x8, _PLUS@GOTPAGEOFF]
b LBB0_7
LBB0_13:
Lloh18:
adrp x8, _QUEST@GOTPAGE
Lloh19:
ldr x8, [x8, _QUEST@GOTPAGEOFF]
b LBB0_7
LBB0_14:
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 _bldcclass
LBB0_15:
Lloh20:
adrp x8, _OR@GOTPAGE
Lloh21:
ldr x8, [x8, _OR@GOTPAGEOFF]
b LBB0_7
LBB0_16:
Lloh22:
adrp x8, _BOL@GOTPAGE
Lloh23:
ldr x8, [x8, _BOL@GOTPAGEOFF]
b LBB0_7
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGot Lloh12, Lloh13
.loh AdrpLdrGot Lloh14, Lloh15
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpLdrGot Lloh18, Lloh19
.loh AdrpLdrGot Lloh20, Lloh21
.loh AdrpLdrGot Lloh22, Lloh23
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_9-LBB0_2)>>2
.byte (LBB0_10-LBB0_2)>>2
.byte (LBB0_11-LBB0_2)>>2
.byte (LBB0_12-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_8-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_2-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_2-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_2-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_13-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_2-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_2-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_2-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_2-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_2-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_14-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_16-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_2-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_2-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_2-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_2-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_2-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_15-LBB0_2)>>2
; -- End function
.comm _yyrune,4,2 ; @yyrune
.comm _END,4,2 ; @END
.comm _RUNE,4,2 ; @RUNE
.comm _STAR,4,2 ; @STAR
.comm _QUEST,4,2 ; @QUEST
.comm _PLUS,4,2 ; @PLUS
.comm _OR,4,2 ; @OR
.comm _LBRA,4,2 ; @LBRA
.comm _RBRA,4,2 ; @RBRA
.comm _BOL,4,2 ; @BOL
.comm _EOL,4,2 ; @EOL
.no_dead_strip _lex
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_lex.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function newclass
_newclass: ## @newclass
.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 _nclass@GOTPCREL(%rip), %rbx
movq (%rbx), %rax
movq _NCLASS@GOTPCREL(%rip), %rcx
movq (%rcx), %rsi
cmpq %rsi, %rax
jl LBB0_2
## %bb.1:
addq $48, %rsi
leaq L_.str(%rip), %rdi
callq _regerr2
movq (%rbx), %rax
LBB0_2:
movq _classp@GOTPCREL(%rip), %rcx
leaq 1(%rax), %rdx
movq %rdx, (%rbx)
shlq $2, %rax
addq (%rcx), %rax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _nclass,8,3 ## @nclass
.comm _NCLASS,8,3 ## @NCLASS
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "too many character classes; limit"
.comm _classp,8,3 ## @classp
.no_dead_strip _newclass
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function newclass
_newclass: ; @newclass
.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 x19, _nclass@GOTPAGE
Lloh1:
ldr x19, [x19, _nclass@GOTPAGEOFF]
ldr x8, [x19]
Lloh2:
adrp x9, _NCLASS@GOTPAGE
Lloh3:
ldr x9, [x9, _NCLASS@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
cmp x8, x9
b.lt LBB0_2
; %bb.1:
add x1, x9, #48
Lloh5:
adrp x0, l_.str@PAGE
Lloh6:
add x0, x0, l_.str@PAGEOFF
bl _regerr2
ldr x8, [x19]
LBB0_2:
Lloh7:
adrp x9, _classp@GOTPAGE
Lloh8:
ldr x9, [x9, _classp@GOTPAGEOFF]
Lloh9:
ldr x9, [x9]
add x10, x8, #1
str x10, [x19]
add x0, x9, x8, lsl #2
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.cfi_endproc
; -- End function
.comm _nclass,8,3 ; @nclass
.comm _NCLASS,8,3 ; @NCLASS
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "too many character classes; limit"
.comm _classp,8,3 ; @classp
.no_dead_strip _newclass
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_newclass.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function newinst
_newinst: ## @newinst
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _freep@GOTPCREL(%rip), %rcx
movq (%rcx), %rax
movl %edi, (%rax)
leaq 24(%rax), %rdx
xorps %xmm0, %xmm0
movups %xmm0, 8(%rax)
movq %rdx, (%rcx)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _freep,8,3 ## @freep
.no_dead_strip _newinst
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function newinst
_newinst: ; @newinst
.cfi_startproc
; %bb.0:
Lloh0:
adrp x9, _freep@GOTPAGE
Lloh1:
ldr x9, [x9, _freep@GOTPAGEOFF]
ldr x8, [x9]
str w0, [x8]
add x10, x8, #24
stp xzr, xzr, [x8, #8]
str x10, [x9]
mov x0, x8
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _freep,8,3 ; @freep
.no_dead_strip _newinst
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_newinst.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function nextc
_nextc: ## @nextc
.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, %rbx
movq _lexdone@GOTPCREL(%rip), %r15
cmpl $0, (%r15)
je LBB0_4
## %bb.1:
movb $0, (%rbx)
LBB0_2:
movl $1, %eax
LBB0_3:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_4:
movq _exprp@GOTPCREL(%rip), %r14
movl (%r14), %esi
movq %rbx, %rdi
callq _chartorune
movq %rax, %rsi
addl (%r14), %esi
movl %esi, (%r14)
movb (%rbx), %cl
xorl %eax, %eax
testb %cl, %cl
je LBB0_7
## %bb.5:
cmpb $92, %cl
jne LBB0_3
## %bb.6:
movq %rbx, %rdi
## kill: def $esi killed $esi killed $rsi
callq _chartorune
addl %eax, (%r14)
jmp LBB0_2
LBB0_7:
movl $1, (%r15)
jmp LBB0_3
.cfi_endproc
## -- End function
.comm _lexdone,4,2 ## @lexdone
.comm _exprp,4,2 ## @exprp
.no_dead_strip _nextc
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function nextc
_nextc: ; @nextc
.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
Lloh0:
adrp x21, _lexdone@GOTPAGE
Lloh1:
ldr x21, [x21, _lexdone@GOTPAGEOFF]
ldr w8, [x21]
cbz w8, LBB0_4
; %bb.1:
strb wzr, [x19]
LBB0_2:
mov w0, #1
LBB0_3:
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_4:
Lloh2:
adrp x20, _exprp@GOTPAGE
Lloh3:
ldr x20, [x20, _exprp@GOTPAGEOFF]
ldr w1, [x20]
mov x0, x19
bl _chartorune
ldr w8, [x20]
add w1, w8, w0
str w1, [x20]
ldrb w8, [x19]
cbz w8, LBB0_7
; %bb.5:
cmp w8, #92
b.ne LBB0_8
; %bb.6:
mov x0, x19
bl _chartorune
ldr w8, [x20]
add w8, w8, w0
str w8, [x20]
b LBB0_2
LBB0_7:
mov w0, #0
mov w8, #1
str w8, [x21]
b LBB0_3
LBB0_8:
mov w0, #0
b LBB0_3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh2, Lloh3
.cfi_endproc
; -- End function
.comm _lexdone,4,2 ; @lexdone
.comm _exprp,4,2 ; @exprp
.no_dead_strip _nextc
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_nextc.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function operand
_operand: ## @operand
.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, %ebx
movq _lastwasand@GOTPCREL(%rip), %r14
cmpq $0, (%r14)
je LBB0_2
## %bb.1:
movq _CAT@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _operator
LBB0_2:
movl %ebx, %edi
callq _newinst
movq _CCLASS@GOTPCREL(%rip), %rcx
cmpl %ebx, (%rcx)
je LBB0_4
## %bb.3:
movq _NCCLASS@GOTPCREL(%rip), %rcx
cmpl %ebx, (%rcx)
jne LBB0_5
LBB0_4:
movq _yyclassp@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, 4(%rax)
LBB0_5:
movq _RUNE@GOTPCREL(%rip), %rcx
cmpl %ebx, (%rcx)
jne LBB0_7
## %bb.6:
movq _yyrune@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, (%rax)
LBB0_7:
movq %rax, %rdi
movq %rax, %rsi
callq _pushand
movq _TRUE@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, (%r14)
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _lastwasand,8,3 ## @lastwasand
.comm _CAT,4,2 ## @CAT
.comm _CCLASS,4,2 ## @CCLASS
.comm _NCCLASS,4,2 ## @NCCLASS
.comm _yyclassp,4,2 ## @yyclassp
.comm _RUNE,4,2 ## @RUNE
.comm _yyrune,4,2 ## @yyrune
.comm _TRUE,8,3 ## @TRUE
.no_dead_strip _operand
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function operand
_operand: ; @operand
.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 x20, _lastwasand@GOTPAGE
Lloh1:
ldr x20, [x20, _lastwasand@GOTPAGEOFF]
ldr x8, [x20]
cbz x8, LBB0_2
; %bb.1:
Lloh2:
adrp x8, _CAT@GOTPAGE
Lloh3:
ldr x8, [x8, _CAT@GOTPAGEOFF]
Lloh4:
ldr w0, [x8]
bl _operator
LBB0_2:
mov x0, x19
bl _newinst
Lloh5:
adrp x8, _CCLASS@GOTPAGE
Lloh6:
ldr x8, [x8, _CCLASS@GOTPAGEOFF]
Lloh7:
ldr w8, [x8]
Lloh8:
adrp x9, _NCCLASS@GOTPAGE
Lloh9:
ldr x9, [x9, _NCCLASS@GOTPAGEOFF]
Lloh10:
ldr w9, [x9]
cmp w8, w19
ccmp w9, w19, #4, ne
b.ne LBB0_4
; %bb.3:
Lloh11:
adrp x8, _yyclassp@GOTPAGE
Lloh12:
ldr x8, [x8, _yyclassp@GOTPAGEOFF]
Lloh13:
ldr w8, [x8]
str w8, [x0, #4]
LBB0_4:
Lloh14:
adrp x8, _RUNE@GOTPAGE
Lloh15:
ldr x8, [x8, _RUNE@GOTPAGEOFF]
Lloh16:
ldr w8, [x8]
cmp w8, w19
b.ne LBB0_6
; %bb.5:
Lloh17:
adrp x8, _yyrune@GOTPAGE
Lloh18:
ldr x8, [x8, _yyrune@GOTPAGEOFF]
Lloh19:
ldr w8, [x8]
str w8, [x0]
LBB0_6:
mov x1, x0
bl _pushand
Lloh20:
adrp x8, _TRUE@GOTPAGE
Lloh21:
ldr x8, [x8, _TRUE@GOTPAGEOFF]
Lloh22:
ldr x8, [x8]
str x8, [x20]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.cfi_endproc
; -- End function
.comm _lastwasand,8,3 ; @lastwasand
.comm _CAT,4,2 ; @CAT
.comm _CCLASS,4,2 ; @CCLASS
.comm _NCCLASS,4,2 ; @NCCLASS
.comm _yyclassp,4,2 ; @yyclassp
.comm _RUNE,4,2 ; @RUNE
.comm _yyrune,4,2 ; @yyrune
.comm _TRUE,8,3 ; @TRUE
.no_dead_strip _operand
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_operand.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function operator
_operator: ## @operator
.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, %ebx
movq _RBRA@GOTPCREL(%rip), %r14
cmpl %edi, (%r14)
jne LBB0_3
## %bb.1:
movq _nbra@GOTPCREL(%rip), %rax
movq (%rax), %rcx
leaq -1(%rcx), %rdx
movq %rdx, (%rax)
testq %rcx, %rcx
jg LBB0_3
## %bb.2:
leaq L_.str(%rip), %rdi
callq _rcerror
LBB0_3:
movq _LBRA@GOTPCREL(%rip), %rax
cmpl %ebx, (%rax)
jne LBB0_8
## %bb.4:
movq _cursubid@GOTPCREL(%rip), %rax
movq (%rax), %rcx
incq %rcx
movq %rcx, (%rax)
movq _NSUBEXP@GOTPCREL(%rip), %rax
cmpq (%rax), %rcx
jl LBB0_6
## %bb.5:
leaq L_.str.1(%rip), %rdi
callq _rcerror
LBB0_6:
movq _nbra@GOTPCREL(%rip), %rax
incq (%rax)
movq _lastwasand@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_9
## %bb.7:
movq _CAT@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _operator
jmp LBB0_9
LBB0_8:
movl %ebx, %edi
callq _evaluntil
LBB0_9:
movl %ebx, %eax
cmpl %ebx, (%r14)
je LBB0_11
## %bb.10:
movl %ebx, %edi
callq _pushator
movl (%r14), %eax
LBB0_11:
movq _FALSE@GOTPCREL(%rip), %rcx
movq (%rcx), %rdx
movq _lastwasand@GOTPCREL(%rip), %rcx
movq %rdx, (%rcx)
movq _STAR@GOTPCREL(%rip), %rdx
cmpl %ebx, (%rdx)
je LBB0_15
## %bb.12:
movq _QUEST@GOTPCREL(%rip), %rdx
cmpl %ebx, (%rdx)
je LBB0_15
## %bb.13:
movq _PLUS@GOTPCREL(%rip), %rdx
cmpl %ebx, (%rdx)
je LBB0_15
## %bb.14:
cmpl %ebx, %eax
jne LBB0_16
LBB0_15:
movq _TRUE@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, (%rcx)
LBB0_16:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _RBRA,4,2 ## @RBRA
.comm _nbra,8,3 ## @nbra
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unmatched right paren"
.comm _LBRA,4,2 ## @LBRA
.comm _cursubid,8,3 ## @cursubid
.comm _NSUBEXP,8,3 ## @NSUBEXP
L_.str.1: ## @.str.1
.asciz "too many subexpressions"
.comm _lastwasand,8,3 ## @lastwasand
.comm _CAT,4,2 ## @CAT
.comm _FALSE,8,3 ## @FALSE
.comm _STAR,4,2 ## @STAR
.comm _QUEST,4,2 ## @QUEST
.comm _PLUS,4,2 ## @PLUS
.comm _TRUE,8,3 ## @TRUE
.no_dead_strip _operator
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function operator
_operator: ; @operator
.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
Lloh0:
adrp x20, _RBRA@GOTPAGE
Lloh1:
ldr x20, [x20, _RBRA@GOTPAGEOFF]
ldr w8, [x20]
Lloh2:
adrp x22, _nbra@GOTPAGE
Lloh3:
ldr x22, [x22, _nbra@GOTPAGEOFF]
cmp w8, w0
b.ne LBB0_3
; %bb.1:
ldr x8, [x22]
sub x9, x8, #1
str x9, [x22]
cmp x8, #0
b.gt LBB0_3
; %bb.2:
Lloh4:
adrp x0, l_.str@PAGE
Lloh5:
add x0, x0, l_.str@PAGEOFF
bl _rcerror
LBB0_3:
Lloh6:
adrp x8, _LBRA@GOTPAGE
Lloh7:
ldr x8, [x8, _LBRA@GOTPAGEOFF]
Lloh8:
ldr w8, [x8]
Lloh9:
adrp x21, _lastwasand@GOTPAGE
Lloh10:
ldr x21, [x21, _lastwasand@GOTPAGEOFF]
cmp w8, w19
b.ne LBB0_8
; %bb.4:
Lloh11:
adrp x8, _cursubid@GOTPAGE
Lloh12:
ldr x8, [x8, _cursubid@GOTPAGEOFF]
ldr x9, [x8]
add x9, x9, #1
str x9, [x8]
Lloh13:
adrp x8, _NSUBEXP@GOTPAGE
Lloh14:
ldr x8, [x8, _NSUBEXP@GOTPAGEOFF]
Lloh15:
ldr x8, [x8]
cmp x9, x8
b.lt LBB0_6
; %bb.5:
Lloh16:
adrp x0, l_.str.1@PAGE
Lloh17:
add x0, x0, l_.str.1@PAGEOFF
bl _rcerror
LBB0_6:
ldr x8, [x22]
add x8, x8, #1
str x8, [x22]
ldr x8, [x21]
cbz x8, LBB0_9
; %bb.7:
Lloh18:
adrp x8, _CAT@GOTPAGE
Lloh19:
ldr x8, [x8, _CAT@GOTPAGEOFF]
Lloh20:
ldr w0, [x8]
bl _operator
b LBB0_9
LBB0_8:
mov x0, x19
bl _evaluntil
LBB0_9:
ldr w9, [x20]
mov x8, x19
cmp w9, w19
b.eq LBB0_11
; %bb.10:
mov x0, x19
bl _pushator
ldr w8, [x20]
LBB0_11:
Lloh21:
adrp x9, _FALSE@GOTPAGE
Lloh22:
ldr x9, [x9, _FALSE@GOTPAGEOFF]
Lloh23:
ldr x9, [x9]
Lloh24:
adrp x10, _STAR@GOTPAGE
Lloh25:
ldr x10, [x10, _STAR@GOTPAGEOFF]
str x9, [x21]
Lloh26:
ldr w9, [x10]
Lloh27:
adrp x10, _QUEST@GOTPAGE
Lloh28:
ldr x10, [x10, _QUEST@GOTPAGEOFF]
Lloh29:
adrp x11, _PLUS@GOTPAGE
Lloh30:
ldr x11, [x11, _PLUS@GOTPAGEOFF]
Lloh31:
ldr w10, [x10]
Lloh32:
ldr w11, [x11]
cmp w9, w19
ccmp w10, w19, #4, ne
ccmp w11, w19, #4, ne
ccmp w8, w19, #4, ne
b.ne LBB0_13
; %bb.12:
Lloh33:
adrp x8, _TRUE@GOTPAGE
Lloh34:
ldr x8, [x8, _TRUE@GOTPAGEOFF]
Lloh35:
ldr x8, [x8]
str x8, [x21]
LBB0_13:
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 Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGot Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGot Lloh11, Lloh12
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh32
.loh AdrpLdrGotLdr Lloh27, Lloh28, Lloh31
.loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.cfi_endproc
; -- End function
.comm _RBRA,4,2 ; @RBRA
.comm _nbra,8,3 ; @nbra
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unmatched right paren"
.comm _LBRA,4,2 ; @LBRA
.comm _cursubid,8,3 ; @cursubid
.comm _NSUBEXP,8,3 ; @NSUBEXP
l_.str.1: ; @.str.1
.asciz "too many subexpressions"
.comm _lastwasand,8,3 ; @lastwasand
.comm _CAT,4,2 ; @CAT
.comm _FALSE,8,3 ; @FALSE
.comm _STAR,4,2 ; @STAR
.comm _QUEST,4,2 ; @QUEST
.comm _PLUS,4,2 ; @PLUS
.comm _TRUE,8,3 ; @TRUE
.no_dead_strip _operator
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_operator.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function optimize
_optimize: ## @optimize
.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, %r15
movq 8(%rdi), %rax
movq _END@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq %rcx, (%rax)
je LBB0_5
## %bb.1:
movq _NOP@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movq %rax, %rsi
.p2align 4, 0x90
LBB0_2: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
leaq 16(%rsi), %rdi
.p2align 4, 0x90
LBB0_3: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
movq (%rdi), %rbx
leaq 16(%rbx), %rdi
cmpq %rdx, (%rbx)
je LBB0_3
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movq %rbx, 16(%rsi)
leaq 40(%rsi), %rdi
cmpq %rcx, 40(%rsi)
movq %rdi, %rsi
jne LBB0_2
LBB0_5:
movq _freep@GOTPCREL(%rip), %r14
movl (%r14), %esi
subl %eax, %esi
addl $16, %esi
movq %r15, %rdi
callq _realloc
testq %rax, %rax
je LBB0_16
## %bb.6:
cmpq %r15, %rax
je LBB0_16
## %bb.7:
movl %eax, %ecx
subl %r15d, %ecx
movslq %ecx, %rcx
movq (%r14), %r8
addq %rcx, %r8
movq %r8, (%r14)
movq 8(%rax), %rdx
cmpq %r8, %rdx
jae LBB0_14
## %bb.8:
addq $32, %rdx
jmp LBB0_11
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_11 Depth=1
addq %rcx, (%rdx)
LBB0_10: ## in Loop: Header=BB0_11 Depth=1
addq %rcx, -24(%rdx)
addq $40, %rdx
addq $40, %rdi
cmpq %r8, %rdi
jae LBB0_14
LBB0_11: ## =>This Inner Loop Header: Depth=1
leaq -32(%rdx), %rdi
movq -32(%rdx), %rbx
leaq -128(%rbx), %rsi
cmpq $4, %rsi
jb LBB0_9
## %bb.12: ## in Loop: Header=BB0_11 Depth=1
addq $-132, %rbx
cmpq $2, %rbx
jae LBB0_10
## %bb.13: ## in Loop: Header=BB0_11 Depth=1
addq %rcx, (%rdx)
movq -8(%rdx), %rsi
addq %rcx, (%rsi)
movq (%r14), %r8
jmp LBB0_10
LBB0_16:
movq %r15, %rax
jmp LBB0_17
LBB0_14:
addq %rcx, (%rax)
LBB0_17:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _END,8,3 ## @END
.comm _NOP,8,3 ## @NOP
.comm _freep,8,3 ## @freep
.no_dead_strip _optimize
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function optimize
_optimize: ; @optimize
.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 x8, [x0, #8]
Lloh0:
adrp x9, _END@GOTPAGE
Lloh1:
ldr x9, [x9, _END@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
ldr x10, [x8]
cmp x10, x9
b.eq LBB0_5
; %bb.1:
Lloh3:
adrp x10, _NOP@GOTPAGE
Lloh4:
ldr x10, [x10, _NOP@GOTPAGEOFF]
Lloh5:
ldr x10, [x10]
mov x11, x8
LBB0_2: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
add x13, x11, #16
LBB0_3: ; Parent Loop BB0_2 Depth=1
; => This Inner Loop Header: Depth=2
ldr x12, [x13]
mov x13, x12
ldr x14, [x13], #16
cmp x14, x10
b.eq LBB0_3
; %bb.4: ; in Loop: Header=BB0_2 Depth=1
ldr x13, [x11, #40]!
stur x12, [x11, #-24]
cmp x13, x9
b.ne LBB0_2
LBB0_5:
Lloh6:
adrp x20, _freep@GOTPAGE
Lloh7:
ldr x20, [x20, _freep@GOTPAGEOFF]
ldr w9, [x20]
sub w8, w9, w8
add w1, w8, #16
mov x0, x19
bl _realloc
cmp x0, #0
ccmp x0, x19, #4, ne
b.ne LBB0_7
; %bb.6:
mov x0, x19
b LBB0_15
LBB0_7:
sub w8, w0, w19
ldr x10, [x20]
sxtw x8, w8
ldr x9, [x0, #8]
add x10, x10, x8
cmp x9, x10
str x10, [x20]
b.hs LBB0_14
; %bb.8:
add x9, x9, #32
b LBB0_11
LBB0_9: ; in Loop: Header=BB0_11 Depth=1
ldr x12, [x9]
add x12, x12, x8
str x12, [x9]
LBB0_10: ; in Loop: Header=BB0_11 Depth=1
ldur x12, [x9, #-24]
add x12, x12, x8
stur x12, [x9, #-24]
add x9, x9, #40
add x11, x11, #40
cmp x11, x10
b.hs LBB0_14
LBB0_11: ; =>This Inner Loop Header: Depth=1
mov x11, x9
ldr x12, [x11, #-32]!
sub x13, x12, #128
cmp x13, #4
b.lo LBB0_9
; %bb.12: ; in Loop: Header=BB0_11 Depth=1
sub x12, x12, #132
cmp x12, #2
b.hs LBB0_10
; %bb.13: ; in Loop: Header=BB0_11 Depth=1
ldr x10, [x9]
add x10, x10, x8
str x10, [x9]
ldur x10, [x9, #-8]
ldr x12, [x10]
add x12, x12, x8
str x12, [x10]
ldr x10, [x20]
b LBB0_10
LBB0_14:
ldr x9, [x0]
add x8, x9, x8
str x8, [x0]
LBB0_15:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGot Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _END,8,3 ; @END
.comm _NOP,8,3 ; @NOP
.comm _freep,8,3 ; @freep
.no_dead_strip _optimize
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_optimize.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function popand
_popand: ## @popand
.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 _andp@GOTPCREL(%rip), %rbx
movq (%rbx), %rax
movq _andstack@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
ja LBB0_2
## %bb.1:
movl %edi, %esi
leaq L_.str(%rip), %rdi
callq _regerr2
movq _NOP@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _newinst
movq %rax, %rdi
movq %rax, %rsi
callq _pushand
movq (%rbx), %rax
LBB0_2:
addq $-4, %rax
movq %rax, (%rbx)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _andp,8,3 ## @andp
.comm _andstack,8,3 ## @andstack
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "missing operand for "
.comm _NOP,4,2 ## @NOP
.no_dead_strip _popand
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function popand
_popand: ; @popand
.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 x19, _andp@GOTPAGE
Lloh1:
ldr x19, [x19, _andp@GOTPAGEOFF]
ldr x8, [x19]
Lloh2:
adrp x9, _andstack@GOTPAGE
Lloh3:
ldr x9, [x9, _andstack@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
cmp x8, x9
b.hi LBB0_2
; %bb.1:
mov x1, x0
Lloh5:
adrp x0, l_.str@PAGE
Lloh6:
add x0, x0, l_.str@PAGEOFF
bl _regerr2
Lloh7:
adrp x8, _NOP@GOTPAGE
Lloh8:
ldr x8, [x8, _NOP@GOTPAGEOFF]
Lloh9:
ldr w0, [x8]
bl _newinst
mov x1, x0
bl _pushand
ldr x8, [x19]
LBB0_2:
sub x0, x8, #4
str x0, [x19]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpAdd Lloh5, Lloh6
.cfi_endproc
; -- End function
.comm _andp,8,3 ; @andp
.comm _andstack,8,3 ; @andstack
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "missing operand for "
.comm _NOP,4,2 ; @NOP
.no_dead_strip _popand
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_popand.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function popator
_popator: ## @popator
.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 _atorp@GOTPCREL(%rip), %rbx
movq (%rbx), %rax
movq _atorstack@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
ja LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
callq _cant
movq (%rbx), %rax
LBB0_2:
movq _subidp@GOTPCREL(%rip), %rcx
decl (%rcx)
leaq -4(%rax), %rcx
movq %rcx, (%rbx)
movl -4(%rax), %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _atorp,8,3 ## @atorp
.comm _atorstack,8,3 ## @atorstack
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "operator stack underflow"
.comm _subidp,4,2 ## @subidp
.no_dead_strip _popator
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function popator
_popator: ; @popator
.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 x19, _atorp@GOTPAGE
Lloh1:
ldr x19, [x19, _atorp@GOTPAGEOFF]
ldr x8, [x19]
Lloh2:
adrp x9, _atorstack@GOTPAGE
Lloh3:
ldr x9, [x9, _atorstack@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
cmp x8, x9
b.hi LBB0_2
; %bb.1:
Lloh5:
adrp x0, l_.str@PAGE
Lloh6:
add x0, x0, l_.str@PAGEOFF
bl _cant
ldr x8, [x19]
LBB0_2:
Lloh7:
adrp x9, _subidp@GOTPAGE
Lloh8:
ldr x9, [x9, _subidp@GOTPAGEOFF]
ldr w10, [x9]
sub w10, w10, #1
str w10, [x9]
ldr w0, [x8, #-4]!
str x8, [x19]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpLdrGot Lloh7, Lloh8
.cfi_endproc
; -- End function
.comm _atorp,8,3 ; @atorp
.comm _atorstack,8,3 ; @atorstack
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "operator stack underflow"
.comm _subidp,4,2 ; @subidp
.no_dead_strip _popator
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_popator.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function pushand
_pushand: ## @pushand
.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, %r14
movq %rdi, %rbx
movq _andp@GOTPCREL(%rip), %r15
movq (%r15), %rax
movq _andstack@GOTPCREL(%rip), %rcx
movq _NSTACK@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
shlq $4, %rdx
addq (%rcx), %rdx
cmpq %rdx, %rax
jb LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
callq _cant
movq (%r15), %rax
LBB0_2:
movq %rbx, 8(%rax)
movq %r14, (%rax)
addq $16, (%r15)
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _andp,8,3 ## @andp
.comm _andstack,8,3 ## @andstack
.comm _NSTACK,8,3 ## @NSTACK
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "operand stack overflow"
.no_dead_strip _pushand
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function pushand
_pushand: ; @pushand
.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
mov x20, x0
Lloh0:
adrp x21, _andp@GOTPAGE
Lloh1:
ldr x21, [x21, _andp@GOTPAGEOFF]
ldr x8, [x21]
Lloh2:
adrp x9, _andstack@GOTPAGE
Lloh3:
ldr x9, [x9, _andstack@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
Lloh5:
adrp x10, _NSTACK@GOTPAGE
Lloh6:
ldr x10, [x10, _NSTACK@GOTPAGEOFF]
Lloh7:
ldr x10, [x10]
add x9, x9, x10, lsl #4
cmp x8, x9
b.lo LBB0_2
; %bb.1:
Lloh8:
adrp x0, l_.str@PAGE
Lloh9:
add x0, x0, l_.str@PAGEOFF
bl _cant
ldr x8, [x21]
LBB0_2:
stp x19, x20, [x8]
ldr x8, [x21]
add x8, x8, #16
str x8, [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 Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh8, Lloh9
.cfi_endproc
; -- End function
.comm _andp,8,3 ; @andp
.comm _andstack,8,3 ; @andstack
.comm _NSTACK,8,3 ; @NSTACK
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "operand stack overflow"
.no_dead_strip _pushand
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_pushand.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function rcerror
_rcerror: ## @rcerror
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _errors@GOTPCREL(%rip), %rax
incl (%rax)
callq _regerror9
movq _regkaboom@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl $1, %esi
popq %rbp
jmp _longjmp ## TAILCALL
.cfi_endproc
## -- End function
.comm _errors,4,2 ## @errors
.comm _regkaboom,4,2 ## @regkaboom
.no_dead_strip _rcerror
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function rcerror
_rcerror: ; @rcerror
.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, _errors@GOTPAGE
Lloh1:
ldr x8, [x8, _errors@GOTPAGEOFF]
ldr w9, [x8]
add w9, w9, #1
str w9, [x8]
bl _regerror9
Lloh2:
adrp x8, _regkaboom@GOTPAGE
Lloh3:
ldr x8, [x8, _regkaboom@GOTPAGEOFF]
Lloh4:
ldr w0, [x8]
mov w1, #1
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _longjmp
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _errors,4,2 ; @errors
.comm _regkaboom,4,2 ; @regkaboom
.no_dead_strip _rcerror
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_rcerror.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regcomp9 ## -- Begin function regcomp9
.p2align 4, 0x90
_regcomp9: ## @regcomp9
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _ANY@GOTPCREL(%rip), %rax
movl (%rax), %edx
xorl %esi, %esi
popq %rbp
jmp _regcomp1 ## TAILCALL
.cfi_endproc
## -- End function
.comm _ANY,4,2 ## @ANY
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regcomp9 ; -- Begin function regcomp9
.p2align 2
_regcomp9: ; @regcomp9
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _ANY@GOTPAGE
Lloh1:
ldr x8, [x8, _ANY@GOTPAGEOFF]
Lloh2:
ldr w2, [x8]
mov w1, #0
b _regcomp1
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ANY,4,2 ; @ANY
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_regcomp9.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regcomplit9 ## -- Begin function regcomplit9
.p2align 4, 0x90
_regcomplit9: ## @regcomplit9
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _ANY@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl $1, %esi
popq %rbp
jmp _regcomp1 ## TAILCALL
.cfi_endproc
## -- End function
.comm _ANY,4,2 ## @ANY
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regcomplit9 ; -- Begin function regcomplit9
.p2align 2
_regcomplit9: ; @regcomplit9
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _ANY@GOTPAGE
Lloh1:
ldr x8, [x8, _ANY@GOTPAGEOFF]
Lloh2:
ldr w2, [x8]
mov w1, #1
b _regcomp1
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ANY,4,2 ; @ANY
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_regcomplit9.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regcompnl9 ## -- Begin function regcompnl9
.p2align 4, 0x90
_regcompnl9: ## @regcompnl9
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _ANYNL@GOTPCREL(%rip), %rax
movl (%rax), %edx
xorl %esi, %esi
popq %rbp
jmp _regcomp1 ## TAILCALL
.cfi_endproc
## -- End function
.comm _ANYNL,4,2 ## @ANYNL
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regcompnl9 ; -- Begin function regcompnl9
.p2align 2
_regcompnl9: ; @regcompnl9
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _ANYNL@GOTPAGE
Lloh1:
ldr x8, [x8, _ANYNL@GOTPAGEOFF]
Lloh2:
ldr w2, [x8]
mov w1, #0
b _regcomp1
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ANYNL,4,2 ; @ANYNL
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_regcompnl9.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function regerr2
_regerr2: ## @regerr2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movb (%rdi), %cl
leaq -112(%rbp), %rax
testb %cl, %cl
je LBB0_3
## %bb.1:
incq %rdi
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movb %cl, (%rax)
incq %rax
movzbl (%rdi), %ecx
incq %rdi
testb %cl, %cl
jne LBB0_2
LBB0_3:
movb %sil, (%rax)
movb $0, 1(%rax)
leaq -112(%rbp), %rdi
callq _rcerror
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -8(%rbp), %rax
jne LBB0_5
## %bb.4:
addq $112, %rsp
popq %rbp
retq
LBB0_5:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.no_dead_strip _regerr2
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function regerr2
_regerr2: ; @regerr2
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-8]
ldrb w9, [x0]
cbz w9, LBB0_3
; %bb.1:
add x8, sp, #4
add x10, x0, #1
LBB0_2: ; =>This Inner Loop Header: Depth=1
strb w9, [x8], #1
ldrb w9, [x10], #1
cbnz w9, LBB0_2
b LBB0_4
LBB0_3:
add x8, sp, #4
LBB0_4:
strb w1, [x8]
strb wzr, [x8, #1]
add x0, sp, #4
bl _rcerror
ldur x8, [x29, #-8]
Lloh3:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh4:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_6
; %bb.5:
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
LBB0_6:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.no_dead_strip _regerr2
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_regerr2.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regerror9 ## -- Begin function regerror9
.p2align 4, 0x90
_regerror9: ## @regerror9
.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
subq $144, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
leaq L_.str(%rip), %rsi
leaq -160(%rbp), %rbx
movq %rbx, %rdi
callq _strcpy
movq %rbx, %rdi
movq %r14, %rsi
callq _strcat
leaq L_.str.1(%rip), %rsi
movq %rbx, %rdi
callq _strcat
movq %rbx, %rdi
callq _strlen
movl $2, %edi
movq %rbx, %rsi
movl %eax, %edx
callq _write
leaq L_.str.2(%rip), %rdi
callq _exits
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -24(%rbp), %rax
jne LBB0_2
## %bb.1:
addq $144, %rsp
popq %rbx
popq %r14
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "regerror: "
L_.str.1: ## @.str.1
.asciz "\n"
L_.str.2: ## @.str.2
.asciz "regerr"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regerror9 ; -- Begin function regerror9
.p2align 2
_regerror9: ; @regerror9
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x20, x19, [sp, #144] ; 16-byte Folded Spill
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.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, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-24]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
add x0, sp, #4
bl _strcpy
add x0, sp, #4
mov x1, x19
bl _strcat
Lloh5:
adrp x1, l_.str.1@PAGE
Lloh6:
add x1, x1, l_.str.1@PAGEOFF
add x0, sp, #4
bl _strcat
add x0, sp, #4
bl _strlen
mov x2, x0
add x1, sp, #4
mov w0, #2
bl _write
Lloh7:
adrp x0, l_.str.2@PAGE
Lloh8:
add x0, x0, l_.str.2@PAGEOFF
bl _exits
ldur x8, [x29, #-24]
Lloh9:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh10:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
ldp x20, x19, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #176
ret
LBB0_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "regerror: "
l_.str.1: ; @.str.1
.asciz "\n"
l_.str.2: ; @.str.2
.asciz "regerr"
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_regerror9.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function regexec1
_regexec1: ## @regexec1
.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 $88, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %r8, %rbx
movl %ecx, %r14d
movq %rsi, -104(%rbp) ## 8-byte Spill
movq %rdi, -120(%rbp) ## 8-byte Spill
movl (%r8), %r13d
movq %rdx, -88(%rbp) ## 8-byte Spill
testq %rdx, %rdx
je LBB0_3
## %bb.1:
testl %r14d, %r14d
jle LBB0_3
## %bb.2:
movl %r14d, %esi
shlq $4, %rsi
movq -88(%rbp), %rdi ## 8-byte Reload
callq ___bzero
LBB0_3:
movl %r14d, -48(%rbp) ## 4-byte Spill
movq 40(%rbx), %rax
movq (%rax), %rcx
movq $0, (%rcx)
movq 8(%rax), %rax
movq $0, (%rax)
movq 8(%rbx), %r15
xorl %eax, %eax
movq %rax, -96(%rbp) ## 8-byte Spill
leaq LJTI0_0(%rip), %r14
movl %r13d, %eax
movl $0, -44(%rbp) ## 4-byte Folded Spill
movq %rbx, -112(%rbp) ## 8-byte Spill
LBB0_4: ## =>This Loop Header: Depth=1
## Child Loop BB0_21 Depth 2
## Child Loop BB0_26 Depth 3
## Child Loop BB0_48 Depth 3
## Child Loop BB0_39 Depth 3
testl %eax, %eax
je LBB0_13
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
cmpl $136, %r13d
je LBB0_9
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
cmpl $128, %r13d
jne LBB0_13
## %bb.7: ## in Loop: Header=BB0_4 Depth=1
movsbl 16(%rbx), %esi
movq %r15, %rdi
callq _utfrune
testq %rax, %rax
je LBB0_60
## %bb.8: ## in Loop: Header=BB0_4 Depth=1
movq %rax, %r12
cmpq 24(%rbx), %r15
jne LBB0_14
jmp LBB0_60
.p2align 4, 0x90
LBB0_13: ## in Loop: Header=BB0_4 Depth=1
movq %r15, %r12
LBB0_14: ## in Loop: Header=BB0_4 Depth=1
movq (%r12), %rax
movq %rax, -56(%rbp)
movl $1, %r15d
movq _Runeself@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jl LBB0_16
## %bb.15: ## in Loop: Header=BB0_4 Depth=1
leaq -56(%rbp), %rdi
movq %r12, %rsi
callq _chartorune
movl %eax, %r15d
LBB0_16: ## in Loop: Header=BB0_4 Depth=1
movq 32(%rbx), %rax
movq 40(%rbx), %rcx
movq -96(%rbp), %rdx ## 8-byte Reload
movslq %edx, %rdx
movq (%rcx,%rdx,8), %r13
movq (%rax,%rdx,8), %rsi
movq %rsi, -128(%rbp) ## 8-byte Spill
xorl $1, %edx
movq %rdx, -96(%rbp) ## 8-byte Spill
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movq (%rax,%rdx,8), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movq %rcx, -64(%rbp) ## 8-byte Spill
movq $0, (%rcx)
cmpl $0, -44(%rbp) ## 4-byte Folded Reload
jne LBB0_18
## %bb.17: ## in Loop: Header=BB0_4 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
movl (%rax), %esi
movq %r13, %rdi
movl -48(%rbp), %edx ## 4-byte Reload
movq %r12, %rcx
callq __renewemptythread
LBB0_18: ## in Loop: Header=BB0_4 Depth=1
movl %r15d, -76(%rbp) ## 4-byte Spill
movq (%r13), %rbx
jmp LBB0_21
.p2align 4, 0x90
LBB0_19: ## in Loop: Header=BB0_21 Depth=2
movq 40(%rbx), %rsi
movq -64(%rbp), %rdi ## 8-byte Reload
movl -48(%rbp), %edx ## 4-byte Reload
movq %r15, %rcx
callq __renewthread
cmpq -72(%rbp), %rax ## 8-byte Folded Reload
je LBB0_59
LBB0_20: ## in Loop: Header=BB0_21 Depth=2
movq 16(%r13), %rbx
addq $16, %r13
LBB0_21: ## Parent Loop BB0_4 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_26 Depth 3
## Child Loop BB0_48 Depth 3
## Child Loop BB0_39 Depth 3
testq %rbx, %rbx
je LBB0_53
## %bb.22: ## in Loop: Header=BB0_21 Depth=2
leaq 8(%r13), %r15
jmp LBB0_26
LBB0_23: ## in Loop: Header=BB0_26 Depth=3
movq 8(%r13), %rax
movq 16(%rbx), %rcx
shlq $4, %rcx
addq %rcx, %rax
addq $8, %rax
LBB0_24: ## in Loop: Header=BB0_26 Depth=3
movq %r12, (%rax)
LBB0_25: ## in Loop: Header=BB0_26 Depth=3
movq 40(%rbx), %rbx
LBB0_26: ## Parent Loop BB0_4 Depth=1
## Parent Loop BB0_21 Depth=2
## => This Inner Loop Header: Depth=3
movl (%rbx), %eax
addl $-128, %eax
cmpl $10, %eax
ja LBB0_20
## %bb.27: ## in Loop: Header=BB0_26 Depth=3
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
LBB0_28: ## in Loop: Header=BB0_26 Depth=3
movq 16(%rbx), %rax
shlq $4, %rax
addq 8(%r13), %rax
jmp LBB0_24
LBB0_58: ## in Loop: Header=BB0_26 Depth=3
movq 24(%rbx), %rsi
movq %r13, %rdi
movl -48(%rbp), %edx ## 4-byte Reload
movq %r15, %rcx
callq __renewthread
cmpq -128(%rbp), %rax ## 8-byte Folded Reload
jne LBB0_25
jmp LBB0_59
LBB0_29: ## in Loop: Header=BB0_26 Depth=3
movq -112(%rbp), %rax ## 8-byte Reload
cmpq 24(%rax), %r12
je LBB0_25
## %bb.30: ## in Loop: Header=BB0_26 Depth=3
movq -56(%rbp), %rax
testq %rax, %rax
je LBB0_25
## %bb.31: ## in Loop: Header=BB0_26 Depth=3
cmpq $10, %rax
je LBB0_25
jmp LBB0_20
LBB0_32: ## in Loop: Header=BB0_26 Depth=3
cmpq -104(%rbp), %r12 ## 8-byte Folded Reload
je LBB0_25
## %bb.33: ## in Loop: Header=BB0_26 Depth=3
cmpb $10, -1(%r12)
je LBB0_25
jmp LBB0_20
LBB0_34: ## in Loop: Header=BB0_21 Depth=2
movq 8(%rbx), %rax
cmpq -56(%rbp), %rax
je LBB0_19
jmp LBB0_20
LBB0_36: ## in Loop: Header=BB0_21 Depth=2
movq 32(%rbx), %rcx
movq (%rcx), %rax
movq 8(%rcx), %rcx
cmpq %rcx, %rax
jae LBB0_41
## %bb.37: ## in Loop: Header=BB0_21 Depth=2
movq -56(%rbp), %rdx
jmp LBB0_39
.p2align 4, 0x90
LBB0_38: ## in Loop: Header=BB0_39 Depth=3
addq $16, %rax
cmpq %rcx, %rax
jae LBB0_41
LBB0_39: ## Parent Loop BB0_4 Depth=1
## Parent Loop BB0_21 Depth=2
## => This Inner Loop Header: Depth=3
cmpq (%rax), %rdx
jl LBB0_38
## %bb.40: ## in Loop: Header=BB0_39 Depth=3
cmpq 8(%rax), %rdx
jg LBB0_38
LBB0_41: ## in Loop: Header=BB0_21 Depth=2
cmpq %rcx, %rax
jne LBB0_20
jmp LBB0_19
LBB0_43: ## in Loop: Header=BB0_21 Depth=2
movq (%r15), %rax
movq %r12, (%rax)
movl $1, -44(%rbp) ## 4-byte Folded Spill
movq -88(%rbp), %rdi ## 8-byte Reload
testq %rdi, %rdi
je LBB0_20
## %bb.44: ## in Loop: Header=BB0_21 Depth=2
movl -48(%rbp), %esi ## 4-byte Reload
movq %r15, %rdx
callq __renewmatch
jmp LBB0_20
LBB0_45: ## in Loop: Header=BB0_21 Depth=2
movq 32(%rbx), %rcx
movq (%rcx), %rax
movq 8(%rcx), %rcx
cmpq %rcx, %rax
jae LBB0_20
## %bb.46: ## in Loop: Header=BB0_21 Depth=2
movq -56(%rbp), %rdx
jmp LBB0_48
.p2align 4, 0x90
LBB0_47: ## in Loop: Header=BB0_48 Depth=3
addq $16, %rax
cmpq %rcx, %rax
jae LBB0_20
LBB0_48: ## Parent Loop BB0_4 Depth=1
## Parent Loop BB0_21 Depth=2
## => This Inner Loop Header: Depth=3
cmpq (%rax), %rdx
jl LBB0_47
## %bb.49: ## in Loop: Header=BB0_48 Depth=3
cmpq 8(%rax), %rdx
jg LBB0_47
jmp LBB0_19
LBB0_51: ## in Loop: Header=BB0_21 Depth=2
cmpq $10, -56(%rbp)
jne LBB0_19
jmp LBB0_20
.p2align 4, 0x90
LBB0_53: ## in Loop: Header=BB0_4 Depth=1
movq -112(%rbp), %rbx ## 8-byte Reload
cmpq 24(%rbx), %r12
je LBB0_60
## %bb.54: ## in Loop: Header=BB0_4 Depth=1
movl (%rbx), %r13d
testl %r13d, %r13d
je LBB0_56
## %bb.55: ## in Loop: Header=BB0_4 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
cmpq $0, (%rax)
sete %al
jmp LBB0_57
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_4 Depth=1
movq -104(%rbp), %rax ## 8-byte Reload
movq %rax, %r12
cmpq %rax, %r15
je LBB0_14
## %bb.10: ## in Loop: Header=BB0_4 Depth=1
movq %r15, %rdi
movl $10, %esi
callq _utfrune
testq %rax, %rax
je LBB0_60
## %bb.11: ## in Loop: Header=BB0_4 Depth=1
cmpq 24(%rbx), %r15
je LBB0_60
## %bb.12: ## in Loop: Header=BB0_4 Depth=1
movq %rax, %r12
incq %r12
jmp LBB0_14
LBB0_56: ## in Loop: Header=BB0_4 Depth=1
xorl %eax, %eax
LBB0_57: ## in Loop: Header=BB0_4 Depth=1
movl -76(%rbp), %ecx ## 4-byte Reload
movzbl %al, %eax
movslq %ecx, %rcx
addq %rcx, %r12
cmpq $0, -56(%rbp)
movq %r12, %r15
jne LBB0_4
jmp LBB0_60
LBB0_59:
movl $-1, -44(%rbp) ## 4-byte Folded Spill
LBB0_60:
movl -44(%rbp), %eax ## 4-byte Reload
addq $88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_58, LBB0_58-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_43, LBB0_43-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_51, LBB0_51-LJTI0_0
LJTI0_0:
.long L0_0_set_34
.long L0_0_set_28
.long L0_0_set_58
.long L0_0_set_36
.long L0_0_set_23
.long L0_0_set_29
.long L0_0_set_43
.long L0_0_set_45
.long L0_0_set_32
.long L0_0_set_19
.long L0_0_set_51
.end_data_region
## -- End function
.comm _Runeself,8,3 ## @Runeself
.no_dead_strip _regexec1
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function regexec1
_regexec1: ; @regexec1
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x28, x27, [sp, #64] ; 16-byte Folded Spill
stp x26, x25, [sp, #80] ; 16-byte Folded Spill
stp x24, x23, [sp, #96] ; 16-byte Folded Spill
stp x22, x21, [sp, #112] ; 16-byte Folded Spill
stp x20, x19, [sp, #128] ; 16-byte Folded Spill
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.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
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
mov x20, x4
mov x21, x3
mov x23, x1
stp x0, x2, [sp, #8] ; 16-byte Folded Spill
ldr w22, [x4]
cbz x2, LBB0_3
; %bb.1:
cmp w21, #1
b.lt LBB0_3
; %bb.2:
mov w8, w21
lsl x1, x8, #4
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _bzero
LBB0_3:
mov w19, #0
str wzr, [sp, #52] ; 4-byte Folded Spill
ldr x8, [x20, #40]
ldp x9, x8, [x8]
str xzr, [x9]
str xzr, [x8]
ldr x24, [x20, #8]
Lloh0:
adrp x27, _Runeself@GOTPAGE
Lloh1:
ldr x27, [x27, _Runeself@GOTPAGEOFF]
Lloh2:
adrp x26, lJTI0_0@PAGE
Lloh3:
add x26, x26, lJTI0_0@PAGEOFF
mov x8, x22
LBB0_4: ; =>This Loop Header: Depth=1
; Child Loop BB0_21 Depth 2
; Child Loop BB0_25 Depth 3
; Child Loop BB0_46 Depth 3
; Child Loop BB0_37 Depth 3
cbz w8, LBB0_9
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
cmp w22, #136
b.eq LBB0_49
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
cmp w22, #128
b.ne LBB0_9
; %bb.7: ; in Loop: Header=BB0_4 Depth=1
ldrsb w1, [x20, #16]
mov x0, x24
bl _utfrune
cbz x0, LBB0_56
; %bb.8: ; in Loop: Header=BB0_4 Depth=1
mov x25, x0
ldr x8, [x20, #24]
cmp x24, x8
b.ne LBB0_10
b LBB0_56
LBB0_9: ; in Loop: Header=BB0_4 Depth=1
mov x25, x24
LBB0_10: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x25]
str x8, [sp, #56]
ldr x9, [x27]
cmp x8, x9
b.ge LBB0_12
; %bb.11: ; in Loop: Header=BB0_4 Depth=1
mov w8, #1
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB0_13
LBB0_12: ; in Loop: Header=BB0_4 Depth=1
add x0, sp, #56
mov x1, x25
bl _chartorune
str w0, [sp, #28] ; 4-byte Folded Spill
LBB0_13: ; in Loop: Header=BB0_4 Depth=1
sxtw x8, w19
sbfiz x9, x19, #3, #32
ldp x11, x10, [x20, #32]
ldr x28, [x10, x9]
ldr x19, [x11, x9]
eor x8, x8, #0x1
str x8, [sp, #32] ; 8-byte Folded Spill
lsl x8, x8, #3
ldr x27, [x10, x8]
ldr x8, [x11, x8]
str x8, [sp, #40] ; 8-byte Folded Spill
str xzr, [x27]
ldr w8, [sp, #52] ; 4-byte Folded Reload
cbz w8, LBB0_15
; %bb.14: ; in Loop: Header=BB0_4 Depth=1
ldr x22, [x28]
cbnz x22, LBB0_21
b LBB0_16
LBB0_15: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w1, [x8]
mov x0, x28
mov x2, x21
mov x3, x25
bl __renewemptythread
ldr x22, [x28]
cbnz x22, LBB0_21
LBB0_16: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x20, #24]
cmp x25, x8
b.eq LBB0_56
; %bb.17: ; in Loop: Header=BB0_4 Depth=1
ldr w22, [x20]
cbz w22, LBB0_53
; %bb.18: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x27]
cmp x8, #0
cset w8, eq
b LBB0_54
LBB0_19: ; in Loop: Header=BB0_21 Depth=2
ldr x1, [x22, #40]
mov x0, x27
mov x2, x21
mov x3, x24
bl __renewthread
ldr x8, [sp, #40] ; 8-byte Folded Reload
cmp x0, x8
b.eq LBB0_55
LBB0_20: ; in Loop: Header=BB0_21 Depth=2
ldr x22, [x28, #16]!
cbz x22, LBB0_16
LBB0_21: ; Parent Loop BB0_4 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_25 Depth 3
; Child Loop BB0_46 Depth 3
; Child Loop BB0_37 Depth 3
add x24, x28, #8
b LBB0_25
LBB0_22: ; in Loop: Header=BB0_25 Depth=3
ldr x8, [x28, #8]
ldr x9, [x22, #16]
add x8, x8, x9, lsl #4
add x8, x8, #8
LBB0_23: ; in Loop: Header=BB0_25 Depth=3
str x25, [x8]
LBB0_24: ; in Loop: Header=BB0_25 Depth=3
ldr x22, [x22, #40]
LBB0_25: ; Parent Loop BB0_4 Depth=1
; Parent Loop BB0_21 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [x22]
sub w8, w8, #128
cmp w8, #10
b.hi LBB0_20
; %bb.26: ; in Loop: Header=BB0_25 Depth=3
adr x9, LBB0_19
ldrb w10, [x26, x8]
add x9, x9, x10, lsl #2
br x9
LBB0_27: ; in Loop: Header=BB0_25 Depth=3
ldr x8, [x28, #8]
ldr x9, [x22, #16]
add x8, x8, x9, lsl #4
b LBB0_23
LBB0_28: ; in Loop: Header=BB0_25 Depth=3
ldr x1, [x22, #24]
mov x0, x28
mov x2, x21
mov x3, x24
bl __renewthread
cmp x0, x19
b.ne LBB0_24
b LBB0_55
LBB0_29: ; in Loop: Header=BB0_25 Depth=3
ldr x8, [x20, #24]
cmp x25, x8
b.eq LBB0_24
; %bb.30: ; in Loop: Header=BB0_25 Depth=3
ldr x8, [sp, #56]
cmp x8, #0
ccmp x8, #10, #4, ne
b.eq LBB0_24
b LBB0_20
LBB0_31: ; in Loop: Header=BB0_25 Depth=3
cmp x25, x23
b.eq LBB0_24
; %bb.32: ; in Loop: Header=BB0_25 Depth=3
ldurb w8, [x25, #-1]
cmp w8, #10
b.eq LBB0_24
b LBB0_20
LBB0_33: ; in Loop: Header=BB0_21 Depth=2
ldr x8, [x22, #8]
ldr x9, [sp, #56]
cmp x8, x9
b.ne LBB0_20
b LBB0_19
LBB0_34: ; in Loop: Header=BB0_21 Depth=2
ldr x9, [x22, #32]
ldp x9, x8, [x9]
cmp x9, x8
b.hs LBB0_39
; %bb.35: ; in Loop: Header=BB0_21 Depth=2
ldr x10, [sp, #56]
b LBB0_37
LBB0_36: ; in Loop: Header=BB0_37 Depth=3
add x9, x9, #16
cmp x9, x8
b.hs LBB0_39
LBB0_37: ; Parent Loop BB0_4 Depth=1
; Parent Loop BB0_21 Depth=2
; => This Inner Loop Header: Depth=3
ldr x11, [x9]
cmp x10, x11
b.lt LBB0_36
; %bb.38: ; in Loop: Header=BB0_37 Depth=3
ldr x11, [x9, #8]
cmp x10, x11
b.gt LBB0_36
LBB0_39: ; in Loop: Header=BB0_21 Depth=2
cmp x9, x8
b.ne LBB0_20
b LBB0_19
LBB0_40: ; in Loop: Header=BB0_21 Depth=2
ldr x8, [x24]
str x25, [x8]
ldr x0, [sp, #16] ; 8-byte Folded Reload
cbz x0, LBB0_42
; %bb.41: ; in Loop: Header=BB0_21 Depth=2
mov x1, x21
mov x2, x24
bl __renewmatch
LBB0_42: ; in Loop: Header=BB0_21 Depth=2
mov w8, #1
str w8, [sp, #52] ; 4-byte Folded Spill
b LBB0_20
LBB0_43: ; in Loop: Header=BB0_21 Depth=2
ldr x9, [x22, #32]
ldp x9, x8, [x9]
cmp x9, x8
b.hs LBB0_20
; %bb.44: ; in Loop: Header=BB0_21 Depth=2
ldr x10, [sp, #56]
b LBB0_46
LBB0_45: ; in Loop: Header=BB0_46 Depth=3
add x9, x9, #16
cmp x9, x8
b.hs LBB0_20
LBB0_46: ; Parent Loop BB0_4 Depth=1
; Parent Loop BB0_21 Depth=2
; => This Inner Loop Header: Depth=3
ldr x11, [x9]
cmp x10, x11
b.lt LBB0_45
; %bb.47: ; in Loop: Header=BB0_46 Depth=3
ldr x11, [x9, #8]
cmp x10, x11
b.gt LBB0_45
b LBB0_19
LBB0_48: ; in Loop: Header=BB0_21 Depth=2
ldr x8, [sp, #56]
cmp x8, #10
b.ne LBB0_19
b LBB0_20
LBB0_49: ; in Loop: Header=BB0_4 Depth=1
mov x25, x23
cmp x24, x23
b.eq LBB0_10
; %bb.50: ; in Loop: Header=BB0_4 Depth=1
mov x0, x24
mov w1, #10
bl _utfrune
cbz x0, LBB0_56
; %bb.51: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x20, #24]
cmp x24, x8
b.eq LBB0_56
; %bb.52: ; in Loop: Header=BB0_4 Depth=1
add x25, x0, #1
b LBB0_10
LBB0_53: ; in Loop: Header=BB0_4 Depth=1
mov w8, #0
LBB0_54: ; in Loop: Header=BB0_4 Depth=1
Lloh4:
adrp x27, _Runeself@GOTPAGE
Lloh5:
ldr x27, [x27, _Runeself@GOTPAGEOFF]
ldr w9, [sp, #28] ; 4-byte Folded Reload
ldr x19, [sp, #32] ; 8-byte Folded Reload
add x24, x25, w9, sxtw
ldr x9, [sp, #56]
; kill: def $w19 killed $w19 killed $x19 def $x19
cbnz x9, LBB0_4
b LBB0_56
LBB0_55:
mov w8, #-1
str w8, [sp, #52] ; 4-byte Folded Spill
LBB0_56:
ldr w0, [sp, #52] ; 4-byte Folded Reload
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
ldp x20, x19, [sp, #128] ; 16-byte Folded Reload
ldp x22, x21, [sp, #112] ; 16-byte Folded Reload
ldp x24, x23, [sp, #96] ; 16-byte Folded Reload
ldp x26, x25, [sp, #80] ; 16-byte Folded Reload
ldp x28, x27, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #160
ret
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh4, Lloh5
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_33-LBB0_19)>>2
.byte (LBB0_27-LBB0_19)>>2
.byte (LBB0_28-LBB0_19)>>2
.byte (LBB0_34-LBB0_19)>>2
.byte (LBB0_22-LBB0_19)>>2
.byte (LBB0_29-LBB0_19)>>2
.byte (LBB0_40-LBB0_19)>>2
.byte (LBB0_43-LBB0_19)>>2
.byte (LBB0_31-LBB0_19)>>2
.byte (LBB0_19-LBB0_19)>>2
.byte (LBB0_48-LBB0_19)>>2
; -- End function
.comm _Runeself,8,3 ; @Runeself
.no_dead_strip _regexec1
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_regexec1.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function regexec2
_regexec2: ## @regexec2
.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 $40, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %r8, %r13
movl %ecx, %r15d
movq %rdx, -72(%rbp) ## 8-byte Spill
movq %rsi, -64(%rbp) ## 8-byte Spill
movq %rdi, -56(%rbp) ## 8-byte Spill
movq _BIGLISTSIZE@GOTPCREL(%rip), %r12
movl (%r12), %edi
shll $2, %edi
callq _malloc
movq _nil@GOTPCREL(%rip), %r14
cmpq (%r14), %rax
je LBB0_1
## %bb.2:
movq %rax, %rbx
movl %r15d, -44(%rbp) ## 4-byte Spill
movl (%r12), %edi
shll $2, %edi
callq _malloc
movq %rax, %r15
cmpq (%r14), %rax
je LBB0_3
## %bb.4:
movq 8(%r13), %rax
movq %rbx, (%rax)
movq 8(%r13), %rax
movq %r15, 8(%rax)
movslq (%r12), %rax
leaq -8(%rbx,%rax,4), %rcx
movq (%r13), %rdx
movq %rcx, (%rdx)
leaq -8(%r15,%rax,4), %rax
movq (%r13), %rcx
movq %rax, 8(%rcx)
movq -56(%rbp), %rdi ## 8-byte Reload
movq -64(%rbp), %rsi ## 8-byte Reload
movq -72(%rbp), %rdx ## 8-byte Reload
movl -44(%rbp), %ecx ## 4-byte Reload
movq %r13, %r8
callq _regexec1
movl %eax, %r14d
movq %rbx, %rdi
callq _free
jmp LBB0_5
LBB0_1:
movl $-1, %r14d
jmp LBB0_6
LBB0_3:
movl $-1, %r14d
LBB0_5:
movq %r15, %rdi
callq _free
LBB0_6:
movl %r14d, %eax
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _BIGLISTSIZE,4,2 ## @BIGLISTSIZE
.comm _nil,8,3 ## @nil
.no_dead_strip _regexec2
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function regexec2
_regexec2: ; @regexec2
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.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
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
mov x19, x4
mov x20, x3
mov x21, x2
mov x22, x1
mov x25, x0
Lloh0:
adrp x26, _BIGLISTSIZE@GOTPAGE
Lloh1:
ldr x26, [x26, _BIGLISTSIZE@GOTPAGEOFF]
ldr w8, [x26]
lsl w0, w8, #2
bl _malloc
Lloh2:
adrp x27, _nil@GOTPAGE
Lloh3:
ldr x27, [x27, _nil@GOTPAGEOFF]
ldr x8, [x27]
cmp x0, x8
b.eq LBB0_3
; %bb.1:
mov x23, x0
ldr w8, [x26]
lsl w0, w8, #2
bl _malloc
mov x24, x0
ldr x8, [x27]
cmp x0, x8
b.eq LBB0_4
; %bb.2:
ldr x8, [x19, #8]
str x23, [x8]
ldr x8, [x19, #8]
str x24, [x8, #8]
ldrsw x8, [x26]
lsl x8, x8, #2
add x9, x23, x8
sub x9, x9, #8
ldr x10, [x19]
str x9, [x10]
add x8, x24, x8
sub x8, x8, #8
ldr x9, [x19]
str x8, [x9, #8]
mov x0, x25
mov x1, x22
mov x2, x21
mov x3, x20
mov x4, x19
bl _regexec1
mov x19, x0
mov x0, x23
bl _free
b LBB0_5
LBB0_3:
mov w19, #-1
b LBB0_6
LBB0_4:
mov w19, #-1
LBB0_5:
mov x0, x24
bl _free
LBB0_6:
mov x0, x19
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _BIGLISTSIZE,4,2 ; @BIGLISTSIZE
.comm _nil,8,3 ; @nil
.no_dead_strip _regexec2
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_regexec2.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regexec9 ## -- Begin function regexec9
.p2align 4, 0x90
_regexec9: ## @regexec9
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
ud2
.cfi_endproc
## -- End function
.comm _LISTSIZE,4,2 ## @LISTSIZE
.comm _RUNE,8,3 ## @RUNE
.comm _Runeself,8,3 ## @Runeself
.comm _BOL,8,3 ## @BOL
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regexec9 ; -- Begin function regexec9
.p2align 2
_regexec9: ; @regexec9
.cfi_startproc
; %bb.0:
brk #0x1
.cfi_endproc
; -- End function
.comm _LISTSIZE,4,2 ; @LISTSIZE
.comm _RUNE,8,3 ; @RUNE
.comm _Runeself,8,3 ; @Runeself
.comm _BOL,8,3 ; @BOL
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_regexec9.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _regsub9 ## -- Begin function regsub9
.p2align 4, 0x90
_regsub9: ## @regsub9
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movslq %edx, %rax
leaq (%rsi,%rax), %r10
decq %r10
jmp LBB0_1
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movb %dl, (%rsi)
incq %rsi
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movq %r9, %rdi
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
incq %rdi
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_18 Depth 2
## Child Loop BB0_25 Depth 2
movb (%rdi), %dl
cmpb $38, %dl
je LBB0_21
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpb $92, %dl
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
testb %dl, %dl
je LBB0_29
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movq %rdi, %r9
cmpq %r10, %rsi
jb LBB0_10
jmp LBB0_12
.p2align 4, 0x90
LBB0_21: ## in Loop: Header=BB0_1 Depth=1
testl %r8d, %r8d
jle LBB0_12
## %bb.22: ## in Loop: Header=BB0_1 Depth=1
testq %rcx, %rcx
je LBB0_12
## %bb.23: ## in Loop: Header=BB0_1 Depth=1
movq 8(%rcx), %rdx
testq %rdx, %rdx
je LBB0_12
## %bb.24: ## in Loop: Header=BB0_1 Depth=1
movq (%rcx), %rax
jmp LBB0_25
.p2align 4, 0x90
LBB0_28: ## in Loop: Header=BB0_25 Depth=2
incq %rdx
LBB0_25: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpq %rax, %rdx
jae LBB0_12
## %bb.26: ## in Loop: Header=BB0_25 Depth=2
cmpq %r10, %rsi
jae LBB0_28
## %bb.27: ## in Loop: Header=BB0_25 Depth=2
movzbl (%rdx), %eax
movb %al, (%rsi)
incq %rsi
movq (%rcx), %rax
jmp LBB0_28
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
leaq 1(%rdi), %r9
movb 1(%rdi), %dl
movsbl %dl, %r11d
leal -48(%r11), %eax
cmpl $10, %eax
jae LBB0_6
## %bb.13: ## in Loop: Header=BB0_1 Depth=1
testq %rcx, %rcx
je LBB0_11
## %bb.14: ## in Loop: Header=BB0_1 Depth=1
movq %rax, %rdi
shlq $4, %rdi
movq 8(%rcx,%rdi), %rdx
testq %rdx, %rdx
je LBB0_11
## %bb.15: ## in Loop: Header=BB0_1 Depth=1
cmpl %r8d, %eax
jge LBB0_11
## %bb.16: ## in Loop: Header=BB0_1 Depth=1
movq (%rcx,%rdi), %rax
cmpq %rax, %rdx
jae LBB0_11
## %bb.17: ## in Loop: Header=BB0_1 Depth=1
addq %rcx, %rdi
jmp LBB0_18
.p2align 4, 0x90
LBB0_20: ## in Loop: Header=BB0_18 Depth=2
incq %rdx
cmpq %rax, %rdx
jae LBB0_11
LBB0_18: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpq %r10, %rsi
jae LBB0_20
## %bb.19: ## in Loop: Header=BB0_18 Depth=2
movzbl (%rdx), %eax
movb %al, (%rsi)
incq %rsi
movq (%rdi), %rax
jmp LBB0_20
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
testl %r11d, %r11d
je LBB0_12
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
cmpl $92, %r11d
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movb $92, %dl
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
cmpq %r10, %rsi
jb LBB0_10
jmp LBB0_11
LBB0_29:
movb $0, (%rsi)
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 _regsub9 ; -- Begin function regsub9
.p2align 2
_regsub9: ; @regsub9
.cfi_startproc
; %bb.0:
add x8, x1, w2, sxtw
sub x8, x8, #1
b LBB0_5
LBB0_1: ; in Loop: Header=BB0_5 Depth=1
mov w10, #92
LBB0_2: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
LBB0_3: ; in Loop: Header=BB0_5 Depth=1
strb w10, [x1], #1
LBB0_4: ; in Loop: Header=BB0_5 Depth=1
add x0, x0, #1
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_23 Depth 2
; Child Loop BB0_14 Depth 2
ldrb w10, [x0]
cmp w10, #38
b.eq LBB0_9
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
cmp w10, #92
b.eq LBB0_17
; %bb.7: ; in Loop: Header=BB0_5 Depth=1
cbz w10, LBB0_35
; %bb.8: ; in Loop: Header=BB0_5 Depth=1
cmp x1, x8
b.lo LBB0_3
b LBB0_4
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
cmp w4, #1
b.lt LBB0_4
; %bb.10: ; in Loop: Header=BB0_5 Depth=1
cbz x3, LBB0_4
; %bb.11: ; in Loop: Header=BB0_5 Depth=1
ldr x9, [x3, #8]
cbz x9, LBB0_4
; %bb.12: ; in Loop: Header=BB0_5 Depth=1
ldr x10, [x3]
b LBB0_14
LBB0_13: ; in Loop: Header=BB0_14 Depth=2
add x9, x9, #1
LBB0_14: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
cmp x9, x10
b.hs LBB0_4
; %bb.15: ; in Loop: Header=BB0_14 Depth=2
cmp x1, x8
b.hs LBB0_13
; %bb.16: ; in Loop: Header=BB0_14 Depth=2
ldrb w10, [x9]
strb w10, [x1], #1
ldr x10, [x3]
b LBB0_13
LBB0_17: ; in Loop: Header=BB0_5 Depth=1
mov x9, x0
ldrsb w10, [x9, #1]!
sub w11, w10, #48
cmp w11, #10
b.hs LBB0_26
; %bb.18: ; in Loop: Header=BB0_5 Depth=1
cbz x3, LBB0_31
; %bb.19: ; in Loop: Header=BB0_5 Depth=1
add x10, x3, w11, uxtw #4
ldr x10, [x10, #8]
cmp x10, #0
ccmp w11, w4, #0, ne
b.ge LBB0_25
; %bb.20: ; in Loop: Header=BB0_5 Depth=1
add x11, x3, x11, lsl #4
ldr x12, [x11]
cmp x10, x12
b.lo LBB0_23
; %bb.21: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_22: ; in Loop: Header=BB0_23 Depth=2
add x10, x10, #1
cmp x10, x12
b.hs LBB0_30
LBB0_23: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
cmp x1, x8
b.hs LBB0_22
; %bb.24: ; in Loop: Header=BB0_23 Depth=2
ldrb w12, [x10]
strb w12, [x1], #1
ldr x12, [x11]
b LBB0_22
LBB0_25: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_26: ; in Loop: Header=BB0_5 Depth=1
cbz w10, LBB0_4
; %bb.27: ; in Loop: Header=BB0_5 Depth=1
cmp w10, #92
b.ne LBB0_32
; %bb.28: ; in Loop: Header=BB0_5 Depth=1
cmp x1, x8
b.lo LBB0_1
; %bb.29: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_30: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_31: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_32: ; in Loop: Header=BB0_5 Depth=1
cmp x1, x8
b.hs LBB0_34
; %bb.33: ; in Loop: Header=BB0_5 Depth=1
and w10, w10, #0xff
b LBB0_2
LBB0_34: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_35:
strb wzr, [x1]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_regsub9.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function rregexec1
_rregexec1: ## @rregexec1
.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 $88, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %r8, %rbx
movl %ecx, %r14d
movq %rsi, -96(%rbp) ## 8-byte Spill
movq %rdi, -112(%rbp) ## 8-byte Spill
movl (%r8), %r13d
movq %rdx, -80(%rbp) ## 8-byte Spill
testq %rdx, %rdx
je LBB0_3
## %bb.1:
testl %r14d, %r14d
jle LBB0_3
## %bb.2:
movl %r14d, %esi
shlq $4, %rsi
movq -80(%rbp), %rdi ## 8-byte Reload
callq ___bzero
LBB0_3:
movl %r14d, -48(%rbp) ## 4-byte Spill
movq 40(%rbx), %rax
movq (%rax), %rcx
movq $0, (%rcx)
movq 8(%rax), %rax
movq $0, (%rax)
movq 8(%rbx), %r15
xorl %eax, %eax
movq %rax, -88(%rbp) ## 8-byte Spill
leaq LJTI0_0(%rip), %r14
movl %r13d, %ecx
xorl %eax, %eax
movq %rbx, -104(%rbp) ## 8-byte Spill
LBB0_4: ## =>This Loop Header: Depth=1
## Child Loop BB0_19 Depth 2
## Child Loop BB0_23 Depth 3
## Child Loop BB0_44 Depth 3
## Child Loop BB0_35 Depth 3
testl %ecx, %ecx
movl %eax, -52(%rbp) ## 4-byte Spill
je LBB0_14
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movl 16(%rbx), %ecx
cmpl $136, %ecx
je LBB0_10
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
cmpl $128, %ecx
jne LBB0_14
## %bb.7: ## in Loop: Header=BB0_4 Depth=1
movsbl %r13b, %esi
movq %r15, %rdi
callq _runestrchr
testq %rax, %rax
je LBB0_9
## %bb.8: ## in Loop: Header=BB0_4 Depth=1
movq %rax, %r12
cmpq 24(%rbx), %rax
jne LBB0_15
jmp LBB0_9
.p2align 4, 0x90
LBB0_14: ## in Loop: Header=BB0_4 Depth=1
movq %r15, %r12
LBB0_15: ## in Loop: Header=BB0_4 Depth=1
movb (%r12), %al
movb %al, -41(%rbp) ## 1-byte Spill
movq 32(%rbx), %rax
movq 40(%rbx), %rcx
movq -88(%rbp), %rdx ## 8-byte Reload
movslq %edx, %rdx
movq (%rcx,%rdx,8), %r15
movq (%rax,%rdx,8), %rsi
movq %rsi, -120(%rbp) ## 8-byte Spill
xorl $1, %edx
movq %rdx, -88(%rbp) ## 8-byte Spill
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movq (%rax,%rdx,8), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movq %rcx, -64(%rbp) ## 8-byte Spill
movq $0, (%rcx)
movq -112(%rbp), %rax ## 8-byte Reload
movl (%rax), %esi
movq %r15, %rdi
movl -48(%rbp), %edx ## 4-byte Reload
movq %r12, %rcx
callq __rrenewemptythread
movq (%r15), %rbx
testq %rbx, %rbx
je LBB0_50
## %bb.16: ## in Loop: Header=BB0_4 Depth=1
movb -41(%rbp), %dl ## 1-byte Reload
jmp LBB0_19
.p2align 4, 0x90
LBB0_17: ## in Loop: Header=BB0_19 Depth=2
movq 40(%rbx), %rsi
movq -64(%rbp), %rdi ## 8-byte Reload
movl -48(%rbp), %edx ## 4-byte Reload
movq %r13, %rcx
callq __renewthread
movb -41(%rbp), %dl ## 1-byte Reload
cmpq -72(%rbp), %rax ## 8-byte Folded Reload
je LBB0_57
LBB0_18: ## in Loop: Header=BB0_19 Depth=2
movq 16(%r15), %rbx
addq $16, %r15
testq %rbx, %rbx
je LBB0_51
LBB0_19: ## Parent Loop BB0_4 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_23 Depth 3
## Child Loop BB0_44 Depth 3
## Child Loop BB0_35 Depth 3
leaq 8(%r15), %r13
jmp LBB0_23
LBB0_20: ## in Loop: Header=BB0_23 Depth=3
movq 8(%r15), %rax
movq 16(%rbx), %rcx
shlq $4, %rcx
addq %rcx, %rax
addq $8, %rax
LBB0_21: ## in Loop: Header=BB0_23 Depth=3
movq %r12, (%rax)
LBB0_22: ## in Loop: Header=BB0_23 Depth=3
movq 40(%rbx), %rbx
LBB0_23: ## Parent Loop BB0_4 Depth=1
## Parent Loop BB0_19 Depth=2
## => This Inner Loop Header: Depth=3
movl (%rbx), %eax
addl $-128, %eax
cmpl $10, %eax
ja LBB0_18
## %bb.24: ## in Loop: Header=BB0_23 Depth=3
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
LBB0_25: ## in Loop: Header=BB0_23 Depth=3
movq 16(%rbx), %rax
shlq $4, %rax
addq 8(%r15), %rax
jmp LBB0_21
LBB0_56: ## in Loop: Header=BB0_23 Depth=3
movq 24(%rbx), %rsi
movq %r15, %rdi
movl -48(%rbp), %edx ## 4-byte Reload
movq %r13, %rcx
callq __renewthread
movzbl -41(%rbp), %edx ## 1-byte Folded Reload
cmpq -120(%rbp), %rax ## 8-byte Folded Reload
jne LBB0_22
jmp LBB0_57
LBB0_26: ## in Loop: Header=BB0_23 Depth=3
movq -104(%rbp), %rax ## 8-byte Reload
cmpq 24(%rax), %r12
je LBB0_22
## %bb.27: ## in Loop: Header=BB0_23 Depth=3
testb %dl, %dl
je LBB0_22
## %bb.28: ## in Loop: Header=BB0_23 Depth=3
cmpb $10, %dl
je LBB0_22
jmp LBB0_18
LBB0_29: ## in Loop: Header=BB0_23 Depth=3
cmpq -96(%rbp), %r12 ## 8-byte Folded Reload
je LBB0_22
## %bb.30: ## in Loop: Header=BB0_23 Depth=3
cmpb $10, -1(%r12)
je LBB0_22
jmp LBB0_18
LBB0_31: ## in Loop: Header=BB0_19 Depth=2
cmpb %dl, 8(%rbx)
je LBB0_17
jmp LBB0_18
LBB0_33: ## in Loop: Header=BB0_19 Depth=2
movq 32(%rbx), %rcx
movq (%rcx), %rax
movq 8(%rcx), %rcx
jmp LBB0_35
.p2align 4, 0x90
LBB0_34: ## in Loop: Header=BB0_35 Depth=3
addq $2, %rcx
LBB0_35: ## Parent Loop BB0_4 Depth=1
## Parent Loop BB0_19 Depth=2
## => This Inner Loop Header: Depth=3
cmpq %rax, %rcx
jae LBB0_38
## %bb.36: ## in Loop: Header=BB0_35 Depth=3
cmpb (%rcx), %dl
jl LBB0_34
## %bb.37: ## in Loop: Header=BB0_35 Depth=3
cmpb 1(%rcx), %dl
jg LBB0_34
LBB0_38: ## in Loop: Header=BB0_19 Depth=2
cmpq %rax, %rcx
jne LBB0_18
jmp LBB0_17
LBB0_40: ## in Loop: Header=BB0_19 Depth=2
movq (%r13), %rax
movq %r12, (%rax)
movl $1, -52(%rbp) ## 4-byte Folded Spill
movq -80(%rbp), %rdi ## 8-byte Reload
testq %rdi, %rdi
je LBB0_18
## %bb.41: ## in Loop: Header=BB0_19 Depth=2
movl -48(%rbp), %esi ## 4-byte Reload
movq %r13, %rdx
callq __renewmatch
movb -41(%rbp), %dl ## 1-byte Reload
jmp LBB0_18
LBB0_42: ## in Loop: Header=BB0_19 Depth=2
movq 32(%rbx), %rcx
movq (%rcx), %rax
movq 8(%rcx), %rcx
jmp LBB0_44
.p2align 4, 0x90
LBB0_43: ## in Loop: Header=BB0_44 Depth=3
addq $2, %rcx
LBB0_44: ## Parent Loop BB0_4 Depth=1
## Parent Loop BB0_19 Depth=2
## => This Inner Loop Header: Depth=3
cmpq %rax, %rcx
jae LBB0_18
## %bb.45: ## in Loop: Header=BB0_44 Depth=3
cmpb (%rcx), %dl
jl LBB0_43
## %bb.46: ## in Loop: Header=BB0_44 Depth=3
cmpb 1(%rcx), %dl
jg LBB0_43
jmp LBB0_17
LBB0_48: ## in Loop: Header=BB0_19 Depth=2
cmpb $10, %dl
jne LBB0_17
jmp LBB0_18
.p2align 4, 0x90
LBB0_50: ## in Loop: Header=BB0_4 Depth=1
movb -41(%rbp), %dl ## 1-byte Reload
LBB0_51: ## in Loop: Header=BB0_4 Depth=1
movq -104(%rbp), %rbx ## 8-byte Reload
cmpq 24(%rbx), %r12
je LBB0_9
## %bb.52: ## in Loop: Header=BB0_4 Depth=1
movl (%rbx), %r13d
testl %r13d, %r13d
je LBB0_54
## %bb.53: ## in Loop: Header=BB0_4 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
cmpq $0, (%rax)
sete %al
jmp LBB0_55
.p2align 4, 0x90
LBB0_10: ## in Loop: Header=BB0_4 Depth=1
movq -96(%rbp), %rax ## 8-byte Reload
movq %rax, %r12
cmpq %rax, %r15
je LBB0_15
## %bb.11: ## in Loop: Header=BB0_4 Depth=1
movq %r15, %rdi
movl $10, %esi
callq _runestrchr
testq %rax, %rax
je LBB0_9
## %bb.12: ## in Loop: Header=BB0_4 Depth=1
cmpq 24(%rbx), %r15
je LBB0_9
## %bb.13: ## in Loop: Header=BB0_4 Depth=1
movq %rax, %r12
incq %r12
jmp LBB0_15
LBB0_54: ## in Loop: Header=BB0_4 Depth=1
xorl %eax, %eax
LBB0_55: ## in Loop: Header=BB0_4 Depth=1
movzbl %al, %ecx
incq %r12
movq %r12, %r15
testb %dl, %dl
movl -52(%rbp), %eax ## 4-byte Reload
jne LBB0_4
jmp LBB0_58
LBB0_57:
movl $-1, %eax
LBB0_58:
addq $88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_9:
movl -52(%rbp), %eax ## 4-byte Reload
jmp LBB0_58
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_56, LBB0_56-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_48, LBB0_48-LJTI0_0
LJTI0_0:
.long L0_0_set_31
.long L0_0_set_25
.long L0_0_set_56
.long L0_0_set_33
.long L0_0_set_20
.long L0_0_set_26
.long L0_0_set_40
.long L0_0_set_42
.long L0_0_set_29
.long L0_0_set_17
.long L0_0_set_48
.end_data_region
## -- End function
.no_dead_strip _rregexec1
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function rregexec1
_rregexec1: ; @rregexec1
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x28, x27, [sp, #48] ; 16-byte Folded Spill
stp x26, x25, [sp, #64] ; 16-byte Folded Spill
stp x24, x23, [sp, #80] ; 16-byte Folded Spill
stp x22, x21, [sp, #96] ; 16-byte Folded Spill
stp x20, x19, [sp, #112] ; 16-byte Folded Spill
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.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
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
mov x20, x4
mov x21, x3
mov x19, x2
mov x23, x1
str x0, [sp, #16] ; 8-byte Folded Spill
ldr w27, [x4]
cbz x2, LBB0_3
; %bb.1:
cmp w21, #1
b.lt LBB0_3
; %bb.2:
mov w8, w21
lsl x1, x8, #4
mov x0, x19
bl _bzero
LBB0_3:
str x19, [sp] ; 8-byte Folded Spill
mov w22, #0
mov w28, #0
ldr x8, [x20, #40]
ldp x9, x8, [x8]
str xzr, [x9]
str xzr, [x8]
ldr x26, [x20, #8]
Lloh0:
adrp x24, lJTI0_0@PAGE
Lloh1:
add x24, x24, lJTI0_0@PAGEOFF
mov x8, x27
LBB0_4: ; =>This Loop Header: Depth=1
; Child Loop BB0_16 Depth 2
; Child Loop BB0_20 Depth 3
; Child Loop BB0_39 Depth 3
; Child Loop BB0_30 Depth 3
cbz w8, LBB0_9
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [x20, #16]
cmp w8, #136
b.eq LBB0_43
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
cmp w8, #128
b.ne LBB0_9
; %bb.7: ; in Loop: Header=BB0_4 Depth=1
sxtb w1, w27
mov x0, x26
bl _runestrchr
cbz x0, LBB0_50
; %bb.8: ; in Loop: Header=BB0_4 Depth=1
mov x25, x0
ldr x8, [x20, #24]
cmp x0, x8
b.ne LBB0_10
b LBB0_50
LBB0_9: ; in Loop: Header=BB0_4 Depth=1
mov x25, x26
LBB0_10: ; in Loop: Header=BB0_4 Depth=1
str w28, [sp, #28] ; 4-byte Folded Spill
ldrb w19, [x25]
sxtw x8, w22
sbfiz x9, x22, #3, #32
ldp x11, x10, [x20, #32]
ldr x27, [x10, x9]
ldr x22, [x11, x9]
eor x8, x8, #0x1
str x8, [sp, #8] ; 8-byte Folded Spill
lsl x8, x8, #3
ldr x9, [x10, x8]
ldr x8, [x11, x8]
stp x8, x9, [sp, #32] ; 16-byte Folded Spill
str xzr, [x9]
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w1, [x8]
mov x0, x27
mov x2, x21
mov x3, x25
bl __rrenewemptythread
ldr x26, [x27]
cbnz x26, LBB0_16
LBB0_11: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x20, #24]
cmp x25, x8
b.eq LBB0_51
; %bb.12: ; in Loop: Header=BB0_4 Depth=1
ldr w27, [x20]
cbz w27, LBB0_47
; %bb.13: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x8, [x8]
cmp x8, #0
cset w8, eq
b LBB0_48
LBB0_14: ; in Loop: Header=BB0_16 Depth=2
ldr x1, [x26, #40]
ldr x0, [sp, #40] ; 8-byte Folded Reload
mov x2, x21
mov x3, x28
bl __renewthread
ldr x8, [sp, #32] ; 8-byte Folded Reload
cmp x0, x8
b.eq LBB0_49
LBB0_15: ; in Loop: Header=BB0_16 Depth=2
ldr x26, [x27, #16]!
cbz x26, LBB0_11
LBB0_16: ; Parent Loop BB0_4 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_20 Depth 3
; Child Loop BB0_39 Depth 3
; Child Loop BB0_30 Depth 3
add x28, x27, #8
b LBB0_20
LBB0_17: ; in Loop: Header=BB0_20 Depth=3
ldr x8, [x27, #8]
ldr x9, [x26, #16]
add x8, x8, x9, lsl #4
add x8, x8, #8
LBB0_18: ; in Loop: Header=BB0_20 Depth=3
str x25, [x8]
LBB0_19: ; in Loop: Header=BB0_20 Depth=3
ldr x26, [x26, #40]
LBB0_20: ; Parent Loop BB0_4 Depth=1
; Parent Loop BB0_16 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [x26]
sub w8, w8, #128
cmp w8, #10
b.hi LBB0_15
; %bb.21: ; in Loop: Header=BB0_20 Depth=3
adr x9, LBB0_14
ldrb w10, [x24, x8]
add x9, x9, x10, lsl #2
br x9
LBB0_22: ; in Loop: Header=BB0_20 Depth=3
ldr x8, [x27, #8]
ldr x9, [x26, #16]
add x8, x8, x9, lsl #4
b LBB0_18
LBB0_23: ; in Loop: Header=BB0_20 Depth=3
ldr x1, [x26, #24]
mov x0, x27
mov x2, x21
mov x3, x28
bl __renewthread
cmp x0, x22
b.ne LBB0_19
b LBB0_49
LBB0_24: ; in Loop: Header=BB0_20 Depth=3
ldr x8, [x20, #24]
cmp x25, x8
ccmp w19, #0, #4, ne
ccmp w19, #10, #4, ne
b.eq LBB0_19
b LBB0_15
LBB0_25: ; in Loop: Header=BB0_20 Depth=3
cmp x25, x23
b.eq LBB0_19
; %bb.26: ; in Loop: Header=BB0_20 Depth=3
ldurb w8, [x25, #-1]
cmp w8, #10
b.eq LBB0_19
b LBB0_15
LBB0_27: ; in Loop: Header=BB0_16 Depth=2
ldrb w8, [x26, #8]
cmp w8, w19
b.eq LBB0_14
b LBB0_15
LBB0_28: ; in Loop: Header=BB0_16 Depth=2
ldr x9, [x26, #32]
ldp x8, x9, [x9]
b LBB0_30
LBB0_29: ; in Loop: Header=BB0_30 Depth=3
add x9, x9, #2
LBB0_30: ; Parent Loop BB0_4 Depth=1
; Parent Loop BB0_16 Depth=2
; => This Inner Loop Header: Depth=3
cmp x9, x8
b.hs LBB0_33
; %bb.31: ; in Loop: Header=BB0_30 Depth=3
ldrsb w10, [x9]
cmp w10, w19, sxtb
b.gt LBB0_29
; %bb.32: ; in Loop: Header=BB0_30 Depth=3
ldrsb w10, [x9, #1]
cmp w10, w19, sxtb
b.lt LBB0_29
LBB0_33: ; in Loop: Header=BB0_16 Depth=2
cmp x9, x8
b.ne LBB0_15
b LBB0_14
LBB0_34: ; in Loop: Header=BB0_16 Depth=2
ldr x8, [x28]
str x25, [x8]
ldr x0, [sp] ; 8-byte Folded Reload
cbz x0, LBB0_36
; %bb.35: ; in Loop: Header=BB0_16 Depth=2
mov x1, x21
mov x2, x28
bl __renewmatch
LBB0_36: ; in Loop: Header=BB0_16 Depth=2
mov w8, #1
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB0_15
LBB0_37: ; in Loop: Header=BB0_16 Depth=2
ldr x9, [x26, #32]
ldp x8, x9, [x9]
b LBB0_39
LBB0_38: ; in Loop: Header=BB0_39 Depth=3
add x9, x9, #2
LBB0_39: ; Parent Loop BB0_4 Depth=1
; Parent Loop BB0_16 Depth=2
; => This Inner Loop Header: Depth=3
cmp x9, x8
b.hs LBB0_15
; %bb.40: ; in Loop: Header=BB0_39 Depth=3
ldrsb w10, [x9]
cmp w10, w19, sxtb
b.gt LBB0_38
; %bb.41: ; in Loop: Header=BB0_39 Depth=3
ldrsb w10, [x9, #1]
cmp w10, w19, sxtb
b.lt LBB0_38
b LBB0_14
LBB0_42: ; in Loop: Header=BB0_16 Depth=2
cmp w19, #10
b.ne LBB0_14
b LBB0_15
LBB0_43: ; in Loop: Header=BB0_4 Depth=1
mov x25, x23
cmp x26, x23
b.eq LBB0_10
; %bb.44: ; in Loop: Header=BB0_4 Depth=1
mov x0, x26
mov w1, #10
bl _runestrchr
cbz x0, LBB0_50
; %bb.45: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x20, #24]
cmp x26, x8
b.eq LBB0_50
; %bb.46: ; in Loop: Header=BB0_4 Depth=1
add x25, x0, #1
b LBB0_10
LBB0_47: ; in Loop: Header=BB0_4 Depth=1
mov w8, #0
LBB0_48: ; in Loop: Header=BB0_4 Depth=1
ldr w28, [sp, #28] ; 4-byte Folded Reload
add x26, x25, #1
ldr x22, [sp, #8] ; 8-byte Folded Reload
; kill: def $w22 killed $w22 killed $x22 def $x22
cbnz w19, LBB0_4
b LBB0_50
LBB0_49:
mov w28, #-1
LBB0_50:
mov x0, x28
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
ldp x20, x19, [sp, #112] ; 16-byte Folded Reload
ldp x22, x21, [sp, #96] ; 16-byte Folded Reload
ldp x24, x23, [sp, #80] ; 16-byte Folded Reload
ldp x26, x25, [sp, #64] ; 16-byte Folded Reload
ldp x28, x27, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #144
ret
LBB0_51:
ldr w28, [sp, #28] ; 4-byte Folded Reload
b LBB0_50
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_27-LBB0_14)>>2
.byte (LBB0_22-LBB0_14)>>2
.byte (LBB0_23-LBB0_14)>>2
.byte (LBB0_28-LBB0_14)>>2
.byte (LBB0_17-LBB0_14)>>2
.byte (LBB0_24-LBB0_14)>>2
.byte (LBB0_34-LBB0_14)>>2
.byte (LBB0_37-LBB0_14)>>2
.byte (LBB0_25-LBB0_14)>>2
.byte (LBB0_14-LBB0_14)>>2
.byte (LBB0_42-LBB0_14)>>2
; -- End function
.no_dead_strip _rregexec1
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_rregexec1.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function rregexec2
_rregexec2: ## @rregexec2
.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 $40, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %r8, %r12
movl %ecx, -52(%rbp) ## 4-byte Spill
movq %rdx, -72(%rbp) ## 8-byte Spill
movq %rsi, -64(%rbp) ## 8-byte Spill
movq %rdi, %r13
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq _LISTSIZE@GOTPCREL(%rip), %rax
movl (%rax), %eax
leal (%rax,%rax,4), %r14d
shlq $2, %r14
movq %r14, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r15
movq %r14, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %rbx
movq 8(%r12), %rax
movq %r15, (%rax)
movq 8(%r12), %rax
movq %rbx, 8(%rax)
movq %r15, %rdi
callq _nelem
cltq
leaq (%r15,%rax,4), %rax
addq $-8, %rax
movq (%r12), %rcx
movq %rax, (%rcx)
movq %rbx, %rdi
callq _nelem
cltq
leaq (%rbx,%rax,4), %rax
addq $-8, %rax
movq (%r12), %rcx
movq %rax, 8(%rcx)
movq %r13, %rdi
movq -64(%rbp), %rsi ## 8-byte Reload
movq -72(%rbp), %rdx ## 8-byte Reload
movl -52(%rbp), %ecx ## 4-byte Reload
movq %r12, %r8
callq _rregexec1
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_2
## %bb.1:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _LISTSIZE,4,2 ## @LISTSIZE
.no_dead_strip _rregexec2
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function rregexec2
_rregexec2: ; @rregexec2
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
.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
.cfi_offset w25, -72
.cfi_offset w26, -80
sub sp, sp, #16
mov x19, x4
mov x20, x3
mov x21, x2
mov x22, x1
mov x23, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-72]
Lloh3:
adrp x8, _LISTSIZE@GOTPAGE
Lloh4:
ldr x8, [x8, _LISTSIZE@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
add w8, w8, w8, lsl #2
lsl x8, x8, #2
mov x9, x8
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x10, x8, #15
and x12, x10, #0x7fffffff0
sub x24, x9, x12
mov sp, x24
mov x9, x8
Lloh8:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh9:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x8, sp
sub x25, x8, x12
mov sp, x25
ldr x8, [x4, #8]
str x24, [x8]
ldr x8, [x4, #8]
str x25, [x8, #8]
mov x0, x24
bl _nelem
add x8, x24, w0, sxtw #2
sub x8, x8, #8
ldr x9, [x19]
str x8, [x9]
mov x0, x25
bl _nelem
add x8, x25, w0, sxtw #2
sub x8, x8, #8
ldr x9, [x19]
str x8, [x9, #8]
mov x0, x23
mov x1, x22
mov x2, x21
mov x3, x20
mov x4, x19
bl _rregexec1
ldur x8, [x29, #-72]
Lloh10:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh11:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
sub sp, x29, #64
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
ldp x26, x25, [sp], #80 ; 16-byte Folded Reload
ret
LBB0_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _LISTSIZE,4,2 ; @LISTSIZE
.no_dead_strip _rregexec2
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_rregexec2.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _rregexec9 ## -- Begin function rregexec9
.p2align 4, 0x90
_rregexec9: ## @rregexec9
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
ud2
.cfi_endproc
## -- End function
.comm _LISTSIZE,4,2 ## @LISTSIZE
.comm _RUNE,8,3 ## @RUNE
.comm _Runeself,8,3 ## @Runeself
.comm _BOL,8,3 ## @BOL
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _rregexec9 ; -- Begin function rregexec9
.p2align 2
_rregexec9: ; @rregexec9
.cfi_startproc
; %bb.0:
brk #0x1
.cfi_endproc
; -- End function
.comm _LISTSIZE,4,2 ; @LISTSIZE
.comm _RUNE,8,3 ; @RUNE
.comm _Runeself,8,3 ; @Runeself
.comm _BOL,8,3 ; @BOL
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_rregexec9.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _rregsub9 ## -- Begin function rregsub9
.p2align 4, 0x90
_rregsub9: ## @rregsub9
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movslq %edx, %rax
leaq (%rsi,%rax), %r10
decq %r10
jmp LBB0_1
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movb %dl, (%rsi)
incq %rsi
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movq %r9, %rdi
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
incq %rdi
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_18 Depth 2
## Child Loop BB0_25 Depth 2
movb (%rdi), %dl
cmpb $38, %dl
je LBB0_21
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpb $92, %dl
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
testb %dl, %dl
je LBB0_29
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movq %rdi, %r9
cmpq %r10, %rsi
jb LBB0_10
jmp LBB0_12
.p2align 4, 0x90
LBB0_21: ## in Loop: Header=BB0_1 Depth=1
testl %r8d, %r8d
jle LBB0_12
## %bb.22: ## in Loop: Header=BB0_1 Depth=1
testq %rcx, %rcx
je LBB0_12
## %bb.23: ## in Loop: Header=BB0_1 Depth=1
movq 8(%rcx), %rdx
testq %rdx, %rdx
je LBB0_12
## %bb.24: ## in Loop: Header=BB0_1 Depth=1
movq (%rcx), %rax
jmp LBB0_25
.p2align 4, 0x90
LBB0_28: ## in Loop: Header=BB0_25 Depth=2
incq %rdx
LBB0_25: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpq %rax, %rdx
jae LBB0_12
## %bb.26: ## in Loop: Header=BB0_25 Depth=2
cmpq %r10, %rsi
jae LBB0_28
## %bb.27: ## in Loop: Header=BB0_25 Depth=2
movzbl (%rdx), %eax
movb %al, (%rsi)
incq %rsi
movq (%rcx), %rax
jmp LBB0_28
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
leaq 1(%rdi), %r9
movb 1(%rdi), %dl
movsbl %dl, %r11d
leal -48(%r11), %eax
cmpl $10, %eax
jae LBB0_6
## %bb.13: ## in Loop: Header=BB0_1 Depth=1
testq %rcx, %rcx
je LBB0_11
## %bb.14: ## in Loop: Header=BB0_1 Depth=1
movq %rax, %rdi
shlq $4, %rdi
movq 8(%rcx,%rdi), %rdx
testq %rdx, %rdx
je LBB0_11
## %bb.15: ## in Loop: Header=BB0_1 Depth=1
cmpl %r8d, %eax
jge LBB0_11
## %bb.16: ## in Loop: Header=BB0_1 Depth=1
movq (%rcx,%rdi), %rax
cmpq %rax, %rdx
jae LBB0_11
## %bb.17: ## in Loop: Header=BB0_1 Depth=1
addq %rcx, %rdi
jmp LBB0_18
.p2align 4, 0x90
LBB0_20: ## in Loop: Header=BB0_18 Depth=2
incq %rdx
cmpq %rax, %rdx
jae LBB0_11
LBB0_18: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpq %r10, %rsi
jae LBB0_20
## %bb.19: ## in Loop: Header=BB0_18 Depth=2
movzbl (%rdx), %eax
movb %al, (%rsi)
incq %rsi
movq (%rdi), %rax
jmp LBB0_20
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
testl %r11d, %r11d
je LBB0_12
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
cmpl $92, %r11d
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movb $92, %dl
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
cmpq %r10, %rsi
jb LBB0_10
jmp LBB0_11
LBB0_29:
movb $0, (%rsi)
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 _rregsub9 ; -- Begin function rregsub9
.p2align 2
_rregsub9: ; @rregsub9
.cfi_startproc
; %bb.0:
add x8, x1, w2, sxtw
sub x8, x8, #1
b LBB0_5
LBB0_1: ; in Loop: Header=BB0_5 Depth=1
mov w10, #92
LBB0_2: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
LBB0_3: ; in Loop: Header=BB0_5 Depth=1
strb w10, [x1], #1
LBB0_4: ; in Loop: Header=BB0_5 Depth=1
add x0, x0, #1
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_23 Depth 2
; Child Loop BB0_14 Depth 2
ldrb w10, [x0]
cmp w10, #38
b.eq LBB0_9
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
cmp w10, #92
b.eq LBB0_17
; %bb.7: ; in Loop: Header=BB0_5 Depth=1
cbz w10, LBB0_35
; %bb.8: ; in Loop: Header=BB0_5 Depth=1
cmp x1, x8
b.lo LBB0_3
b LBB0_4
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
cmp w4, #1
b.lt LBB0_4
; %bb.10: ; in Loop: Header=BB0_5 Depth=1
cbz x3, LBB0_4
; %bb.11: ; in Loop: Header=BB0_5 Depth=1
ldr x9, [x3, #8]
cbz x9, LBB0_4
; %bb.12: ; in Loop: Header=BB0_5 Depth=1
ldr x10, [x3]
b LBB0_14
LBB0_13: ; in Loop: Header=BB0_14 Depth=2
add x9, x9, #1
LBB0_14: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
cmp x9, x10
b.hs LBB0_4
; %bb.15: ; in Loop: Header=BB0_14 Depth=2
cmp x1, x8
b.hs LBB0_13
; %bb.16: ; in Loop: Header=BB0_14 Depth=2
ldrb w10, [x9]
strb w10, [x1], #1
ldr x10, [x3]
b LBB0_13
LBB0_17: ; in Loop: Header=BB0_5 Depth=1
mov x9, x0
ldrsb w10, [x9, #1]!
sub w11, w10, #48
cmp w11, #10
b.hs LBB0_26
; %bb.18: ; in Loop: Header=BB0_5 Depth=1
cbz x3, LBB0_31
; %bb.19: ; in Loop: Header=BB0_5 Depth=1
add x10, x3, w11, uxtw #4
ldr x10, [x10, #8]
cmp x10, #0
ccmp w11, w4, #0, ne
b.ge LBB0_25
; %bb.20: ; in Loop: Header=BB0_5 Depth=1
add x11, x3, x11, lsl #4
ldr x12, [x11]
cmp x10, x12
b.lo LBB0_23
; %bb.21: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_22: ; in Loop: Header=BB0_23 Depth=2
add x10, x10, #1
cmp x10, x12
b.hs LBB0_30
LBB0_23: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
cmp x1, x8
b.hs LBB0_22
; %bb.24: ; in Loop: Header=BB0_23 Depth=2
ldrb w12, [x10]
strb w12, [x1], #1
ldr x12, [x11]
b LBB0_22
LBB0_25: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_26: ; in Loop: Header=BB0_5 Depth=1
cbz w10, LBB0_4
; %bb.27: ; in Loop: Header=BB0_5 Depth=1
cmp w10, #92
b.ne LBB0_32
; %bb.28: ; in Loop: Header=BB0_5 Depth=1
cmp x1, x8
b.lo LBB0_1
; %bb.29: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_30: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_31: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_32: ; in Loop: Header=BB0_5 Depth=1
cmp x1, x8
b.hs LBB0_34
; %bb.33: ; in Loop: Header=BB0_5 Depth=1
and w10, w10, #0xff
b LBB0_2
LBB0_34: ; in Loop: Header=BB0_5 Depth=1
mov x0, x9
add x0, x9, #1
b LBB0_5
LBB0_35:
strb wzr, [x1]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_rregsub9.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _runestrchr ## -- Begin function runestrchr
.p2align 4, 0x90
_runestrchr: ## @runestrchr
.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
addq $-8, %rax
testq %rsi, %rsi
je LBB0_3
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq 8(%rax), %rcx
testq %rcx, %rcx
je LBB0_2
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
addq $8, %rax
cmpq %rsi, %rcx
jne LBB0_1
jmp LBB0_6
LBB0_3:
movq %rax, %rcx
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
leaq 8(%rcx), %rax
cmpq $0, 8(%rcx)
movq %rax, %rcx
jne LBB0_4
LBB0_6:
popq %rbp
retq
LBB0_2:
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 _runestrchr ; -- Begin function runestrchr
.p2align 2
_runestrchr: ; @runestrchr
.cfi_startproc
; %bb.0:
sub x0, x0, #8
cbz x1, LBB0_3
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [x0, #8]
cbz x8, LBB0_5
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
add x0, x0, #8
cmp x8, x1
b.ne LBB0_1
b LBB0_4
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [x0, #8]!
cbnz x8, LBB0_3
LBB0_4:
ret
LBB0_5:
mov x0, #0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_runestrchr.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _utfrune ## -- Begin function utfrune
.p2align 4, 0x90
_utfrune: ## @utfrune
.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
subq $16, %rsp
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r14
movq %rdi, %rbx
movq _Runesync@GOTPCREL(%rip), %rax
cmpq %rsi, (%rax)
jle LBB0_1
## %bb.10:
movq %rbx, %rdi
movq %r14, %rsi
addq $16, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp _strchr ## TAILCALL
LBB0_1:
movq _Runeself@GOTPCREL(%rip), %r12
leaq -40(%rbp), %r15
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq (%rbx), %rcx
cmpq (%r12), %rcx
jge LBB0_8
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
testq %rcx, %rcx
je LBB0_4
## %bb.6: ## in Loop: Header=BB0_2 Depth=1
movl $1, %eax
cmpq %r14, %rcx
je LBB0_5
## %bb.7: ## in Loop: Header=BB0_2 Depth=1
addq %rax, %rbx
jmp LBB0_2
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_2 Depth=1
movq %r15, %rdi
movq %rbx, %rsi
callq _chartorune
cmpq %r14, -40(%rbp)
je LBB0_5
## %bb.9: ## in Loop: Header=BB0_2 Depth=1
cltq
addq %rax, %rbx
jmp LBB0_2
LBB0_4:
xorl %ebx, %ebx
LBB0_5:
movq %rbx, %rax
addq $16, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _Runesync,8,3 ## @Runesync
.comm _Runeself,8,3 ## @Runeself
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _utfrune ; -- Begin function utfrune
.p2align 2
_utfrune: ; @utfrune
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.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 x20, x1
mov x19, x0
Lloh0:
adrp x8, _Runesync@GOTPAGE
Lloh1:
ldr x8, [x8, _Runesync@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
cmp x8, x1
b.le LBB0_2
; %bb.1:
mov x0, x19
mov x1, x20
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #64
b _strchr
LBB0_2:
Lloh3:
adrp x21, _Runeself@GOTPAGE
Lloh4:
ldr x21, [x21, _Runeself@GOTPAGEOFF]
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19]
ldr x9, [x21]
cmp x8, x9
b.ge LBB0_7
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
cbz x8, LBB0_9
; %bb.5: ; in Loop: Header=BB0_3 Depth=1
cmp x8, x20
b.eq LBB0_10
; %bb.6: ; in Loop: Header=BB0_3 Depth=1
mov w8, #1
add x19, x19, x8
b LBB0_3
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
add x0, sp, #8
mov x1, x19
bl _chartorune
; kill: def $w0 killed $w0 def $x0
ldr x8, [sp, #8]
cmp x8, x20
b.eq LBB0_10
; %bb.8: ; in Loop: Header=BB0_3 Depth=1
sxtw x8, w0
add x19, x19, x8
b LBB0_3
LBB0_9:
mov x19, #0
LBB0_10:
mov x0, x19
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #64
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _Runesync,8,3 ; @Runesync
.comm _Runeself,8,3 ; @Runeself
.subsections_via_symbols
| AnghaBench/Cello/benchmarks/ext/extr_regexp9.c_utfrune.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.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), %rdi
callq _println
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Cello World!"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.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 x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _println
mov w0, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Cello World!"
.subsections_via_symbols
| AnghaBench/Cello/examples/extr_cello_world.c_main.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _Range@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _help
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _Range,4,2 ## @Range
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.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, _Range@GOTPAGE
Lloh1:
ldr x8, [x8, _Range@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
bl _help
mov w0, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _Range,4,2 ; @Range
.subsections_via_symbols
| AnghaBench/Cello/examples/extr_help.c_main.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ExampleType_Cmp
_ExampleType_Cmp: ## @ExampleType_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 %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rsi, %rax
movq %rdi, %rbx
movq _ExampleType@GOTPCREL(%rip), %rcx
movl (%rcx), %esi
movq %rax, %rdi
callq _cast
movl (%rbx), %ecx
subl (%rax), %ecx
movl %ecx, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ExampleType,4,2 ## @ExampleType
.no_dead_strip _ExampleType_Cmp
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ExampleType_Cmp
_ExampleType_Cmp: ; @ExampleType_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, _ExampleType@GOTPAGE
Lloh1:
ldr x9, [x9, _ExampleType@GOTPAGEOFF]
Lloh2:
ldr w1, [x9]
mov x0, x8
bl _cast
ldr w8, [x19]
ldr w9, [x0]
sub w0, w8, w9
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 _ExampleType,4,2 ; @ExampleType
.no_dead_strip _ExampleType_Cmp
.subsections_via_symbols
| AnghaBench/Cello/examples/extr_newtype.c_ExampleType_Cmp.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Alloc_Brief
_Alloc_Brief: ## @Alloc_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 "Memory Allocation"
.no_dead_strip _Alloc_Brief
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Alloc_Brief
_Alloc_Brief: ; @Alloc_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 "Memory Allocation"
.no_dead_strip _Alloc_Brief
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Alloc_Brief.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Alloc_Definition
_Alloc_Definition: ## @Alloc_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 Alloc {\n var (*alloc)(void);\n void (*dealloc)(var);\n};"
.no_dead_strip _Alloc_Definition
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Alloc_Definition
_Alloc_Definition: ; @Alloc_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 Alloc {\n var (*alloc)(void);\n void (*dealloc)(var);\n};"
.no_dead_strip _Alloc_Definition
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Alloc_Definition.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Alloc_Description
_Alloc_Description: ## @Alloc_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 `Alloc` class can be used to override how memory is allocated for a given data type. By default memory is allocated using `calloc` along with the `Size` class to determine the amount of memory to allocate.\n\nA custom allocator should be careful to also initialise the header for the allocated memory using the function `header_init`. Cello objects without a header wont be recognised as such as so will throw errors when used with Cello functions.\n\nAllocated memory is automatically registered with the garbage collector unless the functions `alloc_raw` and `dealloc_raw` are used."
.no_dead_strip _Alloc_Description
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Alloc_Description
_Alloc_Description: ; @Alloc_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 `Alloc` class can be used to override how memory is allocated for a given data type. By default memory is allocated using `calloc` along with the `Size` class to determine the amount of memory to allocate.\n\nA custom allocator should be careful to also initialise the header for the allocated memory using the function `header_init`. Cello objects without a header wont be recognised as such as so will throw errors when used with Cello functions.\n\nAllocated memory is automatically registered with the garbage collector unless the functions `alloc_raw` and `dealloc_raw` are used."
.no_dead_strip _Alloc_Description
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Alloc_Description.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Alloc_Examples
_Alloc_Examples: ## @Alloc_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 _Alloc_Examples.examples(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @Alloc_Examples.examples
_Alloc_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 "/* Allocation deallocated by Garbage Collector */\nvar x = alloc(Int);\nconstruct(x, $I(10));\n"
L_.str.2: ## @.str.2
.asciz "Avoid Garbage Collection"
L_.str.3: ## @.str.3
.asciz "/* Allocation must be manually deallocated */\nvar x = alloc_raw(Int);\nconstruct(x, $I(10));\ndestruct(x);\ndealloc_raw(x);\n"
.no_dead_strip _Alloc_Examples
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Alloc_Examples
_Alloc_Examples: ; @Alloc_Examples
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _Alloc_Examples.examples@PAGE
Lloh1:
add x0, x0, _Alloc_Examples.examples@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @Alloc_Examples.examples
_Alloc_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 "/* Allocation deallocated by Garbage Collector */\nvar x = alloc(Int);\nconstruct(x, $I(10));\n"
l_.str.2: ; @.str.2
.asciz "Avoid Garbage Collection"
l_.str.3: ; @.str.3
.asciz "/* Allocation must be manually deallocated */\nvar x = alloc_raw(Int);\nconstruct(x, $I(10));\ndestruct(x);\ndealloc_raw(x);\n"
.no_dead_strip _Alloc_Examples
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Alloc_Examples.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Alloc_Methods
_Alloc_Methods: ## @Alloc_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 _Alloc_Methods.methods(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @Alloc_Methods.methods
_Alloc_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
.space 24
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "$"
L_.str.1: ## @.str.1
.asciz "#define $(T, ...)\n#define $I(X)\n#define $F(X)\n#define $S(X)\n#define $R(X)\n#define $B(X)"
L_.str.2: ## @.str.2
.asciz "Allocate memory for the given type `T` on the stack and copy in the given arguments `...` as struct members. Shorthand constructors exist for native types:\n\n* `$I -> Int` `$F -> Float` `$S -> String`\n* `$R -> Ref` `$B -> Box`\n\n"
L_.str.3: ## @.str.3
.asciz "alloc"
L_.str.4: ## @.str.4
.asciz "#define alloc_stack(T)\nvar alloc(var type);\nvar alloc_raw(var type);\nvar alloc_root(var type);"
L_.str.5: ## @.str.5
.asciz "Allocate memory for a given `type`. To avoid the Garbage Collector completely use `alloc_raw`, to register the allocation as a root use `alloc_root`. In the case of raw or root allocations the corresponding `dealloc` function should be used when done. Memory allocated with `alloc_stack` is not managed by the Garbage Collector."
L_.str.6: ## @.str.6
.asciz "dealloc"
L_.str.7: ## @.str.7
.asciz "void dealloc(var self);\nvoid dealloc_raw(var self);\nvoid dealloc_root(var self);"
L_.str.8: ## @.str.8
.asciz "Deallocate memory for object `self` manually. If registered with the Garbage Collector then entry will be removed. If the `raw` variation is used memory will be deallocated without going via the Garbage Collector."
.no_dead_strip _Alloc_Methods
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Alloc_Methods
_Alloc_Methods: ; @Alloc_Methods
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _Alloc_Methods.methods@PAGE
Lloh1:
add x0, x0, _Alloc_Methods.methods@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @Alloc_Methods.methods
_Alloc_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
.space 24
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "$"
l_.str.1: ; @.str.1
.asciz "#define $(T, ...)\n#define $I(X)\n#define $F(X)\n#define $S(X)\n#define $R(X)\n#define $B(X)"
l_.str.2: ; @.str.2
.asciz "Allocate memory for the given type `T` on the stack and copy in the given arguments `...` as struct members. Shorthand constructors exist for native types:\n\n* `$I -> Int` `$F -> Float` `$S -> String`\n* `$R -> Ref` `$B -> Box`\n\n"
l_.str.3: ; @.str.3
.asciz "alloc"
l_.str.4: ; @.str.4
.asciz "#define alloc_stack(T)\nvar alloc(var type);\nvar alloc_raw(var type);\nvar alloc_root(var type);"
l_.str.5: ; @.str.5
.asciz "Allocate memory for a given `type`. To avoid the Garbage Collector completely use `alloc_raw`, to register the allocation as a root use `alloc_root`. In the case of raw or root allocations the corresponding `dealloc` function should be used when done. Memory allocated with `alloc_stack` is not managed by the Garbage Collector."
l_.str.6: ; @.str.6
.asciz "dealloc"
l_.str.7: ; @.str.7
.asciz "void dealloc(var self);\nvoid dealloc_raw(var self);\nvoid dealloc_root(var self);"
l_.str.8: ; @.str.8
.asciz "Deallocate memory for object `self` manually. If registered with the Garbage Collector then entry will be removed. If the `raw` variation is used memory will be deallocated without going via the Garbage Collector."
.no_dead_strip _Alloc_Methods
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Alloc_Methods.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Alloc_Name
_Alloc_Name: ## @Alloc_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 "Alloc"
.no_dead_strip _Alloc_Name
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Alloc_Name
_Alloc_Name: ; @Alloc_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 "Alloc"
.no_dead_strip _Alloc_Name
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Alloc_Name.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Copy_Brief
_Copy_Brief: ## @Copy_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 "Copyable"
.no_dead_strip _Copy_Brief
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Copy_Brief
_Copy_Brief: ; @Copy_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 "Copyable"
.no_dead_strip _Copy_Brief
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Copy_Brief.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Copy_Definition
_Copy_Definition: ## @Copy_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 Copy {\n var (*copy)(var);\n};\n"
.no_dead_strip _Copy_Definition
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Copy_Definition
_Copy_Definition: ; @Copy_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 Copy {\n var (*copy)(var);\n};\n"
.no_dead_strip _Copy_Definition
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Copy_Definition.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Copy_Description
_Copy_Description: ## @Copy_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 `Copy` class can be used to override the behaviour of an object when a copy is made of it. By default the `Copy` class allocates a new empty object of the same type and uses the `Assign` class to set the contents. The copy is then registered with the Garbage Collector as if it had been constructed with `new`. This means when using manual memory management a copy must be deleted manually.\n\nIf the `copy` class is overridden then the implementer may manually have to register the object with the Garbage Collector if they wish for it to be tracked.\n\nBy convention `copy` follows the semantics of `Assign`, which typically means a _deep copy_ should be made, and that an object will create a copy of all of the sub-objects it references or contains - although this could vary depending on the type's overridden behaviours."
.no_dead_strip _Copy_Description
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Copy_Description
_Copy_Description: ; @Copy_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 `Copy` class can be used to override the behaviour of an object when a copy is made of it. By default the `Copy` class allocates a new empty object of the same type and uses the `Assign` class to set the contents. The copy is then registered with the Garbage Collector as if it had been constructed with `new`. This means when using manual memory management a copy must be deleted manually.\n\nIf the `copy` class is overridden then the implementer may manually have to register the object with the Garbage Collector if they wish for it to be tracked.\n\nBy convention `copy` follows the semantics of `Assign`, which typically means a _deep copy_ should be made, and that an object will create a copy of all of the sub-objects it references or contains - although this could vary depending on the type's overridden behaviours."
.no_dead_strip _Copy_Description
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Copy_Description.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Copy_Examples
_Copy_Examples: ## @Copy_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 _Copy_Examples.examples(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @Copy_Examples.examples
_Copy_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 = new(String, $S(\"Hello\"));\nvar y = copy(x);\nshow(x); /* Hello */\nshow(y); /* Hello */\nshow($I(eq(x, y))); /* 1 */\nshow($I(x is y)); /* 0 */\n"
.no_dead_strip _Copy_Examples
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Copy_Examples
_Copy_Examples: ; @Copy_Examples
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _Copy_Examples.examples@PAGE
Lloh1:
add x0, x0, _Copy_Examples.examples@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @Copy_Examples.examples
_Copy_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 = new(String, $S(\"Hello\"));\nvar y = copy(x);\nshow(x); /* Hello */\nshow(y); /* Hello */\nshow($I(eq(x, y))); /* 1 */\nshow($I(x is y)); /* 0 */\n"
.no_dead_strip _Copy_Examples
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Copy_Examples.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Copy_Methods
_Copy_Methods: ## @Copy_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 _Copy_Methods.methods(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @Copy_Methods.methods
_Copy_Methods.methods:
.quad L_.str
.quad L_.str.1
.quad L_.str.2
.space 24
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "copy"
L_.str.1: ## @.str.1
.asciz "var copy(var self);"
L_.str.2: ## @.str.2
.asciz "Make a copy of the object `self`."
.no_dead_strip _Copy_Methods
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Copy_Methods
_Copy_Methods: ; @Copy_Methods
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _Copy_Methods.methods@PAGE
Lloh1:
add x0, x0, _Copy_Methods.methods@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @Copy_Methods.methods
_Copy_Methods.methods:
.quad l_.str
.quad l_.str.1
.quad l_.str.2
.space 24
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "copy"
l_.str.1: ; @.str.1
.asciz "var copy(var self);"
l_.str.2: ; @.str.2
.asciz "Make a copy of the object `self`."
.no_dead_strip _Copy_Methods
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Copy_Methods.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Copy_Name
_Copy_Name: ## @Copy_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 "Copy"
.no_dead_strip _Copy_Name
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Copy_Name
_Copy_Name: ; @Copy_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 "Copy"
.no_dead_strip _Copy_Name
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_Copy_Name.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function New_Brief
_New_Brief: ## @New_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 "Construction and Destruction"
.no_dead_strip _New_Brief
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function New_Brief
_New_Brief: ; @New_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 "Construction and Destruction"
.no_dead_strip _New_Brief
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_New_Brief.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function New_Definition
_New_Definition: ## @New_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 New {\n void (*construct_with)(var, var);\n void (*destruct)(var);\n};\n"
.no_dead_strip _New_Definition
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function New_Definition
_New_Definition: ; @New_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 New {\n void (*construct_with)(var, var);\n void (*destruct)(var);\n};\n"
.no_dead_strip _New_Definition
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_New_Definition.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function New_Description
_New_Description: ## @New_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 `New` class allows the user to define constructors and destructors for a type, accessible via `new` and `del`. Objects allocated with `new` are allocated on the heap and also registered with the Garbage Collector this means technically it isn't required to call `del` on them as they will be cleaned up at a later date.\n\nThe `new_root` function can be called to register a variable with the Garbage Collector but to indicate that it will be manually destructed with `del_root` by the user. This should be used for variables that wont be reachable by the Garbage Collector such as those in the data segment or only accessible via vanilla C structures.\n\nThe `new_raw` and `del_raw` functions can be called to construct and destruct objects without going via the Garbage Collector.\n\nIt is also possible to simply call the `construct` and `destruct` functions if you wish to construct an already allocated object.\n\nConstructors should assume that memory is zero'd for an object but nothing else."
.no_dead_strip _New_Description
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function New_Description
_New_Description: ; @New_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 `New` class allows the user to define constructors and destructors for a type, accessible via `new` and `del`. Objects allocated with `new` are allocated on the heap and also registered with the Garbage Collector this means technically it isn't required to call `del` on them as they will be cleaned up at a later date.\n\nThe `new_root` function can be called to register a variable with the Garbage Collector but to indicate that it will be manually destructed with `del_root` by the user. This should be used for variables that wont be reachable by the Garbage Collector such as those in the data segment or only accessible via vanilla C structures.\n\nThe `new_raw` and `del_raw` functions can be called to construct and destruct objects without going via the Garbage Collector.\n\nIt is also possible to simply call the `construct` and `destruct` functions if you wish to construct an already allocated object.\n\nConstructors should assume that memory is zero'd for an object but nothing else."
.no_dead_strip _New_Description
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_New_Description.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function New_Examples
_New_Examples: ## @New_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 _New_Examples.examples(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @New_Examples.examples
_New_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 = new(Int, $I(1));\nshow(x); /* 1 */\nshow(type_of(x)); /* Int */\n\nvar y = alloc(Float);\nconstruct(y, $F(1.0));\nshow(y); /* 1.0 */\ndestruct(y);\n"
.no_dead_strip _New_Examples
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function New_Examples
_New_Examples: ; @New_Examples
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _New_Examples.examples@PAGE
Lloh1:
add x0, x0, _New_Examples.examples@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @New_Examples.examples
_New_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 = new(Int, $I(1));\nshow(x); /* 1 */\nshow(type_of(x)); /* Int */\n\nvar y = alloc(Float);\nconstruct(y, $F(1.0));\nshow(y); /* 1.0 */\ndestruct(y);\n"
.no_dead_strip _New_Examples
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_New_Examples.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function New_Methods
_New_Methods: ## @New_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 _New_Methods.methods(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @New_Methods.methods
_New_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
.space 24
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "new"
L_.str.1: ## @.str.1
.asciz "#define new(T, ...)\n#define new_raw(T, ...)\n#define new_root(T, ...)\nvar new_with(var type, var args);\nvar new_raw_with(var type, var args);\nvar new_root_with(var type, var args);"
L_.str.2: ## @.str.2
.asciz "Construct a new object of a given `type`. Use `new_raw` to avoid the Garbage Collector completely, and `new_root` to register the allocation as a Garbage Collection root. In the case of raw and root allocations they must be destructed with the corresponding deletion functions."
L_.str.3: ## @.str.3
.asciz "del"
L_.str.4: ## @.str.4
.asciz "void del(var self);\nvoid del_raw(var self);\nvoid del_root(var self);"
L_.str.5: ## @.str.5
.asciz "Destruct the object `self` manually. If registered with the Garbage Collector then entry will be removed. If `del_raw` is used thenthe destruction will be done without going via the Garbage Collector."
L_.str.6: ## @.str.6
.asciz "construct"
L_.str.7: ## @.str.7
.asciz "#define construct(self, ...)\nvar construct_with(var self, var args);"
L_.str.8: ## @.str.8
.asciz "Call the constructor on object `self` which has already been allocated."
L_.str.9: ## @.str.9
.asciz "destruct"
L_.str.10: ## @.str.10
.asciz "var destruct(var self);"
L_.str.11: ## @.str.11
.asciz "Call the destructor on object `self` without deallocating the memory for it."
.no_dead_strip _New_Methods
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function New_Methods
_New_Methods: ; @New_Methods
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _New_Methods.methods@PAGE
Lloh1:
add x0, x0, _New_Methods.methods@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @New_Methods.methods
_New_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
.space 24
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "new"
l_.str.1: ; @.str.1
.asciz "#define new(T, ...)\n#define new_raw(T, ...)\n#define new_root(T, ...)\nvar new_with(var type, var args);\nvar new_raw_with(var type, var args);\nvar new_root_with(var type, var args);"
l_.str.2: ; @.str.2
.asciz "Construct a new object of a given `type`. Use `new_raw` to avoid the Garbage Collector completely, and `new_root` to register the allocation as a Garbage Collection root. In the case of raw and root allocations they must be destructed with the corresponding deletion functions."
l_.str.3: ; @.str.3
.asciz "del"
l_.str.4: ; @.str.4
.asciz "void del(var self);\nvoid del_raw(var self);\nvoid del_root(var self);"
l_.str.5: ; @.str.5
.asciz "Destruct the object `self` manually. If registered with the Garbage Collector then entry will be removed. If `del_raw` is used thenthe destruction will be done without going via the Garbage Collector."
l_.str.6: ; @.str.6
.asciz "construct"
l_.str.7: ; @.str.7
.asciz "#define construct(self, ...)\nvar construct_with(var self, var args);"
l_.str.8: ; @.str.8
.asciz "Call the constructor on object `self` which has already been allocated."
l_.str.9: ; @.str.9
.asciz "destruct"
l_.str.10: ; @.str.10
.asciz "var destruct(var self);"
l_.str.11: ; @.str.11
.asciz "Call the destructor on object `self` without deallocating the memory for it."
.no_dead_strip _New_Methods
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_New_Methods.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function New_Name
_New_Name: ## @New_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 "New"
.no_dead_strip _New_Name
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function New_Name
_New_Name: ; @New_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 "New"
.no_dead_strip _New_Name
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_New_Name.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _alloc ## -- Begin function alloc
.p2align 4, 0x90
_alloc: ## @alloc
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _ALLOC_STANDARD@GOTPCREL(%rip), %rax
movl (%rax), %esi
popq %rbp
jmp _alloc_by ## TAILCALL
.cfi_endproc
## -- End function
.comm _ALLOC_STANDARD,4,2 ## @ALLOC_STANDARD
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _alloc ; -- Begin function alloc
.p2align 2
_alloc: ; @alloc
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _ALLOC_STANDARD@GOTPAGE
Lloh1:
ldr x8, [x8, _ALLOC_STANDARD@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
b _alloc_by
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ALLOC_STANDARD,4,2 ; @ALLOC_STANDARD
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_alloc.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _alloc_raw ## -- Begin function alloc_raw
.p2align 4, 0x90
_alloc_raw: ## @alloc_raw
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _ALLOC_RAW@GOTPCREL(%rip), %rax
movl (%rax), %esi
popq %rbp
jmp _alloc_by ## TAILCALL
.cfi_endproc
## -- End function
.comm _ALLOC_RAW,4,2 ## @ALLOC_RAW
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _alloc_raw ; -- Begin function alloc_raw
.p2align 2
_alloc_raw: ; @alloc_raw
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _ALLOC_RAW@GOTPAGE
Lloh1:
ldr x8, [x8, _ALLOC_RAW@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
b _alloc_by
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ALLOC_RAW,4,2 ; @ALLOC_RAW
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_alloc_raw.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _alloc_root ## -- Begin function alloc_root
.p2align 4, 0x90
_alloc_root: ## @alloc_root
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _ALLOC_ROOT@GOTPCREL(%rip), %rax
movl (%rax), %esi
popq %rbp
jmp _alloc_by ## TAILCALL
.cfi_endproc
## -- End function
.comm _ALLOC_ROOT,4,2 ## @ALLOC_ROOT
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _alloc_root ; -- Begin function alloc_root
.p2align 2
_alloc_root: ; @alloc_root
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _ALLOC_ROOT@GOTPAGE
Lloh1:
ldr x8, [x8, _ALLOC_ROOT@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
b _alloc_by
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ALLOC_ROOT,4,2 ; @ALLOC_ROOT
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_alloc_root.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dealloc_raw ## -- Begin function dealloc_raw
.p2align 4, 0x90
_dealloc_raw: ## @dealloc_raw
.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 _dealloc ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dealloc_raw ; -- Begin function dealloc_raw
.p2align 2
_dealloc_raw: ; @dealloc_raw
.cfi_startproc
; %bb.0:
b _dealloc
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_dealloc_raw.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dealloc_root ## -- Begin function dealloc_root
.p2align 4, 0x90
_dealloc_root: ## @dealloc_root
.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 _dealloc ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dealloc_root ; -- Begin function dealloc_root
.p2align 2
_dealloc_root: ; @dealloc_root
.cfi_startproc
; %bb.0:
b _dealloc
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_dealloc_root.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _del ## -- Begin function del
.p2align 4, 0x90
_del: ## @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 _ALLOC_STANDARD@GOTPCREL(%rip), %rax
movl (%rax), %esi
popq %rbp
jmp _del_by ## TAILCALL
.cfi_endproc
## -- End function
.comm _ALLOC_STANDARD,4,2 ## @ALLOC_STANDARD
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _del ; -- Begin function del
.p2align 2
_del: ; @del
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _ALLOC_STANDARD@GOTPAGE
Lloh1:
ldr x8, [x8, _ALLOC_STANDARD@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
b _del_by
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ALLOC_STANDARD,4,2 ; @ALLOC_STANDARD
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_del.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function del_by
_del_by: ## @del_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 %rbx
pushq %rax
.cfi_offset %rbx, -24
movl %edi, %ebx
andl $-2, %esi
cmpl $128, %esi
jne LBB0_2
## %bb.1:
movq _GC@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _current
movl %eax, %edi
movl %ebx, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _rem ## TAILCALL
LBB0_2:
movl %ebx, %edi
callq _destruct
movl %eax, %edi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _dealloc ## TAILCALL
.cfi_endproc
## -- End function
.comm _GC,4,2 ## @GC
.no_dead_strip _del_by
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function del_by
_del_by: ; @del_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, x0
and w8, w1, #0xfffffffe
cmp w8, #128
b.ne LBB0_2
; %bb.1:
Lloh0:
adrp x8, _GC@GOTPAGE
Lloh1:
ldr x8, [x8, _GC@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
bl _current
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _rem
LBB0_2:
mov x0, x19
bl _destruct
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _dealloc
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _GC,4,2 ; @GC
.no_dead_strip _del_by
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_del_by.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _del_raw ## -- Begin function del_raw
.p2align 4, 0x90
_del_raw: ## @del_raw
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _ALLOC_RAW@GOTPCREL(%rip), %rax
movl (%rax), %esi
popq %rbp
jmp _del_by ## TAILCALL
.cfi_endproc
## -- End function
.comm _ALLOC_RAW,4,2 ## @ALLOC_RAW
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _del_raw ; -- Begin function del_raw
.p2align 2
_del_raw: ; @del_raw
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _ALLOC_RAW@GOTPAGE
Lloh1:
ldr x8, [x8, _ALLOC_RAW@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
b _del_by
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ALLOC_RAW,4,2 ; @ALLOC_RAW
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_del_raw.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _del_root ## -- Begin function del_root
.p2align 4, 0x90
_del_root: ## @del_root
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _ALLOC_ROOT@GOTPCREL(%rip), %rax
movl (%rax), %esi
popq %rbp
jmp _del_by ## TAILCALL
.cfi_endproc
## -- End function
.comm _ALLOC_ROOT,4,2 ## @ALLOC_ROOT
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _del_root ; -- Begin function del_root
.p2align 2
_del_root: ; @del_root
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _ALLOC_ROOT@GOTPAGE
Lloh1:
ldr x8, [x8, _ALLOC_ROOT@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
b _del_by
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ALLOC_ROOT,4,2 ; @ALLOC_ROOT
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_del_root.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _header ## -- Begin function header
.p2align 4, 0x90
_header: ## @header
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq -4(%rdi), %rax
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 _header ; -- Begin function header
.p2align 2
_header: ; @header
.cfi_startproc
; %bb.0:
sub x0, x0, #4
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_header.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _new_raw_with ## -- Begin function new_raw_with
.p2align 4, 0x90
_new_raw_with: ## @new_raw_with
.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 _alloc_raw
movl %eax, %edi
movl %ebx, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _construct_with ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _new_raw_with ; -- Begin function new_raw_with
.p2align 2
_new_raw_with: ; @new_raw_with
.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 _alloc_raw
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _construct_with
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_new_raw_with.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _new_root_with ## -- Begin function new_root_with
.p2align 4, 0x90
_new_root_with: ## @new_root_with
.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 _alloc_root
movl %eax, %edi
movl %ebx, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _construct_with ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _new_root_with ; -- Begin function new_root_with
.p2align 2
_new_root_with: ; @new_root_with
.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 _alloc_root
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _construct_with
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_new_root_with.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _new_with ## -- Begin function new_with
.p2align 4, 0x90
_new_with: ## @new_with
.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 _alloc
movl %eax, %edi
movl %ebx, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _construct_with ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _new_with ; -- Begin function new_with
.p2align 2
_new_with: ; @new_with
.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 _alloc
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _construct_with
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Alloc.c_new_with.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Alloc
_Array_Alloc: ## @Array_Alloc
.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, %r14
movq %rdi, %rbx
movq 8(%rdi), %r15
callq _Array_Step
imulq %r14, %rax
addq %rax, %r15
movq %rbx, %rdi
callq _Array_Step
movq %r15, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq _memset
movq 8(%rbx), %r15
movq %rbx, %rdi
callq _Array_Step
imulq %rax, %r14
addq %r15, %r14
movl (%rbx), %esi
movq _AllocData@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r14, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _header_init ## TAILCALL
.cfi_endproc
## -- End function
.comm _AllocData,4,2 ## @AllocData
.no_dead_strip _Array_Alloc
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Alloc
_Array_Alloc: ; @Array_Alloc
.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
mov x20, x0
ldr x21, [x0, #8]
bl _Array_Step
madd x21, x0, x19, x21
mov x0, x20
bl _Array_Step
mov x2, x0
mov x0, x21
mov w1, #0
bl _memset
ldr x21, [x20, #8]
mov x0, x20
bl _Array_Step
madd x0, x0, x19, x21
ldr w1, [x20]
Lloh0:
adrp x8, _AllocData@GOTPAGE
Lloh1:
ldr x8, [x8, _AllocData@GOTPAGEOFF]
Lloh2:
ldr w2, [x8]
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 _header_init
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _AllocData,4,2 ; @AllocData
.no_dead_strip _Array_Alloc
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Alloc.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Brief
_Array_Brief: ## @Array_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 "Sequential Container"
.no_dead_strip _Array_Brief
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Brief
_Array_Brief: ; @Array_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 "Sequential Container"
.no_dead_strip _Array_Brief
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Brief.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Clear
_Array_Clear: ## @Array_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 %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
cmpq $0, (%rdi)
je LBB0_3
## %bb.1:
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movq %rbx, %rsi
callq _Array_Item
movl %eax, %edi
callq _destruct
incq %rbx
cmpq (%r14), %rbx
jb LBB0_2
LBB0_3:
movq 16(%r14), %rdi
callq _free
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0, 16(%r14)
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _Array_Clear
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Clear
_Array_Clear: ; @Array_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 x8, [x0]
cbz x8, LBB0_3
; %bb.1:
mov x20, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x20
bl _Array_Item
bl _destruct
add x20, x20, #1
ldr x8, [x19]
cmp x20, x8
b.lo LBB0_2
LBB0_3:
ldr x0, [x19, #16]
bl _free
stp xzr, xzr, [x19, #8]
str 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 _Array_Clear
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Clear.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Del
_Array_Del: ## @Array_Del
.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, %r14
cmpq $0, (%rdi)
je LBB0_3
## %bb.1:
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movq %rbx, %rsi
callq _Array_Item
movl %eax, %edi
callq _destruct
incq %rbx
cmpq (%r14), %rbx
jb LBB0_2
LBB0_3:
movl 8(%r14), %edi
popq %rbx
popq %r14
popq %rbp
jmp _free ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _Array_Del
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Del
_Array_Del: ; @Array_Del
.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 x8, [x0]
cbz x8, LBB0_3
; %bb.1:
mov x20, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x20
bl _Array_Item
bl _destruct
add x20, x20, #1
ldr x8, [x19]
cmp x20, x8
b.lo LBB0_2
LBB0_3:
ldr w0, [x19, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _free
.cfi_endproc
; -- End function
.no_dead_strip _Array_Del
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Del.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Description
_Array_Description: ## @Array_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 `Array` type is data structure containing a sequence of a single type of object. It can dynamically grow and shrink in size depending on how many elements it contains. It allocates storage for the type specified. It also deallocates and destroys the objects inside upon destruction.\n\nElements are copied into an Array using `assign` and will initially have zero'd memory.\n\nElements are ordered linearly. Elements are accessed by their position in this sequence directly. Addition and removal of elements at the end of the sequence is fast, with memory movement required for elements in the middle of the sequence.\n\nThis is largely equivalent to the C++ construct [std::vector](http://www.cplusplus.com/reference/vector/vector/)"
.no_dead_strip _Array_Description
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Description
_Array_Description: ; @Array_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 `Array` type is data structure containing a sequence of a single type of object. It can dynamically grow and shrink in size depending on how many elements it contains. It allocates storage for the type specified. It also deallocates and destroys the objects inside upon destruction.\n\nElements are copied into an Array using `assign` and will initially have zero'd memory.\n\nElements are ordered linearly. Elements are accessed by their position in this sequence directly. Addition and removal of elements at the end of the sequence is fast, with memory movement required for elements in the middle of the sequence.\n\nThis is largely equivalent to the C++ construct [std::vector](http://www.cplusplus.com/reference/vector/vector/)"
.no_dead_strip _Array_Description
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Description.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Examples
_Array_Examples: ## @Array_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 _Array_Examples.examples(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @Array_Examples.examples
_Array_Examples.examples:
.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
.space 16
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Construction & Deletion"
L_.str.1: ## @.str.1
.asciz "var x = new(Array, Int);\npush(x, $I(32));\npush(x, $I(6));\n\n/* <'Array' At 0x0000000000414603 [32, 6]> */\nshow(x);\n"
L_.str.2: ## @.str.2
.asciz "Element Access"
L_.str.3: ## @.str.3
.asciz "var x = new(Array, Float, $F(0.01), $F(5.12));\n\nshow(get(x, $I(0))); /* 0.01 */\nshow(get(x, $I(1))); /* 5.12 */\n\nset(x, $I(0), $F(500.1));\nshow(get(x, $I(0))); /* 500.1 */\n"
L_.str.4: ## @.str.4
.asciz "Membership"
L_.str.5: ## @.str.5
.asciz "var x = new(Array, Int, $I(1), $I(2), $I(3), $I(4));\n\nshow($I(mem(x, $I(1)))); /* 1 */\nshow($I(len(x))); /* 4 */\n\nrem(x, $I(3));\n\nshow($I(mem(x, $I(3)))); /* 0 */\nshow($I(len(x))); /* 3 */\nshow($I(empty(x))); /* 0 */\n\nresize(x, 0);\n\nshow($I(empty(x))); /* 1 */\n"
L_.str.6: ## @.str.6
.asciz "Iteration"
L_.str.7: ## @.str.7
.asciz "var greetings = new(Array, String, \n $S(\"Hello\"), $S(\"Bonjour\"), $S(\"Hej\"));\n\nforeach(greet in greetings) {\n show(greet);\n}\n"
.no_dead_strip _Array_Examples
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Examples
_Array_Examples: ; @Array_Examples
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _Array_Examples.examples@PAGE
Lloh1:
add x0, x0, _Array_Examples.examples@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @Array_Examples.examples
_Array_Examples.examples:
.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
.space 16
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Construction & Deletion"
l_.str.1: ; @.str.1
.asciz "var x = new(Array, Int);\npush(x, $I(32));\npush(x, $I(6));\n\n/* <'Array' At 0x0000000000414603 [32, 6]> */\nshow(x);\n"
l_.str.2: ; @.str.2
.asciz "Element Access"
l_.str.3: ; @.str.3
.asciz "var x = new(Array, Float, $F(0.01), $F(5.12));\n\nshow(get(x, $I(0))); /* 0.01 */\nshow(get(x, $I(1))); /* 5.12 */\n\nset(x, $I(0), $F(500.1));\nshow(get(x, $I(0))); /* 500.1 */\n"
l_.str.4: ; @.str.4
.asciz "Membership"
l_.str.5: ; @.str.5
.asciz "var x = new(Array, Int, $I(1), $I(2), $I(3), $I(4));\n\nshow($I(mem(x, $I(1)))); /* 1 */\nshow($I(len(x))); /* 4 */\n\nrem(x, $I(3));\n\nshow($I(mem(x, $I(3)))); /* 0 */\nshow($I(len(x))); /* 3 */\nshow($I(empty(x))); /* 0 */\n\nresize(x, 0);\n\nshow($I(empty(x))); /* 1 */\n"
l_.str.6: ; @.str.6
.asciz "Iteration"
l_.str.7: ; @.str.7
.asciz "var greetings = new(Array, String, \n $S(\"Hello\"), $S(\"Bonjour\"), $S(\"Hej\"));\n\nforeach(greet in greetings) {\n show(greet);\n}\n"
.no_dead_strip _Array_Examples
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Examples.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Hash
_Array_Hash: ## @Array_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 %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
cmpq $0, (%rdi)
je LBB0_1
## %bb.3:
movq %rdi, %r14
xorl %ebx, %ebx
xorl %r15d, %r15d
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movq %rbx, %rsi
callq _Array_Item
movl %eax, %edi
callq _hash
xorl %eax, %r15d
incq %rbx
cmpq (%r14), %rbx
jb LBB0_4
jmp LBB0_2
LBB0_1:
xorl %r15d, %r15d
LBB0_2:
movl %r15d, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _Array_Hash
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Hash
_Array_Hash: ; @Array_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
ldr x8, [x0]
cbz x8, LBB0_3
; %bb.1:
mov x19, x0
mov x21, #0
mov w20, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x21
bl _Array_Item
bl _hash
eor w20, w0, w20
add x21, x21, #1
ldr x8, [x19]
cmp x21, x8
b.lo LBB0_2
b LBB0_4
LBB0_3:
mov w20, #0
LBB0_4:
mov x0, x20
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 _Array_Hash
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Hash.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Item
_Array_Item: ## @Array_Item
.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
movq (%rdi), %rbx
callq _Array_Step
imulq %r14, %rax
addq %rbx, %rax
addq $4, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _Array_Item
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Item
_Array_Item: ; @Array_Item
.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
ldr x20, [x0]
bl _Array_Step
madd x8, x0, x19, x20
add x0, x8, #4
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 _Array_Item
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Item.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Iter_Next
_Array_Iter_Next: ## @Array_Iter_Next
.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
movq %rdi, %rbx
movq (%rdi), %rsi
decq %rsi
callq _Array_Item
cmpq %r14, %rax
jle LBB0_1
## %bb.2:
movq %rbx, %rdi
callq _Array_Step
cltq
addq %rax, %r14
jmp LBB0_3
LBB0_1:
movq _Terminal@GOTPCREL(%rip), %rax
movq (%rax), %r14
LBB0_3:
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _Terminal,8,3 ## @Terminal
.no_dead_strip _Array_Iter_Next
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Iter_Next
_Array_Iter_Next: ; @Array_Iter_Next
.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
ldr x8, [x0]
sub x1, x8, #1
bl _Array_Item
cmp x0, x19
b.le LBB0_2
; %bb.1:
mov x0, x20
bl _Array_Step
add x0, x19, w0, sxtw
b LBB0_3
LBB0_2:
Lloh0:
adrp x8, _Terminal@GOTPAGE
Lloh1:
ldr x8, [x8, _Terminal@GOTPAGEOFF]
Lloh2:
ldr x0, [x8]
LBB0_3:
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 _Terminal,8,3 ; @Terminal
.no_dead_strip _Array_Iter_Next
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Iter_Next.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Iter_Prev
_Array_Iter_Prev: ## @Array_Iter_Prev
.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, %rbx
movq %rdi, %r14
xorl %esi, %esi
callq _Array_Item
cmpq %rbx, %rax
jle LBB0_2
## %bb.1:
movq _Terminal@GOTPCREL(%rip), %rax
movq (%rax), %rbx
jmp LBB0_3
LBB0_2:
movq %r14, %rdi
callq _Array_Step
cltq
subq %rax, %rbx
LBB0_3:
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _Terminal,8,3 ## @Terminal
.no_dead_strip _Array_Iter_Prev
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Iter_Prev
_Array_Iter_Prev: ; @Array_Iter_Prev
.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
mov w1, #0
bl _Array_Item
cmp x0, x19
b.le LBB0_2
; %bb.1:
Lloh0:
adrp x8, _Terminal@GOTPAGE
Lloh1:
ldr x8, [x8, _Terminal@GOTPAGEOFF]
Lloh2:
ldr x0, [x8]
b LBB0_3
LBB0_2:
mov x0, x20
bl _Array_Step
sub x0, x19, w0, sxtw
LBB0_3:
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 _Terminal,8,3 ; @Terminal
.no_dead_strip _Array_Iter_Prev
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Iter_Prev.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Iter_Type
_Array_Iter_Type: ## @Array_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 _Array_Iter_Type
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Iter_Type
_Array_Iter_Type: ; @Array_Iter_Type
.cfi_startproc
; %bb.0:
ldr x0, [x0]
ret
.cfi_endproc
; -- End function
.no_dead_strip _Array_Iter_Type
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Iter_Type.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Len
_Array_Len: ## @Array_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 _Array_Len
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Len
_Array_Len: ; @Array_Len
.cfi_startproc
; %bb.0:
ldr x0, [x0]
ret
.cfi_endproc
; -- End function
.no_dead_strip _Array_Len
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Len.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Mark
_Array_Mark: ## @Array_Mark
.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
cmpq $0, (%rdi)
je LBB0_3
## %bb.1:
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r12, %rdi
movq %rbx, %rsi
callq _Array_Item
movq %r15, %rdi
movq %rax, %rsi
callq *%r14
incq %rbx
cmpq (%r12), %rbx
jb LBB0_2
LBB0_3:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _Array_Mark
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Mark
_Array_Mark: ; @Array_Mark
.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
ldr x8, [x0]
cbz x8, LBB0_3
; %bb.1:
mov x19, x2
mov x20, x1
mov x21, x0
mov x22, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x21
mov x1, x22
bl _Array_Item
mov x1, x0
mov x0, x20
blr x19
add x22, x22, #1
ldr x8, [x21]
cmp x22, x8
b.lo LBB0_2
LBB0_3:
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 _Array_Mark
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Mark.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Mem
_Array_Mem: ## @Array_Mem
.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
cmpq $0, (%rdi)
je LBB0_5
## %bb.1:
movq %rsi, %r14
movq %rdi, %r15
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movq %rbx, %rsi
callq _Array_Item
movl %eax, %edi
movq %r14, %rsi
callq _eq
testq %rax, %rax
jne LBB0_6
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
incq %rbx
cmpq (%r15), %rbx
jb LBB0_2
LBB0_5:
xorl %eax, %eax
jmp LBB0_7
LBB0_6:
movl $1, %eax
LBB0_7:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _Array_Mem
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Mem
_Array_Mem: ; @Array_Mem
.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
ldr x8, [x0]
cbz x8, LBB0_4
; %bb.1:
mov x19, x1
mov x20, x0
mov x21, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x20
mov x1, x21
bl _Array_Item
mov x1, x19
bl _eq
cbnz x0, LBB0_5
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
add x21, x21, #1
ldr x8, [x20]
cmp x21, x8
b.lo LBB0_2
LBB0_4:
mov w0, #0
b LBB0_6
LBB0_5:
mov w0, #1
LBB0_6:
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 _Array_Mem
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Mem.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Name
_Array_Name: ## @Array_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 "Array"
.no_dead_strip _Array_Name
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Name
_Array_Name: ; @Array_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 "Array"
.no_dead_strip _Array_Name
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Name.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Push
_Array_Push: ## @Array_Push
.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
movq %rdi, %rbx
incq (%rdi)
callq _Array_Reserve_More
movq (%rbx), %rsi
decq %rsi
movq %rbx, %rdi
callq _Array_Alloc
movq (%rbx), %rsi
decq %rsi
movq %rbx, %rdi
callq _Array_Item
movl %eax, %edi
movq %r14, %rsi
popq %rbx
popq %r14
popq %rbp
jmp _assign ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _Array_Push
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Push
_Array_Push: ; @Array_Push
.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
ldr x8, [x0]
add x8, x8, #1
str x8, [x0]
bl _Array_Reserve_More
ldr x8, [x20]
sub x1, x8, #1
mov x0, x20
bl _Array_Alloc
ldr x8, [x20]
sub x1, x8, #1
mov x0, x20
bl _Array_Item
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _assign
.cfi_endproc
; -- End function
.no_dead_strip _Array_Push
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Push.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Reserve_Less
_Array_Reserve_Less: ## @Array_Reserve_Less
.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 4(%rdi), %eax
movl %eax, %ecx
shrl $31, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
cmpl %ecx, (%rdi)
jle LBB0_2
## %bb.1:
movq %rdi, %rbx
movl %eax, (%rdi)
movl 8(%rdi), %r14d
callq _Array_Step
imull (%rbx), %eax
movl %r14d, %edi
movl %eax, %esi
callq _realloc
movl %eax, 8(%rbx)
LBB0_2:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _Array_Reserve_Less
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Reserve_Less
_Array_Reserve_Less: ; @Array_Reserve_Less
.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
ldp w9, w8, [x0]
cmp w8, #0
cinc w10, w8, lt
add w10, w8, w10, asr #1
cmp w9, w10
b.le LBB0_2
; %bb.1:
mov x19, x0
str w8, [x0]
ldr w20, [x0, #8]
bl _Array_Step
ldr w8, [x19]
mul w1, w8, w0
mov x0, x20
bl _realloc
str w0, [x19, #8]
LBB0_2:
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 _Array_Reserve_Less
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Reserve_Less.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Show
_Array_Show: ## @Array_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 %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, %r14
movq %rdi, %r15
leaq L_.str(%rip), %rax
movq %rsi, %rdi
movl %edx, %esi
movq %rax, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq _print_to
movl %eax, %ebx
cmpq $0, (%r15)
je LBB0_5
## %bb.1:
leaq L_.str.1(%rip), %r12
xorl %r13d, %r13d
jmp LBB0_2
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
incq %r13
cmpq %rax, %r13
jae LBB0_5
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movq %r13, %rsi
callq _Array_Item
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
movl %eax, %ecx
xorl %eax, %eax
callq _print_to
movl %eax, %ebx
movq (%r15), %rax
leaq -1(%rax), %rcx
cmpq %rcx, %r13
jae LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
movl %ebx, %esi
leaq L_.str.2(%rip), %rdx
xorl %eax, %eax
callq _print_to
movl %eax, %ebx
movq (%r15), %rax
jmp LBB0_4
LBB0_5:
leaq L_.str.3(%rip), %rdx
movq %r14, %rdi
movl %ebx, %esi
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _print_to ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "<'Array' At 0x%p ["
L_.str.1: ## @.str.1
.asciz "%$"
L_.str.2: ## @.str.2
.asciz ", "
L_.str.3: ## @.str.3
.asciz "]>"
.no_dead_strip _Array_Show
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Show
_Array_Show: ; @Array_Show
.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 x8, x2
mov x19, x1
mov x20, x0
str x0, [sp]
Lloh0:
adrp x2, l_.str@PAGE
Lloh1:
add x2, x2, l_.str@PAGEOFF
mov x0, x1
mov x1, x8
bl _print_to
mov x21, x0
ldr x8, [x20]
cbz x8, LBB0_5
; %bb.1:
mov x22, #0
Lloh2:
adrp x23, l_.str.1@PAGE
Lloh3:
add x23, x23, l_.str.1@PAGEOFF
Lloh4:
adrp x24, l_.str.2@PAGE
Lloh5:
add x24, x24, l_.str.2@PAGEOFF
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
add x22, x22, #1
cmp x22, x8
b.hs LBB0_5
LBB0_3: ; =>This Inner Loop Header: Depth=1
mov x0, x20
mov x1, x22
bl _Array_Item
; kill: def $w0 killed $w0 def $x0
str x0, [sp]
mov x0, x19
mov x1, x21
mov x2, x23
bl _print_to
mov x21, x0
ldr x8, [x20]
sub x9, x8, #1
cmp x22, x9
b.hs LBB0_2
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
mov x0, x19
mov x1, x21
mov x2, x24
bl _print_to
mov x21, x0
ldr x8, [x20]
b LBB0_2
LBB0_5:
Lloh6:
adrp x2, l_.str.3@PAGE
Lloh7:
add x2, x2, l_.str.3@PAGEOFF
mov x0, x19
mov x1, x21
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
b _print_to
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "<'Array' At 0x%p ["
l_.str.1: ; @.str.1
.asciz "%$"
l_.str.2: ; @.str.2
.asciz ", "
l_.str.3: ; @.str.3
.asciz "]>"
.no_dead_strip _Array_Show
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Show.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Size_Round
_Array_Size_Round: ## @Array_Size_Round
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq 3(%rdi), %rax
andq $-4, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _Array_Size_Round
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Size_Round
_Array_Size_Round: ; @Array_Size_Round
.cfi_startproc
; %bb.0:
add x8, x0, #3
and x0, x8, #0xfffffffffffffffc
ret
.cfi_endproc
; -- End function
.no_dead_strip _Array_Size_Round
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Size_Round.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Sort_By
_Array_Sort_By: ## @Array_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 _Array_Len
leaq -1(%rax), %rdx
movl %ebx, %edi
xorl %esi, %esi
movq %r14, %rcx
popq %rbx
popq %r14
popq %rbp
jmp _Array_Sort_Part ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _Array_Sort_By
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Sort_By
_Array_Sort_By: ; @Array_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 _Array_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 _Array_Sort_Part
.cfi_endproc
; -- End function
.no_dead_strip _Array_Sort_By
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Sort_By.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Array_Step
_Array_Step: ## @Array_Step
.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
addq $4, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _Array_Step
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Array_Step
_Array_Step: ; @Array_Step
.cfi_startproc
; %bb.0:
ldr x8, [x0]
add x0, x8, #4
ret
.cfi_endproc
; -- End function
.no_dead_strip _Array_Step
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Array.c_Array_Step.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Assign_Brief
_Assign_Brief: ## @Assign_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 "Assignment"
.no_dead_strip _Assign_Brief
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Assign_Brief
_Assign_Brief: ; @Assign_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 "Assignment"
.no_dead_strip _Assign_Brief
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Assign_Brief.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Assign_Definition
_Assign_Definition: ## @Assign_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 Assign {\n void (*assign)(var, var);\n};\n"
.no_dead_strip _Assign_Definition
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Assign_Definition
_Assign_Definition: ; @Assign_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 Assign {\n void (*assign)(var, var);\n};\n"
.no_dead_strip _Assign_Definition
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Assign_Definition.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Assign_Description
_Assign_Description: ## @Assign_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 "`Assign` is potentially the most important class in Cello. It is used throughout Cello to initialise objects using other objects. In C++ this is called the _copy constructor_ and it is used to assign the value of one object to another.\n\nBy default the `Assign` class uses the `Size` class to copy the memory from one object to another. But for more complex objects which maintain their own behaviours and state this may need to be overridden.\n\nThe most important thing about the `Assign` class is that it must work on the assumption that the target object may not have had it's constructor called and could be uninitialised with just zero'd memory. This is often the case when copying contents into containers."
.no_dead_strip _Assign_Description
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Assign_Description
_Assign_Description: ; @Assign_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 "`Assign` is potentially the most important class in Cello. It is used throughout Cello to initialise objects using other objects. In C++ this is called the _copy constructor_ and it is used to assign the value of one object to another.\n\nBy default the `Assign` class uses the `Size` class to copy the memory from one object to another. But for more complex objects which maintain their own behaviours and state this may need to be overridden.\n\nThe most important thing about the `Assign` class is that it must work on the assumption that the target object may not have had it's constructor called and could be uninitialised with just zero'd memory. This is often the case when copying contents into containers."
.no_dead_strip _Assign_Description
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Assign_Description.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Assign_Examples
_Assign_Examples: ## @Assign_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 _Assign_Examples.examples(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @Assign_Examples.examples
_Assign_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 = new(Int, $I(10));\nvar y = new(Int, $I(20));\n\nshow(x); /* 10 */\nshow(y); /* 20 */\n\nassign(x, y);\n\nshow(x); /* 20 */\nshow(y); /* 20 */\n"
.no_dead_strip _Assign_Examples
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Assign_Examples
_Assign_Examples: ; @Assign_Examples
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _Assign_Examples.examples@PAGE
Lloh1:
add x0, x0, _Assign_Examples.examples@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @Assign_Examples.examples
_Assign_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 = new(Int, $I(10));\nvar y = new(Int, $I(20));\n\nshow(x); /* 10 */\nshow(y); /* 20 */\n\nassign(x, y);\n\nshow(x); /* 20 */\nshow(y); /* 20 */\n"
.no_dead_strip _Assign_Examples
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Assign_Examples.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Assign_Methods
_Assign_Methods: ## @Assign_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 _Assign_Methods.methods(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @Assign_Methods.methods
_Assign_Methods.methods:
.quad L_.str
.quad L_.str.1
.quad L_.str.2
.space 24
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "assign"
L_.str.1: ## @.str.1
.asciz "var assign(var self, var obj);"
L_.str.2: ## @.str.2
.asciz "Assign the object `obj` to the object `self`. The assigned object `self` is returned."
.no_dead_strip _Assign_Methods
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Assign_Methods
_Assign_Methods: ; @Assign_Methods
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _Assign_Methods.methods@PAGE
Lloh1:
add x0, x0, _Assign_Methods.methods@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @Assign_Methods.methods
_Assign_Methods.methods:
.quad l_.str
.quad l_.str.1
.quad l_.str.2
.space 24
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "assign"
l_.str.1: ; @.str.1
.asciz "var assign(var self, var obj);"
l_.str.2: ; @.str.2
.asciz "Assign the object `obj` to the object `self`. The assigned object `self` is returned."
.no_dead_strip _Assign_Methods
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Assign_Methods.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Assign_Name
_Assign_Name: ## @Assign_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 "Assign"
.no_dead_strip _Assign_Name
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Assign_Name
_Assign_Name: ; @Assign_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 "Assign"
.no_dead_strip _Assign_Name
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Assign_Name.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Swap_Brief
_Swap_Brief: ## @Swap_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 "Swapable"
.no_dead_strip _Swap_Brief
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Swap_Brief
_Swap_Brief: ; @Swap_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 "Swapable"
.no_dead_strip _Swap_Brief
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Swap_Brief.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Swap_Definition
_Swap_Definition: ## @Swap_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 Swap {\n void (*swap)(var, var);\n};\n"
.no_dead_strip _Swap_Definition
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Swap_Definition
_Swap_Definition: ; @Swap_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 Swap {\n void (*swap)(var, var);\n};\n"
.no_dead_strip _Swap_Definition
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Swap_Definition.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Swap_Description
_Swap_Description: ## @Swap_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 `Swap` class can be used to override the behaviour of swapping two objects. By default the `Swap` class simply swaps the memory of the two objects passed in as parameters making use of the `Size` class. In almost all cases this default behaviour should be fine, even if the objects have custom assignment functions.\n\nSwapping can be used internally by various collections and algorithms."
.no_dead_strip _Swap_Description
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Swap_Description
_Swap_Description: ; @Swap_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 `Swap` class can be used to override the behaviour of swapping two objects. By default the `Swap` class simply swaps the memory of the two objects passed in as parameters making use of the `Size` class. In almost all cases this default behaviour should be fine, even if the objects have custom assignment functions.\n\nSwapping can be used internally by various collections and algorithms."
.no_dead_strip _Swap_Description
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Swap_Description.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Swap_Examples
_Swap_Examples: ## @Swap_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 _Swap_Examples.examples(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @Swap_Examples.examples
_Swap_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 = $S(\"Hello\");\nvar y = $S(\"World\");\nshow(x); /* Hello */\nshow(y); /* World */\nswap(x, y);\nshow(x); /* World */\nshow(y); /* Hello */\n"
.no_dead_strip _Swap_Examples
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Swap_Examples
_Swap_Examples: ; @Swap_Examples
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _Swap_Examples.examples@PAGE
Lloh1:
add x0, x0, _Swap_Examples.examples@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @Swap_Examples.examples
_Swap_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 = $S(\"Hello\");\nvar y = $S(\"World\");\nshow(x); /* Hello */\nshow(y); /* World */\nswap(x, y);\nshow(x); /* World */\nshow(y); /* Hello */\n"
.no_dead_strip _Swap_Examples
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Swap_Examples.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Swap_Methods
_Swap_Methods: ## @Swap_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 _Swap_Methods.methods(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @Swap_Methods.methods
_Swap_Methods.methods:
.quad L_.str
.quad L_.str.1
.quad L_.str.2
.space 24
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "swap"
L_.str.1: ## @.str.1
.asciz "void swap(var self, var obj);"
L_.str.2: ## @.str.2
.asciz "Swap the object `self` for the object `obj`."
.no_dead_strip _Swap_Methods
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Swap_Methods
_Swap_Methods: ; @Swap_Methods
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _Swap_Methods.methods@PAGE
Lloh1:
add x0, x0, _Swap_Methods.methods@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 3 ; @Swap_Methods.methods
_Swap_Methods.methods:
.quad l_.str
.quad l_.str.1
.quad l_.str.2
.space 24
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "swap"
l_.str.1: ; @.str.1
.asciz "void swap(var self, var obj);"
l_.str.2: ; @.str.2
.asciz "Swap the object `self` for the object `obj`."
.no_dead_strip _Swap_Methods
.subsections_via_symbols
| AnghaBench/Cello/src/extr_Assign.c_Swap_Methods.c | anghabench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.