	.file	"extr_win_iconv.c_utf32_wctomb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\377\376"
	.string	""
	.string	""
.LC1:
	.string	""
	.string	""
	.string	"\376\377"
	.text
	.p2align 4
	.type	utf32_wctomb, @function
utf32_wctomb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR FLAG_USE_BOM[rip], eax
	je	.L2
	mov	r12d, edx
	mov	eax, DWORD PTR 4[rdi]
	mov	edx, DWORD PTR UNICODE_MODE_BOM_DONE[rip]
	test	eax, edx
	jne	.L2
	or	eax, edx
	mov	DWORD PTR 4[rdi], eax
	cmp	r8d, 3
	jle	.L17
	mov	eax, DWORD PTR 8[rdi]
	cmp	eax, 12000
	je	.L19
	cmp	eax, 12001
	je	.L20
.L5:
	sub	r8d, 4
	lea	rcx, 16[rbx]
	mov	edx, r12d
	mov	rsi, r13
	mov	rdi, rbp
	call	utf32_wctomb
	mov	r8d, eax
	cmp	eax, -1
	je	.L1
	add	r8d, 4
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	r8d, 3
	jle	.L17
	mov	rdi, r13
	call	utf16_to_ucs4@PLT
	mov	edx, DWORD PTR 8[rbp]
	cmp	edx, 12000
	je	.L21
	mov	r8d, 4
	cmp	edx, 12001
	jne	.L1
	mov	edx, eax
	shr	edx, 24
	mov	DWORD PTR [rbx], edx
	mov	edx, eax
	sar	edx, 16
	and	edx, 255
	mov	DWORD PTR 4[rbx], edx
	movzx	edx, ah
	and	eax, 255
	mov	DWORD PTR 12[rbx], eax
	mov	eax, r8d
	mov	DWORD PTR 8[rbx], edx
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR E2BIG[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	seterror@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movzx	edx, al
	mov	r8d, 4
	mov	DWORD PTR [rbx], edx
	movzx	edx, ah
	mov	DWORD PTR 4[rbx], edx
	mov	edx, eax
	shr	eax, 24
	sar	edx, 16
	mov	DWORD PTR 12[rbx], eax
	mov	eax, r8d
	and	edx, 255
	mov	DWORD PTR 8[rbx], edx
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edx, 4
	lea	rsi, .LC0[rip]
	mov	rdi, rcx
	mov	DWORD PTR 12[rsp], r8d
	call	memcpy@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, 4
	lea	rsi, .LC1[rip]
	mov	rdi, rcx
	mov	DWORD PTR 12[rsp], r8d
	call	memcpy@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	utf32_wctomb, .-utf32_wctomb
	.comm	UNICODE_MODE_BOM_DONE,4,4
	.comm	FLAG_USE_BOM,4,4
	.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_utf32_wctomb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	utf32_wctomb, %function
utf32_wctomb:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, .L24
	ldr	lr, [r4]
	ldr	ip, [r0]
	sub	sp, sp, #8
	tst	lr, ip
	mov	r7, r1
	mov	r5, r3
	ldr	r8, [sp, #32]
	beq	.L2
	mov	r6, r2
	ldr	r2, .L24+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L2
	orr	r3, r3, r2
	cmp	r8, #3
	str	r3, [r4, #4]
	ble	.L18
	ldr	r3, [r4, #8]
	ldr	r2, .L24+8
	cmp	r3, r2
	beq	.L20
	ldr	r2, .L24+12
	cmp	r3, r2
	beq	.L21
.L5:
	sub	r8, r8, #4
	mov	r2, r6
	mov	r1, r7
	mov	r0, r4
	str	r8, [sp]
	add	r3, r5, #16
	bl	utf32_wctomb
	cmn	r0, #1
	beq	.L1
	add	r0, r0, #4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	cmp	r8, #3
	ble	.L18
	mov	r0, r7
	bl	utf16_to_ucs4
	ldr	r3, [r4, #8]
	ldr	r2, .L24+8
	cmp	r3, r2
	beq	.L22
	ldr	r2, .L24+12
	cmp	r3, r2
	movne	r0, #4
	beq	.L23
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r3, .L24+16
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	seterror
.L23:
	asr	r2, r0, #16
	asr	r3, r0, #8
	lsr	r1, r0, #24
	and	r2, r2, #255
	and	r3, r3, #255
	and	r0, r0, #255
.L17:
	str	r0, [r5, #12]
	mov	r0, #4
	stm	r5, {r1, r2, r3}
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	asr	r2, r0, #8
	asr	r3, r0, #16
	and	r1, r0, #255
	and	r2, r2, #255
	and	r3, r3, #255
	lsr	r0, r0, #24
	b	.L17
.L20:
	mov	r2, #4
	mov	r0, r5
	ldr	r1, .L24+20
	bl	memcpy
	b	.L5
.L21:
	mov	r2, #4
	mov	r0, r5
	ldr	r1, .L24+24
	bl	memcpy
	b	.L5
.L25:
	.align	2
.L24:
	.word	FLAG_USE_BOM
	.word	UNICODE_MODE_BOM_DONE
	.word	12000
	.word	12001
	.word	E2BIG
	.word	.LANCHOR0
	.word	.LANCHOR0+8
	.size	utf32_wctomb, .-utf32_wctomb
	.comm	UNICODE_MODE_BOM_DONE,4,4
	.comm	FLAG_USE_BOM,4,4
	.comm	E2BIG,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.ascii	"\377\376\000\000\000"
	.space	3
.LC1:
	.ascii	"\000\000\376\377\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
