	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auxsort
_auxsort:                               ## @auxsort
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, %edx
	jle	LBB0_26
## %bb.1:
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$3, %esi
	movl	%eax, %r12d
	callq	_lua_pop
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_set2
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, %eax
	subl	%r12d, %eax
	subl	%r15d, %r12d
	leal	2(%r13), %esi
	cmpl	%eax, %r12d
	movl	%r15d, %r14d
	cmovll	%esi, %r14d
	movl	%r13d, %r12d
	cmovll	%edx, %r12d
	cmovll	%r13d, %edx
	cmovll	%r15d, %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_auxsort
	movl	%r12d, %eax
	movl	%r14d, %r15d
	cmpl	%r14d, %r12d
	movq	%rax, %r12
	jle	LBB0_26
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
                                        ##       Child Loop BB0_21 Depth 3
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$-2, %edx
	callq	_sort_comp
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_set2
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %esi
	callq	_lua_pop
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %r14d
	subl	%r15d, %r14d
	cmpl	$1, %r14d
	je	LBB0_26
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r12,%r15), %eax
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	sarl	%r13d
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r13d, %edx
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$-2, %esi
	movl	$-1, %edx
	callq	_sort_comp
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %esi
	movl	%r15d, %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %esi
	callq	_lua_pop
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$-2, %edx
	callq	_sort_comp
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %esi
	movl	%r12d, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_set2
	cmpl	$2, %r14d
	je	LBB0_26
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r13d, %edx
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_pushvalue
	leal	-1(%r12), %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_set2
	movl	%r15d, %eax
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
                                        ## kill: def $r14d killed $r14d def $r14
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
                                        ##       Child Loop BB0_21 Depth 3
	movl	%eax, %r13d
	leal	1(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$-2, %edx
	callq	_sort_comp
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=3
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	leal	2(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$-2, %edx
	callq	_sort_comp
	incl	%r13d
	testq	%rax, %rax
	je	LBB0_18
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r13d, %r12d
	jg	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=3
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_luaL_error
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=2
	leal	1(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=2
	leal	-1(%r14), %r12d
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$-3, %esi
	movl	$-1, %edx
	callq	_sort_comp
	testq	%rax, %rax
	jne	LBB0_21
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=3
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	leal	-2(%r14), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	movl	$-3, %esi
	movl	$-1, %edx
	callq	_sort_comp
	decl	%r14d
	testq	%rax, %rax
	je	LBB0_23
LBB0_21:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r15d, %r14d
	jg	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_luaL_error
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=2
	leal	-1(%r14), %r12d
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rbx, %rdi
	cmpl	%eax, %r14d
	jle	LBB0_2
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_set2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%r12d, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %esi
	callq	_lua_pop
	cmpl	$2, %r14d
	jne	LBB0_13
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid order function for sorting"

	.no_dead_strip	_auxsort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auxsort
_auxsort:                               ; @auxsort
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w2, w1
	b.le	LBB0_26
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #3
	bl	_lua_pop
	mov	x0, x19
	mov	w1, #1
	mov	x2, x23
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #1
	mov	x2, x24
	bl	_lua_rawgeti
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_set2
	sub	w8, w24, w21
	add	w9, w26, #2
	sub	w10, w20, w24
	cmp	w8, w10
	csel	w23, w9, w21, lt
	csel	w24, w20, w26, lt
	csel	w2, w26, w20, lt
	csel	w1, w21, w9, lt
	mov	x0, x19
	bl	_auxsort
	mov	x20, x24
	mov	x21, x23
	cmp	w24, w23
	b.le	LBB0_26
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;       Child Loop BB0_20 Depth 3
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #-2
	bl	_sort_comp
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_set2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	w1, #2
	bl	_lua_pop
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w23, w20, w21
	cmp	w23, #1
	b.eq	LBB0_26
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w20, w21
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w24, w8, #1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x24
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #-2
	mov	w2, #-1
	bl	_sort_comp
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #-2
	bl	_sort_comp
	cbz	x0, LBB0_25
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_set2
	cmp	w23, #2
	b.eq	LBB0_26
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x24
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_pushvalue
	sub	w23, w20, #1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x23
	bl	_lua_rawgeti
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_set2
	mov	x26, x21
	mov	x27, x23
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;       Child Loop BB0_20 Depth 3
	add	w24, w26, #1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x24
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #-2
	bl	_sort_comp
	cbnz	x0, LBB0_15
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=3
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	add	w2, w26, #2
	mov	x0, x19
	mov	w1, #1
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #-2
	bl	_sort_comp
	add	w26, w26, #1
	cbz	x0, LBB0_17
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w20, w26
	b.gt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	mov	x0, x19
	mov	x1, x22
	bl	_luaL_error
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=2
	add	w24, w26, #1
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=2
	sub	w25, w27, #1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x25
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #-3
	mov	w2, #-1
	bl	_sort_comp
	cbnz	x0, LBB0_20
	b	LBB0_23
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=3
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	sub	w2, w27, #2
	mov	x0, x19
	mov	w1, #1
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #-3
	mov	w2, #-1
	bl	_sort_comp
	sub	w27, w27, #1
	cbz	x0, LBB0_22
LBB0_20:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w27, w21
	b.gt	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=3
	mov	x0, x19
	mov	x1, x22
	bl	_luaL_error
	b	LBB0_19
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=2
	sub	w25, w27, #1
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	cmp	w27, w24
	b.le	LBB0_2
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x1, x24
	mov	x2, x25
	bl	_set2
	mov	x26, x24
	mov	x27, x25
	b	LBB0_13
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	w1, #2
	bl	_lua_pop
	cmp	w23, #2
	b.ne	LBB0_12
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid order function for sorting"

	.no_dead_strip	_auxsort
.subsections_via_symbols
