	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_shared
_open_shared:                           ## @open_shared
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strlen
	movq	%rax, %r15
	leal	33(%rax), %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r13), %r14
	movq	$0, 24(%r13)
	movq	%r13, %rdi
	addq	$32, %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movq	%rdi, 16(%r13)
	incq	%r15
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	__citrus_load_module
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	__citrus_find_getops
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	$40, %edi
	callq	_malloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, %rdi
	callq	*%rbx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movq	(%r13), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.8:
	cmpq	$0, 32(%rax)
	je	LBB0_12
## %bb.9:
	cmpq	$0, 24(%rax)
	je	LBB0_12
## %bb.10:
	cmpq	$0, 16(%rax)
	je	LBB0_12
## %bb.11:
	cmpq	$0, 8(%rax)
	je	LBB0_12
## %bb.15:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	*%rcx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
LBB0_14:
	movq	%r13, %rdi
	callq	_close_shared
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iconv_std"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"iconv"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_open_shared
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_shared
_open_shared:                           ; @open_shared
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	mov	x0, x1
	bl	_strlen
	mov	x25, x0
	add	w0, w25, #33
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	mov	x24, x19
	str	xzr, [x24, #8]!
	add	x0, x19, #32
	str	xzr, [x19]
	stp	x0, xzr, [x19, #16]
	add	x2, x25, #1
	mov	x1, x23
	bl	_memcpy
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	__citrus_load_module
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.2:
	ldr	x0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	__citrus_find_getops
	cbz	x0, LBB0_16
; %bb.3:
	mov	x23, x0
	mov	w0, #40
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.4:
	blr	x23
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.5:
	ldr	x9, [x19]
	ldr	x8, [x9]
	cbz	x8, LBB0_17
; %bb.6:
	ldr	x10, [x9, #32]
	cbz	x10, LBB0_17
; %bb.7:
	ldr	x10, [x9, #24]
	cbz	x10, LBB0_17
; %bb.8:
	ldr	x10, [x9, #16]
	cbz	x10, LBB0_17
; %bb.9:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_17
; %bb.10:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.11:
	str	x19, [x20]
	b	LBB0_15
LBB0_12:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_13:
	ldr	w23, [x8]
LBB0_14:
	mov	x0, x19
	bl	_close_shared
LBB0_15:
	mov	x0, x23
	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_16:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iconv_std"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"iconv"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_open_shared
.subsections_via_symbols
