	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_iconv_open             ## -- Begin function _citrus_iconv_open
	.p2align	4, 0x90
__citrus_iconv_open:                    ## @_citrus_iconv_open
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%eax, %eax
	callq	_init_cache
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	movq	_CODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nl_langinfo
	movq	%rax, %rbx
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	_CODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nl_langinfo
	movq	%rax, %r13
LBB0_6:
	movslq	(%r14), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strlcpy
	movslq	(%r14), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_strlcpy
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_get_shared
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_12:
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rdi
	movq	%rax, (%r14)
	movq	%rax, %r12
LBB0_15:
	movq	-56(%rbp), %rax
	movq	%rax, (%rdi)
	movq	-56(%rbp), %rax
	movq	(%rax), %rax
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi
	callq	_release_shared
	movq	%r12, %rdi
	callq	_free
	movl	%r15d, %ebx
	jmp	LBB0_17
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %rdi
	callq	_release_shared
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

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

	.comm	_CODESET,4,2                    ## @CODESET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	__CITRUS_ICONV_ALIAS,8,3        ## @_CITRUS_ICONV_ALIAS
	.comm	__LOOKUP_CASE_IGNORE,4,2        ## @_LOOKUP_CASE_IGNORE
	.comm	__PATH_ICONV,8,3                ## @_PATH_ICONV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_iconv_open             ; -- Begin function _citrus_iconv_open
	.p2align	2
__citrus_iconv_open:                    ; @_citrus_iconv_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stur	xzr, [x29, #-80]
Lloh3:
	adrp	x25, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PATH_MAX@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x25]
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	bl	_init_cache
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_strcmp
Lloh11:
	adrp	x26, _CODESET@GOTPAGE
Lloh12:
	ldr	x26, [x26, _CODESET@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbnz	x0, LBB0_3
LBB0_2:
	ldr	w0, [x26]
	bl	_nl_langinfo
	mov	x23, x0
LBB0_3:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.4:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbnz	x0, LBB0_6
LBB0_5:
	ldr	w0, [x26]
	bl	_nl_langinfo
	mov	x22, x0
LBB0_6:
	ldrsw	x2, [x25]
	mov	x0, x21
	mov	x1, x23
	bl	_strlcpy
	ldrsw	x2, [x25]
	mov	x0, x20
	mov	x1, x22
	bl	_strlcpy
	mov	x0, x21
	mov	w1, #47
	bl	_strchr
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_11
LBB0_8:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
LBB0_9:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.10:
	mov	x0, x20
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	sub	x0, x29, #80
	mov	x1, x21
	mov	x2, x20
	bl	_get_shared
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.12:
	ldr	x0, [x19]
	cbz	x0, LBB0_14
; %bb.13:
	mov	x19, #0
	b	LBB0_16
LBB0_14:
	mov	w0, #8
	bl	_malloc
	cbz	x0, LBB0_18
; %bb.15:
	str	x0, [x19]
	mov	x19, x0
LBB0_16:
	ldur	x8, [x29, #-80]
	str	x8, [x0]
	ldur	x8, [x29, #-80]
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.17:
	ldur	x0, [x29, #-80]
	bl	_release_shared
	mov	x0, x19
	bl	_free
	b	LBB0_9
LBB0_18:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
	ldur	x0, [x29, #-80]
	bl	_release_shared
	b	LBB0_9
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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

	.comm	_CODESET,4,2                    ; @CODESET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	__CITRUS_ICONV_ALIAS,8,3        ; @_CITRUS_ICONV_ALIAS
	.comm	__LOOKUP_CASE_IGNORE,4,2        ; @_LOOKUP_CASE_IGNORE
	.comm	__PATH_ICONV,8,3                ; @_PATH_ICONV
.subsections_via_symbols
