	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_search_loader
_elf_search_loader:                     ## @elf_search_loader
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	movl	(%rdi), %edi
	movq	_ProcessBasicInformation@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	$8, %ecx
	xorl	%r8d, %r8d
	callq	_NtQueryInformationProcess
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	-32(%rbp), %rax
	movq	(%rax), %rsi
	leaq	-20(%rbp), %rdx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_ReadProcessMemory
LBB0_2:
	xorl	%eax, %eax
	callq	_get_wine_loader_name
	movl	-20(%rbp), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_elf_search_and_load_file
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ProcessBasicInformation,4,2    ## @ProcessBasicInformation
	.no_dead_strip	_elf_search_loader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_search_loader
_elf_search_loader:                     ; @elf_search_loader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #4]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _ProcessBasicInformation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ProcessBasicInformation@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #8
	mov	x4, #0
	bl	_NtQueryInformationProcess
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	ldr	x8, [sp, #8]
	ldr	x1, [x8]
	add	x2, sp, #4
	mov	w3, #4
	mov	x4, #0
	bl	_ReadProcessMemory
LBB0_2:
	bl	_get_wine_loader_name
	mov	x1, x0
	ldr	w2, [sp, #4]
	mov	x0, x20
	mov	w3, #0
	mov	x4, x19
	bl	_elf_search_and_load_file
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ProcessBasicInformation,4,2    ; @ProcessBasicInformation
	.no_dead_strip	_elf_search_loader
.subsections_via_symbols
