	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slurp_rela_relocs
_slurp_rela_relocs:                     ## @slurp_rela_relocs
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_is_32bit_elf@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	__
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	movq	%r15, %r8
	movl	%eax, %r9d
	callq	_get_data
	movq	%rax, %r13
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	testq	%r13, %r13
	je	LBB0_14
## %bb.2:
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	movq	%r15, %rax
	mulq	%rcx
	movq	%rdx, %r12
	shrq	$3, %r12
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_cmalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r14
	cmpq	$12, %r15
	jb	LBB0_11
## %bb.4:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r15,2), %rbx
	movl	8(%r13,%rbx,4), %edi
	callq	_BYTE_GET
	movq	%rax, 16(%r14,%rbx,8)
	movl	4(%r13,%rbx,4), %edi
	callq	_BYTE_GET
	movq	%rax, 8(%r14,%rbx,8)
	movl	(%r13,%rbx,4), %edi
	callq	_BYTE_GET
	movq	%rax, (%r14,%rbx,8)
	incl	%r15d
	cmpq	%r15, %r12
	ja	LBB0_5
	jmp	LBB0_11
LBB0_6:
	testq	%r13, %r13
	je	LBB0_14
## %bb.7:
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	movq	%r15, %rax
	mulq	%rcx
	movq	%rdx, %r12
	shrq	$3, %r12
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_cmalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	%rax, %r14
	cmpq	$12, %r15
	jb	LBB0_11
## %bb.9:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r15,2), %rbx
	movl	8(%r13,%rbx,4), %edi
	callq	_BYTE_GET
	movq	%rax, 16(%r14,%rbx,8)
	movl	4(%r13,%rbx,4), %edi
	callq	_BYTE_GET
	movq	%rax, 8(%r14,%rbx,8)
	movl	(%r13,%rbx,4), %edi
	callq	_BYTE_GET
	movq	%rax, (%r14,%rbx,8)
	incl	%r15d
	cmpq	%r15, %r12
	ja	LBB0_10
LBB0_11:
	movq	%r13, %rdi
	callq	_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movl	$1, %eax
	jmp	LBB0_15
LBB0_13:
	movq	%r13, %rdi
	callq	_free
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_is_32bit_elf,8,3               ## @is_32bit_elf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"relocs"

L_.str.1:                               ## @.str.1
	.asciz	"out of memory parsing relocs\n"

	.no_dead_strip	_slurp_rela_relocs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slurp_rela_relocs
_slurp_rela_relocs:                     ; @slurp_rela_relocs
	.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	x24, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _is_32bit_elf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _is_32bit_elf@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x5, x0
	mov	x0, #0
	mov	x1, x22
	mov	x2, x21
	mov	w3, #1
	mov	x4, x24
	bl	_get_data
	mov	x21, x0
	cbz	x23, LBB0_6
; %bb.1:
	cbz	x21, LBB0_13
; %bb.2:
	mov	x8, #-6148914691236517206
	movk	x8, #43691
	umulh	x8, x24, x8
	lsr	x22, x8, #3
	mov	x0, x22
	mov	w1, #24
	bl	_cmalloc
	cbz	x0, LBB0_12
; %bb.3:
	mov	x23, x0
	cmp	x24, #12
	b.lo	LBB0_11
; %bb.4:
	mov	x24, #0
	mov	w25, #12
	mov	w26, #24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	madd	x27, x24, x25, x21
	ldr	w0, [x27, #8]
	bl	_BYTE_GET
	madd	x28, x24, x26, x23
	str	x0, [x28, #16]
	ldr	w0, [x27, #4]
	bl	_BYTE_GET
	str	x0, [x28, #8]
	ldr	w0, [x27]
	bl	_BYTE_GET
	str	x0, [x28]
	add	w24, w24, #1
	cmp	x22, x24
	b.hi	LBB0_5
	b	LBB0_11
LBB0_6:
	cbz	x21, LBB0_13
; %bb.7:
	mov	x8, #-6148914691236517206
	movk	x8, #43691
	umulh	x8, x24, x8
	lsr	x22, x8, #3
	mov	x0, x22
	mov	w1, #24
	bl	_cmalloc
	cbz	x0, LBB0_12
; %bb.8:
	mov	x23, x0
	cmp	x24, #12
	b.lo	LBB0_11
; %bb.9:
	mov	x24, #0
	mov	w25, #12
	mov	w26, #24
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	madd	x27, x24, x25, x21
	ldr	w0, [x27, #8]
	bl	_BYTE_GET
	madd	x28, x24, x26, x23
	str	x0, [x28, #16]
	ldr	w0, [x27, #4]
	bl	_BYTE_GET
	str	x0, [x28, #8]
	ldr	w0, [x27]
	bl	_BYTE_GET
	str	x0, [x28]
	add	w24, w24, #1
	cmp	x22, x24
	b.hi	LBB0_10
LBB0_11:
	mov	x0, x21
	bl	_free
	str	x23, [x20]
	str	x22, [x19]
	mov	w0, #1
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	bl	_free
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_error
LBB0_13:
	mov	w0, #0
LBB0_14:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_is_32bit_elf,8,3               ; @is_32bit_elf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"relocs"

l_.str.1:                               ; @.str.1
	.asciz	"out of memory parsing relocs\n"

	.no_dead_strip	_slurp_rela_relocs
.subsections_via_symbols
