	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LibAliasLoadModule             ## -- Begin function LibAliasLoadModule
	.p2align	4, 0x90
_LibAliasLoadModule:                    ## @LibAliasLoadModule
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RTLD_LAZY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlopen
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_dlsym
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_dlerror
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_dlerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
LBB0_3:
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %r14
	movl	8(%rax), %edi
	movl	(%r15), %esi
	movq	_DLL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	movq	%rbx, (%r14)
	movq	%r14, %rdi
	callq	_attach_dll
	movq	_EEXIST@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_free
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%rbx), %ebx
	jmp	LBB0_5
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dlsym
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dlerror
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_12:
	movq	%r14, %rdi
	callq	_LibAliasAttachHandlers
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_RTLD_LAZY,4,2                  ## @RTLD_LAZY
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"alias_mod"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DLL_LEN,4,2                    ## @DLL_LEN
	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.2:                               ## @.str.2
	.asciz	"dll conflict\n"

L_.str.3:                               ## @.str.3
	.asciz	"handlers"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LibAliasLoadModule             ; -- Begin function LibAliasLoadModule
	.p2align	2
_LibAliasLoadModule:                    ; @LibAliasLoadModule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _RTLD_LAZY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTLD_LAZY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dlopen
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dlsym
	mov	x21, x0
	bl	_dlerror
	cbz	x0, LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	bl	_dlerror
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
LBB0_3:
	bl	_fprintf
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.7:
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x21]
Lloh12:
	adrp	x8, _DLL_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DLL_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_strncpy
	str	x19, [x20]
	mov	x0, x20
	bl	_attach_dll
Lloh15:
	adrp	x19, _EEXIST@GOTPAGE
Lloh16:
	ldr	x19, [x19, _EEXIST@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_free
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
	b	LBB0_5
LBB0_9:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	ldr	x0, [x20]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dlsym
	mov	x19, x0
	bl	_dlerror
	cbz	x0, LBB0_12
; %bb.11:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	b	LBB0_3
LBB0_12:
	mov	x0, x19
	bl	_LibAliasAttachHandlers
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RTLD_LAZY,4,2                  ; @RTLD_LAZY
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"alias_mod"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DLL_LEN,4,2                    ; @DLL_LEN
	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.2:                               ; @.str.2
	.asciz	"dll conflict\n"

l_.str.3:                               ; @.str.3
	.asciz	"handlers"

.subsections_via_symbols
