	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdbeSorterCompare
_vdbeSorterCompare:                     ## @vdbeSorterCompare
	.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	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	(%rdi), %rax
	movq	8(%rdi), %r12
	movq	(%rax), %rbx
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	%r9d, %esi
	movq	%r8, %rdx
	movq	%rbx, %rcx
	callq	_sqlite3VdbeRecordUnpack
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.3:
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_assert
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	movq	8(%rbx), %rcx
	movq	_MEM_Null@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, (%rcx,%rsi,4)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_6
LBB0_8:
	movq	_UNPACKED_PREFIX_MATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_9:
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_sqlite3VdbeRecordCompare
LBB0_10:
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$-1, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM_Null,4,2                   ## @MEM_Null
	.comm	_UNPACKED_PREFIX_MATCH,4,2      ## @UNPACKED_PREFIX_MATCH
	.no_dead_strip	_vdbeSorterCompare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdbeSorterCompare
_vdbeSorterCompare:                     ; @vdbeSorterCompare
	.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	x19, x6
	mov	x21, x3
	mov	x20, x2
	mov	x24, x1
	ldp	x8, x23, [x0]
	ldr	x22, [x8]
	cbz	x4, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x5
	mov	x2, x4
	mov	x3, x22
	bl	_sqlite3VdbeRecordUnpack
LBB0_2:
	cbz	w24, LBB0_8
; %bb.3:
	ldr	w8, [x23]
	str	w8, [x22]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	x9, [x22, #8]
Lloh0:
	adrp	x10, _MEM_Null@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MEM_Null@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	tst	w10, w11
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_7:
Lloh3:
	adrp	x8, _UNPACKED_PREFIX_MATCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNPACKED_PREFIX_MATCH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x22, #4]
	orr	w8, w9, w8
	str	w8, [x22, #4]
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_sqlite3VdbeRecordCompare
LBB0_9:
	str	w0, [x19]
	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
LBB0_10:
	mov	w0, #-1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM_Null,4,2                   ; @MEM_Null
	.comm	_UNPACKED_PREFIX_MATCH,4,2      ; @UNPACKED_PREFIX_MATCH
	.no_dead_strip	_vdbeSorterCompare
.subsections_via_symbols
