	.file	"extr_utf16le.h_utf16le_wctomb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	utf16le_wctomb, @function
utf16le_wctomb:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, -55296[rdx]
	cmp	eax, 2047
	jbe	.L2
	cmp	edx, 65535
	jg	.L3
	cmp	ecx, 1
	jg	.L7
.L4:
	mov	eax, DWORD PTR RET_TOOSMALL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	edx, 1114111
	jle	.L8
.L2:
	mov	eax, DWORD PTR RET_ILUNI[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	ecx, 3
	jle	.L4
	lea	eax, -65536[rdx]
	and	edx, 1023
	sar	eax, 10
	add	edx, 56320
	add	eax, 55296
	mov	WORD PTR 2[rsi], dx
	mov	WORD PTR [rsi], ax
	mov	eax, 4
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	mov	WORD PTR [rsi], dx
	mov	eax, 2
	ret
	.cfi_endproc
.LFE0:
	.size	utf16le_wctomb, .-utf16le_wctomb
	.comm	RET_TOOSMALL,4,4
	.comm	RET_ILUNI,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_utf16le.h_utf16le_wctomb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	utf16le_wctomb, %function
utf16le_wctomb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	r0, r2, #55296
	cmp	r0, #2048
	bcc	.L2
	cmp	r2, #65536
	bge	.L3
	cmp	r3, #1
	bgt	.L7
.L4:
	ldr	r3, .L9
	ldr	r0, [r3]
	bx	lr
.L3:
	cmp	r2, #1114112
	blt	.L8
.L2:
	ldr	r3, .L9+4
	ldr	r0, [r3]
	bx	lr
.L8:
	cmp	r3, #3
	ble	.L4
	sub	r3, r2, #65536
	lsl	r2, r2, #22
	asr	r3, r3, #10
	lsr	r2, r2, #22
	add	r3, r3, #55296
	add	r2, r2, #56320
	asr	r0, r2, #8
	asr	ip, r3, #8
	strb	r0, [r1, #3]
	strb	r3, [r1]
	mov	r0, #4
	strb	ip, [r1, #1]
	strb	r2, [r1, #2]
	bx	lr
.L7:
	asr	r3, r2, #8
	mov	r0, #2
	strb	r2, [r1]
	strb	r3, [r1, #1]
	bx	lr
.L10:
	.align	2
.L9:
	.word	RET_TOOSMALL
	.word	RET_ILUNI
	.size	utf16le_wctomb, .-utf16le_wctomb
	.comm	RET_TOOSMALL,4,4
	.comm	RET_ILUNI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
