	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_bin_mz_get_relocs            ## -- Begin function r_bin_mz_get_relocs
	.p2align	4, 0x90
_r_bin_mz_get_relocs:                   ## @r_bin_mz_get_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.2:
	xorl	%r13d, %r13d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r15d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14,%r13,8), %esi
	movl	4(%r14,%r13,8), %edi
	callq	_r_bin_mz_va_to_la
	movq	%rax, %rbx
	movl	%r15d, %r14d
	shlq	$4, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, (%r15,%r14)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_r_bin_mz_la_to_pa
	movl	%eax, 12(%r15,%r14)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	xorl	%eax, %eax
	cmpq	(%r12), %rbx
	setl	%al
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	incq	%r13
	cmpq	%r13, %rbx
	jne	LBB0_3
## %bb.4:
	movl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_5:
	shlq	$4, %rax
	movl	$1, 8(%r12,%rax)
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
LBB0_6:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: calloc (struct r_bin_mz_reloc_t)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_bin_mz_get_relocs            ; -- Begin function r_bin_mz_get_relocs
	.p2align	2
_r_bin_mz_get_relocs:                   ; @r_bin_mz_get_relocs
	.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
	mov	x20, x0
	ldp	x21, x8, [x0, #8]
	ldr	w22, [x8]
	add	w0, w22, #1
	mov	w1, #16
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w23, #0
	add	x24, x21, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x24, #-4]
	bl	_r_bin_mz_va_to_la
	mov	x21, x0
	add	x25, x19, w23, uxtw #4
	str	x0, [x25]
	mov	x0, x20
	mov	x1, x21
	bl	_r_bin_mz_la_to_pa
	str	w0, [x25, #12]
	ldr	x8, [x20]
	cmp	x21, x8
	cinc	w23, w23, lt
	add	x24, x24, #8
	subs	x22, x22, #1
	b.ne	LBB0_3
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	b	LBB0_7
LBB0_5:
	mov	x23, #0
LBB0_6:
	add	x8, x19, x23, lsl #4
	mov	w9, #1
	str	w9, [x8, #8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: calloc (struct r_bin_mz_reloc_t)\n"

.subsections_via_symbols
