	.file	"extr_vfwscanf.c_convert_wstring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	convert_wstring, @function
convert_wstring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR SUPPRESS_PTR[rip], rsi
	je	.L14
	mov	rbx, rsi
	add	r13, rsi
	xor	r12d, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	rbx, r13
	je	.L12
	mov	rdi, rax
	call	iswspace@PLT
	test	eax, eax
	jne	.L19
	mov	BYTE PTR [rbx], bpl
	add	rbx, 1
	add	r12d, 1
.L3:
	mov	esi, r15d
	mov	rdi, r14
	call	__fgetwc@PLT
	cmp	QWORD PTR WEOF[rip], rax
	mov	rbp, rax
	jne	.L20
.L9:
	mov	BYTE PTR [rbx], 0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L19:
	.cfi_restore_state
	cmp	QWORD PTR WEOF[rip], rbp
	je	.L9
	mov	r13, rbx
.L12:
	mov	edx, r15d
	mov	rsi, r14
	mov	rdi, rbp
	mov	rbx, r13
	call	__ungetwc@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	xor	r12d, r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rax
	call	iswspace@PLT
	test	eax, eax
	jne	.L21
	add	r12d, 1
.L2:
	mov	esi, r15d
	mov	rdi, r14
	call	__fgetwc@PLT
	cmp	QWORD PTR WEOF[rip], rax
	mov	rbp, rax
	je	.L1
	cmp	r12d, r13d
	jne	.L5
.L7:
	mov	edx, r15d
	mov	rsi, r14
	mov	rdi, rbp
	mov	r12d, r13d
	call	__ungetwc@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	QWORD PTR WEOF[rip], rbp
	je	.L1
	mov	r13d, r12d
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	convert_wstring, .-convert_wstring
	.comm	WEOF,8,8
	.comm	SUPPRESS_PTR,8,8
	.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_vfwscanf.c_convert_wstring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_wstring, %function
convert_wstring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	ldr	r1, .L16
	mov	r8, r0
	ldr	r1, [r1]
	mov	r7, r2
	cmp	r1, r5
	mov	r9, r3
	beq	.L10
	mov	r6, #0
	ldr	r10, .L16+4
	add	r7, r5, r2
	b	.L3
.L13:
	cmp	r7, r5
	beq	.L8
	bl	iswspace
	cmp	r0, #0
	bne	.L8
	strb	r4, [r5], #1
	add	r6, r6, #1
.L3:
	mov	r1, r9
	mov	r0, r8
	bl	__fgetwc
	ldr	r3, [r10]
	mov	r4, r0
	cmp	r3, r0
	bne	.L13
.L7:
	mov	r3, #0
	strb	r3, [r5]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r2, r9
	mov	r1, r8
	mov	r0, r4
	bl	__ungetwc
	b	.L7
.L10:
	mov	r6, #0
	ldr	r10, .L16+4
	b	.L2
.L15:
	bl	iswspace
	cmp	r0, #0
	bne	.L14
	add	r6, r6, #1
.L2:
	mov	r1, r9
	mov	r0, r8
	bl	__fgetwc
	ldr	r3, [r10]
	mov	r4, r0
	cmp	r3, r0
	beq	.L1
	cmp	r6, r7
	bne	.L15
.L5:
	mov	r6, r7
	mov	r2, r9
	mov	r1, r8
	mov	r0, r4
	bl	__ungetwc
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r7, r6
	b	.L5
.L17:
	.align	2
.L16:
	.word	SUPPRESS_PTR
	.word	WEOF
	.size	convert_wstring, .-convert_wstring
	.comm	WEOF,4,4
	.comm	SUPPRESS_PTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
