	.file	"extr_nls_cp932.c_uni2char.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uni2char, @function
uni2char:
.LFB0:
	.cfi_startproc
	endbr64
	test	edx, edx
	jle	.L6
	mov	ecx, edi
	lea	r8d, -97[rdi]
	movzx	r9d, dil
	sar	ecx, 8
	movzx	eax, cl
	cmp	r8b, 62
	ja	.L4
	cmp	cl, -1
	je	.L27
.L4:
	mov	r8, QWORD PTR page_uni2charset[rip]
	mov	rax, QWORD PTR [r8+rax*8]
	test	rax, rax
	je	.L5
	cmp	edx, 1
	je	.L6
	add	rdi, rdi
	and	edi, 510
	movzx	edx, BYTE PTR [rax+rdi]
	mov	BYTE PTR [rsi], dl
	movzx	eax, BYTE PTR 1[rax+rdi]
	or	dl, al
	mov	BYTE PTR 1[rsi], al
	jne	.L11
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR ENAMETOOLONG[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	test	cl, cl
	jne	.L8
	test	dil, dil
	jns	.L28
	cmp	dil, -97
	jbe	.L8
	mov	rax, QWORD PTR u2c_00hi[rip]
	sal	r9, 3
	mov	rax, QWORD PTR -1280[rax+r9]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rsi], al
	mov	rdx, QWORD PTR u2c_00hi[rip]
	mov	rdx, QWORD PTR -1280[rdx+r9]
	movzx	edx, BYTE PTR 1[rdx]
	mov	BYTE PTR 1[rsi], dl
	test	al, al
	je	.L8
	test	dl, dl
	je	.L8
.L11:
	mov	eax, 2
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	add	edi, 64
	mov	eax, 1
	mov	BYTE PTR [rsi], dil
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	mov	BYTE PTR [rsi], dil
	mov	eax, 1
	ret
	.cfi_endproc
.LFE0:
	.size	uni2char, .-uni2char
	.comm	u2c_00hi,8,8
	.comm	page_uni2charset,8,8
	.comm	ENAMETOOLONG,4,4
	.comm	EINVAL,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_nls_cp932.c_uni2char.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uni2char, %function
uni2char:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	ble	.L20
	and	ip, r0, #255
	asr	r3, r0, #8
	str	lr, [sp, #-4]!
	and	r3, r3, #255
	sub	lr, ip, #97
	cmp	lr, #62
	cmpls	r3, #255
	beq	.L21
	ldr	lr, .L23
	ldr	lr, [lr]
	ldr	lr, [lr, r3, lsl #2]
	cmp	lr, #0
	beq	.L5
	cmp	r2, #1
	beq	.L6
	ldrb	r2, [lr, ip, lsl #1]	@ zero_extendqisi2
	add	ip, lr, ip, lsl #1
	strb	r2, [r1]
	ldrb	r3, [ip, #1]	@ zero_extendqisi2
	orrs	r2, r2, r3
	strb	r3, [r1, #1]
	bne	.L11
.L8:
	ldr	r3, .L23+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	ldr	pc, [sp], #4
.L6:
	ldr	r3, .L23+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	ldr	pc, [sp], #4
.L5:
	cmp	r3, #0
	bne	.L8
	tst	r0, #128
	beq	.L22
	cmp	ip, #159
	bls	.L8
	ldr	r3, .L23+12
	add	ip, ip, #1073741824
	ldr	r2, [r3]
	sub	ip, ip, #160
	ldr	r2, [r2, ip, lsl #2]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r1]
	ldr	r3, [r3]
	ldr	r3, [r3, ip, lsl #2]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #0
	cmpne	r3, #0
	strb	r3, [r1, #1]
	beq	.L8
.L11:
	mov	r0, #2
	ldr	pc, [sp], #4
.L21:
	add	ip, ip, #64
	mov	r0, #1
	strb	ip, [r1]
	ldr	pc, [sp], #4
.L20:
	ldr	r3, .L23+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L22:
	mov	r0, #1
	strb	ip, [r1]
	ldr	pc, [sp], #4
.L24:
	.align	2
.L23:
	.word	page_uni2charset
	.word	EINVAL
	.word	ENAMETOOLONG
	.word	u2c_00hi
	.size	uni2char, .-uni2char
	.comm	u2c_00hi,4,4
	.comm	page_uni2charset,4,4
	.comm	ENAMETOOLONG,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
