	.file	"extr_euc_tw_and_big5.c_mic2euc_tw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mic2euc_tw, @function
mic2euc_tw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	edx, edx
	jle	.L2
	mov	r14d, -93
	mov	rbx, rdi
	mov	ebp, edx
	sub	r14b, BYTE PTR LC_CNS11643_3[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L16:
	test	r12d, r12d
	je	.L15
.L4:
	sub	ebp, 1
	mov	BYTE PTR 0[r13], r15b
	add	rbx, 1
	add	r13, 1
	test	ebp, ebp
	jle	.L2
.L11:
	movzx	r12d, BYTE PTR [rbx]
	mov	edi, r12d
	mov	r15d, r12d
	call	IS_HIGHBIT_SET@PLT
	test	eax, eax
	je	.L16
	mov	edi, DWORD PTR PG_MULE_INTERNAL[rip]
	mov	edx, ebp
	mov	rsi, rbx
	call	pg_encoding_verifymb@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L17
.L6:
	cmp	DWORD PTR LC_CNS11643_1[rip], r12d
	je	.L18
	cmp	DWORD PTR LC_CNS11643_2[rip], r12d
	je	.L19
	cmp	DWORD PTR LCPRV2_B[rip], r12d
	jne	.L10
	movzx	eax, BYTE PTR 1[rbx]
	cmp	al, BYTE PTR LC_CNS11643_3[rip]
	jb	.L10
	cmp	al, BYTE PTR LC_CNS11643_7[rip]
	ja	.L10
	mov	rax, QWORD PTR SS2[rip]
	add	r13, 4
	mov	BYTE PTR -4[r13], al
	movzx	eax, BYTE PTR 1[rbx]
	add	eax, r14d
	mov	BYTE PTR -3[r13], al
	movzx	eax, BYTE PTR 2[rbx]
	mov	BYTE PTR -2[r13], al
	movzx	eax, BYTE PTR 3[rbx]
	mov	BYTE PTR -1[r13], al
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR PG_EUC_TW[rip]
	mov	edi, DWORD PTR PG_MULE_INTERNAL[rip]
	mov	ecx, ebp
	mov	rdx, rbx
	call	report_untranslatable_char@PLT
.L8:
	movsx	rax, r15d
	sub	ebp, r15d
	add	rbx, rax
	test	ebp, ebp
	jg	.L11
.L2:
	mov	BYTE PTR 0[r13], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	movzx	eax, BYTE PTR 1[rbx]
	add	r13, 2
	mov	BYTE PTR -2[r13], al
	movzx	eax, BYTE PTR 2[rbx]
	mov	BYTE PTR -1[r13], al
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR PG_MULE_INTERNAL[rip]
	mov	edx, ebp
	mov	rsi, rbx
	call	report_invalid_encoding@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR PG_MULE_INTERNAL[rip]
	mov	edx, ebp
	mov	rsi, rbx
	call	report_invalid_encoding@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR SS2[rip]
	mov	BYTE PTR 1[r13], -94
	add	r13, 4
	mov	BYTE PTR -4[r13], al
	movzx	eax, BYTE PTR 1[rbx]
	mov	BYTE PTR -2[r13], al
	movzx	eax, BYTE PTR 2[rbx]
	mov	BYTE PTR -1[r13], al
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	mic2euc_tw, .-mic2euc_tw
	.comm	SS2,8,8
	.comm	PG_MULE_INTERNAL,4,4
	.comm	PG_EUC_TW,4,4
	.comm	LC_CNS11643_7,1,1
	.comm	LC_CNS11643_3,1,1
	.comm	LC_CNS11643_2,4,4
	.comm	LC_CNS11643_1,4,4
	.comm	LCPRV2_B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_euc_tw_and_big5.c_mic2euc_tw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mic2euc_tw, %function
mic2euc_tw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r6, r2, #0
	mov	r5, r1
	ble	.L2
	mov	r4, r0
	ldr	r8, .L20
	ldr	r9, .L20+4
	ldr	r10, .L20+8
	b	.L11
.L16:
	cmp	fp, #0
	beq	.L15
.L4:
	sub	r6, r6, #1
	cmp	r6, #0
	strb	fp, [r5], #1
	add	r4, r4, #1
	ble	.L2
.L11:
	ldrb	fp, [r4]	@ zero_extendqisi2
	mov	r0, fp
	bl	IS_HIGHBIT_SET
	cmp	r0, #0
	beq	.L16
	mov	r2, r6
	mov	r1, r4
	ldr	r0, [r8]
	bl	pg_encoding_verifymb
	subs	r7, r0, #0
	blt	.L17
.L6:
	ldr	r3, [r9]
	cmp	r3, fp
	beq	.L18
	ldr	r3, [r10]
	cmp	r3, fp
	beq	.L19
	ldr	r3, .L20+12
	ldr	r3, [r3]
	cmp	r3, fp
	bne	.L10
	ldr	r2, .L20+16
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r3, r2
	bcc	.L10
	ldr	r1, .L20+20
	ldrb	r1, [r1]	@ zero_extendqisi2
	cmp	r1, r3
	bcc	.L10
	mvn	r3, #92
	ldr	r1, .L20+24
	sub	r3, r3, r2
	ldr	r2, [r1]
	add	r5, r5, #4
	strb	r2, [r5, #-4]
	ldrb	r2, [r4, #1]	@ zero_extendqisi2
	add	r2, r2, r3
	strb	r2, [r5, #-3]
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	strb	r3, [r5, #-2]
	ldrb	r3, [r4, #3]	@ zero_extendqisi2
	strb	r3, [r5, #-1]
	b	.L8
.L10:
	ldr	r1, .L20+28
	mov	r3, r6
	mov	r2, r4
	ldr	r1, [r1]
	ldr	r0, [r8]
	bl	report_untranslatable_char
.L8:
	sub	r6, r6, r7
	cmp	r6, #0
	add	r4, r4, r7
	bgt	.L11
.L2:
	mov	r3, #0
	strb	r3, [r5]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r3, r5
	ldrb	r2, [r4, #1]	@ zero_extendqisi2
	strb	r2, [r3], #2
	ldrb	r2, [r4, #2]	@ zero_extendqisi2
	strb	r2, [r5, #1]
	mov	r5, r3
	b	.L8
.L15:
	mov	r2, r6
	mov	r1, r4
	ldr	r0, [r8]
	bl	report_invalid_encoding
	b	.L4
.L17:
	mov	r2, r6
	mov	r1, r4
	ldr	r0, [r8]
	bl	report_invalid_encoding
	b	.L6
.L19:
	mvn	r2, #93
	ldr	r3, .L20+24
	add	r5, r5, #4
	ldr	r3, [r3]
	strb	r2, [r5, #-3]
	strb	r3, [r5, #-4]
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	strb	r3, [r5, #-2]
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	strb	r3, [r5, #-1]
	b	.L8
.L21:
	.align	2
.L20:
	.word	PG_MULE_INTERNAL
	.word	LC_CNS11643_1
	.word	LC_CNS11643_2
	.word	LCPRV2_B
	.word	LC_CNS11643_3
	.word	LC_CNS11643_7
	.word	SS2
	.word	PG_EUC_TW
	.size	mic2euc_tw, .-mic2euc_tw
	.comm	SS2,4,4
	.comm	PG_MULE_INTERNAL,4,4
	.comm	PG_EUC_TW,4,4
	.comm	LC_CNS11643_7,1,1
	.comm	LC_CNS11643_3,1,1
	.comm	LC_CNS11643_2,4,4
	.comm	LC_CNS11643_1,4,4
	.comm	LCPRV2_B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
