	.file	"extr_citrus_utf1632.c__citrus_UTF1632_mbrtowc_priv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_citrus_UTF1632_mbrtowc_priv, @function
_citrus_UTF1632_mbrtowc_priv:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r10, QWORD PTR [rdx]
	mov	QWORD PTR 8[rsp], rsi
	test	r10, r10
	je	.L46
	mov	eax, DWORD PTR [r8]
	mov	r12d, DWORD PTR [rdi]
	mov	rbx, rdx
	xor	r13d, r13d
	mov	r14d, DWORD PTR _MODE_UTF32[rip]
	xor	esi, esi
.L4:
	mov	ebp, r12d
	and	ebp, r14d
	cmp	eax, 1
	jg	.L35
	mov	edx, 2
	test	ebp, ebp
	jne	.L35
.L5:
	test	rcx, rcx
	je	.L8
	add	eax, 1
	mov	r11, QWORD PTR 8[r8]
	lea	r12, [rcx+rsi]
	movsx	rbp, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	add	rbp, 1
	test	rcx, rcx
	je	.L8
.L10:
	movsx	esi, BYTE PTR [r10]
	sub	rcx, 1
	add	r10, 1
	mov	eax, ebp
	mov	DWORD PTR -4[r11+rbp*4], esi
	mov	rsi, r12
	sub	rsi, rcx
	cmp	edx, ebp
	jg	.L11
	mov	r12d, DWORD PTR [rdi]
	mov	r14d, DWORD PTR _MODE_UTF32[rip]
	mov	ebp, r12d
	and	ebp, r14d
.L7:
	mov	r15d, DWORD PTR [r11]
	test	ebp, ebp
	je	.L47
	test	r15d, r15d
	jne	.L16
	mov	r15d, DWORD PTR 4[r11]
	test	r15d, r15d
	jne	.L14
	cmp	DWORD PTR 8[r11], 254
	je	.L48
	.p2align 4,,10
	.p2align 3
.L14:
	test	DWORD PTR _MODE_FORCE_ENDIAN[rip], r12d
	jne	.L17
	mov	r15d, DWORD PTR 16[r8]
	cmp	r15d, DWORD PTR _ENDIAN_UNKNOWN[rip]
	je	.L17
.L18:
	test	ebp, ebp
	jne	.L19
	cmp	edx, 2
	jne	.L20
	cmp	r15d, 128
	je	.L21
	cmp	r15d, 129
	je	.L22
.L23:
	mov	QWORD PTR [r9], -1
	mov	eax, DWORD PTR EILSEQ[rip]
	mov	DWORD PTR [r8], 0
	add	rsp, 24
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	QWORD PTR [r9], -2
	mov	DWORD PTR [r8], eax
	xor	eax, eax
	mov	QWORD PTR [rbx], r10
.L1:
	add	rsp, 24
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	.cfi_restore_state
	cmp	r15d, 254
	je	.L49
	cmp	r15d, 255
	jne	.L14
	cmp	DWORD PTR 4[r11], 254
	jne	.L14
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r15d, DWORD PTR 4[rdi]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edx, 4
	cmp	eax, 3
	jle	.L5
	mov	r11, QWORD PTR 8[r8]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	mov	r13d, DWORD PTR [r11]
	sal	r13d, 8
	or	r13d, DWORD PTR 4[r11]
.L24:
	lea	edx, -55296[r13]
	cmp	edx, 1023
	jbe	.L4
.L26:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], r13d
	xor	eax, eax
	mov	DWORD PTR [r8], 0
	mov	QWORD PTR [r9], rsi
	mov	QWORD PTR [rbx], r10
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r13d, DWORD PTR 4[r11]
	sal	r13d, 8
	or	r13d, DWORD PTR [r11]
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	r15d, 255
	jne	.L14
	cmp	DWORD PTR 4[r11], 254
	jne	.L14
	mov	r15d, DWORD PTR 8[r11]
	test	r15d, r15d
	jne	.L14
	mov	r15d, DWORD PTR 12[r11]
	test	r15d, r15d
	jne	.L14
.L44:
	mov	DWORD PTR 16[r8], 128
	xor	eax, eax
	jmp	.L4
.L49:
	cmp	DWORD PTR 4[r11], 255
	jne	.L14
	jmp	.L43
.L46:
	mov	rsi, r8
	mov	QWORD PTR 8[rsp], r9
	call	_citrus_UTF1632_init_state@PLT
	mov	r9, QWORD PTR 8[rsp]
	xor	eax, eax
	mov	QWORD PTR [r9], 0
	jmp	.L1
.L48:
	cmp	DWORD PTR 12[r11], 255
	jne	.L14
.L43:
	mov	DWORD PTR 16[r8], 129
	xor	eax, eax
	jmp	.L4
.L19:
	cmp	r15d, 128
	je	.L30
	cmp	r15d, 129
	jne	.L23
	mov	r13d, DWORD PTR 8[r11]
	mov	eax, DWORD PTR 4[r11]
	sal	r13d, 8
	sal	eax, 16
	or	r13d, eax
	mov	eax, DWORD PTR [r11]
	or	r13d, DWORD PTR 12[r11]
	sal	eax, 24
	or	r13d, eax
.L32:
	lea	eax, -55296[r13]
	cmp	eax, 2047
	ja	.L26
	jmp	.L23
.L20:
	sub	r13d, 55296
	sal	r13d, 10
	cmp	r15d, 128
	je	.L27
	cmp	r15d, 129
	jne	.L23
	mov	eax, DWORD PTR 8[r11]
	lea	edx, -220[rax]
	cmp	edx, 3
	ja	.L23
	sal	eax, 8
	and	eax, 768
	or	eax, DWORD PTR 12[r11]
	or	r13d, eax
.L29:
	add	r13d, 65536
	jmp	.L26
.L30:
	mov	r13d, DWORD PTR 4[r11]
	mov	eax, DWORD PTR 8[r11]
	sal	r13d, 8
	sal	eax, 16
	or	r13d, eax
	mov	eax, DWORD PTR 12[r11]
	or	r13d, DWORD PTR [r11]
	sal	eax, 24
	or	r13d, eax
	jmp	.L32
.L27:
	mov	edx, DWORD PTR 12[r11]
	lea	eax, -220[rdx]
	cmp	eax, 3
	ja	.L23
	sal	edx, 8
	and	edx, 768
	or	edx, DWORD PTR 8[r11]
	or	r13d, edx
	jmp	.L29
	.cfi_endproc
.LFE0:
	.size	_citrus_UTF1632_mbrtowc_priv, .-_citrus_UTF1632_mbrtowc_priv
	.comm	_MODE_UTF32,4,4
	.comm	_MODE_FORCE_ENDIAN,4,4
	.comm	_ENDIAN_UNKNOWN,4,4
	.comm	EILSEQ,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_citrus_utf1632.c__citrus_UTF1632_mbrtowc_priv.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_citrus_UTF1632_mbrtowc_priv, %function
_citrus_UTF1632_mbrtowc_priv:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r2]
	sub	sp, sp, #12
	cmp	r5, #0
	str	r1, [sp, #4]
	beq	.L39
	mov	r9, #0
	mov	r8, r0
	mov	r7, r9
	ldr	r10, .L45
	ldr	r1, [sp, #48]
	ldr	fp, [r0]
	ldr	r4, [r10]
	ldr	r1, [r1]
	and	r4, r4, fp
.L4:
	cmp	r1, #1
	cmple	r4, #0
	moveq	r6, #2
	bne	.L40
.L5:
	cmp	r3, #0
	beq	.L41
	ldr	r0, [sp, #48]
	sub	r4, r1, #-1073741823
	ldr	r0, [r0, #4]
	mov	ip, r5
	add	r4, r0, r4, lsl #2
	b	.L9
.L10:
	cmp	r3, #0
	beq	.L7
.L9:
	ldrb	fp, [ip], #1	@ zero_extendqisi2
	add	r1, r1, #1
	add	lr, ip, r7
	cmp	r1, r6
	sub	r3, r3, #1
	str	fp, [r4, #4]!
	sub	lr, lr, r5
	blt	.L10
	ldr	fp, [r8]
	ldr	r5, [r10]
	and	r4, fp, r5
.L6:
	cmp	r4, #0
	ldr	r5, [r0]
	beq	.L42
	cmp	r5, #0
	bne	.L15
	ldr	r5, [r0, #4]
	cmp	r5, #0
	bne	.L13
	ldr	r7, [r0, #8]
	cmp	r7, #254
	beq	.L43
.L13:
	ldr	r5, .L45+4
	ldr	r5, [r5]
	tst	fp, r5
	bne	.L16
	ldr	r5, [sp, #48]
	ldr	r7, .L45+8
	ldr	r5, [r5, #8]
	ldr	r7, [r7]
	cmp	r5, r7
	beq	.L16
.L17:
	cmp	r4, #0
	bne	.L18
	cmp	r6, #2
	bne	.L19
	cmp	r5, #128
	beq	.L20
	cmp	r5, #129
	beq	.L21
.L22:
	mvn	r1, #0
	mov	r3, #0
	ldr	r0, [sp, #52]
	ldr	r2, .L45+12
	str	r1, [r0]
	ldr	r0, [r2]
	ldr	r2, [sp, #48]
	str	r3, [r2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L41:
	mov	ip, r5
.L7:
	mvn	r3, #1
	ldr	r0, [sp, #52]
	str	r3, [r0]
	mov	r0, #0
	ldr	r3, [sp, #48]
	str	r1, [r3]
	str	ip, [r2]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L42:
	cmp	r5, #254
	beq	.L44
	cmp	r5, #255
	bne	.L13
	ldr	r5, [r0, #4]
	cmp	r5, #254
	bne	.L13
	mov	r1, r4
	mov	r4, #128
	ldr	r5, [r10]
	ldr	r0, [sp, #48]
	str	r4, [r0, #8]
	and	r4, fp, r5
	b	.L14
.L16:
	ldr	r5, [r8, #4]
	b	.L17
.L40:
	cmp	r1, #3
	movle	r6, #4
	ble	.L5
	ldr	r0, [sp, #48]
	mov	lr, r7
	mov	ip, r5
	mov	r6, #4
	ldr	r0, [r0, #4]
	b	.L6
.L21:
	ldm	r0, {r4, r9}
	orr	r9, r9, r4, lsl #8
.L23:
	sub	r0, r9, #55296
	cmp	r0, #1024
	bcs	.L25
	ldr	r5, [r10]
	and	r4, fp, r5
.L14:
	mov	r7, lr
	mov	r5, ip
	b	.L4
.L20:
	ldr	r4, [r0, #4]
	ldr	r9, [r0]
	orr	r9, r9, r4, lsl #8
	b	.L23
.L15:
	cmp	r5, #255
	bne	.L13
	ldr	r5, [r0, #4]
	cmp	r5, #254
	bne	.L13
	ldr	r5, [r0, #8]
	cmp	r5, #0
	bne	.L13
	ldr	r5, [r0, #12]
	cmp	r5, #0
	bne	.L13
	mov	r0, #128
	ldr	r1, [sp, #48]
	str	r0, [r1, #8]
	mov	r1, r5
	b	.L14
.L44:
	ldr	r5, [r0, #4]
	cmp	r5, #255
	bne	.L13
	mov	r1, r4
	mov	r4, #129
	ldr	r5, [r10]
	ldr	r0, [sp, #48]
	str	r4, [r0, #8]
	and	r4, fp, r5
	b	.L14
.L39:
	ldr	r1, [sp, #48]
	bl	_citrus_UTF1632_init_state
	ldr	r3, [sp, #52]
	mov	r0, r5
	str	r5, [r3]
	b	.L1
.L43:
	ldr	r7, [r0, #12]
	cmp	r7, #255
	bne	.L13
	mov	r0, #129
	ldr	r1, [sp, #48]
	str	r0, [r1, #8]
	mov	r1, r5
	b	.L14
.L19:
	sub	r9, r9, #55296
	cmp	r5, #128
	lsl	r9, r9, #10
	beq	.L26
	cmp	r5, #129
	bne	.L22
	ldr	r3, [r0, #8]
	sub	r1, r3, #220
	cmp	r1, #3
	bhi	.L22
	ldr	r1, [r0, #12]
	lsl	r3, r3, #8
	and	r3, r3, #768
	orr	r3, r3, r1
	orr	r9, r3, r9
.L28:
	add	r9, r9, #65536
.L25:
	mov	r3, #0
	ldr	r1, [sp, #4]
	mov	r0, r3
	str	r9, [r1]
	ldr	r1, [sp, #48]
	str	r3, [r1]
	ldr	r3, [sp, #52]
	str	lr, [r3]
	str	ip, [r2]
	b	.L1
.L18:
	cmp	r5, #128
	beq	.L29
	cmp	r5, #129
	bne	.L22
	ldr	r9, [r0, #4]
	ldr	r3, [r0, #8]
	ldr	r1, [r0, #12]
	lsl	r9, r9, #16
	orr	r9, r9, r3, lsl #8
	ldr	r3, [r0]
	orr	r9, r9, r1
	orr	r9, r9, r3, lsl #24
.L31:
	sub	r3, r9, #55296
	cmp	r3, #2048
	bcs	.L25
	b	.L22
.L29:
	ldmib	r0, {r3, r9}
	ldr	r1, [r0]
	lsl	r9, r9, #16
	orr	r9, r9, r3, lsl #8
	ldr	r3, [r0, #12]
	orr	r9, r9, r1
	orr	r9, r9, r3, lsl #24
	b	.L31
.L26:
	ldr	r1, [r0, #12]
	sub	r3, r1, #220
	cmp	r3, #3
	bhi	.L22
	ldr	r3, [r0, #8]
	lsl	r1, r1, #8
	and	r1, r1, #768
	orr	r1, r1, r3
	orr	r9, r1, r9
	b	.L28
.L46:
	.align	2
.L45:
	.word	_MODE_UTF32
	.word	_MODE_FORCE_ENDIAN
	.word	_ENDIAN_UNKNOWN
	.word	EILSEQ
	.size	_citrus_UTF1632_mbrtowc_priv, .-_citrus_UTF1632_mbrtowc_priv
	.comm	_MODE_UTF32,4,4
	.comm	_MODE_FORCE_ENDIAN,4,4
	.comm	_ENDIAN_UNKNOWN,4,4
	.comm	EILSEQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
