	.file	"331012.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"TAP version 13"
	.text
	.globl	print_version
	.type	print_version, @function
print_version:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_version, .-print_version
	.section	.rodata
.LC1:
	.string	"#"
.LC2:
	.string	"1..%d\n"
.LC3:
	.string	"# total %d\n"
.LC4:
	.string	"# pass  %d\n"
.LC5:
	.string	"# ok"
	.text
	.globl	print_summary
	.type	print_summary, @function
print_summary:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_summary, .-print_summary
	.section	.rodata
.LC7:
	.string	"  ---"
.LC8:
	.string	"  iterations: %d\n"
.LC9:
	.string	"  elapsed: %0.9f\n"
.LC10:
	.string	"  rate: %0.9f\n"
.LC11:
	.string	"  ..."
	.text
	.globl	print_results
	.type	print_results, @function
print_results:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC6[rip]
	divsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	esi, 1000000
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_results, .-print_results
	.globl	tic
	.type	tic, @function
tic:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movq	rax, xmm0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	tic, .-tic
	.globl	rand_float
	.type	rand_float, @function
rand_float:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	call	rand@PLT
	mov	DWORD PTR -4[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -4[rbp]
	movss	xmm1, DWORD PTR .LC12[rip]
	divss	xmm0, xmm1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	rand_float, .-rand_float
	.globl	is_positive_zerof
	.type	is_positive_zerof, @function
is_positive_zerof:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movss	DWORD PTR -4[rbp], xmm0
	pxor	xmm0, xmm0
	ucomiss	xmm0, DWORD PTR -4[rbp]
	jp	.L10
	pxor	xmm0, xmm0
	ucomiss	xmm0, DWORD PTR -4[rbp]
	jne	.L10
	movss	xmm0, DWORD PTR .LC14[rip]
	divss	xmm0, DWORD PTR -4[rbp]
	ucomiss	xmm0, DWORD PTR .LC15[rip]
	jp	.L10
	ucomiss	xmm0, DWORD PTR .LC15[rip]
	jne	.L10
	mov	eax, 1
	jmp	.L13
.L10:
	mov	eax, 0
.L13:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	is_positive_zerof, .-is_positive_zerof
	.section	.rodata
.LC18:
	.string	"should return true or false"
	.text
	.globl	benchmark
	.type	benchmark, @function
benchmark:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	eax, 0
	call	tic
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L18
.L21:
	mov	eax, 0
	call	rand_float
	movss	xmm1, DWORD PTR .LC16[rip]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC17[rip]
	subss	xmm0, xmm1
	movss	DWORD PTR -20[rbp], xmm0
	mov	eax, DWORD PTR -20[rbp]
	movd	xmm0, eax
	call	is_positive_zerof
	mov	BYTE PTR -25[rbp], al
	movzx	eax, BYTE PTR -25[rbp]
	xor	eax, 1
	test	al, al
	je	.L19
	cmp	BYTE PTR -25[rbp], 0
	je	.L19
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L20
.L19:
	add	DWORD PTR -24[rbp], 1
.L18:
	cmp	DWORD PTR -24[rbp], 999999
	jle	.L21
.L20:
	mov	eax, 0
	call	tic
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	movzx	eax, BYTE PTR -25[rbp]
	xor	eax, 1
	test	al, al
	je	.L22
	cmp	BYTE PTR -25[rbp], 0
	je	.L22
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L22:
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	benchmark, .-benchmark
	.section	.rodata
.LC19:
	.string	"is-positive-zerof"
.LC20:
	.string	"# c::%s\n"
.LC21:
	.string	"ok %d benchmark finished\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	print_version
	mov	DWORD PTR -12[rbp], 0
	jmp	.L25
.L26:
	lea	rsi, .LC19[rip]
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	benchmark
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	call	print_results
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L25:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L26
	mov	esi, 3
	mov	edi, 3
	call	print_summary
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC6:
	.long	0
	.long	1093567616
	.align 4
.LC12:
	.long	1325400064
	.align 4
.LC14:
	.long	1065353216
	.align 4
.LC15:
	.long	2139095040
	.align 4
.LC16:
	.long	1120403456
	.align 4
.LC17:
	.long	1112014848
	.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	"331012.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"TAP version 13\000"
	.text
	.align	2
	.global	print_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_version, %function
print_version:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	print_version, .-print_version
	.section	.rodata
	.align	2
.LC1:
	.ascii	"#\000"
	.align	2
.LC2:
	.ascii	"1..%d\012\000"
	.align	2
.LC3:
	.ascii	"# total %d\012\000"
	.align	2
.LC4:
	.ascii	"# pass  %d\012\000"
	.align	2
.LC5:
	.ascii	"# ok\000"
	.text
	.align	2
	.global	print_summary
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_summary, %function
print_summary:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, .L5
	bl	puts
	ldr	r1, [fp, #-8]
	ldr	r0, .L5+4
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, .L5+8
	bl	printf
	ldr	r1, [fp, #-12]
	ldr	r0, .L5+12
	bl	printf
	ldr	r0, .L5
	bl	puts
	ldr	r0, .L5+16
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	print_summary, .-print_summary
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC6:
	.ascii	"  ---\000"
	.align	2
.LC7:
	.ascii	"  iterations: %d\012\000"
	.align	2
.LC8:
	.ascii	"  elapsed: %0.9f\012\000"
	.align	2
.LC9:
	.ascii	"  rate: %0.9f\012\000"
	.align	2
.LC10:
	.ascii	"  ...\000"
	.text
	.align	2
	.global	print_results
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_results, %function
print_results:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r0, .L8+4
	bl	puts
	ldr	r1, .L8+8
	ldr	r0, .L8+12
	bl	printf
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+16
	bl	printf
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+20
	bl	printf
	ldr	r0, .L8+24
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	1093567616
	.word	.LC6
	.word	1000000
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	print_results, .-print_results
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tic
	.syntax unified
	.arm
	.fpu softvfp
	.type	tic, %function
tic:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L13+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L13
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC11
	.word	1093567616
	.size	tic, .-tic
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.align	2
	.global	rand_float
	.syntax unified
	.arm
	.fpu softvfp
	.type	rand_float, %function
rand_float:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	rand
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, #1325400064
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	rand_float, .-rand_float
	.global	__aeabi_fcmpeq
	.align	2
	.global	is_positive_zerof
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_positive_zerof, %function
is_positive_zerof:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]	@ float
	mov	r1, #0
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r1, [fp, #-8]	@ float
	mov	r0, #1065353216
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, .L25
	mov	r0, r3
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	mov	r3, #1
	b	.L21
.L18:
	mov	r3, #0
.L21:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	2139095040
	.size	is_positive_zerof, .-is_positive_zerof
	.global	__aeabi_fmul
	.global	__aeabi_fsub
	.section	.rodata
	.align	2
.LC12:
	.ascii	"should return true or false\000"
	.global	__aeabi_dsub
	.text
	.align	2
	.global	benchmark
	.syntax unified
	.arm
	.fpu softvfp
	.type	benchmark, %function
benchmark:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	bl	tic
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L28
.L31:
	bl	rand_float
	mov	r3, r0
	ldr	r1, .L34
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L34+4
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	is_positive_zerof
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L29
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L29
	ldr	r0, .L34+8
	bl	puts
	b	.L30
.L29:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L28:
	ldr	r3, [fp, #-28]
	ldr	r2, .L34+12
	cmp	r3, r2
	blt	.L31
.L30:
	bl	tic
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L32
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L32
	ldr	r0, .L34+8
	bl	puts
.L32:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	1120403456
	.word	1112014848
	.word	.LC12
	.word	1000000
	.size	benchmark, .-benchmark
	.section	.rodata
	.align	2
.LC13:
	.ascii	"is-positive-zerof\000"
	.align	2
.LC14:
	.ascii	"# c::%s\012\000"
	.align	2
.LC15:
	.ascii	"ok %d benchmark finished\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	print_version
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L37
.L38:
	ldr	r1, .L40
	ldr	r0, .L40+4
	bl	printf
	bl	benchmark
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	print_results
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L40+8
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L37:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L38
	mov	r1, #3
	mov	r0, #3
	bl	print_summary
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
