	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctl_trivialp1
_ctl_trivialp1:                         ## @ctl_trivialp1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	movq	%rdi, %rsi
	callq	_iconv_open
	cmpq	$-1, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_ICONV_TRIVIALP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_iconvctl
	testq	%rax, %rax
	setne	%r14b
	cmpl	$1, -28(%rbp)
	setne	%r15b
	movq	%rbx, %rdi
	callq	_iconv_close
	cmpl	$-1, %eax
	sete	%al
	orb	%r15b, %al
	orb	%r14b, %al
	movzbl	%al, %eax
	negl	%eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"latin2"

	.comm	_ICONV_TRIVIALP,4,2             ## @ICONV_TRIVIALP
	.no_dead_strip	_ctl_trivialp1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctl_trivialp1
_ctl_trivialp1:                         ; @ctl_trivialp1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x0
	bl	_iconv_open
	cmn	x0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _ICONV_TRIVIALP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ICONV_TRIVIALP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_iconvctl
	mov	x20, x0
	ldr	w21, [sp, #12]
	mov	x0, x19
	bl	_iconv_close
	cmn	w0, #1
	ccmp	x20, #0, #0, ne
	ccmp	w21, #1, #0, eq
	cset	w8, ne
	sbfx	w0, w8, #0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"latin2"

	.comm	_ICONV_TRIVIALP,4,2             ; @ICONV_TRIVIALP
	.no_dead_strip	_ctl_trivialp1
.subsections_via_symbols
