	.file	"extr_iso2022_jp2.h_iso2022_jp2_mbtowc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iso2022_jp2_mbtowc, @function
iso2022_jp2_mbtowc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	movzx	r8d, BYTE PTR ESC[rip]
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR [rdx]
	cmp	r8b, al
	jne	.L2
	cmp	ecx, 2
	jle	.L3
.L4:
	movzx	eax, BYTE PTR 1[rdx]
	cmp	al, 40
	je	.L105
	cmp	al, 36
	je	.L106
	cmp	al, 46
	jne	.L15
	movzx	eax, BYTE PTR 2[rdx]
	cmp	al, 65
	je	.L107
	cmp	al, 70
	jne	.L10
	mov	DWORD PTR state2[rip], 135
	add	ebp, 3
	cmp	ecx, ebp
	jle	.L3
.L87:
	add	rdx, 3
.L9:
	movzx	eax, BYTE PTR [rdx]
	cmp	r8b, al
	jne	.L2
	lea	eax, 2[rbp]
	cmp	eax, ecx
	jl	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR [rdi], rbx
	mov	edi, ebp
	call	RET_TOOFEW@PLT
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L108
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L105:
	.cfi_restore_state
	movzx	eax, BYTE PTR 2[rdx]
	cmp	al, 66
	je	.L109
	cmp	al, 74
	je	.L110
	cmp	al, 73
	jne	.L10
	mov	DWORD PTR state1[rip], 132
	add	ebp, 3
	cmp	ecx, ebp
	jle	.L3
	jmp	.L87
	.p2align 4,,10
	.p2align 3
.L109:
	mov	DWORD PTR state1[rip], 137
	add	ebp, 3
	cmp	ecx, ebp
	jle	.L3
	jmp	.L87
	.p2align 4,,10
	.p2align 3
.L106:
	movzx	eax, BYTE PTR 2[rdx]
	mov	r9d, eax
	and	r9d, -3
	cmp	r9b, 64
	je	.L111
	cmp	al, 65
	je	.L112
	cmp	al, 40
	jne	.L10
	lea	eax, 3[rbp]
	cmp	eax, ecx
	jge	.L3
	movzx	eax, BYTE PTR 3[rdx]
	cmp	al, 68
	je	.L113
	cmp	al, 67
	jne	.L10
	mov	DWORD PTR state1[rip], 128
	add	ebp, 4
	cmp	ecx, ebp
	jle	.L3
.L90:
	add	rdx, 4
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L107:
	mov	DWORD PTR state2[rip], 136
	add	ebp, 3
	cmp	ecx, ebp
	jle	.L3
	jmp	.L87
	.p2align 4,,10
	.p2align 3
.L111:
	mov	DWORD PTR state1[rip], 130
	add	ebp, 3
	cmp	ecx, ebp
	jle	.L3
	jmp	.L87
.L15:
	cmp	al, 78
	jne	.L10
	mov	eax, DWORD PTR state2[rip]
	cmp	eax, 135
	je	.L17
	cmp	eax, 136
	je	.L18
	cmp	eax, 134
	je	.L10
	xor	eax, eax
	mov	QWORD PTR [rsp], rdi
	call	abort@PLT
	mov	rdi, QWORD PTR [rsp]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	QWORD PTR [rdi], rbx
	mov	edi, ebp
	call	RET_SHIFT_ILSEQ@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L110:
	mov	DWORD PTR state1[rip], 131
	add	ebp, 3
	cmp	ecx, ebp
	jle	.L3
	jmp	.L87
	.p2align 4,,10
	.p2align 3
.L112:
	mov	DWORD PTR state1[rip], 133
	add	ebp, 3
	cmp	ecx, ebp
	jle	.L3
	jmp	.L87
	.p2align 4,,10
	.p2align 3
.L113:
	mov	DWORD PTR state1[rip], 129
	add	ebp, 4
	cmp	ecx, ebp
	jle	.L3
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r10d, DWORD PTR state1[rip]
	lea	r8d, -128[r10]
	cmp	r8d, 9
	ja	.L25
	lea	r9, .L27[rip]
	movsx	r8, DWORD PTR [r9+r8*4]
	add	r8, r9
	notrack jmp	r8
	.section	.rodata
	.align 4
	.align 4
.L27:
	.long	.L33-.L27
	.long	.L32-.L27
	.long	.L31-.L27
	.long	.L30-.L27
	.long	.L29-.L27
	.long	.L28-.L27
	.long	.L25-.L27
	.long	.L25-.L27
	.long	.L25-.L27
	.long	.L26-.L27
	.text
.L25:
	xor	eax, eax
	mov	QWORD PTR [rsp], rdi
	call	abort@PLT
	mov	rdi, QWORD PTR [rsp]
	jmp	.L3
.L26:
	test	al, al
	js	.L10
	mov	ecx, 1
	mov	QWORD PTR [rsp], rdi
	mov	QWORD PTR 8[rsp], rsi
	call	ascii_mbtowc@PLT
	cmp	DWORD PTR RET_ILSEQ[rip], eax
	mov	rdi, QWORD PTR [rsp]
	je	.L10
.L103:
	cmp	eax, 1
	mov	rsi, QWORD PTR 8[rsp]
	je	.L37
	xor	eax, eax
	call	abort@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rsp]
.L37:
	mov	eax, DWORD PTR [rsi]
	cmp	eax, 10
	je	.L50
	cmp	eax, 13
	je	.L50
.L41:
	mov	QWORD PTR [rdi], rbx
	lea	eax, 1[rbp]
	jmp	.L1
.L28:
	lea	r8d, 1[rbp]
	cmp	r8d, ecx
	jge	.L3
	test	al, al
	js	.L10
	cmp	BYTE PTR 1[rdx], 0
	js	.L10
	mov	ecx, 2
	mov	QWORD PTR [rsp], rdi
	call	gb2312_mbtowc@PLT
	cmp	DWORD PTR RET_ILSEQ[rip], eax
	mov	rdi, QWORD PTR [rsp]
	je	.L10
.L98:
	cmp	eax, 2
	je	.L45
	xor	eax, eax
	call	abort@PLT
	mov	rdi, QWORD PTR [rsp]
.L45:
	mov	QWORD PTR [rdi], rbx
	lea	eax, 2[rbp]
	jmp	.L1
.L30:
	test	al, al
	js	.L10
	mov	ecx, 1
	mov	QWORD PTR [rsp], rdi
	mov	QWORD PTR 8[rsp], rsi
	call	jisx0201_mbtowc@PLT
	cmp	DWORD PTR RET_ILSEQ[rip], eax
	mov	rdi, QWORD PTR [rsp]
	jne	.L103
	jmp	.L10
.L31:
	lea	r8d, 1[rbp]
	cmp	r8d, ecx
	jge	.L3
	test	al, al
	js	.L10
	cmp	BYTE PTR 1[rdx], 0
	js	.L10
	mov	ecx, 2
	mov	QWORD PTR [rsp], rdi
	call	jisx0208_mbtowc@PLT
	cmp	DWORD PTR RET_ILSEQ[rip], eax
	mov	rdi, QWORD PTR [rsp]
	jne	.L98
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L32:
	lea	r8d, 1[rbp]
	cmp	r8d, ecx
	jge	.L3
	test	al, al
	js	.L10
	cmp	BYTE PTR 1[rdx], 0
	js	.L10
	mov	ecx, 2
	mov	QWORD PTR [rsp], rdi
	call	jisx0212_mbtowc@PLT
	cmp	DWORD PTR RET_ILSEQ[rip], eax
	mov	rdi, QWORD PTR [rsp]
	jne	.L98
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L33:
	lea	r8d, 1[rbp]
	cmp	r8d, ecx
	jge	.L3
	test	al, al
	js	.L10
	cmp	BYTE PTR 1[rdx], 0
	js	.L10
	mov	ecx, 2
	mov	QWORD PTR [rsp], rdi
	call	ksc5601_mbtowc@PLT
	cmp	DWORD PTR RET_ILSEQ[rip], eax
	mov	rdi, QWORD PTR [rsp]
	jne	.L98
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L29:
	test	al, al
	js	.L10
	add	eax, -128
	lea	rdx, 23[rsp]
	mov	ecx, 1
	mov	QWORD PTR [rsp], rdi
	mov	BYTE PTR 23[rsp], al
	call	jisx0201_mbtowc@PLT
	cmp	DWORD PTR RET_ILSEQ[rip], eax
	mov	rdi, QWORD PTR [rsp]
	je	.L10
	cmp	eax, 1
	je	.L41
	xor	eax, eax
	call	abort@PLT
	mov	rdi, QWORD PTR [rsp]
	jmp	.L41
.L50:
	mov	DWORD PTR state2[rip], 134
	jmp	.L41
.L18:
	movzx	eax, BYTE PTR 2[rdx]
	test	al, al
	js	.L10
	add	eax, -128
	lea	rdx, 23[rsp]
	mov	ecx, 1
	mov	QWORD PTR [rsp], rdi
	mov	BYTE PTR 23[rsp], al
	call	iso8859_1_mbtowc@PLT
	cmp	DWORD PTR RET_ILSEQ[rip], eax
	mov	rdi, QWORD PTR [rsp]
	je	.L10
.L95:
	cmp	eax, 1
	je	.L24
	xor	eax, eax
	call	abort@PLT
	mov	rdi, QWORD PTR [rsp]
.L24:
	mov	QWORD PTR [rdi], rbx
	lea	eax, 3[rbp]
	jmp	.L1
.L17:
	movzx	eax, BYTE PTR 2[rdx]
	test	al, al
	js	.L10
	add	eax, -128
	lea	rdx, 23[rsp]
	mov	ecx, 1
	mov	QWORD PTR [rsp], rdi
	mov	BYTE PTR 23[rsp], al
	call	iso8859_7_mbtowc@PLT
	cmp	DWORD PTR RET_ILSEQ[rip], eax
	mov	rdi, QWORD PTR [rsp]
	jne	.L95
	jmp	.L10
.L108:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iso2022_jp2_mbtowc, .-iso2022_jp2_mbtowc
	.comm	state2,4,4
	.comm	state1,4,4
	.comm	SPLIT_STATE,4,4
	.comm	RET_ILSEQ,4,4
	.comm	ESC,1,1
	.comm	COMBINE_STATE,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_iso2022_jp2.h_iso2022_jp2_mbtowc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iso2022_jp2_mbtowc, %function
iso2022_jp2_mbtowc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r0, .L134
	sub	sp, sp, #20
	ldrb	r10, [r2]	@ zero_extendqisi2
	ldrb	r0, [r0]	@ zero_extendqisi2
	str	r1, [sp, #4]
	ldr	r1, .L134+4
	cmp	r0, r10
	mov	r4, #0
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	ldr	r6, [r5]
	bne	.L2
	cmp	r3, #2
	ble	.L3
	mov	lr, #135
	mov	r8, #136
	mov	fp, #128
	mov	r9, #130
	mov	r7, #132
	ldr	ip, .L134+8
	ldr	r1, .L134+12
	str	r0, [sp]
.L4:
	ldrb	r10, [r2, #1]	@ zero_extendqisi2
	cmp	r10, #40
	beq	.L125
	cmp	r10, #36
	beq	.L126
	cmp	r10, #46
	bne	.L15
	ldrb	r0, [r2, #2]	@ zero_extendqisi2
	cmp	r0, #65
	beq	.L127
	cmp	r0, #70
	bne	.L10
	add	r4, r4, #3
	cmp	r3, r4
	str	lr, [ip]
	ble	.L3
.L83:
	add	r2, r2, #3
.L9:
	ldrb	r10, [r2]	@ zero_extendqisi2
	ldr	r0, [sp]
	cmp	r0, r10
	bne	.L2
	add	r0, r4, #2
	cmp	r0, r3
	blt	.L4
.L3:
	mov	r0, r4
	str	r6, [r5]
	bl	RET_TOOFEW
.L1:
	ldr	r3, .L134+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L128
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L125:
	ldrb	r0, [r2, #2]	@ zero_extendqisi2
	cmp	r0, #66
	beq	.L129
	cmp	r0, #74
	beq	.L130
	cmp	r0, #73
	bne	.L10
	add	r4, r4, #3
	cmp	r3, r4
	str	r7, [r1]
	ble	.L3
	b	.L83
.L129:
	mov	r0, #137
	add	r4, r4, #3
	cmp	r3, r4
	str	r0, [r1]
	ble	.L3
	b	.L83
.L126:
	ldrb	r0, [r2, #2]	@ zero_extendqisi2
	and	r10, r0, #253
	cmp	r10, #64
	beq	.L131
	cmp	r0, #65
	beq	.L132
	cmp	r0, #40
	bne	.L10
	add	r0, r4, #3
	cmp	r0, r3
	bge	.L3
	ldrb	r0, [r2, #3]	@ zero_extendqisi2
	cmp	r0, #68
	beq	.L133
	cmp	r0, #67
	bne	.L10
	add	r4, r4, #4
	cmp	r3, r4
	str	fp, [r1]
	ble	.L3
.L102:
	add	r2, r2, #4
	b	.L9
.L127:
	add	r4, r4, #3
	cmp	r3, r4
	str	r8, [ip]
	ble	.L3
	b	.L83
.L131:
	add	r4, r4, #3
	cmp	r3, r4
	str	r9, [r1]
	ble	.L3
	b	.L83
.L15:
	cmp	r10, #78
	bne	.L10
	ldr	r3, .L134+8
	ldr	r3, [r3]
	cmp	r3, #135
	beq	.L17
	cmp	r3, #136
	beq	.L18
	cmp	r3, #134
	beq	.L10
	bl	abort
.L10:
	mov	r0, r4
	str	r6, [r5]
	bl	RET_SHIFT_ILSEQ
	b	.L1
.L130:
	mov	r0, #131
	add	r4, r4, #3
	cmp	r3, r4
	str	r0, [r1]
	ble	.L3
	b	.L83
.L132:
	mov	r0, #133
	add	r4, r4, #3
	cmp	r3, r4
	str	r0, [r1]
	ble	.L3
	b	.L83
.L133:
	mov	r0, #129
	add	r4, r4, #4
	cmp	r3, r4
	str	r0, [r1]
	ble	.L3
	b	.L102
.L2:
	ldr	r1, .L134+12
	ldr	r1, [r1]
	sub	r1, r1, #128
	cmp	r1, #9
	ldrls	pc, [pc, r1, asl #2]
	b	.L25
.L27:
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L25
	.word	.L25
	.word	.L25
	.word	.L26
.L25:
	bl	abort
	b	.L3
.L26:
	tst	r10, #128
	bne	.L10
	mov	r3, #1
	mov	r0, r5
	ldr	r1, [sp, #4]
	bl	ascii_mbtowc
.L123:
	ldr	r2, .L134+16
	ldr	r2, [r2]
	cmp	r2, r0
	beq	.L10
	cmp	r0, #1
	beq	.L36
	bl	abort
.L36:
	ldr	r3, [sp, #4]
	ldr	r3, [r3]
	cmp	r3, #13
	cmpne	r3, #10
	moveq	r2, #134
	ldreq	r3, .L134+8
	streq	r2, [r3]
.L39:
	str	r6, [r5]
	add	r0, r4, #1
	b	.L1
.L28:
	add	r1, r4, #1
	cmp	r1, r3
	bge	.L3
	tst	r10, #128
	bne	.L10
	ldrsb	r3, [r2, #1]
	cmp	r3, #0
	blt	.L10
	mov	r3, #2
	mov	r0, r5
	ldr	r1, [sp, #4]
	bl	gb2312_mbtowc
.L117:
	ldr	r2, .L134+16
	ldr	r2, [r2]
	cmp	r2, r0
	beq	.L10
	cmp	r0, #2
	beq	.L43
	bl	abort
.L43:
	str	r6, [r5]
	add	r0, r4, #2
	b	.L1
.L29:
	tst	r10, #128
	bne	.L10
	add	r2, sp, #11
	mov	r3, #1
	mov	r0, r5
	ldr	r1, [sp, #4]
	sub	r10, r10, #128
	strb	r10, [sp, #11]
	bl	jisx0201_mbtowc
	ldr	r2, .L134+16
	ldr	r2, [r2]
	cmp	r2, r0
	beq	.L10
	cmp	r0, #1
	beq	.L39
	bl	abort
	b	.L39
.L30:
	tst	r10, #128
	bne	.L10
	mov	r3, #1
	mov	r0, r5
	ldr	r1, [sp, #4]
	bl	jisx0201_mbtowc
	b	.L123
.L31:
	add	r1, r4, #1
	cmp	r1, r3
	bge	.L3
	tst	r10, #128
	bne	.L10
	ldrsb	r3, [r2, #1]
	cmp	r3, #0
	blt	.L10
	mov	r3, #2
	mov	r0, r5
	ldr	r1, [sp, #4]
	bl	jisx0208_mbtowc
	b	.L117
.L32:
	add	r1, r4, #1
	cmp	r1, r3
	bge	.L3
	tst	r10, #128
	bne	.L10
	ldrsb	r3, [r2, #1]
	cmp	r3, #0
	blt	.L10
	mov	r3, #2
	mov	r0, r5
	ldr	r1, [sp, #4]
	bl	jisx0212_mbtowc
	b	.L117
.L33:
	add	r1, r4, #1
	cmp	r1, r3
	bge	.L3
	tst	r10, #128
	bne	.L10
	ldrsb	r3, [r2, #1]
	cmp	r3, #0
	blt	.L10
	mov	r3, #2
	mov	r0, r5
	ldr	r1, [sp, #4]
	bl	ksc5601_mbtowc
	b	.L117
.L17:
	ldrb	r3, [r2, #2]	@ zero_extendqisi2
	tst	r3, #128
	bne	.L10
	sub	ip, r3, #128
	mov	r0, r5
	mov	r3, #1
	ldr	r1, [sp, #4]
	add	r2, sp, #11
	strb	ip, [sp, #11]
	bl	iso8859_7_mbtowc
.L114:
	ldr	r2, .L134+16
	ldr	r2, [r2]
	cmp	r2, r0
	beq	.L10
	cmp	r0, #1
	beq	.L24
	bl	abort
.L24:
	str	r6, [r5]
	add	r0, r4, #3
	b	.L1
.L18:
	ldrb	r3, [r2, #2]	@ zero_extendqisi2
	tst	r3, #128
	bne	.L10
	sub	ip, r3, #128
	mov	r0, r5
	mov	r3, #1
	ldr	r1, [sp, #4]
	add	r2, sp, #11
	strb	ip, [sp, #11]
	bl	iso8859_1_mbtowc
	b	.L114
.L128:
	bl	__stack_chk_fail
.L135:
	.align	2
.L134:
	.word	ESC
	.word	.LC0
	.word	state2
	.word	state1
	.word	RET_ILSEQ
	.size	iso2022_jp2_mbtowc, .-iso2022_jp2_mbtowc
	.comm	state2,4,4
	.comm	state1,4,4
	.comm	SPLIT_STATE,4,4
	.comm	RET_ILSEQ,4,4
	.comm	ESC,1,1
	.comm	COMBINE_STATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
