	.file	"extr_lists-data.c_find_rpos_global.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	find_rpos_global
	.type	find_rpos_global, @function
find_rpos_global:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, -1
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r8d, DWORD PTR [rdi]
	mov	ebx, r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	lea	ecx, [rdx+rbx]
	mov	eax, ecx
	shr	eax, 31
	add	eax, ecx
	mov	rcx, QWORD PTR 8[rbp]
	sar	eax
	movsx	rdi, eax
	mov	rdi, QWORD PTR [rcx+rdi*8]
	mov	rcx, QWORD PTR 16[rbp]
	cmp	QWORD PTR [rcx+rdi*8], rsi
	cmovl	edx, eax
	cmovge	ebx, eax
.L3:
	mov	eax, ebx
	sub	eax, edx
	cmp	eax, 1
	jg	.L4
	mov	edi, ebx
	cmp	ebx, r8d
	not	edi
	setle	al
	shr	edi, 31
	and	edi, eax
	call	assert@PLT
	mov	eax, DWORD PTR 0[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	sub	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_rpos_global, .-find_rpos_global
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lists-data.c_find_rpos_global.c"
	.text
	.align	2
	.global	find_rpos_global
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_rpos_global, %function
find_rpos_global:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mvn	r2, #0
	mov	r4, r0
	b	.L3
.L4:
	ldr	lr, [r5, #4]
	ldr	ip, [r5, #8]
	ldr	lr, [lr, r3, lsl #2]
	ldr	ip, [ip, lr, lsl #2]
	cmp	ip, r1
	movlt	r2, r3
	movge	r4, r3
.L3:
	add	r3, r2, r4
	sub	ip, r4, r2
	add	r3, r3, r3, lsr #31
	cmp	ip, #1
	asr	r3, r3, #1
	bgt	.L4
	cmp	r4, r0
	movgt	r0, #0
	movle	r0, #1
	cmp	r4, #0
	movlt	r0, #0
	bl	assert
	ldr	r0, [r5]
	sub	r0, r0, r4
	pop	{r4, r5, r6, pc}
	.size	find_rpos_global, .-find_rpos_global
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
