	.file	"extr_win_iconv.c_iso2022jp_flush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iso2022jp_flush, @function
iso2022jp_flush:
.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
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR [rdi]
	mov	rsi, QWORD PTR ISO2022_SI[rip]
	mov	rdi, QWORD PTR ISO2022JP_CS_ASCII[rip]
	mov	r15, QWORD PTR iso2022jp_esc[rip]
	call	ISO2022_MODE@PLT
	cmp	r14, rax
	jne	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L10:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	xor	r13d, r13d
	call	ISO2022_MODE_SHIFT@PLT
	mov	rdi, QWORD PTR [rbx]
	cmp	QWORD PTR ISO2022_SI[rip], rax
	setne	r13b
	call	ISO2022_MODE_CS@PLT
	mov	r8, rax
	mov	rax, QWORD PTR ISO2022JP_CS_ASCII[rip]
	cmp	r8, rax
	je	.L3
	add	r13d, DWORD PTR [r15+rax*8]
.L3:
	cmp	r13d, ebp
	jle	.L4
	mov	edi, DWORD PTR E2BIG[rip]
	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
	jmp	seterror@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	xor	r13d, r13d
	call	ISO2022_MODE_SHIFT@PLT
	cmp	rax, QWORD PTR ISO2022_SI[rip]
	jne	.L11
.L5:
	mov	rdi, QWORD PTR [rbx]
	call	ISO2022_MODE_CS@PLT
	mov	r8, rax
	mov	rax, QWORD PTR ISO2022JP_CS_ASCII[rip]
	cmp	r8, rax
	je	.L1
	lea	rax, [r15+rax*8]
	movsx	rdx, r13d
	lea	rdi, [r12+rdx*4]
	mov	esi, DWORD PTR 4[rax]
	mov	edx, DWORD PTR [rax]
	call	memcpy@PLT
	mov	rax, QWORD PTR ISO2022JP_CS_ASCII[rip]
	add	r13d, DWORD PTR [r15+rax*8]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR iso2022_SI_seq[rip]
	mov	edx, 1
	mov	rdi, r12
	mov	r13d, 1
	call	memcpy@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	iso2022jp_flush, .-iso2022jp_flush
	.comm	iso2022jp_esc,8,8
	.comm	iso2022_SI_seq,4,4
	.comm	ISO2022_SI,8,8
	.comm	ISO2022JP_CS_ASCII,8,8
	.comm	E2BIG,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_win_iconv.c_iso2022jp_flush.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iso2022jp_flush, %function
iso2022jp_flush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r8, .L12
	ldr	r7, .L12+4
	ldr	r3, .L12+8
	mov	r6, r1
	ldr	r0, [r7]
	ldr	r1, [r8]
	mov	r5, r2
	ldr	r9, [r4]
	ldr	r10, [r3]
	bl	ISO2022_MODE
	cmp	r9, r0
	moveq	r5, #0
	bne	.L10
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r0, [r4]
	bl	ISO2022_MODE_SHIFT
	mov	r3, r0
	ldr	r9, [r8]
	ldr	r0, [r4]
	subs	r9, r9, r3
	movne	r9, #1
	bl	ISO2022_MODE_CS
	ldr	r3, [r7]
	cmp	r0, r3
	ldrne	r3, [r10, r3, lsl #3]
	addne	r9, r9, r3
	cmp	r9, r5
	ble	.L4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L12+12
	ldr	r0, [r3]
	b	seterror
.L4:
	ldr	r0, [r4]
	bl	ISO2022_MODE_SHIFT
	ldr	r3, [r8]
	cmp	r0, r3
	moveq	r5, #0
	bne	.L11
.L5:
	ldr	r0, [r4]
	bl	ISO2022_MODE_CS
	ldr	r3, [r7]
	cmp	r0, r3
	beq	.L1
	add	r2, r10, r3, lsl #3
	ldr	r1, [r2, #4]
	add	r0, r6, r5, lsl #2
	ldr	r2, [r10, r3, lsl #3]
	bl	memcpy
	ldr	r3, [r7]
	ldr	r3, [r10, r3, lsl #3]
	add	r5, r5, r3
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r3, .L12+16
	mov	r2, #1
	mov	r0, r6
	ldr	r1, [r3]
	bl	memcpy
	mov	r5, #1
	b	.L5
.L13:
	.align	2
.L12:
	.word	ISO2022_SI
	.word	ISO2022JP_CS_ASCII
	.word	iso2022jp_esc
	.word	E2BIG
	.word	iso2022_SI_seq
	.size	iso2022jp_flush, .-iso2022jp_flush
	.comm	iso2022jp_esc,4,4
	.comm	iso2022_SI_seq,4,4
	.comm	ISO2022_SI,4,4
	.comm	ISO2022JP_CS_ASCII,4,4
	.comm	E2BIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
