	.file	"extr_big5_2003.h_big5_2003_mbtowc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	big5_2003_mbtowc, @function
big5_2003_mbtowc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	movzx	ebx, BYTE PTR [rdx]
	test	bl, bl
	jns	.L45
	lea	eax, 127[rbx]
	cmp	al, 125
	ja	.L3
	cmp	ecx, 1
	jle	.L46
	movzx	ebp, BYTE PTR 1[rdx]
	lea	eax, -64[rbp]
	cmp	al, 62
	jbe	.L5
	lea	eax, 95[rbp]
	cmp	al, 93
	jbe	.L5
.L3:
	mov	eax, DWORD PTR RET_ILSEQ[rip]
.L1:
	add	rsp, 24
	.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
.L45:
	.cfi_restore_state
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	ascii_mbtowc@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmp	bl, -96
	jbe	.L7
	cmp	bl, -94
	ja	.L8
	movzx	eax, bl
	movzx	ecx, bpl
	sub	eax, 161
	imul	eax, eax, 157
	cmp	bpl, -95
	sbb	r8d, r8d
	and	r8d, -34
	add	r8d, 98
	sub	ecx, r8d
	add	ecx, eax
	mov	rax, QWORD PTR big5_2003_2uni_pagea1[rip]
	movzx	eax, WORD PTR [rax+rcx*2]
	cmp	ax, -3
	jne	.L43
.L10:
	mov	ecx, 2
	mov	QWORD PTR 8[rsp], rsi
	call	big5_mbtowc@PLT
	cmp	DWORD PTR RET_ILSEQ[rip], eax
	jne	.L1
	cmp	bl, -93
	mov	rsi, QWORD PTR 8[rsp]
	je	.L47
	cmp	bl, -7
	je	.L48
	jbe	.L1
	movzx	eax, bl
	movzx	edx, bpl
	sub	eax, 250
	imul	eax, eax, 157
	cmp	bpl, -95
	sbb	ecx, ecx
	and	ecx, -34
	sub	edx, ecx
	lea	eax, 57246[rdx+rax]
	mov	DWORD PTR [rsi], eax
	mov	eax, 2
	jmp	.L1
.L47:
	lea	edx, 64[rbp]
	cmp	dl, 33
	ja	.L1
	cmp	bpl, -31
	je	.L29
	cmp	bpl, -32
	je	.L30
	movzx	eax, bpl
	add	eax, 9024
	.p2align 4,,10
	.p2align 3
.L43:
	mov	DWORD PTR [rsi], eax
	mov	eax, 2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	bl, -58
	jne	.L35
	cmp	bpl, -96
	jbe	.L35
	sub	ebp, 98
	cmp	ebp, 132
	jg	.L27
.L26:
	mov	rax, QWORD PTR big5_2003_2uni_pagec6[rip]
	lea	edx, -63[rbp]
	movzx	eax, WORD PTR [rax+rdx*2]
	cmp	ax, -3
	je	.L3
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L46:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	edi, edi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	RET_TOOFEW@PLT
.L27:
	.cfi_restore_state
	add	ebp, 12220
	mov	eax, 2
	mov	DWORD PTR [rsi], ebp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	bl, -114
	movzx	eax, bl
	sbb	edx, edx
	sub	eax, 129
	imul	eax, eax, 157
	and	edx, 5024
	cmp	bpl, -95
	lea	ecx, 56088[rdx+rax]
	sbb	edx, edx
	movzx	eax, bpl
	and	edx, -34
	add	edx, 98
	sub	eax, edx
	add	eax, ecx
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L35:
	cmp	bl, -57
	jne	.L49
	cmp	bpl, -95
	movzx	edx, bpl
	sbb	eax, eax
	and	eax, -34
	add	eax, 98
	sub	edx, eax
	lea	eax, 157[rdx]
	mov	ebp, eax
	cmp	eax, 132
	jle	.L26
	cmp	eax, 215
	jbe	.L27
	cmp	eax, 301
	ja	.L3
	add	edx, 12390
	mov	eax, 2
	mov	DWORD PTR [rsi], edx
	jmp	.L1
.L49:
	cmp	bl, -62
	jne	.L10
	cmp	bpl, 85
	jne	.L10
	mov	DWORD PTR [rsi], 24414
	mov	eax, 2
	jmp	.L1
.L48:
	cmp	bpl, -43
	jbe	.L1
	mov	rax, QWORD PTR big5_2003_2uni_pagef9[rip]
	mov	eax, DWORD PTR -856[rax+rbp*4]
	mov	DWORD PTR [rsi], eax
	mov	eax, 2
	jmp	.L1
.L29:
	mov	eax, 8364
	jmp	.L43
.L30:
	mov	eax, 9249
	jmp	.L43
	.cfi_endproc
.LFE0:
	.size	big5_2003_mbtowc, .-big5_2003_mbtowc
	.comm	big5_2003_2uni_pagef9,8,8
	.comm	big5_2003_2uni_pagec6,8,8
	.comm	big5_2003_2uni_pagea1,8,8
	.comm	RET_ILSEQ,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_big5_2003.h_big5_2003_mbtowc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	big5_2003_mbtowc, %function
big5_2003_mbtowc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldrb	r4, [r2]	@ zero_extendqisi2
	tst	r4, #128
	beq	.L37
	mov	lr, r3
	add	r3, r4, #127
	and	r3, r3, #255
	cmp	r3, #125
	bhi	.L3
	cmp	lr, #1
	ble	.L38
	ldrb	r7, [r2, #1]	@ zero_extendqisi2
	mov	ip, r2
	add	r3, r7, #95
	and	r3, r3, #255
	sub	r2, r7, #64
	cmp	r3, #93
	cmphi	r2, #62
	bhi	.L3
	cmp	r4, #160
	mov	r5, r1
	bls	.L7
	cmp	r4, #162
	mov	r6, r0
	bhi	.L8
	cmp	r7, #160
	movhi	r3, #98
	movls	r3, #64
	sub	r2, r4, #161
	add	r1, r2, r2, lsl #2
	rsb	r1, r2, r1, lsl #3
	add	r2, r2, r1, lsl #2
	ldr	r1, .L43
	sub	r3, r7, r3
	add	r3, r3, r2
	ldr	r2, [r1]
	lsl	r3, r3, #1
	ldrh	r3, [r2, r3]
	ldr	r2, .L43+4
	cmp	r3, r2
	bne	.L34
.L10:
	mov	r3, #2
	mov	r2, ip
	mov	r0, r6
	mov	r1, r5
	bl	big5_mbtowc
	ldr	r3, .L43+8
	ldr	r3, [r3]
	cmp	r3, r0
	popne	{r4, r5, r6, r7, r8, pc}
	cmp	r4, #163
	beq	.L39
	cmp	r4, #249
	beq	.L40
	popls	{r4, r5, r6, r7, r8, pc}
	cmp	r7, #160
	movhi	r2, #98
	movls	r2, #64
	sub	r4, r4, #250
	add	r3, r4, r4, lsl #2
	rsb	r3, r4, r3, lsl #3
	add	r4, r4, r3, lsl #2
	add	r3, r4, #57344
	sub	r7, r7, r2
	add	r3, r7, r3
	mov	r0, #2
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	cmp	r7, #160
	movhi	r3, #0
	movls	r3, #1
	cmp	r4, #198
	orrne	r3, r3, #1
	cmp	r3, #0
	bne	.L41
	sub	r7, r7, #98
	cmp	r7, #132
	bgt	.L25
.L24:
	ldr	r3, .L43+12
	ldr	r2, .L43+4
	ldr	r3, [r3]
	add	r7, r3, r7, lsl #1
	ldrh	r3, [r7, #-126]
	cmp	r3, r2
	bne	.L34
.L3:
	ldr	r3, .L43+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L37:
	pop	{r4, r5, r6, r7, r8, lr}
	b	ascii_mbtowc
.L7:
	ldr	r2, .L43+16
	ldr	r1, .L43+20
	cmp	r4, #141
	sub	r3, r4, #129
	movhi	r4, r2
	movls	r4, r1
	cmp	r7, #160
	movhi	r2, #98
	movls	r2, #64
	add	r1, r3, r3, lsl #2
	rsb	r1, r3, r1, lsl #3
	add	r3, r3, r1, lsl #2
	add	r3, r3, r4
	sub	r7, r7, r2
	add	r3, r7, r3
.L34:
	mov	r0, #2
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L38:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, lr}
	b	RET_TOOFEW
.L25:
	add	r7, r7, #12160
	add	r7, r7, #60
.L35:
	mov	r0, #2
	str	r7, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L41:
	cmp	r4, #199
	bne	.L42
	cmp	r7, #160
	movhi	r3, #98
	movls	r3, #64
	sub	r3, r7, r3
	add	r2, r3, #157
	cmp	r2, #132
	mov	r7, r2
	ble	.L24
	cmp	r2, #215
	bls	.L25
	ldr	r1, .L43+24
	cmp	r2, r1
	bhi	.L3
	add	r3, r3, #12352
	add	r3, r3, #38
	mov	r0, #2
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L42:
	cmp	r7, #85
	cmpeq	r4, #194
	bne	.L10
	ldr	r3, .L43+28
	mov	r0, #2
	str	r3, [r1]
	pop	{r4, r5, r6, r7, r8, pc}
.L39:
	add	r3, r7, #64
	and	r3, r3, #255
	cmp	r3, #33
	pophi	{r4, r5, r6, r7, r8, pc}
	cmp	r7, #225
	beq	.L27
	cmp	r7, #224
	addne	r7, r7, #9024
	ldreq	r7, .L43+32
	b	.L35
.L40:
	cmp	r7, #213
	popls	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L43+36
	add	r7, r7, #1073741824
	ldr	r3, [r3]
	sub	r7, r7, #214
	ldr	r3, [r3, r7, lsl #2]
	mov	r0, #2
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	ldr	r7, .L43+40
	b	.L35
.L44:
	.align	2
.L43:
	.word	big5_2003_2uni_pagea1
	.word	65533
	.word	RET_ILSEQ
	.word	big5_2003_2uni_pagec6
	.word	56088
	.word	61112
	.word	301
	.word	24414
	.word	9249
	.word	big5_2003_2uni_pagef9
	.word	8364
	.size	big5_2003_mbtowc, .-big5_2003_mbtowc
	.comm	big5_2003_2uni_pagef9,4,4
	.comm	big5_2003_2uni_pagec6,4,4
	.comm	big5_2003_2uni_pagea1,4,4
	.comm	RET_ILSEQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
