	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_proc_addr
_get_proc_addr:                         ## @get_proc_addr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	jne	LBB0_3
## %bb.1:
	movl	$1, (%rbx)
	movl	20(%rbx), %edi
	movq	_LOAD_LIBRARY_SEARCH_SYSTEM32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_LoadLibraryExA
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	16(%rbx), %esi
	movq	%rax, %rdi
	callq	_GetProcAddress
	movq	%rax, 8(%rbx)
LBB0_3:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOAD_LIBRARY_SEARCH_SYSTEM32,4,2 ## @LOAD_LIBRARY_SEARCH_SYSTEM32
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_get_proc_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_proc_addr
_get_proc_addr:                         ; @get_proc_addr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x8, _LOAD_LIBRARY_SEARCH_SYSTEM32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOAD_LIBRARY_SEARCH_SYSTEM32@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_LoadLibraryExA
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x19, #16]
	bl	_GetProcAddress
	str	x0, [x19, #8]
LBB0_3:
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LOAD_LIBRARY_SEARCH_SYSTEM32,4,2 ; @LOAD_LIBRARY_SEARCH_SYSTEM32
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_get_proc_addr
.subsections_via_symbols
