	.file	"extr_ltablib.c_choosePivot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	choosePivot, @function
choosePivot:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, esi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	sub	eax, edi
	lea	ecx, 3[rax]
	cmovns	ecx, eax
	mov	eax, edx
	xor	edx, edx
	sar	ecx, 2
	lea	r8d, [rcx+rcx]
	add	edi, ecx
	div	r8d
	xor	r8d, r8d
	lea	r12d, [rdx+rdi]
	cmp	edi, r12d
	jg	.L2
	sub	esi, ecx
	xor	r8d, r8d
	cmp	esi, r12d
	setge	r8b
.L2:
	mov	edi, r8d
	call	lua_assert@PLT
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	choosePivot, .-choosePivot
	.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_ltablib.c_choosePivot.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	choosePivot, %function
choosePivot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	sub	r0, r1, r0
	cmp	r0, #0
	add	r3, r0, #3
	movge	r3, r0
	asr	r7, r3, #2
	mov	r5, r1
	mov	r0, r2
	lsl	r1, r7, #1
	add	r4, r4, r3, asr #2
	bl	__aeabi_uidivmod
	add	r6, r1, r4
	cmp	r4, r6
	movgt	r0, #0
	bgt	.L2
	sub	r0, r5, r7
	cmp	r0, r6
	movlt	r0, #0
	movge	r0, #1
.L2:
	bl	lua_assert
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
	.size	choosePivot, .-choosePivot
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
