	.file	"extr_wide.c_towide_gb18030.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"incomplete character sequence (%s)"
	.align 8
.LC1:
	.string	"incomplete 4-byte character sequence (%s)"
	.text
	.p2align 4
	.globl	towide_gb18030
	.type	towide_gb18030, @function
towide_gb18030:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rsi]
	test	al, -128
	je	.L11
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	edx, 1
	jbe	.L12
	movsx	ecx, BYTE PTR 1[rsi]
	sal	eax, 8
	or	eax, ecx
	movzx	ecx, cl
	sub	ecx, 48
	cmp	ecx, 9
	ja	.L5
	cmp	edx, 3
	jbe	.L13
	movsx	edx, BYTE PTR 2[rsi]
	sal	eax, 8
	or	eax, edx
	movsx	edx, BYTE PTR 3[rsi]
	sal	eax, 8
	or	eax, edx
	mov	DWORD PTR [rdi], eax
	mov	eax, 4
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	DWORD PTR [rdi], eax
	mov	eax, 2
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR [rdi], eax
	mov	eax, 1
	ret
.L13:
	.cfi_def_cfa_offset 16
	mov	rdi, rsi
	call	show_mb@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	werr@PLT
	mov	eax, -1
	jmp	.L1
.L12:
	mov	rdi, rsi
	call	show_mb@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	werr@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	towide_gb18030, .-towide_gb18030
	.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_wide.c_towide_gb18030.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"incomplete character sequence (%s)\000"
	.align	2
.LC1:
	.ascii	"incomplete 4-byte character sequence (%s)\000"
	.text
	.align	2
	.global	towide_gb18030
	.syntax unified
	.arm
	.fpu softvfp
	.type	towide_gb18030, %function
towide_gb18030:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	mov	ip, r0
	tst	r3, #128
	beq	.L11
	cmp	r2, #1
	push	{r4, lr}
	bls	.L12
	ldrb	r0, [r1, #1]	@ zero_extendqisi2
	sub	lr, r0, #48
	cmp	lr, #9
	orr	lr, r0, r3, lsl #8
	bhi	.L5
	cmp	r2, #3
	bls	.L13
	eor	r2, r3, r3, ror #16
	lsr	r2, r2, #8
	bic	r2, r2, #65280
	eor	r3, r2, r3, ror #8
	mov	r0, #4
	str	r3, [ip]
	pop	{r4, pc}
.L5:
	mov	r0, #2
	str	lr, [ip]
	pop	{r4, pc}
.L11:
	str	r3, [r0]
	mov	r0, #1
	bx	lr
.L13:
	mov	r0, r1
	bl	show_mb
	mov	r1, r0
	ldr	r0, .L14
	bl	werr
	mvn	r0, #0
	pop	{r4, pc}
.L12:
	mov	r0, r1
	bl	show_mb
	mov	r1, r0
	ldr	r0, .L14+4
	bl	werr
	mvn	r0, #0
	pop	{r4, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	.LC0
	.size	towide_gb18030, .-towide_gb18030
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
