	.file	"368964.c"
	.intel_syntax noprefix
	.text
	.globl	hunt
	.type	hunt, @function
hunt:
.LFB0:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	movsd	QWORD PTR -56[rbp], xmm0
	mov	QWORD PTR -64[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	movsd	xmm1, QWORD PTR [rax]
	comisd	xmm0, xmm1
	setnb	al
	movzx	eax, al
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -48[rbp], rax
	jnb	.L3
.L2:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	jmp	.L4
.L3:
	mov	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -56[rbp]
	comisd	xmm0, xmm1
	setnb	al
	movzx	eax, al
	cmp	DWORD PTR -28[rbp], eax
	jne	.L5
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -48[rbp], rax
	je	.L23
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	jmp	.L8
.L10:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	sal	QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jbe	.L8
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -56[rbp]
	comisd	xmm0, xmm1
	setnb	al
	movzx	eax, al
	cmp	DWORD PTR -28[rbp], eax
	je	.L10
	jmp	.L15
.L5:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 1
	jne	.L11
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], 0
	jmp	.L1
.L11:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -1[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR -24[rbp], rax
	jmp	.L12
.L14:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	sal	QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jb	.L13
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], 0
	jmp	.L4
.L13:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
.L12:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	comisd	xmm0, QWORD PTR -56[rbp]
	seta	al
	movzx	eax, al
	cmp	DWORD PTR -28[rbp], eax
	je	.L14
.L4:
	jmp	.L15
.L17:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	shr	rax
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -56[rbp]
	comisd	xmm0, xmm1
	setnb	al
	movzx	eax, al
	cmp	DWORD PTR -28[rbp], eax
	jne	.L16
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L15:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, rdx
	cmp	rax, 1
	jne	.L17
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	ucomisd	xmm0, QWORD PTR -56[rbp]
	jp	.L18
	ucomisd	xmm0, QWORD PTR -56[rbp]
	jne	.L18
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
.L18:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	movsd	xmm0, QWORD PTR [rax]
	ucomisd	xmm0, QWORD PTR -56[rbp]
	jp	.L1
	ucomisd	xmm0, QWORD PTR -56[rbp]
	jne	.L1
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], 1
	jmp	.L1
.L23:
	nop
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hunt, .-hunt
	.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	"368964.c"
	.text
	.global	__aeabi_dcmpge
	.global	__aeabi_dcmplt
	.global	__aeabi_dcmpeq
	.align	2
	.global	hunt
	.syntax unified
	.arm
	.fpu softvfp
	.type	hunt, %function
hunt:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	mov	ip, #1
	mov	r4, ip
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	mov	r4, r3
.L2:
	and	r3, r4, #255
	str	r3, [fp, #-20]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bcs	.L4
.L3:
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L5
.L4:
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r1, #1
	mov	r4, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	mov	r4, r3
.L6:
	and	r3, r4, #255
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bne	.L7
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	beq	.L28
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L10
.L13:
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bls	.L10
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L5
.L10:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r1, #1
	mov	r4, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	mov	r4, r3
.L12:
	and	r3, r4, #255
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	beq	.L13
	b	.L19
.L7:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L14
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	b	.L1
.L14:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r2, [fp, #4]
	str	r1, [r2]
	str	r3, [fp, #-28]
	b	.L15
.L18:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L16
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	b	.L5
.L16:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r2, r2, r3
	ldr	r3, [fp, #4]
	str	r2, [r3]
.L15:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r1, #1
	mov	r4, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	mov	r3, #0
	mov	r4, r3
.L17:
	and	r3, r4, #255
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	beq	.L18
.L5:
	b	.L19
.L22:
	ldr	r3, [fp, #4]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsr	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r1, #1
	mov	r4, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	mov	r3, #0
	mov	r4, r3
.L20:
	and	r3, r4, #255
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bne	.L21
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	b	.L19
.L21:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
.L19:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	sub	r3, r2, r3
	cmp	r3, #1
	bne	.L22
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
.L23:
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L1
	ldr	r3, [fp, #4]
	mov	r2, #1
	str	r2, [r3]
	b	.L1
.L28:
	nop
.L1:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	hunt, .-hunt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
