	.file	"extr_euc_kr_and_mic.c_euc_kr2mic.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	euc_kr2mic, @function
euc_kr2mic:
.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	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	test	r14d, r14d
	je	.L14
.L6:
	sub	ebp, 1
	mov	BYTE PTR [r12], r13b
	add	rbx, 1
	add	r12, 1
	test	ebp, ebp
	jle	.L2
.L7:
	movzx	r14d, BYTE PTR [rbx]
	mov	edi, r14d
	mov	r13d, r14d
	call	IS_HIGHBIT_SET@PLT
	test	rax, rax
	je	.L3
	mov	edi, DWORD PTR PG_EUC_KR[rip]
	mov	edx, ebp
	mov	rsi, rbx
	call	pg_encoding_verifymb@PLT
	cmp	eax, 2
	je	.L4
	mov	edi, DWORD PTR PG_EUC_KR[rip]
	mov	edx, ebp
	mov	rsi, rbx
	call	report_invalid_encoding@PLT
.L4:
	mov	eax, DWORD PTR LC_KS5601[rip]
	mov	BYTE PTR 1[r12], r13b
	sub	ebp, 2
	add	rbx, 2
	add	r12, 3
	mov	BYTE PTR -3[r12], al
	movzx	eax, BYTE PTR -1[rbx]
	mov	BYTE PTR -1[r12], al
	test	ebp, ebp
	jg	.L7
.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
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR PG_EUC_KR[rip]
	mov	edx, ebp
	mov	rsi, rbx
	call	report_invalid_encoding@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	euc_kr2mic, .-euc_kr2mic
	.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_euc_kr2mic.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	euc_kr2mic, %function
euc_kr2mic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r6, r2, #0
	mov	r4, r1
	ble	.L2
	mov	r5, r0
	ldr	r8, .L15
	ldr	r9, .L15+4
	b	.L7
.L3:
	cmp	r7, #0
	beq	.L14
.L6:
	sub	r6, r6, #1
	cmp	r6, #0
	strb	r7, [r4], #1
	add	r5, r5, #1
	ble	.L2
.L7:
	ldrb	r7, [r5]	@ zero_extendqisi2
	mov	r0, r7
	bl	IS_HIGHBIT_SET
	cmp	r0, #0
	beq	.L3
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [r8]
	bl	pg_encoding_verifymb
	cmp	r0, #2
	beq	.L4
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [r8]
	bl	report_invalid_encoding
.L4:
	ldr	r3, [r9]
	strb	r7, [r4, #1]
	strb	r3, [r4]
	ldrb	r3, [r5, #1]	@ zero_extendqisi2
	sub	r6, r6, #2
	cmp	r6, #0
	strb	r3, [r4, #2]
	add	r5, r5, #2
	add	r4, r4, #3
	bgt	.L7
.L2:
	mov	r3, #0
	strb	r3, [r4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [r8]
	bl	report_invalid_encoding
	b	.L6
.L16:
	.align	2
.L15:
	.word	PG_EUC_KR
	.word	LC_KS5601
	.size	euc_kr2mic, .-euc_kr2mic
	.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
