	.file	"extr_scanf.c_test_swscanf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"swscanf returns %x instead of %x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"swscanf returned %d\n"
.LC2:
	.string	"c = %x\n"
	.text
	.p2align 4
	.type	test_swscanf, @function
test_swscanf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, 25381
	lea	rsi, formatd.1933[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	add	rsp, -128
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	lea	rbp, 16[rsp]
	mov	WORD PTR 13[rsp], dx
	lea	rdx, 4[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 9[rsp], 874853473
	mov	BYTE PTR 15[rsp], 0
	mov	BYTE PTR 16[rsp], 0
	call	swscanf@PLT
	mov	r12, QWORD PTR WEOF[rip]
	mov	edi, 1
	movsx	r13d, al
	movsx	edx, r12w
	cmp	edx, eax
	je	.L2
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
.L2:
	mov	rcx, r12
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	ok@PLT
	lea	rdx, 3[rsp]
	mov	rdi, rbp
	xor	eax, eax
	lea	rsi, 9[rsp]
	mov	DWORD PTR 16[rsp], 1647588449
	call	swscanf@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	cmp	eax, 1
	movsx	edx, al
	sete	dil
	xor	eax, eax
	call	ok@PLT
	movsx	edx, BYTE PTR 3[rsp]
	xor	edi, edi
	lea	rsi, .LC2[rip]
	cmp	dl, 98
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	sub	rsp, -128
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_swscanf, .-test_swscanf
	.section	.rodata
	.type	formatd.1933, @object
	.size	formatd.1933, 3
formatd.1933:
	.string	"%d"
	.comm	WEOF,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_scanf.c_test_swscanf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"swscanf returns %x instead of %x\012\000"
	.align	2
.LC2:
	.ascii	"swscanf returned %d\012\000"
	.align	2
.LC3:
	.ascii	"c = %x\012\000"
	.align	2
.LC0:
	.ascii	"a4%4%c\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_swscanf, %function
test_swscanf:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, lr}
	ldr	r3, .L8
	sub	sp, sp, #124
	ldr	lr, .L8+4
	ldm	r3, {r0, r1}
	add	r2, sp, #4
	lsr	r3, r1, #16
	str	r0, [sp, #8]
	strh	r1, [sp, #12]	@ movhi
	add	r0, sp, #16
	ldr	r1, .L8+8
	ldr	lr, [lr]
	str	lr, [sp, #116]
	mov	lr,#0
	strb	r3, [sp, #14]
	strb	ip, [sp, #16]
	bl	swscanf
	ldr	r5, .L8+12
	mov	r4, r0
	ldr	r3, [r5]
	lsl	r2, r3, #16
	asr	r2, r2, #16
	cmp	r2, r0
	moveq	r0, #1
	beq	.L2
	clz	r0, r4
	lsr	r0, r0, #5
	bl	broken
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r3, [r5]
.L2:
	ldr	r1, .L8+16
	and	r2, r4, #255
	bl	ok
	ldr	r3, .L8+20
	add	r2, sp, #3
	add	r1, sp, #8
	add	r0, sp, #16
	str	r3, [sp, #16]
	bl	swscanf
	and	r2, r0, #255
	sub	r0, r0, #1
	clz	r0, r0
	ldr	r1, .L8+24
	lsr	r0, r0, #5
	bl	ok
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldr	r1, .L8+28
	sub	r0, r2, #98
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #116]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #124
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC4
	.word	.LANCHOR0
	.word	WEOF
	.word	.LC1
	.word	1647588449
	.word	.LC2
	.word	.LC3
	.size	test_swscanf, .-test_swscanf
	.comm	WEOF,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	formatd.4217, %object
	.size	formatd.4217, 3
formatd.4217:
	.ascii	"%d\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
