	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic2big5
_mic2big5:                              ## @mic2big5
	.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, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	rolw	$8, %bx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movw	%bx, (%rax)
	addq	$2, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	addq	%rax, %r13
	subl	%r12d, %r15d
	testl	%r15d, %r15d
	jle	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %ebx
	movzbl	%bl, %r14d
	movl	%r14d, %edi
	callq	_IS_HIGHBIT_SET
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_pg_encoding_verifymb
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_report_invalid_encoding
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_LCPRV2_B@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edx
	movq	_LC_CNS11643_1@GOTPCREL(%rip), %rax
	cmpw	%r14w, (%rax)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_LC_CNS11643_2@GOTPCREL(%rip), %rax
	cmpw	%r14w, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpw	%r14w, %dx
	je	LBB0_13
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PG_BIG5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_report_untranslatable_char
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	%bl, %bl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_report_invalid_encoding
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%bl, (%rax)
	incq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	incq	%r13
	decl	%r15d
	testl	%r15d, %r15d
	jg	LBB0_2
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%r13), %eax
	movl	$2, %ecx
	cmpw	%r14w, %dx
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movzbl	2(%r13), %edx
	movl	$3, %ecx
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	movl	%r14d, %eax
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movzwl	%dx, %edx
	shll	$8, %edx
	movzbl	(%r13,%rcx), %edi
	orl	%edx, %edi
	movzwl	%ax, %esi
	callq	_CNStoBIG5
	movl	%eax, %ebx
	testw	%ax, %ax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PG_BIG5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_report_untranslatable_char
	jmp	LBB0_18
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_MULE_INTERNAL,4,2           ## @PG_MULE_INTERNAL
	.comm	_LC_CNS11643_1,2,1              ## @LC_CNS11643_1
	.comm	_LC_CNS11643_2,2,1              ## @LC_CNS11643_2
	.comm	_LCPRV2_B,2,1                   ## @LCPRV2_B
	.comm	_PG_BIG5,4,2                    ## @PG_BIG5
	.no_dead_strip	_mic2big5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic2big5
_mic2big5:                              ; @mic2big5
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	cmp	w2, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x24, _PG_MULE_INTERNAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PG_MULE_INTERNAL@GOTPAGEOFF]
Lloh2:
	adrp	x25, _LC_CNS11643_1@GOTPAGE
Lloh3:
	ldr	x25, [x25, _LC_CNS11643_1@GOTPAGEOFF]
Lloh4:
	adrp	x26, _LC_CNS11643_2@GOTPAGE
Lloh5:
	ldr	x26, [x26, _LC_CNS11643_2@GOTPAGEOFF]
Lloh6:
	adrp	x27, _LCPRV2_B@GOTPAGE
Lloh7:
	ldr	x27, [x27, _LCPRV2_B@GOTPAGEOFF]
Lloh8:
	adrp	x28, _PG_BIG5@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PG_BIG5@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x28]
	mov	x2, x21
	mov	x3, x20
	bl	_report_untranslatable_char
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, w22, sxtw
	sub	w20, w20, w22
	cmp	w20, #0
	b.le	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w23, [x21]
	mov	x0, x23
	bl	_IS_HIGHBIT_SET
	cbz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_pg_encoding_verifymb
	mov	x22, x0
	tbz	w0, #31, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w9, [x25]
	ldrh	w10, [x26]
	ldrh	w8, [x27]
	cmp	w9, w23
	ccmp	w10, w23, #4, ne
	ccmp	w8, w23, #4, ne
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w1, [x21, #1]
	cmp	w8, w23
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x21, #2]
	mov	w9, #3
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w23, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w23, [x19], #1
	add	x21, x21, #1
	sub	w20, w20, #1
	cmp	w20, #0
	b.gt	LBB0_4
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x1
	mov	w9, #2
	mov	x1, x23
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w0, [x21, x9]
	bfi	w0, w8, #8, #8
	bl	_CNStoBIG5
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x28]
	mov	x2, x21
	mov	x3, x20
	bl	_report_untranslatable_char
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	rev16	w8, w23
	strh	w8, [x19], #2
	b	LBB0_3
LBB0_17:
	strb	wzr, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_MULE_INTERNAL,4,2           ; @PG_MULE_INTERNAL
	.comm	_LC_CNS11643_1,2,1              ; @LC_CNS11643_1
	.comm	_LC_CNS11643_2,2,1              ; @LC_CNS11643_2
	.comm	_LCPRV2_B,2,1                   ; @LCPRV2_B
	.comm	_PG_BIG5,4,2                    ; @PG_BIG5
	.no_dead_strip	_mic2big5
.subsections_via_symbols
