	.file	"404348.c"
	.intel_syntax noprefix
	.text
	.type	round_up_power_of_two, @function
round_up_power_of_two:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L7:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jbe	.L9
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	comisd	xmm0, QWORD PTR .LC1[rip]
	jnb	.L5
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	jmp	.L6
.L5:
	movsd	xmm1, QWORD PTR .LC1[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movabs	rax, -9223372036854775808
	xor	QWORD PTR -8[rbp], rax
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -8[rbp], rax
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	rax, QWORD PTR -8[rbp]
	test	rax, rax
	jns	.L7
	jmp	.L4
.L9:
	nop
.L4:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	round_up_power_of_two, .-round_up_power_of_two
	.type	pseudo_hash, @function
pseudo_hash:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, 1
	and	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pseudo_hash, .-pseudo_hash
	.type	pseudo_hash_old, @function
pseudo_hash_old:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	div	QWORD PTR -16[rbp]
	mov	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	pseudo_hash_old, .-pseudo_hash_old
	.section	.rodata
.LC2:
	.string	"Rounded %d up to %d\n"
.LC3:
	.string	"the_stack_data/404348.c"
.LC4:
	.string	"final1022 == 1024"
	.text
	.globl	test1
	.type	test1, @function
test1:
.LFB3:
	.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 -12[rbp], 1022
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rdi, rax
	call	round_up_power_of_two
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -8[rbp], 1024
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 36
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	test1, .-test1
	.section	.rodata
.LC5:
	.string	"ret1023 == 1023"
.LC6:
	.string	"ret1025 == 1"
.LC7:
	.string	"%d\n"
.LC8:
	.string	"ret1024 == 0"
.LC9:
	.string	"ret0 == 0"
	.text
	.globl	test2
	.type	test2, @function
test2:
.LFB4:
	.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	esi, 1024
	mov	edi, 1023
	call	pseudo_hash
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 1023
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 42
	lea	rsi, .LC3[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L18:
	mov	esi, 1024
	mov	edi, 1025
	call	pseudo_hash
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 1
	je	.L19
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 45
	lea	rsi, .LC3[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 1024
	mov	edi, 1024
	call	pseudo_hash
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L20
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 49
	lea	rsi, .LC3[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L20:
	mov	esi, 1024
	mov	edi, 0
	call	pseudo_hash
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L22
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 52
	lea	rsi, .LC3[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L22:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	test2, .-test2
	.section	.rodata
.LC10:
	.string	"hash1 took %d\n"
.LC11:
	.string	"hash2 took %d\n"
	.text
	.globl	test_compare_hash_algos
	.type	test_compare_hash_algos, @function
test_compare_hash_algos:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	call	clock@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -32[rbp], 65536
	mov	DWORD PTR -48[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pseudo_hash
	mov	QWORD PTR -8[rbp], rax
	add	DWORD PTR -48[rbp], 1
.L24:
	cmp	DWORD PTR -48[rbp], 6553599
	jle	.L25
	call	clock@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	call	clock@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pseudo_hash_old
	mov	QWORD PTR -16[rbp], rax
	add	DWORD PTR -44[rbp], 1
.L26:
	cmp	DWORD PTR -44[rbp], 6553599
	jle	.L27
	call	clock@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	test_compare_hash_algos, .-test_compare_hash_algos
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	test1
	mov	eax, 0
	call	test2
	mov	eax, 0
	call	test_compare_hash_algos
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 6
__PRETTY_FUNCTION__.1:
	.string	"test1"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 6
__PRETTY_FUNCTION__.0:
	.string	"test2"
	.align 8
.LC0:
	.long	0
	.long	1073741824
	.align 8
.LC1:
	.long	0
	.long	1138753536
	.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	"404348.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_d2uiz
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	round_up_power_of_two, %function
round_up_power_of_two:
	@ 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, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L7
	ldr	r0, [fp, #-8]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L5
	b	.L4
.L7:
	nop
.L4:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	round_up_power_of_two, .-round_up_power_of_two
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pseudo_hash, %function
pseudo_hash:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	and	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	pseudo_hash, .-pseudo_hash
	.global	__aeabi_uidivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pseudo_hash_old, %function
pseudo_hash_old:
	@ 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	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pseudo_hash_old, .-pseudo_hash_old
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Rounded %d up to %d\012\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/404348.c\000"
	.align	2
.LC2:
	.ascii	"final1022 == 1024\000"
	.text
	.align	2
	.global	test1
	.syntax unified
	.arm
	.fpu softvfp
	.type	test1, %function
test1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L15
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	round_up_power_of_two
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #1024
	beq	.L14
	ldr	r3, .L15+8
	mov	r2, #36
	ldr	r1, .L15+12
	ldr	r0, .L15+16
	bl	__assert_fail
.L14:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	1022
	.word	.LC0
	.word	__PRETTY_FUNCTION__.5796
	.word	.LC1
	.word	.LC2
	.size	test1, .-test1
	.section	.rodata
	.align	2
.LC3:
	.ascii	"ret1023 == 1023\000"
	.align	2
.LC4:
	.ascii	"ret1025 == 1\000"
	.align	2
.LC5:
	.ascii	"%d\012\000"
	.align	2
.LC6:
	.ascii	"ret1024 == 0\000"
	.align	2
.LC7:
	.ascii	"ret0 == 0\000"
	.text
	.align	2
	.global	test2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test2, %function
test2:
	@ 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	r1, #1024
	ldr	r0, .L23
	bl	pseudo_hash
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, .L23
	cmp	r3, r2
	beq	.L18
	ldr	r3, .L23+4
	mov	r2, #42
	ldr	r1, .L23+8
	ldr	r0, .L23+12
	bl	__assert_fail
.L18:
	mov	r1, #1024
	ldr	r0, .L23+16
	bl	pseudo_hash
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L19
	ldr	r3, .L23+4
	mov	r2, #45
	ldr	r1, .L23+8
	ldr	r0, .L23+20
	bl	__assert_fail
.L19:
	ldr	r1, [fp, #-16]
	ldr	r0, .L23+24
	bl	printf
	mov	r1, #1024
	mov	r0, #1024
	bl	pseudo_hash
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L23+4
	mov	r2, #49
	ldr	r1, .L23+8
	ldr	r0, .L23+28
	bl	__assert_fail
.L20:
	mov	r1, #1024
	mov	r0, #0
	bl	pseudo_hash
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L23+4
	mov	r2, #52
	ldr	r1, .L23+8
	ldr	r0, .L23+32
	bl	__assert_fail
.L22:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	1023
	.word	__PRETTY_FUNCTION__.5800
	.word	.LC1
	.word	.LC3
	.word	1025
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	test2, .-test2
	.section	.rodata
	.align	2
.LC8:
	.ascii	"hash1 took %d\012\000"
	.align	2
.LC9:
	.ascii	"hash2 took %d\012\000"
	.text
	.align	2
	.global	test_compare_hash_algos
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_compare_hash_algos, %function
test_compare_hash_algos:
	@ 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	clock
	str	r0, [fp, #-24]
	mov	r3, #65536
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L26
.L27:
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	pseudo_hash
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L26:
	ldr	r3, [fp, #-32]
	cmp	r3, #6553600
	blt	.L27
	bl	clock
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L30
	bl	printf
	bl	clock
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L28
.L29:
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	pseudo_hash_old
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L28:
	ldr	r3, [fp, #-28]
	cmp	r3, #6553600
	blt	.L29
	bl	clock
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L30+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC8
	.word	.LC9
	.size	test_compare_hash_algos, .-test_compare_hash_algos
	.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	test1
	bl	test2
	bl	test_compare_hash_algos
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5796, %object
	.size	__PRETTY_FUNCTION__.5796, 6
__PRETTY_FUNCTION__.5796:
	.ascii	"test1\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5800, %object
	.size	__PRETTY_FUNCTION__.5800, 6
__PRETTY_FUNCTION__.5800:
	.ascii	"test2\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
