	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSO_load                       ## -- Begin function DSO_load
	.p2align	4, 0x90
_DSO_load:                              ## @DSO_load
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_1
LBB0_5:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	_DSO_R_DSO_ALREADY_LOADED@GOTPCREL(%rip), %r12
LBB0_15:
	movq	_DSO_F_DSO_LOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_DSOerr
	testq	%r14, %r14
	jne	LBB0_17
	jmp	LBB0_16
LBB0_1:
	movl	%ecx, %r12d
	movq	%rdx, %rdi
	callq	_DSO_new_method
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	_DSO_CTRL_SET_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_DSO_ctrl
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	_DSO_F_DSO_LOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DSO_R_CTRL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DSOerr
LBB0_16:
	movq	%rbx, %rdi
	callq	_DSO_free
	jmp	LBB0_17
LBB0_7:
	movq	_DSO_R_NO_FILENAME@GOTPCREL(%rip), %r12
	testq	%r15, %r15
	je	LBB0_15
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_DSO_set_filename
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	cmpq	$0, (%rbx)
	je	LBB0_15
## %bb.11:
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.13:
	movq	%rbx, %rdi
	callq	*%rcx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movq	_DSO_R_LOAD_FAILED@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_2:
	movq	_DSO_F_DSO_LOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DSOerr
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_DSO_R_SET_FILENAME_FAILED@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_12:
	movq	_DSO_R_UNSUPPORTED@GOTPCREL(%rip), %r12
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_DSO_F_DSO_LOAD,4,2             ## @DSO_F_DSO_LOAD
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_DSO_CTRL_SET_FLAGS,4,2         ## @DSO_CTRL_SET_FLAGS
	.comm	_DSO_R_CTRL_FAILED,4,2          ## @DSO_R_CTRL_FAILED
	.comm	_DSO_R_DSO_ALREADY_LOADED,4,2   ## @DSO_R_DSO_ALREADY_LOADED
	.comm	_DSO_R_SET_FILENAME_FAILED,4,2  ## @DSO_R_SET_FILENAME_FAILED
	.comm	_DSO_R_NO_FILENAME,4,2          ## @DSO_R_NO_FILENAME
	.comm	_DSO_R_UNSUPPORTED,4,2          ## @DSO_R_UNSUPPORTED
	.comm	_DSO_R_LOAD_FAILED,4,2          ## @DSO_R_LOAD_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSO_load                       ; -- Begin function DSO_load
	.p2align	2
_DSO_load:                              ; @DSO_load
	.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
	mov	x21, x1
	mov	x20, x0
	mov	x19, x0
	cbz	x0, LBB0_3
LBB0_1:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _DSO_R_DSO_ALREADY_LOADED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSO_R_DSO_ALREADY_LOADED@GOTPAGEOFF]
	b	LBB0_16
LBB0_3:
	mov	x22, x3
	mov	x0, x2
	bl	_DSO_new_method
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.4:
Lloh2:
	adrp	x8, _DSO_CTRL_SET_FLAGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSO_CTRL_SET_FLAGS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	mov	x3, #0
	bl	_DSO_ctrl
	tbz	x0, #63, LBB0_1
; %bb.5:
Lloh5:
	adrp	x8, _DSO_F_DSO_LOAD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSO_F_DSO_LOAD@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _DSO_R_CTRL_FAILED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSO_R_CTRL_FAILED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_DSOerr
	b	LBB0_17
LBB0_6:
	cbz	x21, LBB0_12
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_DSO_set_filename
	cbz	w0, LBB0_14
; %bb.8:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.10:
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_19
; %bb.11:
Lloh11:
	adrp	x8, _DSO_R_LOAD_FAILED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DSO_R_LOAD_FAILED@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
Lloh13:
	adrp	x8, _DSO_R_NO_FILENAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DSO_R_NO_FILENAME@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh15:
	adrp	x8, _DSO_F_DSO_LOAD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DSO_F_DSO_LOAD@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_DSOerr
	b	LBB0_19
LBB0_14:
Lloh21:
	adrp	x8, _DSO_R_SET_FILENAME_FAILED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DSO_R_SET_FILENAME_FAILED@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh23:
	adrp	x8, _DSO_R_UNSUPPORTED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DSO_R_UNSUPPORTED@GOTPAGEOFF]
LBB0_16:
Lloh25:
	adrp	x9, _DSO_F_DSO_LOAD@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DSO_F_DSO_LOAD@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_DSOerr
	cbnz	x20, LBB0_18
LBB0_17:
	mov	x0, x19
	bl	_DSO_free
LBB0_18:
	mov	x19, #0
LBB0_19:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DSO_F_DSO_LOAD,4,2             ; @DSO_F_DSO_LOAD
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_DSO_CTRL_SET_FLAGS,4,2         ; @DSO_CTRL_SET_FLAGS
	.comm	_DSO_R_CTRL_FAILED,4,2          ; @DSO_R_CTRL_FAILED
	.comm	_DSO_R_DSO_ALREADY_LOADED,4,2   ; @DSO_R_DSO_ALREADY_LOADED
	.comm	_DSO_R_SET_FILENAME_FAILED,4,2  ; @DSO_R_SET_FILENAME_FAILED
	.comm	_DSO_R_NO_FILENAME,4,2          ; @DSO_R_NO_FILENAME
	.comm	_DSO_R_UNSUPPORTED,4,2          ; @DSO_R_UNSUPPORTED
	.comm	_DSO_R_LOAD_FAILED,4,2          ; @DSO_R_LOAD_FAILED
.subsections_via_symbols
