	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_module_load                    ## -- Begin function module_load
	.p2align	4, 0x90
_module_load:                           ## @module_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_HCBUFSIZ_TINY@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_hcmalloc
	movq	%rax, %rbx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, %rdx
	callq	_module_filename
	movq	%rbx, %rdi
	callq	_hc_dlopen
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_hc_dlsym
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	callq	_hcfree
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	callq	_dlerror
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
LBB0_4:
	callq	_event_log_error
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCBUFSIZ_TINY,4,2              ## @HCBUFSIZ_TINY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"module_init"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot load symbol 'module_init' in module %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_module_load                    ; -- Begin function module_load
	.p2align	2
_module_load:                           ; @module_load
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x24, _HCBUFSIZ_TINY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HCBUFSIZ_TINY@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_hcmalloc
	mov	x21, x0
	ldr	w3, [x24]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_module_filename
	mov	x0, x21
	bl	_hc_dlopen
	str	x0, [x20, #8]
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_hc_dlsym
	str	x0, [x20]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_hcfree
	mov	w0, #1
	b	LBB0_6
LBB0_3:
	bl	_dlerror
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
LBB0_5:
	bl	_event_log_error
	mov	w0, #0
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HCBUFSIZ_TINY,4,2              ; @HCBUFSIZ_TINY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"module_init"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot load symbol 'module_init' in module %s"

.subsections_via_symbols
