	.file	"275021.c"
	.intel_syntax noprefix
	.text
	.globl	FindUp
	.type	FindUp, @function
FindUp:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -48[rbp], rdi
	mov	DWORD PTR -52[rbp], esi
	mov	DWORD PTR -56[rbp], edx
	mov	r14d, -1
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rsi, rax
	mov	rbx, QWORD PTR -48[rbp]
	mov	r13d, 0
	jmp	.L2
.L10:
	cmp	r13d, DWORD PTR -52[rbp]
	je	.L13
	mov	eax, DWORD PTR 24[rbx]
	test	eax, eax
	je	.L14
	mov	edx, DWORD PTR 4[rbx]
	mov	rcx, rsi
	mov	eax, DWORD PTR 4[rcx]
	cmp	edx, eax
	jge	.L15
	mov	eax, DWORD PTR [rbx]
	mov	edx, DWORD PTR [rcx]
	sub	eax, edx
	cdq
	xor	eax, edx
	mov	r12d, eax
	sub	r12d, edx
	cmp	r12d, 40
	jg	.L16
	cmp	r14d, -1
	jne	.L8
	mov	r14d, r13d
	mov	r15, rbx
	mov	r8d, r12d
	jmp	.L4
.L8:
	mov	edx, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR 4[r15]
	cmp	edx, eax
	jg	.L9
	mov	edx, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR 4[r15]
	cmp	edx, eax
	jne	.L17
	mov	eax, r8d
	cmp	r12d, eax
	jge	.L17
.L9:
	mov	r14d, r13d
	mov	r15, rbx
	mov	r8d, r12d
	jmp	.L4
.L13:
	nop
	jmp	.L4
.L14:
	nop
	jmp	.L4
.L15:
	nop
	jmp	.L4
.L16:
	nop
	jmp	.L4
.L17:
	nop
.L4:
	add	rbx, 32
	add	r13d, 1
.L2:
	cmp	r13d, DWORD PTR -56[rbp]
	jl	.L10
	cmp	r14d, -1
	jne	.L11
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L12
.L11:
	mov	eax, r14d
.L12:
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	FindUp, .-FindUp
	.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	"275021.c"
	.text
	.align	2
	.global	FindUp
	.syntax unified
	.arm
	.fpu softvfp
	.type	FindUp, %function
FindUp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, r10, fp}
	add	fp, sp, #28
	sub	sp, sp, #16
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	mvn	r7, #0
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r9, r3, r2
	ldr	r4, [fp, #-32]
	mov	r5, #0
	b	.L2
.L10:
	ldr	r3, [fp, #-36]
	cmp	r5, r3
	beq	.L13
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L14
	ldr	r2, [r4, #4]
	ldr	r3, [r9, #4]
	cmp	r2, r3
	bge	.L15
	ldr	r2, [r4]
	ldr	r3, [r9]
	sub	r3, r2, r3
	eor	r6, r3, r3, asr #31
	sub	r6, r6, r3, asr #31
	cmp	r6, #40
	bgt	.L16
	cmn	r7, #1
	bne	.L8
	mov	r7, r5
	mov	r8, r4
	mov	r10, r6
	b	.L4
.L8:
	ldr	r2, [r4, #4]
	ldr	r3, [r8, #4]
	cmp	r2, r3
	bgt	.L9
	ldr	r2, [r4, #4]
	ldr	r3, [r8, #4]
	cmp	r2, r3
	bne	.L17
	cmp	r6, r10
	bge	.L17
.L9:
	mov	r7, r5
	mov	r8, r4
	mov	r10, r6
	b	.L4
.L13:
	nop
	b	.L4
.L14:
	nop
	b	.L4
.L15:
	nop
	b	.L4
.L16:
	nop
	b	.L4
.L17:
	nop
.L4:
	add	r4, r4, #28
	add	r5, r5, #1
.L2:
	ldr	r3, [fp, #-40]
	cmp	r5, r3
	blt	.L10
	cmn	r7, #1
	bne	.L11
	ldr	r3, [fp, #-36]
	b	.L12
.L11:
	mov	r3, r7
.L12:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp}
	bx	lr
	.size	FindUp, .-FindUp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
