	.file	"6321.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"10.5 15 hello"
.LC1:
	.string	"%f %d %s"
.LC2:
	.string	"got -> %g %d %s\n"
	.text
	.globl	testsscanf
	.type	testsscanf, @function
testsscanf:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -72[rbp], rax
	lea	rsi, -64[rbp]
	lea	rcx, -80[rbp]
	lea	rdx, -76[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	ecx, DWORD PTR -80[rbp]
	movss	xmm0, DWORD PTR -76[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	lea	rdx, -64[rbp]
	mov	esi, ecx
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	testsscanf, .-testsscanf
	.section	.rodata
.LC3:
	.string	"Input a char set:"
	.align 8
.LC4:
	.string	"%[abcdefghijklmnopqrstuvwzyz] %*[^\n]"
.LC5:
	.string	"got -> %s\n"
.LC6:
	.string	"Input a float:"
.LC7:
	.string	"%f"
.LC8:
	.string	"got -> %f\n"
.LC9:
	.string	"Input int and string:"
.LC10:
	.string	"%d %[abcdefghijklmno]"
.LC11:
	.string	"got -> %d [%s]\n"
.LC12:
	.string	"Input long:"
.LC13:
	.string	"%ld"
.LC14:
	.string	"got -> %ld\n"
	.align 8
.LC15:
	.string	"Input  an int with more than 2 digits:"
.LC16:
	.string	"%2d %d "
.LC17:
	.string	"got -> %d  %d\n"
	.text
	.globl	testscanf
	.type	testscanf, @function
testscanf:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -52[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm0, DWORD PTR -52[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -48[rbp]
	lea	rdx, -32[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdx, -44[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	testscanf, .-testscanf
	.section	.rodata
.LC18:
	.string	"w+"
.LC19:
	.string	"/tmp/xxeicxx"
	.align 8
.LC20:
	.string	"2 quarts of oil\n-12.8 degrees Celsius\nlots of luck\n10.0LBS       of\ndirt\n100ergs of energy"
.LC21:
	.string	"%f%20s of %20s"
.LC22:
	.string	"%*[^\n]"
	.align 8
.LC23:
	.string	"count = [%d]  quant = [%g] units = [%s] item = [%s]\n"
	.text
	.globl	testfscanf
	.type	testfscanf, @function
testfscanf:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC18[rip]
	lea	rdi, .LC19[rip]
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, rax
	mov	edx, 90
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L6
.L7:
	mov	BYTE PTR -32[rbp], 0
	movzx	eax, BYTE PTR -32[rbp]
	mov	BYTE PTR -64[rbp], al
	lea	rsi, -32[rbp]
	lea	rcx, -64[rbp]
	lea	rdx, -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r8, rsi
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movss	xmm0, DWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rsi, xmm1
	mov	rax, QWORD PTR stdout[rip]
	lea	rdi, -32[rbp]
	lea	rcx, -64[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	r8, rdi
	movq	xmm0, rsi
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
.L6:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	testfscanf, .-testfscanf
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	testfscanf
	call	testsscanf
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"6321.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"10.5 15 hello\000"
	.align	2
.LC1:
	.ascii	"%f %d %s\000"
	.global	__aeabi_f2d
	.align	2
.LC2:
	.ascii	"got -> %g %d %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testsscanf
	.syntax unified
	.arm
	.fpu softvfp
	.type	testsscanf, %function
testsscanf:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L3+4
	str	r3, [fp, #-64]
	sub	r1, fp, #72
	sub	r2, fp, #68
	sub	r3, fp, #60
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L3+8
	ldr	r0, [fp, #-64]
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-68]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-72]
	sub	r0, fp, #60
	str	r0, [sp, #4]
	str	r1, [sp]
	ldr	r0, .L3+12
	bl	printf
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	testsscanf, .-testsscanf
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Input a char set:\000"
	.align	2
.LC5:
	.ascii	"%[abcdefghijklmnopqrstuvwzyz] %*[^\012]\000"
	.align	2
.LC6:
	.ascii	"got -> %s\012\000"
	.align	2
.LC7:
	.ascii	"Input a float:\000"
	.align	2
.LC8:
	.ascii	"%f\000"
	.align	2
.LC9:
	.ascii	"got -> %f\012\000"
	.align	2
.LC10:
	.ascii	"Input int and string:\000"
	.align	2
.LC11:
	.ascii	"%d %[abcdefghijklmno]\000"
	.align	2
.LC12:
	.ascii	"got -> %d [%s]\012\000"
	.align	2
.LC13:
	.ascii	"Input long:\000"
	.align	2
.LC14:
	.ascii	"%ld\000"
	.align	2
.LC15:
	.ascii	"got -> %ld\012\000"
	.align	2
.LC16:
	.ascii	"Input  an int with more than 2 digits:\000"
	.align	2
.LC17:
	.ascii	"%2d %d \000"
	.align	2
.LC18:
	.ascii	"got -> %d  %d\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testscanf
	.syntax unified
	.arm
	.fpu softvfp
	.type	testscanf, %function
testscanf:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L7+4
	bl	puts
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L7+8
	bl	__isoc99_scanf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L7+12
	bl	printf
	ldr	r0, .L7+16
	bl	puts
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L7+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-44]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L7+24
	bl	printf
	ldr	r0, .L7+28
	bl	puts
	sub	r2, fp, #28
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L7+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	sub	r2, fp, #28
	mov	r1, r3
	ldr	r0, .L7+36
	bl	printf
	ldr	r0, .L7+40
	bl	puts
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L7+44
	bl	__isoc99_scanf
	ldr	r3, [fp, #-40]
	mov	r1, r3
	ldr	r0, .L7+48
	bl	printf
	ldr	r0, .L7+52
	bl	puts
	sub	r2, fp, #32
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L7+56
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, r3
	ldr	r0, .L7+60
	bl	printf
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC19
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	testscanf, .-testscanf
	.section	.rodata
	.align	2
.LC20:
	.ascii	"w+\000"
	.align	2
.LC21:
	.ascii	"/tmp/xxeicxx\000"
	.align	2
.LC22:
	.ascii	"2 quarts of oil\012-12.8 degrees Celsius\012lots of"
	.ascii	" luck\01210.0LBS       of\012dirt\012100ergs of ene"
	.ascii	"rgy\000"
	.align	2
.LC23:
	.ascii	"%f%20s of %20s\000"
	.align	2
.LC24:
	.ascii	"%*[^\012]\000"
	.align	2
.LC25:
	.ascii	"count = [%d]  quant = [%g] units = [%s] item = [%s]"
	.ascii	"\012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testfscanf
	.syntax unified
	.arm
	.fpu softvfp
	.type	testfscanf, %function
testfscanf:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L13+4
	ldr	r0, .L13+8
	bl	fopen
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	mov	r2, #90
	mov	r1, #1
	ldr	r0, .L13+12
	bl	fwrite
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	fseek
	b	.L10
.L11:
	mov	r3, #0
	strb	r3, [fp, #-40]
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	strb	r3, [fp, #-64]
	sub	r1, fp, #64
	sub	r2, fp, #76
	sub	r3, fp, #40
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L13+16
	ldr	r0, [fp, #-72]
	bl	__isoc99_fscanf
	str	r0, [fp, #-68]
	ldr	r1, .L13+20
	ldr	r0, [fp, #-72]
	bl	__isoc99_fscanf
	ldr	r3, .L13+24
	ldr	r4, [r3]
	ldr	r3, [fp, #-76]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #40
	str	r1, [sp, #12]
	sub	r1, fp, #64
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-68]
	ldr	r1, .L13+28
	mov	r0, r4
	bl	fprintf
.L10:
	ldr	r0, [fp, #-72]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r0, [fp, #-72]
	bl	fclose
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC26
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	stdout
	.word	.LC25
	.size	testfscanf, .-testfscanf
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	testfscanf
	bl	testsscanf
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
