	.file	"extr_hz.h_hz_wctomb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hz_wctomb, @function
hz_wctomb:
.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
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	mov	ecx, 1
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13d, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r15, 6[rsp]
	mov	rsi, r15
	call	ascii_wctomb@PLT
	cmp	DWORD PTR RET_ILUNI[rip], eax
	je	.L2
	cmp	eax, 1
	jne	.L32
	movzx	edx, BYTE PTR 6[rsp]
	test	dl, dl
	js	.L2
.L38:
	test	r13d, r13d
	je	.L33
	cmp	r12d, 2
	jg	.L34
.L16:
	mov	eax, DWORD PTR RET_TOOSMALL[rip]
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L35
	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
.L2:
	.cfi_restore_state
	mov	ecx, 2
	mov	edx, r14d
	mov	rsi, r15
	mov	rdi, rbx
	call	gb2312_wctomb@PLT
	cmp	DWORD PTR RET_ILUNI[rip], eax
	je	.L1
	cmp	eax, 2
	jne	.L36
.L8:
	movzx	edx, BYTE PTR 6[rsp]
	test	dl, dl
	js	.L10
	movzx	ecx, BYTE PTR 7[rsp]
	test	cl, cl
	js	.L10
	test	r13d, r13d
	je	.L37
	mov	eax, 2
	cmp	r12d, 1
	jle	.L16
.L18:
	mov	BYTE PTR 0[rbp], dl
	mov	BYTE PTR 1[rbp], cl
	mov	DWORD PTR [rbx], r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	xor	eax, eax
	call	abort@PLT
	movzx	edx, BYTE PTR 6[rsp]
	test	dl, dl
	jns	.L38
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR RET_ILUNI[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	eax, 1
	test	r12d, r12d
	jle	.L16
	mov	BYTE PTR 0[rbp], dl
	mov	DWORD PTR [rbx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L36:
	xor	eax, eax
	call	abort@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L34:
	mov	ecx, 32126
	add	rbp, 2
	mov	eax, 3
	mov	WORD PTR -2[rbp], cx
	mov	BYTE PTR 0[rbp], dl
	mov	DWORD PTR [rbx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	cmp	r12d, 3
	jle	.L16
	mov	eax, 31614
	add	rbp, 2
	mov	r13d, 1
	mov	WORD PTR -2[rbp], ax
	mov	eax, 4
	jmp	.L18
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hz_wctomb, .-hz_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_hz.h_hz_wctomb.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hz_wctomb, %function
hz_wctomb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, .L39
	sub	sp, sp, #12
	mov	r5, r1
	mov	r6, r3
	mov	r1, sp
	mov	r3, #1
	mov	r4, r0
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	mov	r7, r2
	ldr	r8, [r0]
	bl	ascii_wctomb
	ldr	r9, .L39+4
	ldr	r3, [r9]
	cmp	r3, r0
	beq	.L2
	cmp	r0, #1
	bne	.L32
	ldrb	r3, [sp]	@ zero_extendqisi2
	tst	r3, #128
	bne	.L2
.L38:
	cmp	r8, #0
	beq	.L33
	cmp	r6, #2
	bgt	.L34
.L16:
	ldr	r3, .L39+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r3, #2
	mov	r2, r7
	mov	r1, sp
	mov	r0, r4
	bl	gb2312_wctomb
	ldr	r3, [r9]
	cmp	r3, r0
	beq	.L1
	cmp	r0, #2
	bne	.L36
.L8:
	ldrb	r3, [sp]	@ zero_extendqisi2
	tst	r3, #128
	bne	.L10
	ldrb	r2, [sp, #1]	@ zero_extendqisi2
	tst	r2, #128
	bne	.L10
	cmp	r8, #0
	beq	.L37
	cmp	r6, #1
	movgt	r0, #2
	ble	.L16
.L18:
	strb	r3, [r5]
	strb	r2, [r5, #1]
	str	r8, [r4]
	b	.L1
.L32:
	bl	abort
	ldrb	r3, [sp]	@ zero_extendqisi2
	tst	r3, #128
	beq	.L38
	b	.L2
.L10:
	ldr	r0, [r9]
	b	.L1
.L33:
	cmp	r6, #0
	movgt	r0, #1
	ble	.L16
	mov	r2, #0
	strb	r3, [r5]
	str	r2, [r4]
	b	.L1
.L36:
	bl	abort
	b	.L8
.L34:
	mov	r2, #125
	mov	r1, #126
	strb	r2, [r5, #1]
	mov	r2, #0
	strb	r1, [r5]
	strb	r3, [r5, #2]
	add	r5, r5, #2
	mov	r0, #3
	str	r2, [r4]
	b	.L1
.L37:
	cmp	r6, #3
	ble	.L16
	mov	ip, #126
	mov	r1, #123
	strb	ip, [r5]
	strb	r1, [r5, #1]
	mov	r0, #4
	mov	r8, #1
	add	r5, r5, #2
	b	.L18
.L35:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	RET_ILUNI
	.word	RET_TOOSMALL
	.size	hz_wctomb, .-hz_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
