	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_elf_image
_load_elf_image:                        ## @load_elf_image
	.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	(%rdi), %rdx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r14
	movl	8(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.2:
	cmpl	$24, 12(%r14)
	jne	LBB0_12
## %bb.3:
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.4:
	leaq	(%rdx,%r14), %rbx
	addq	$20, %rbx
	xorl	%r15d, %r15d
	movq	_PT_LOAD@GOTPCREL(%rip), %r12
	movl	$1073741823, %r13d              ## imm = 0x3FFFFFFF
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	%ecx, %rax
	addq	$24, %rbx
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-20(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-12(%rbx), %edi
	andl	%r13d, %edi
	orq	$-2147483648, %rdi              ## imm = 0x80000000
	movl	%edi, -12(%rbx)
	movl	(%rbx), %edx
	cmpl	-4(%rbx), %edx
	jg	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%edx, %edx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	-8(%rbx), %rsi
	addq	%r14, %rsi
	callq	_memcpy
	movslq	-12(%rbx), %rdi
	movl	-4(%rbx), %esi
	callq	_sync_before_exec
	movl	8(%r14), %ecx
	jmp	LBB0_10
LBB0_11:
	movl	$1073741823, %eax               ## imm = 0x3FFFFFFF
	andl	16(%r14), %eax
	orl	$-2147483648, %eax              ## imm = 0x80000000
	jmp	LBB0_12
LBB0_7:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_LOAD,8,3                    ## @PT_LOAD
	.no_dead_strip	_load_elf_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_elf_image
_load_elf_image:                        ; @load_elf_image
	.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	x9, [x0]
	cbz	x9, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_10
; %bb.2:
	ldr	w10, [x19, #12]
	cmp	w10, #24
	b.ne	LBB0_10
; %bb.3:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x20, #0
	add	x9, x9, x19
	add	x21, x9, #12
Lloh0:
	adrp	x22, _PT_LOAD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PT_LOAD@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	add	x21, x21, #24
	cmp	x20, w8, sxtw
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x21, #-12]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	w9, [x21, #-4]
	and	w9, w9, #0x3fffffff
	orr	x0, x9, #0xffffffff80000000
	stur	w0, [x21, #-4]
	ldp	w9, w2, [x21, #4]
	cmp	w2, w9
	b.gt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w2, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x21]
	add	x1, x19, x8
	bl	_memcpy
	ldursw	x0, [x21, #-4]
	ldr	w1, [x21, #4]
	bl	_sync_before_exec
	ldr	w8, [x19, #8]
	b	LBB0_5
LBB0_10:
	mov	w0, #0
LBB0_11:
	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_12:
	ldr	w8, [x19, #16]
	mov	w0, #-2147483648
	bfxil	w0, w8, #0, #30
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_LOAD,8,3                    ; @PT_LOAD
	.no_dead_strip	_load_elf_image
.subsections_via_symbols
