	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_load_cb
_elf_load_cb:                           ## @elf_load_cb
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_TRUE@GOTPCREL(%rip), %r14
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	callq	_module_is_already_loaded
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, 8(%rbx)
	movq	8(%rax), %rcx
	movq	_DFI_ELF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rcx)
	movq	%rax, %r14
	movq	(%rax), %r12
	jmp	LBB0_11
LBB0_6:
	movq	%rdx, %r13
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r12
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strrchrW
	movq	(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	leaq	4(%rax), %rcx
	testq	%rax, %rax
	cmoveq	%r15, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_11
LBB0_9:
	movq	16(%rbx), %rdi
	leaq	8(%rbx), %r8
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_elf_search_and_load_file
	movl	%eax, 24(%rbx)
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.10:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_11
LBB0_3:
	movq	_from_process@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	%r12, -88(%rbp)
	leaq	-88(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_elf_map_file
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	16(%rbx), %rdi
	leaq	8(%rbx), %r9
	leaq	-48(%rbp), %rdx
	movq	%r15, %rsi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_elf_load_file_from_fmap
	movl	%eax, 24(%rbx)
LBB0_5:
	movq	(%r14), %r12
LBB0_11:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_DFI_ELF,8,3                    ## @DFI_ELF
	.comm	_from_process,4,2               ## @from_process
	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_elf_load_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_load_cb
_elf_load_cb:                           ; @elf_load_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x4
	mov	x20, x1
	mov	x21, x0
	cbz	x3, LBB0_3
; %bb.1:
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_module_is_already_loaded
	cbz	x0, LBB0_7
; %bb.2:
	str	x0, [x19, #8]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _DFI_ELF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DFI_ELF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_10
LBB0_3:
	mov	x23, x2
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x21
	mov	w1, #47
	bl	_strrchrW
	ldr	x24, [x19]
	cbz	x24, LBB0_6
; %bb.5:
	add	x8, x0, #4
	cmp	x0, #0
	csel	x25, x21, x8, eq
	mov	x0, x24
	bl	_lstrlenW
	lsl	w2, w0, #2
	mov	x0, x25
	mov	x1, x24
	bl	_memcmp
	cbnz	w0, LBB0_11
LBB0_6:
	ldr	x0, [x19, #16]
	add	x4, x19, #8
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	bl	_elf_search_and_load_file
	str	w0, [x19, #24]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _FALSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x22, x22, x9, eq
	b	LBB0_11
LBB0_7:
Lloh9:
	adrp	x8, _from_process@GOTPAGE
Lloh10:
	ldr	x8, [x8, _from_process@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	x20, [sp, #8]
	add	x0, sp, #8
	mov	x1, sp
	bl	_elf_map_file
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
	add	x5, x19, #8
	mov	x2, sp
	mov	x1, x21
	mov	x3, x20
	mov	w4, #0
	bl	_elf_load_file_from_fmap
	str	w0, [x19, #24]
LBB0_9:
Lloh12:
	adrp	x0, _TRUE@GOTPAGE
Lloh13:
	ldr	x0, [x0, _TRUE@GOTPAGEOFF]
LBB0_10:
	ldr	x22, [x0]
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_DFI_ELF,8,3                    ; @DFI_ELF
	.comm	_from_process,4,2               ; @from_process
	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_elf_load_cb
.subsections_via_symbols
