	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function conv_einval
_conv_einval:                           ## @conv_einval
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$59970, -52(%rbp)               ## imm = 0xEA42
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_iconv_open
	movl	$1, %ecx
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.1:
	leaq	-52(%rbp), %rbx
	movq	%rbx, -72(%rbp)
	leaq	-48(%rbp), %r15
	movq	%r15, -64(%rbp)
	movq	$2, -88(%rbp)
	movq	$16, -80(%rbp)
	movq	_errno@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	leaq	-72(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-80(%rbp), %r8
	movl	%eax, %edi
	callq	_iconv
	movq	-72(%rbp), %rcx
	subq	%rbx, %rcx
	cmpq	$4, %rcx
	jne	LBB0_7
## %bb.2:
	cmpq	$1, -88(%rbp)
	jne	LBB0_7
## %bb.3:
	cmpq	$8, -80(%rbp)
	jne	LBB0_7
## %bb.4:
	movq	-64(%rbp), %rcx
	subq	%r15, %rcx
	cmpq	$32, %rcx
	jne	LBB0_7
## %bb.5:
	movl	(%r14), %ecx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	cmpl	$-1, %eax
	je	LBB0_8
LBB0_7:
	movl	$1, %ecx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ecx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UTF-32"

L_.str.1:                               ## @.str.1
	.asciz	"BIG5"

	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_conv_einval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function conv_einval
_conv_einval:                           ; @conv_einval
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #59970
	str	w8, [sp, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_iconv_open
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.1:
	add	x20, sp, #4
	add	x8, sp, #40
	stp	x8, x20, [sp, #8]
	mov	w9, #2
	mov	w8, #16
	stp	x8, x9, [sp, #24]
Lloh7:
	adrp	x19, _errno@GOTPAGE
Lloh8:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	str	wzr, [x19]
	add	x1, sp, #16
	add	x2, sp, #32
	add	x3, sp, #8
	add	x4, sp, #24
	bl	_iconv
	ldr	x8, [sp, #16]
	sub	x8, x8, x20
	cmp	x8, #4
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [sp, #32]
	cmp	x8, #1
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [sp, #24]
	cmp	x8, #8
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [sp, #8]
	add	x9, sp, #40
	sub	x8, x8, x9
	cmp	x8, #32
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _EINVAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.6:
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UTF-32"

l_.str.1:                               ; @.str.1
	.asciz	"BIG5"

	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_conv_einval
.subsections_via_symbols
