	.file	"extr_ltablib.c_sort.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"array too big"
	.text
	.p2align 4
	.type	sort, @function
sort:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR TAB_RW[rip]
	call	aux_getn@PLT
	cmp	eax, 1
	jg	.L6
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	esi, esi
	cmp	DWORD PTR INT_MAX[rip], eax
	mov	rdi, rbp
	mov	edx, 1
	setg	sil
	lea	rcx, .LC0[rip]
	mov	r12d, eax
	call	luaL_argcheck@PLT
	mov	esi, 2
	mov	rdi, rbp
	call	lua_isnoneornil@PLT
	test	eax, eax
	je	.L7
.L3:
	mov	rdi, rbp
	mov	esi, 2
	call	lua_settop@PLT
	mov	edx, r12d
	mov	rdi, rbp
	xor	ecx, ecx
	mov	esi, 1
	call	auxsort@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edx, DWORD PTR LUA_TFUNCTION[rip]
	mov	esi, 2
	mov	rdi, rbp
	call	luaL_checktype@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sort, .-sort
	.comm	TAB_RW,4,4
	.comm	LUA_TFUNCTION,4,4
	.comm	INT_MAX,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.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"array too big\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort, %function
sort:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	mov	r1, #1
	ldr	r2, [r3]
	mov	r5, r0
	bl	aux_getn
	cmp	r0, #1
	bgt	.L6
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r2, .L8+4
	ldr	r3, .L8+8
	ldr	r1, [r2]
	mov	r4, r0
	cmp	r1, r0
	movle	r1, #0
	movgt	r1, #1
	mov	r2, #1
	mov	r0, r5
	bl	luaL_argcheck
	mov	r1, #2
	mov	r0, r5
	bl	lua_isnoneornil
	cmp	r0, #0
	beq	.L7
.L3:
	mov	r1, #2
	mov	r0, r5
	bl	lua_settop
	mov	r2, r4
	mov	r0, r5
	mov	r3, #0
	mov	r1, #1
	bl	auxsort
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L8+12
	mov	r1, #2
	mov	r0, r5
	ldr	r2, [r3]
	bl	luaL_checktype
	b	.L3
.L9:
	.align	2
.L8:
	.word	TAB_RW
	.word	INT_MAX
	.word	.LC0
	.word	LUA_TFUNCTION
	.size	sort, .-sort
	.comm	TAB_RW,4,4
	.comm	LUA_TFUNCTION,4,4
	.comm	INT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
