	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function partition
_partition:                             ## @partition
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leal	-1(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movl	%eax, %r12d
	leal	1(%r14), %r13d
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r13d, %edx
	callq	_lua_geti
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$-2, %edx
	callq	_sort_comp
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$2, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_lua_geti
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$-2, %edx
	callq	_sort_comp
	incl	%r14d
	testl	%eax, %eax
	je	LBB0_6
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r14d, %r15d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_luaL_error
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%r14d
	movl	%r14d, %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	-1(%r12), %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_lua_geti
	movq	%rbx, %rdi
	movl	$-3, %esi
	movl	$-1, %edx
	callq	_sort_comp
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	leal	-2(%r12), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_geti
	movq	%rbx, %rdi
	movl	$-3, %esi
	movl	$-1, %edx
	callq	_sort_comp
	decl	%r12d
	testl	%eax, %eax
	je	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r13d, %r12d
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_luaL_error
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	leal	-1(%r12), %r14d
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	cmpl	%r13d, %r12d
	jle	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_set2
	movl	%r14d, %eax
	movl	%r13d, %r14d
	jmp	LBB0_1
LBB0_13:
	movl	$1, %esi
	callq	_lua_pop
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_set2
	movl	%r13d, %eax
	addq	$8, %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	_partition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function partition
_partition:                             ; @partition
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	sub	w19, w2, #1
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	mov	x25, x19
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	add	w24, w23, #1
	mov	x0, x20
	mov	w1, #1
	mov	x2, x24
	bl	_lua_geti
	mov	x0, x20
	mov	w1, #-1
	mov	w2, #-2
	bl	_sort_comp
	cbz	w0, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w23, w23, #2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x20
	mov	w1, #1
	bl	_lua_pop
	mov	x0, x20
	mov	w1, #1
	mov	x2, x23
	bl	_lua_geti
	mov	x0, x20
	mov	w1, #-1
	mov	w2, #-2
	bl	_sort_comp
	add	w23, w23, #1
	cbz	w0, LBB0_6
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w21, w23
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x20
	mov	x1, x22
	bl	_luaL_error
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	w23, w23, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x24
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	w24, w25, #1
	mov	x0, x20
	mov	w1, #1
	mov	x2, x24
	bl	_lua_geti
	mov	x0, x20
	mov	w1, #-3
	mov	w2, #-1
	bl	_sort_comp
	cbnz	w0, LBB0_10
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x20
	mov	w1, #1
	bl	_lua_pop
	sub	w2, w25, #2
	mov	x0, x20
	mov	w1, #1
	bl	_lua_geti
	mov	x0, x20
	mov	w1, #-3
	mov	w2, #-1
	bl	_sort_comp
	sub	w25, w25, #1
	cbz	w0, LBB0_12
LBB0_10:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w25, w23
	b.gt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x20
	mov	x1, x22
	bl	_luaL_error
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w24, w25, #1
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	cmp	w25, w23
	b.le	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x23
	mov	x2, x24
	bl	_set2
	mov	x25, x24
	b	LBB0_1
LBB0_15:
	mov	w1, #1
	bl	_lua_pop
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_set2
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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	_partition
.subsections_via_symbols
