	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function towide_euc_impl
_towide_euc_impl:                       ## @towide_euc_impl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %r10d
	testb	$-128, %r10b
	jne	LBB0_2
## %bb.1:
	movl	%r10d, (%rdi)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_2:
	cmpl	$160, %r10d
	jle	LBB0_3
## %bb.7:
	movl	$2, %eax
	cmpl	$2, %edx
	jl	LBB0_8
	jmp	LBB0_5
LBB0_3:
	cmpl	%r9d, %r10d
	movl	$2, %eax
	cmovel	16(%rbp), %eax
	cmpl	%ecx, %r10d
	cmovel	%r8d, %eax
	cmpl	%edx, %eax
	jle	LBB0_4
LBB0_8:
	movq	%rsi, %rdi
	callq	_show_mb
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_werr
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_4:
	cmpl	$2, %eax
	jl	LBB0_15
LBB0_5:
	movl	%eax, %edx
	leaq	-1(%rdx), %r9
	addq	$-2, %rdx
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rdx
	jae	LBB0_9
## %bb.6:
	movl	$1, %edx
	testq	%r8, %r8
	jne	LBB0_13
	jmp	LBB0_15
LBB0_9:
	andq	$-4, %r9
	negq	%r9
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r9,%rdx), %rcx
	addq	$4, %rcx
	addq	$4, %rdx
	cmpq	$1, %rcx
	jne	LBB0_10
## %bb.11:
	movzbl	-4(%rsi,%rdx), %r9d
	shll	$16, %r9d
	movsbl	-3(%rsi,%rdx), %ecx
	shll	$8, %ecx
	orl	%r9d, %ecx
	movsbl	-2(%rsi,%rdx), %r9d
	orl	%ecx, %r9d
	shll	$8, %r9d
	movsbl	-1(%rsi,%rdx), %r10d
	orl	%r9d, %r10d
	testq	%r8, %r8
	je	LBB0_15
LBB0_13:
	addq	%rdx, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r10d, %edx
	shll	$8, %edx
	movsbl	(%rsi,%rcx), %r10d
	orl	%edx, %r10d
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_14
LBB0_15:
	movl	%r10d, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incomplete character sequence (%s)"

	.no_dead_strip	_towide_euc_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function towide_euc_impl
_towide_euc_impl:                       ; @towide_euc_impl
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w9, [x1]
	tbnz	w9, #7, LBB0_2
; %bb.1:
	str	w9, [x0]
	mov	w8, #1
	b	LBB0_11
LBB0_2:
	cmp	w9, #160
	b.le	LBB0_5
; %bb.3:
	cmp	w2, #2
	b.lt	LBB0_6
; %bb.4:
	mov	w8, #2
	b	LBB0_8
LBB0_5:
	mov	w8, #2
	cmp	w9, w5
	csel	w8, w6, w8, eq
	cmp	w9, w3
	csel	w8, w4, w8, eq
	cmp	w8, w2
	b.le	LBB0_7
LBB0_6:
	mov	x0, x1
	bl	_show_mb
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_werr
	mov	w8, #-1
	b	LBB0_11
LBB0_7:
	cmp	w8, #2
	b.lt	LBB0_10
LBB0_8:
	mov	w11, w8
	add	x10, x1, #1
	sub	x11, x11, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w12, [x10], #1
	orr	w9, w12, w9, lsl #8
	subs	x11, x11, #1
	b.ne	LBB0_9
LBB0_10:
	str	w9, [x0]
LBB0_11:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incomplete character sequence (%s)"

	.no_dead_strip	_towide_euc_impl
.subsections_via_symbols
