	.file	"extr_ltablib.c_sort_comp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sort_comp, @function
sort_comp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	mov	esi, 2
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	lua_isnil@PLT
	test	rax, rax
	je	.L2
	mov	ecx, DWORD PTR LUA_OPLT[rip]
	mov	edx, r12d
	mov	esi, r13d
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	lua_compare@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	mov	esi, 2
	call	lua_pushvalue@PLT
	lea	esi, -1[r13]
	mov	rdi, rbp
	call	lua_pushvalue@PLT
	lea	esi, -2[r12]
	mov	rdi, rbp
	call	lua_pushvalue@PLT
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, 2
	call	lua_call@PLT
	mov	rdi, rbp
	mov	esi, -1
	call	lua_toboolean@PLT
	mov	rdi, rbp
	mov	esi, 1
	mov	r12d, eax
	call	lua_pop@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sort_comp, .-sort_comp
	.comm	LUA_OPLT,4,4
	.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_sort_comp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_comp, %function
sort_comp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	mov	r1, #2
	mov	r5, r2
	mov	r4, r0
	bl	lua_isnil
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L5
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r3, [r3]
	b	lua_compare
.L2:
	mov	r1, #2
	mov	r0, r4
	bl	lua_pushvalue
	sub	r1, r6, #1
	mov	r0, r4
	bl	lua_pushvalue
	sub	r1, r5, #2
	mov	r0, r4
	bl	lua_pushvalue
	mov	r2, #1
	mov	r1, #2
	mov	r0, r4
	bl	lua_call
	mvn	r1, #0
	mov	r0, r4
	bl	lua_toboolean
	mov	r5, r0
	mov	r1, #1
	mov	r0, r4
	bl	lua_pop
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	LUA_OPLT
	.size	sort_comp, .-sort_comp
	.comm	LUA_OPLT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
