	.file	"extr_euc_kr_and_mic.c_mic2euc_kr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mic2euc_kr, @function
mic2euc_kr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	edx, edx
	jle	.L2
	mov	rbx, rdi
	mov	ebp, edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	test	r14d, r14d
	je	.L13
.L4:
	sub	ebp, 1
	mov	BYTE PTR [r12], r13b
	add	rbx, 1
	add	r12, 1
	test	ebp, ebp
	jle	.L2
.L9:
	movzx	r14d, BYTE PTR [rbx]
	mov	edi, r14d
	mov	r13d, r14d
	call	IS_HIGHBIT_SET@PLT
	test	eax, eax
	je	.L14
	mov	edi, DWORD PTR PG_MULE_INTERNAL[rip]
	mov	edx, ebp
	mov	rsi, rbx
	call	pg_encoding_verifymb@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L15
.L6:
	cmp	DWORD PTR LC_KS5601[rip], r14d
	jne	.L7
	movzx	eax, BYTE PTR 1[rbx]
	add	r12, 2
	mov	BYTE PTR -2[r12], al
	movzx	eax, BYTE PTR 2[rbx]
	mov	BYTE PTR -1[r12], al
.L8:
	movsx	rax, r13d
	sub	ebp, r13d
	add	rbx, rax
	test	ebp, ebp
	jg	.L9
.L2:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	BYTE PTR [r12], 0
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR PG_EUC_KR[rip]
	mov	edi, DWORD PTR PG_MULE_INTERNAL[rip]
	mov	ecx, ebp
	mov	rdx, rbx
	call	report_untranslatable_char@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	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
.L15:
	mov	edi, DWORD PTR PG_MULE_INTERNAL[rip]
	mov	edx, ebp
	mov	rsi, rbx
	call	report_invalid_encoding@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	mic2euc_kr, .-mic2euc_kr
	.comm	PG_MULE_INTERNAL,4,4
	.comm	PG_EUC_KR,4,4
	.comm	LC_KS5601,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_kr_and_mic.c_mic2euc_kr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mic2euc_kr, %function
mic2euc_kr:
	@ 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	r5, r2, #0
	mov	r6, r1
	ble	.L2
	mov	r4, r0
	ldr	r8, .L16
	ldr	r9, .L16+4
	ldr	r10, .L16+8
	b	.L9
.L14:
	cmp	fp, #0
	beq	.L13
.L4:
	sub	r5, r5, #1
	cmp	r5, #0
	strb	fp, [r6], #1
	add	r4, r4, #1
	ble	.L2
.L9:
	ldrb	fp, [r4]	@ zero_extendqisi2
	mov	r0, fp
	bl	IS_HIGHBIT_SET
	cmp	r0, #0
	beq	.L14
	mov	r2, r5
	mov	r1, r4
	ldr	r0, [r8]
	bl	pg_encoding_verifymb
	subs	r7, r0, #0
	blt	.L15
.L6:
	ldr	r3, [r9]
	cmp	r3, fp
	bne	.L7
	mov	r3, r6
	ldrb	r2, [r4, #1]	@ zero_extendqisi2
	strb	r2, [r3], #2
	ldrb	r2, [r4, #2]	@ zero_extendqisi2
	strb	r2, [r6, #1]
	mov	r6, r3
.L8:
	sub	r5, r5, r7
	cmp	r5, #0
	add	r4, r4, r7
	bgt	.L9
.L2:
	mov	r3, #0
	strb	r3, [r6]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r3, r5
	mov	r2, r4
	ldr	r1, [r10]
	ldr	r0, [r8]
	bl	report_untranslatable_char
	b	.L8
.L13:
	mov	r2, r5
	mov	r1, r4
	ldr	r0, [r8]
	bl	report_invalid_encoding
	b	.L4
.L15:
	mov	r2, r5
	mov	r1, r4
	ldr	r0, [r8]
	bl	report_invalid_encoding
	b	.L6
.L17:
	.align	2
.L16:
	.word	PG_MULE_INTERNAL
	.word	LC_KS5601
	.word	PG_EUC_KR
	.size	mic2euc_kr, .-mic2euc_kr
	.comm	PG_MULE_INTERNAL,4,4
	.comm	PG_EUC_KR,4,4
	.comm	LC_KS5601,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
