	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_load_module            ## -- Begin function _citrus_load_module
	.p2align	4, 0x90
__citrus_load_module:                   ## @_citrus_load_module
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	__pathI18nModule@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jne	LBB0_4
## %bb.1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_issetugid
	testl	%eax, %eax
	je	LBB0_12
LBB0_3:
	movq	__PATH_I18NMODULE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_4:
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	callq	_snprintf
	movq	_I18NMODULE_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	$-1, -52(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	callq	__findshlib
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_RTLD_LAZY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_libc_dlopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_7:
	xorl	%eax, %eax
	callq	_dlerror
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r13, %rdi
	callq	_strdup
	movq	%rax, (%r14)
	testq	%rax, %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_4
## %bb.13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	__pathI18nModule,8,3            ## @_pathI18nModule
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH_I18NMODULE"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	__PATH_I18NMODULE,8,3           ## @_PATH_I18NMODULE
L_.str.1:                               ## @.str.1
	.asciz	"lib%s"

	.comm	_I18NMODULE_MAJOR,4,2           ## @I18NMODULE_MAJOR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTLD_LAZY,4,2                  ## @RTLD_LAZY
L_.str.2:                               ## @.str.2
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_load_module            ; -- Begin function _citrus_load_module
	.p2align	2
__citrus_load_module:                   ; @_citrus_load_module
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x24, __pathI18nModule@GOTPAGE
Lloh9:
	ldr	x24, [x24, __pathI18nModule@GOTPAGEOFF]
	ldr	x8, [x24]
	cbnz	x8, LBB0_4
; %bb.1:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_3
; %bb.2:
	mov	x23, x0
	bl	_issetugid
	cbz	w0, LBB0_12
LBB0_3:
Lloh12:
	adrp	x8, __PATH_I18NMODULE@GOTPAGE
Lloh13:
	ldr	x8, [x8, __PATH_I18NMODULE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x24]
LBB0_4:
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	bl	_snprintf
Lloh17:
	adrp	x8, _I18NMODULE_MAJOR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I18NMODULE_MAJOR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x8]
	mov	w8, #-1
	stp	w8, w9, [x29, #-64]
	sub	x1, x29, #60
	sub	x2, x29, #64
	mov	x0, x20
	bl	__findshlib
	cbz	x0, LBB0_8
; %bb.5:
Lloh20:
	adrp	x8, _RTLD_LAZY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RTLD_LAZY@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_libc_dlopen
	cbz	x0, LBB0_7
; %bb.6:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_10
LBB0_7:
	bl	_dlerror
	mov	x1, x0
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_8:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.11:
	sub	sp, x29, #48
	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
LBB0_12:
	mov	x0, x23
	bl	_strdup
	str	x0, [x24]
	cbnz	x0, LBB0_4
; %bb.13:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	__pathI18nModule,8,3            ; @_pathI18nModule
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH_I18NMODULE"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	__PATH_I18NMODULE,8,3           ; @_PATH_I18NMODULE
l_.str.1:                               ; @.str.1
	.asciz	"lib%s"

	.comm	_I18NMODULE_MAJOR,4,2           ; @I18NMODULE_MAJOR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTLD_LAZY,4,2                  ; @RTLD_LAZY
l_.str.2:                               ; @.str.2
	.asciz	"%s"

.subsections_via_symbols
