	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_iconv_std_iconv_convert
__citrus_iconv_std_iconv_convert:       ## @_citrus_iconv_std_iconv_convert
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -108(%rbp)                ## 4-byte Spill
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	16(%rbp), %r13
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movl	$0, -52(%rbp)
	testq	%rsi, %rsi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_20
## %bb.1:
	movq	%rsi, %r12
	cmpq	$0, (%rsi)
	je	LBB0_20
## %bb.2:
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	4(%rbx), %r14
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r13
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	jne	LBB0_4
	.p2align	4, 0x90
LBB0_3:
	movq	%r14, %rdi
	leaq	-52(%rbp), %rsi
	callq	_get_state_desc_gen
	movl	-52(%rbp), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_31
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_save_encoding_state
	movq	%rbx, %rdi
	callq	_save_encoding_state
	movq	(%r12), %rax
	movq	%rax, -144(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -136(%rbp)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	leaq	-104(%rbp), %rsi
	leaq	-100(%rbp), %rdx
	leaq	-144(%rbp), %rcx
	movq	%r13, %r8
	leaq	-136(%rbp), %r9
	callq	_mbtocsx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$-2, -136(%rbp)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	leaq	-52(%rbp), %rsi
	callq	_get_state_desc_gen
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_27
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_18
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	-104(%rbp), %rsi
	leaq	-100(%rbp), %rdx
	callq	_do_conv
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
	movq	_E_NO_CORRESPONDING_CHAR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_35
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_33
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	incq	-48(%rbp)                       ## 8-byte Folded Spill
	movq	$0, -88(%rbp)
	movl	-108(%rbp), %eax                ## 4-byte Reload
	movq	__CITRUS_ICONV_F_HIDE_INVALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 12(%rax)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rdx), %rsi
	movq	(%rcx), %rdx
	movl	(%rax), %ecx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r9d
	movq	%rbx, %rdi
	leaq	-88(%rbp), %r8
	callq	_wctombx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movl	-104(%rbp), %ecx
	movl	-100(%rbp), %r8d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-88(%rbp), %r9
	callq	_cstombx
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	jne	LBB0_26
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-144(%rbp), %rax
	subq	%rax, %r13
	addq	(%r12), %r13
	movq	%rax, (%r12)
	movq	-88(%rbp), %rax
	subq	%rax, (%rcx)
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%r13, (%rcx)
	addq	%rax, (%rdx)
	testq	%r13, %r13
	jne	LBB0_4
	jmp	LBB0_3
LBB0_20:
	testq	%r15, %r15
	je	LBB0_24
## %bb.21:
	cmpq	$0, (%r15)
	je	LBB0_24
## %bb.22:
	leaq	4(%rbx), %rdi
	callq	_save_encoding_state
	movq	%rbx, %rdi
	callq	_save_encoding_state
	movq	$0, -88(%rbp)
	movq	(%r15), %rsi
	movq	(%r14), %r14
	leaq	-88(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_put_state_resetx
	testl	%eax, %eax
	je	LBB0_28
## %bb.23:
	movl	%eax, %r15d
	jmp	LBB0_30
LBB0_24:
	movq	%rbx, %rdi
	callq	_init_encoding_state
LBB0_25:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_init_encoding_state
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_37
LBB0_26:
	movl	%eax, %r15d
	jmp	LBB0_35
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_28:
	movq	-88(%rbp), %rax
	cmpq	$-2, %rax
	jne	LBB0_32
## %bb.29:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_30:
	xorl	%r14d, %r14d
	jmp	LBB0_36
LBB0_31:
	xorl	%r15d, %r15d
	movq	16(%rbp), %r13
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_32:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, (%rcx)
	subq	%rax, %r14
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_33:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %r15d
LBB0_35:
	movq	16(%rbp), %r13
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_36:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	4(%rbx), %rdi
	callq	_restore_encoding_state
	movq	%rbx, %rdi
	callq	_restore_encoding_state
LBB0_37:
	movq	%r14, (%r13)
	movl	%r15d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_E_NO_CORRESPONDING_CHAR,4,2    ## @E_NO_CORRESPONDING_CHAR
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	__CITRUS_ICONV_F_HIDE_INVALID,4,2 ## @_CITRUS_ICONV_F_HIDE_INVALID
	.no_dead_strip	__citrus_iconv_std_iconv_convert
.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_convert
__citrus_iconv_std_iconv_convert:       ; @_citrus_iconv_std_iconv_convert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x6
	str	w5, [sp, #12]                   ; 4-byte Folded Spill
	mov	x21, x4
	mov	x22, x3
	ldp	x26, x20, [x0]
	ldr	x9, [x26, #16]
	str	wzr, [sp, #28]
	cbz	x1, LBB0_19
; %bb.1:
	mov	x25, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_19
; %bb.2:
	mov	x24, x2
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	str	x27, [sp]                       ; 8-byte Folded Spill
	mov	x23, #0
	add	x27, x20, #4
	ldr	x28, [x2]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x22]
	ldr	x2, [x21]
	ldp	w4, w3, [sp, #56]
	ldr	w6, [x26, #8]
	add	x5, sp, #32
	mov	x0, x20
	bl	_cstombx
	cbnz	w0, LBB0_18
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #48]
	ldr	x9, [x25]
	sub	x10, x28, x8
	add	x28, x10, x9
	str	x28, [x24]
	str	x8, [x25]
	ldr	x8, [sp, #32]
	ldr	x9, [x21]
	sub	x9, x9, x8
	str	x9, [x21]
	ldr	x9, [x22]
	add	x8, x9, x8
	str	x8, [x22]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x28, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #28
	mov	x0, x27
	bl	_get_state_desc_gen
	ldr	w8, [sp, #28]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_28
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x27
	bl	_save_encoding_state
	mov	x0, x20
	bl	_save_encoding_state
	ldr	x8, [x25]
	stp	xzr, x8, [sp, #40]
	str	xzr, [sp, #32]
	ldr	w6, [x26, #8]
	add	x1, sp, #60
	add	x2, sp, #56
	add	x3, sp, #48
	add	x5, sp, #40
	mov	x0, x27
	mov	x4, x28
	bl	_mbtocsx
	cbnz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #40]
	cmn	x8, #2
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #28
	mov	x0, x27
	bl	_get_state_desc_gen
	cbnz	w0, LBB0_25
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #28]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_4
	b	LBB0_25
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #60
	add	x2, sp, #56
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_do_conv
	cbz	w0, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x0
Lloh0:
	adrp	x8, _E_NO_CORRESPONDING_CHAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_NO_CORRESPONDING_CHAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_32
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	cbnz	x8, LBB0_30
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	str	xzr, [sp, #32]
Lloh3:
	adrp	x8, __CITRUS_ICONV_F_HIDE_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, __CITRUS_ICONV_F_HIDE_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	tst	w8, w9
	b.ne	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26, #12]
	cbnz	w8, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x22]
	ldr	x2, [x21]
	ldr	w3, [x9]
	ldr	w5, [x26, #8]
	add	x4, sp, #32
	mov	x0, x20
	bl	_wctombx
	cbz	w0, LBB0_4
LBB0_18:
	mov	x19, x0
	b	LBB0_32
LBB0_19:
	cbz	x22, LBB0_23
; %bb.20:
	ldr	x8, [x22]
	cbz	x8, LBB0_23
; %bb.21:
	add	x0, x20, #4
	bl	_save_encoding_state
	mov	x0, x20
	bl	_save_encoding_state
	str	xzr, [sp, #32]
	ldr	x1, [x22]
	ldr	x23, [x21]
	add	x3, sp, #32
	mov	x0, x20
	mov	x2, x23
	bl	_put_state_resetx
	cbz	w0, LBB0_26
; %bb.22:
	mov	x19, x0
	mov	x23, #0
	b	LBB0_33
LBB0_23:
	mov	x0, x20
	bl	_init_encoding_state
LBB0_24:
	add	x0, x20, #4
	bl	_init_encoding_state
	mov	x23, #0
	mov	w19, #0
	b	LBB0_34
LBB0_25:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_31
LBB0_26:
	ldr	x8, [sp, #32]
	cmn	x8, #2
	b.ne	LBB0_29
; %bb.27:
	mov	x23, #0
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	b	LBB0_33
LBB0_28:
	mov	w19, #0
	ldr	x27, [sp]                       ; 8-byte Folded Reload
	b	LBB0_34
LBB0_29:
	ldr	x9, [x22]
	add	x9, x9, x8
	str	x9, [x22]
	sub	x8, x23, x8
	str	x8, [x21]
	b	LBB0_24
LBB0_30:
Lloh11:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_31:
	ldr	w19, [x8]
LBB0_32:
	ldr	x27, [sp]                       ; 8-byte Folded Reload
LBB0_33:
	add	x0, x20, #4
	bl	_restore_encoding_state
	mov	x0, x20
	bl	_restore_encoding_state
LBB0_34:
	str	x23, [x27]
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_E_NO_CORRESPONDING_CHAR,4,2    ; @E_NO_CORRESPONDING_CHAR
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	__CITRUS_ICONV_F_HIDE_INVALID,4,2 ; @_CITRUS_ICONV_F_HIDE_INVALID
	.no_dead_strip	__citrus_iconv_std_iconv_convert
.subsections_via_symbols
