	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_load_file_from_dll_path
_elf_load_file_from_dll_path:           ## @elf_load_file_from_dll_path
	.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	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	je	LBB0_1
LBB0_6:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_wine_dll_enum_load_path
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_CP_UNIXCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	leal	8(,%rax,4), %edx
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	_CP_UNIXCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	$-1, %ecx
	movq	%r13, %r8
	movl	%ebx, %r9d
	callq	_MultiByteToWideChar
	movq	_S_SlashW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_strcatW
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_strcatW
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_elf_load_file
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_HeapFree
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	testl	%r15d, %r15d
	je	LBB0_2
	jmp	LBB0_6
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CP_UNIXCP,4,2                  ## @CP_UNIXCP
	.comm	_S_SlashW,8,3                   ## @S_SlashW
	.no_dead_strip	_elf_load_file_from_dll_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_load_file_from_dll_path
_elf_load_file_from_dll_path:           ; @elf_load_file_from_dll_path
	.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
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	cbz	w25, LBB0_2
LBB0_1:
	mov	x0, x25
	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
LBB0_2:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	w24, #0
Lloh3:
	adrp	x28, _CP_UNIXCP@GOTPAGE
Lloh4:
	ldr	x28, [x28, _CP_UNIXCP@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_wine_dll_enum_load_path
	mov	x25, x0
	cbz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x28]
	mov	w1, #0
	mov	x2, x25
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	mov	x27, x0
	bl	_GetProcessHeap
	mov	x26, x0
	mov	x0, x22
	bl	_lstrlenW
	add	w8, w0, w27
	lsl	w8, w8, #2
	add	w2, w8, #8
	mov	x0, x26
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
	ldr	w0, [x28]
	mov	w1, #0
	mov	x2, x25
	mov	w3, #-1
	mov	x4, x26
	mov	x5, x27
	bl	_MultiByteToWideChar
Lloh5:
	adrp	x8, _S_SlashW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_SlashW@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x26
	bl	_strcatW
	mov	x0, x26
	mov	x1, x22
	bl	_strcatW
	mov	x0, x23
	mov	x1, x26
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_elf_load_file
	mov	x25, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x26
	bl	_HeapFree
	add	w24, w24, #1
	cbz	w25, LBB0_3
	b	LBB0_1
LBB0_6:
	mov	w25, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CP_UNIXCP,4,2                  ; @CP_UNIXCP
	.comm	_S_SlashW,8,3                   ; @S_SlashW
	.no_dead_strip	_elf_load_file_from_dll_path
.subsections_via_symbols
