	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reencode_string_iconv          ## -- Begin function reencode_string_iconv
	.p2align	4, 0x90
_reencode_string_iconv:                 ## @reencode_string_iconv
	.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	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %rax
	movq	%rdi, %r12
	movq	%rsi, -64(%rbp)
	movq	%rsi, -56(%rbp)
	leal	1(%rcx), %esi
	movq	%rax, %rdi
	callq	_st_add
	movq	%rax, %rdi
	callq	_xmalloc
	movq	%rax, %rbx
	addq	%r14, %rax
	movq	%rax, -48(%rbp)
	movq	%r12, -72(%rbp)
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movl	%r15d, %edi
	callq	_iconv
	cmpq	$-1, %rax
	jne	LBB0_5
## %bb.1:
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_E2BIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13
	subq	%rbx, %r13
	movq	-64(%rbp), %rdi
	movl	$2, %esi
	callq	_st_mult
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$32, %edx
	callq	_st_add3
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_xrealloc
	movq	%rax, %rbx
	addq	%r13, %rax
	movq	%rax, -48(%rbp)
	notq	%r13
	addq	%r14, %r13
	movq	%r13, -56(%rbp)
	movl	%r15d, %edi
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %r8
	callq	_iconv
	cmpq	$-1, %rax
	je	LBB0_2
LBB0_5:
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax
	subq	%rbx, %rax
	movq	%rax, (%rcx)
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_E2BIG,8,3                      ## @E2BIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reencode_string_iconv          ; -- Begin function reencode_string_iconv
	.p2align	2
_reencode_string_iconv:                 ; @reencode_string_iconv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x8, x1
	mov	x23, x0
	stp	x1, x1, [sp, #16]
	add	w1, w22, #1
	mov	x0, x8
	bl	_st_add
	bl	_xmalloc
	mov	x20, x0
	add	x8, x0, x22
	stp	x23, x8, [sp]
	mov	x1, sp
	add	x2, sp, #24
	add	x3, sp, #8
	add	x4, sp, #16
	mov	x0, x21
	bl	_iconv
	cmn	x0, #1
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x25, _E2BIG@GOTPAGE
Lloh3:
	ldr	x25, [x25, _E2BIG@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	sub	x22, x8, x20
	ldr	x0, [sp, #24]
	mov	w1, #2
	bl	_st_mult
	mov	x1, x0
	mov	x0, x22
	mov	w2, #32
	bl	_st_add3
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_xrealloc
	mov	x20, x0
	add	x8, x0, x22
	str	x8, [sp, #8]
	mvn	x8, x22
	add	x8, x23, x8
	str	x8, [sp, #16]
	mov	x1, sp
	add	x2, sp, #24
	add	x3, sp, #8
	add	x4, sp, #16
	mov	x0, x21
	bl	_iconv
	cmn	x0, #1
	b.eq	LBB0_2
LBB0_4:
	ldr	x8, [sp, #8]
	strb	wzr, [x8]
	cbz	x19, LBB0_7
; %bb.5:
	ldr	x8, [sp, #8]
	sub	x8, x8, x20
	str	x8, [x19]
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_free
	mov	x20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_E2BIG,8,3                      ; @E2BIG
.subsections_via_symbols
