	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_iconv_std_iconv_init_context
__citrus_iconv_std_iconv_init_context:  ## @_citrus_iconv_std_iconv_init_context
	.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
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movl	4(%r14), %edi
	callq	__stdenc_get_state_size
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	__stdenc_get_state_size
	movq	%rax, %r15
	addq	%r12, %rax
	leaq	(%rax,%rax), %rdi
	addq	$8, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rax), %r13
	leaq	4(%rax), %rdi
	movl	4(%r14), %esi
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	leaq	(%r12,%r13), %rcx
	movq	%r13, %rdx
	jmp	LBB0_5
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_4:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_5:
	callq	_init_encoding
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	leaq	(,%r12,2), %rdx
	addq	%r13, %rdx
	movl	(%r14), %esi
	addq	%rdx, %r15
	movq	%rbx, %rdi
	movq	%r15, %rcx
	jmp	LBB0_8
LBB0_7:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_8:
	callq	_init_encoding
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	__citrus_iconv_std_iconv_init_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _citrus_iconv_std_iconv_init_context
__citrus_iconv_std_iconv_init_context:  ; @_citrus_iconv_std_iconv_init_context
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	ldr	w0, [x24, #4]
	bl	__stdenc_get_state_size
	mov	x21, x0
	ldr	w0, [x24]
	bl	__stdenc_get_state_size
	mov	x22, x0
	add	x8, x0, x21
	lsl	x8, x8, #1
	add	x0, x8, #8
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x23, x0, #8
	add	x0, x0, #4
	ldr	w1, [x24, #4]
	cbz	x21, LBB0_5
; %bb.2:
	add	x3, x23, x21
	mov	x2, x23
	bl	_init_encoding
	cbz	x22, LBB0_6
LBB0_3:
	add	x2, x23, x21, lsl #1
	ldr	w1, [x24]
	add	x3, x2, x22
	mov	x0, x20
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_5:
	mov	x2, #0
	mov	x3, #0
	bl	_init_encoding
	cbnz	x22, LBB0_3
LBB0_6:
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
LBB0_7:
	bl	_init_encoding
	mov	w0, #0
	str	x20, [x19]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	__citrus_iconv_std_iconv_init_context
.subsections_via_symbols
