	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdbeSorterMerge
_vdbeSorterMerge:                       ## @vdbeSorterMerge
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	$0, -72(%rbp)
	movl	$0, -44(%rbp)
	testq	%rsi, %rsi
	setne	%al
	testq	%rdx, %rdx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	leaq	-72(%rbp), %r15
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_SRVAL
	movl	%eax, %r13d
	movl	8(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_SRVAL
	movl	8(%r12), %r9d
	movq	%r14, %rdi
	leaq	-44(%rbp), %rsi
	movl	%r13d, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	jg	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, (%r15)
	movq	(%rbx), %rax
	movq	%rbx, %r15
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	movq	(%rax), %r13
	movl	$0, -44(%rbp)
	movq	%rax, %r15
	testq	%r13, %r13
	jne	LBB0_1
## %bb.6:
	movq	%rbx, (%rax)
	jmp	LBB0_7
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
LBB0_7:
	movq	-72(%rbp), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vdbeSorterMerge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdbeSorterMerge
_vdbeSorterMerge:                       ; @vdbeSorterMerge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	cmp	x1, #0
	ccmp	x2, #0, #4, ne
	cset	w0, ne
	bl	_assert
	add	x24, sp, #8
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x21, x22
	mov	x8, x19
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x19, x8
	ldr	x25, [x20]
	mov	x0, x8
	bl	_SRVAL
	mov	x22, x0
	ldr	w23, [x19, #8]
	mov	x0, x21
	bl	_SRVAL
	mov	x4, x0
	ldr	w5, [x21, #8]
	add	x1, sp, #4
	mov	x0, x20
	mov	x2, x22
	mov	x3, x23
	blr	x25
	cmp	w0, #0
	b.gt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	str	x19, [x24]
	ldr	x8, [x19]
	mov	x24, x19
	cbnz	x8, LBB0_2
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	str	x21, [x24]
	ldr	x22, [x21]
	str	wzr, [sp, #4]
	mov	x24, x21
	cbnz	x22, LBB0_1
; %bb.5:
	str	x19, [x21]
	b	LBB0_7
LBB0_6:
	str	x21, [x19]
LBB0_7:
	ldr	x0, [sp, #8]
	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
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vdbeSorterMerge
.subsections_via_symbols
