	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic2euc_cn
_mic2euc_cn:                            ## @mic2euc_cn
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	testl	%edx, %edx
	jle	LBB0_14
## %bb.1:
	movl	%edx, %r12d
	movq	%rdi, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	%r13b, %r13b
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	%r13b, (%r14)
	incq	%r14
	incq	%r15
	movl	$-1, %eax
	addl	%eax, %r12d
	jg	LBB0_2
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_report_invalid_encoding
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %r13d
	movzbl	%r13b, %ebx
	movl	%ebx, %edi
	callq	_IS_HIGHBIT_SET
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LC_GB2312_80@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PG_EUC_CN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_report_untranslatable_char
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %r12d
	jb	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%r15), %edi
	callq	_IS_HIGHBIT_SET
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	2(%r15), %edi
	callq	_IS_HIGHBIT_SET
	testq	%rax, %rax
	jne	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_report_invalid_encoding
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%r15), %eax
	movb	%al, (%r14)
	movzbl	2(%r15), %eax
	addq	$3, %r15
	movb	%al, 1(%r14)
	addq	$2, %r14
	movl	$-3, %eax
	addl	%eax, %r12d
	jg	LBB0_2
LBB0_14:
	movb	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_GB2312_80,4,2               ## @LC_GB2312_80
	.comm	_PG_MULE_INTERNAL,4,2           ## @PG_MULE_INTERNAL
	.comm	_PG_EUC_CN,4,2                  ## @PG_EUC_CN
	.no_dead_strip	_mic2euc_cn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic2euc_cn
_mic2euc_cn:                            ; @mic2euc_cn
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	cmp	w2, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x23, _PG_MULE_INTERNAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PG_MULE_INTERNAL@GOTPAGEOFF]
Lloh2:
	adrp	x24, _LC_GB2312_80@GOTPAGE
Lloh3:
	ldr	x24, [x24, _LC_GB2312_80@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PG_EUC_CN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PG_EUC_CN@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w22, LBB0_13
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w22, [x19], #1
	add	x21, x21, #1
	mov	w8, #-1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, w8
	cmp	w20, #0
	b.le	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w22, [x21]
	mov	x0, x22
	bl	_IS_HIGHBIT_SET
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	cmp	w8, w22
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	ldr	w1, [x25]
	mov	x2, x21
	mov	x3, x20
	bl	_report_untranslatable_char
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #3
	b.lo	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w0, [x21, #1]
	bl	_IS_HIGHBIT_SET
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w0, [x21, #2]
	bl	_IS_HIGHBIT_SET
	cbnz	x0, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21, #1]
	strb	w8, [x19]
	ldrb	w8, [x21, #2]
	add	x21, x21, #3
	strb	w8, [x19, #1]
	add	x19, x19, #2
	mov	w8, #-3
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
	b	LBB0_3
LBB0_14:
	strb	wzr, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_GB2312_80,4,2               ; @LC_GB2312_80
	.comm	_PG_MULE_INTERNAL,4,2           ; @PG_MULE_INTERNAL
	.comm	_PG_EUC_CN,4,2                  ; @PG_EUC_CN
	.no_dead_strip	_mic2euc_cn
.subsections_via_symbols
