	.file	"extr_minilua.c_auxsort.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"invalid order function for sorting"
	.text
	.p2align 4
	.type	auxsort, @function
auxsort:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 8[rsp], edx
	cmp	esi, edx
	jge	.L1
	mov	rbp, rdi
	mov	r12d, esi
	lea	r15, .LC0[rip]
.L2:
	mov	edx, r12d
	mov	esi, 1
	mov	rdi, rbp
	call	lua_rawgeti@PLT
	mov	ebx, DWORD PTR 8[rsp]
	mov	esi, 1
	mov	rdi, rbp
	mov	edx, ebx
	call	lua_rawgeti@PLT
	mov	edx, -2
	mov	esi, -1
	mov	rdi, rbp
	call	sort_comp@PLT
	test	rax, rax
	je	.L3
	mov	edx, ebx
	mov	esi, r12d
	mov	rdi, rbp
	call	set2@PLT
.L4:
	mov	eax, DWORD PTR 8[rsp]
	mov	ebx, eax
	sub	ebx, r12d
	cmp	ebx, 1
	je	.L1
	add	eax, r12d
	mov	esi, 1
	mov	rdi, rbp
	mov	r13d, eax
	shr	r13d, 31
	add	r13d, eax
	sar	r13d
	mov	edx, r13d
	call	lua_rawgeti@PLT
	mov	edx, r12d
	mov	esi, 1
	mov	rdi, rbp
	call	lua_rawgeti@PLT
	mov	edx, -1
	mov	esi, -2
	mov	rdi, rbp
	call	sort_comp@PLT
	test	rax, rax
	je	.L6
	mov	edx, r12d
	mov	esi, r13d
	mov	rdi, rbp
	call	set2@PLT
.L7:
	cmp	ebx, 2
	je	.L1
	mov	edx, r13d
	mov	esi, 1
	mov	rdi, rbp
	mov	r14d, r12d
	call	lua_rawgeti@PLT
	mov	esi, -1
	mov	rdi, rbp
	call	lua_pushvalue@PLT
	mov	eax, DWORD PTR 8[rsp]
	mov	esi, 1
	mov	rdi, rbp
	sub	eax, 1
	mov	ebx, eax
	mov	edx, eax
	mov	DWORD PTR 12[rsp], eax
	call	lua_rawgeti@PLT
	mov	edx, ebx
	mov	esi, r13d
	mov	rdi, rbp
	call	set2@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	r13d, DWORD PTR 8[rsp]
	jg	.L29
.L10:
	mov	esi, 1
	mov	rdi, rbp
	call	lua_pop@PLT
.L17:
	mov	r14d, r13d
.L9:
	lea	r13d, 1[r14]
	mov	esi, 1
	mov	rdi, rbp
	mov	edx, r13d
	call	lua_rawgeti@PLT
	mov	edx, -2
	mov	esi, -1
	mov	rdi, rbp
	call	sort_comp@PLT
	test	rax, rax
	jne	.L11
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rsi, r15
	mov	rdi, rbp
	call	luaL_error@PLT
.L13:
	mov	esi, 1
	mov	rdi, rbp
	call	lua_pop@PLT
.L12:
	sub	ebx, 1
	mov	esi, 1
	mov	rdi, rbp
	mov	edx, ebx
	call	lua_rawgeti@PLT
	mov	edx, -1
	mov	esi, -3
	mov	rdi, rbp
	call	sort_comp@PLT
	test	rax, rax
	je	.L30
	cmp	ebx, r12d
	jge	.L13
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L30:
	cmp	r13d, ebx
	jg	.L32
	mov	edx, ebx
	mov	esi, r13d
	mov	rdi, rbp
	call	set2@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rsi, r15
	mov	rdi, rbp
	call	luaL_error@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L32:
	mov	esi, 3
	mov	rdi, rbp
	call	lua_pop@PLT
	mov	ebx, DWORD PTR 12[rsp]
	mov	esi, 1
	mov	rdi, rbp
	mov	edx, ebx
	call	lua_rawgeti@PLT
	mov	edx, r13d
	mov	esi, 1
	mov	rdi, rbp
	call	lua_rawgeti@PLT
	mov	edx, r13d
	mov	esi, ebx
	mov	rdi, rbp
	call	set2@PLT
	mov	eax, DWORD PTR 8[rsp]
	mov	edx, r13d
	lea	esi, 2[r14]
	sub	edx, r12d
	sub	eax, r13d
	cmp	edx, eax
	jge	.L18
	mov	eax, r12d
	mov	r12d, esi
	mov	esi, eax
.L16:
	mov	edx, r14d
	mov	rdi, rbp
	call	auxsort
	cmp	r12d, DWORD PTR 8[rsp]
	jl	.L2
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	mov	esi, 2
	mov	rdi, rbp
	call	lua_pop@PLT
	jmp	.L4
.L6:
	mov	esi, 1
	mov	rdi, rbp
	call	lua_pop@PLT
	mov	r14d, DWORD PTR 8[rsp]
	mov	esi, 1
	mov	rdi, rbp
	mov	edx, r14d
	call	lua_rawgeti@PLT
	mov	edx, -2
	mov	esi, -1
	mov	rdi, rbp
	call	sort_comp@PLT
	test	rax, rax
	je	.L8
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	call	set2@PLT
	jmp	.L7
.L18:
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR 8[rsp], r14d
	mov	r14d, eax
	jmp	.L16
.L8:
	mov	esi, 2
	mov	rdi, rbp
	call	lua_pop@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	auxsort, .-auxsort
	.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_minilua.c_auxsort.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid order function for sorting\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	auxsort, %function
auxsort:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, r2
	bxge	lr
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r1
	mov	r10, r2
	mov	r5, r0
	ldr	r9, .L37
.L2:
	mov	r2, r7
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mov	r2, r10
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mvn	r2, #1
	mvn	r1, #0
	mov	r0, r5
	bl	sort_comp
	cmp	r0, #0
	beq	.L3
	mov	r2, r10
	mov	r1, r7
	mov	r0, r5
	bl	set2
.L4:
	sub	r6, r10, r7
	cmp	r6, #1
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	add	r4, r10, r7
	add	r4, r4, r4, lsr #31
	asr	r4, r4, #1
	mov	r2, r4
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mov	r2, r7
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mvn	r2, #0
	mvn	r1, #1
	mov	r0, r5
	bl	sort_comp
	cmp	r0, #0
	beq	.L6
	mov	r2, r7
	mov	r1, r4
	mov	r0, r5
	bl	set2
	cmp	r6, #2
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	mov	r2, r4
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	sub	fp, r10, #1
	mvn	r1, #0
	mov	r0, r5
	bl	lua_pushvalue
	mov	r2, fp
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mov	r1, r4
	mov	r2, fp
	mov	r0, r5
	bl	set2
	mov	r4, fp
	mov	r8, r7
	b	.L9
.L11:
	cmp	r6, r10
	bgt	.L32
.L10:
	mov	r1, #1
	mov	r0, r5
	bl	lua_pop
.L17:
	mov	r8, r6
.L9:
	add	r6, r8, #1
	mov	r2, r6
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mvn	r2, #1
	mvn	r1, #0
	mov	r0, r5
	bl	sort_comp
	cmp	r0, #0
	bne	.L11
	b	.L12
.L34:
	mov	r1, r9
	mov	r0, r5
	bl	luaL_error
.L13:
	mov	r1, #1
	mov	r0, r5
	bl	lua_pop
.L12:
	sub	r4, r4, #1
	mov	r2, r4
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mvn	r2, #0
	mvn	r1, #2
	mov	r0, r5
	bl	sort_comp
	cmp	r0, #0
	beq	.L33
	cmp	r4, r7
	bge	.L13
	b	.L34
.L33:
	cmp	r6, r4
	bgt	.L35
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	set2
	b	.L17
.L32:
	mov	r1, r9
	mov	r0, r5
	bl	luaL_error
	b	.L10
.L35:
	mov	r1, #3
	mov	r0, r5
	bl	lua_pop
	mov	r2, fp
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mov	r2, r6
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mov	r2, r6
	mov	r1, fp
	mov	r0, r5
	bl	set2
	sub	r3, r6, r7
	sub	r6, r10, r6
	cmp	r3, r6
	add	r1, r8, #2
	bge	.L18
	mov	r3, r7
	mov	r7, r1
	mov	r1, r3
.L16:
	mov	r2, r8
	mov	r0, r5
	bl	auxsort
	cmp	r7, r10
	blt	.L2
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r1, #2
	mov	r0, r5
	bl	lua_pop
	b	.L4
.L6:
	mov	r1, #1
	mov	r0, r5
	bl	lua_pop
	mov	r2, r10
	mov	r1, #1
	mov	r0, r5
	bl	lua_rawgeti
	mvn	r2, #1
	mvn	r1, #0
	mov	r0, r5
	bl	sort_comp
	cmp	r0, #0
	beq	.L8
	mov	r2, r10
	mov	r1, r4
	mov	r0, r5
	bl	set2
	cmp	r6, #2
	bne	.L36
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r3, r10
	mov	r10, r8
	mov	r8, r3
	b	.L16
.L8:
	mov	r1, #2
	mov	r0, r5
	bl	lua_pop
	cmp	r6, #2
	bne	.L36
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC0
	.size	auxsort, .-auxsort
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
