	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MJCompare
_MJCompare:                             ## @MJCompare
	.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
	movq	%rdi, %r15
	movq	24(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_ResetExprContext
	movl	(%rbx), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %edi
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$40, %rbx
	movl	%edx, %r14d
	cmpq	%rcx, %r13
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	movq	8(%rdi,%rbx), %rcx
	movq	24(%rdi,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edx
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdi,%rbx), %r8
	movl	16(%rdi,%rbx), %edx
	movl	32(%rdi,%rbx), %edi
	callq	_ApplySortComparator
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	movl	%r14d, %edx
	jmp	LBB0_8
LBB0_9:
	testl	%edx, %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jne	LBB0_12
LBB0_10:
	cmpq	$0, 8(%r15)
	je	LBB0_11
LBB0_12:
	movl	$1, %r12d
	jmp	LBB0_13
LBB0_6:
	movl	%eax, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_13
LBB0_11:
	xorl	%r12d, %r12d
LBB0_13:
	callq	_MemoryContextSwitchTo
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_MJCompare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MJCompare
_MJCompare:                             ; @MJCompare
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #24]
	mov	x0, x19
	bl	_ResetExprContext
	ldr	w0, [x19]
	bl	_MemoryContextSwitchTo
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	w24, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	add	x22, x22, #40
	cmp	x23, w8, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	add	x4, x9, x22
	ldr	x1, [x4, #24]
	ldr	x3, [x4, #8]
	cbz	x1, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x3, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x4, #32]
	ldr	w2, [x4, #16]
	bl	_ApplySortComparator
	cbnz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	b	LBB0_3
LBB0_8:
	cbnz	w24, LBB0_10
LBB0_9:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_12
LBB0_10:
	mov	w21, #1
	b	LBB0_13
LBB0_11:
	mov	x21, x0
	b	LBB0_13
LBB0_12:
	mov	w21, #0
LBB0_13:
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_MJCompare
.subsections_via_symbols
