	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function walMergesort
_walMergesort:                          ## @walMergesort
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -280(%rbp)                ## 8-byte Spill
	movq	%rsi, -304(%rbp)                ## 8-byte Spill
	movq	%rdi, -296(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rcx, -312(%rbp)                ## 8-byte Spill
	movl	(%rcx), %r12d
	movl	$0, -260(%rbp)
	movq	$0, -272(%rbp)
	leaq	-256(%rbp), %r14
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$208, %edx
	callq	_memset
	movq	_HASHTABLE_NPAGE@GOTPCREL(%rip), %r15
	cmpl	(%r15), %r12d
	setle	%al
	testl	%r12d, %r12d
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	(%r15), %r15d
	movq	%r14, %rdi
	callq	_ArraySize
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	sete	%dil
	callq	_assert
	testl	%r12d, %r12d
	movq	%r12, -288(%rbp)                ## 8-byte Spill
	jle	LBB0_6
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-272(%rbp), %rax
	movl	-260(%rbp), %ecx
	movq	-288(%rbp), %r12                ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edx
	shlq	$4, %rdx
	movq	%rax, -248(%rbp,%rdx)
	movl	%ecx, -256(%rbp,%rdx)
	incq	%r13
	cmpq	%r12, %r13
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	$1, -260(%rbp)
	movq	-280(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r13,8), %rax
	movq	%rax, -272(%rbp)
	movl	$1, %ecx
	movl	$0, %ebx
	testb	$1, %r13b
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r12d
	leaq	-248(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%r12d, -8(%r15)
	setle	%al
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movzbl	%al, %edi
	callq	_assert
	movl	%ebx, %r14d
	movl	$-2, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	andl	%r13d, %eax
	movq	-280(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
	xorl	%edi, %edi
	cmpq	%rax, (%r15)
	sete	%dil
	callq	_assert
	movq	(%r15), %rsi
	movl	-8(%r15), %edx
	movq	-296(%rbp), %rdi                ## 8-byte Reload
	leaq	-272(%rbp), %rcx
	leaq	-260(%rbp), %r8
	movq	-304(%rbp), %r9                 ## 8-byte Reload
	callq	_walMerge
	movl	$2, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	incq	%rbx
	addq	$16, %r15
	testl	%r13d, %r12d
	je	LBB0_12
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-256(%rbp), %rdi
	callq	_ArraySize
	cltq
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setl	%dil
	callq	_assert
	cmpq	$0, (%r15)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_6:
	leal	1(%rbx), %r14d
	leaq	-256(%rbp), %rdi
	callq	_ArraySize
	cmpl	%eax, %r14d
	jge	LBB0_16
## %bb.7:
	movl	%r14d, %r13d
	movq	%r13, %rax
	shlq	$4, %rax
	leaq	(%rax,%rbp), %r15
	addq	$-248, %r15
	leaq	-256(%rbp), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rdi
	callq	_ArraySize
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	setg	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	%r12d, -8(%r15)
	setle	%dil
	callq	_assert
	movl	$-4, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	andl	%r14d, %eax
	leaq	-256(%rbp), %r14
	cltq
	movq	-280(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
	xorl	%edi, %edi
	cmpq	%rax, (%r15)
	sete	%dil
	callq	_assert
	movq	(%r15), %rsi
	movl	-8(%r15), %edx
	movq	-296(%rbp), %rdi                ## 8-byte Reload
	leaq	-272(%rbp), %rcx
	leaq	-260(%rbp), %r8
	movq	-304(%rbp), %r9                 ## 8-byte Reload
	callq	_walMerge
	movl	%r13d, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movq	%r14, %rdi
	callq	_ArraySize
	addq	$16, %r15
	cmpl	%r13d, %eax
	jle	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rax
	movl	$2, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	movq	-288(%rbp), %r14                ## 8-byte Reload
	testl	%r14d, %r12d
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %ebx
	movq	%rax, %r14
	jmp	LBB0_15
LBB0_16:
	xorl	%edi, %edi
	movq	-280(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -272(%rbp)
	sete	%dil
	callq	_assert
	movl	-260(%rbp), %eax
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HASHTABLE_NPAGE,4,2            ## @HASHTABLE_NPAGE
	.no_dead_strip	_walMergesort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function walMergesort
_walMergesort:                          ; @walMergesort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #256]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	str	x3, [sp]                        ; 8-byte Folded Spill
	ldr	w23, [x3]
	str	wzr, [sp, #28]
	str	xzr, [sp, #16]
	add	x25, sp, #32
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #208
	bl	_memset
Lloh3:
	adrp	x19, _HASHTABLE_NPAGE@GOTPAGE
Lloh4:
	ldr	x19, [x19, _HASHTABLE_NPAGE@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w23, #0
	ccmp	w23, w8, #0, gt
	cset	w0, le
	bl	_assert
	ldr	w19, [x19]
	add	x0, sp, #32
	bl	_ArraySize
	sub	w8, w0, #1
	mov	w9, #1
	lsl	w8, w9, w8
	cmp	w19, w8
	cset	w0, eq
	bl	_assert
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x26, #0
	add	x8, x25, #8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w28, #-2
	mov	w19, #2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #16]
	ldr	w8, [sp, #28]
	add	x25, sp, #32
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x25, w24, uxtw #4
	str	x9, [x10, #8]
	str	w8, [x10]
	add	x26, x26, #1
	cmp	x26, x23
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	w8, #1
	str	w8, [sp, #28]
	add	x9, x20, x26, lsl #3
	str	x9, [sp, #16]
	tbnz	w26, #0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	mov	w25, #1
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldur	w8, [x27, #-8]
	cmp	w8, w25
	cset	w0, le
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	bl	_assert
	ldr	x8, [x27]
	mov	x25, x24
	lsl	w9, w28, w24
	and	w9, w9, w26
	add	x9, x20, w9, uxtw #3
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x1, [x27]
	ldur	w2, [x27, #-8]
	add	x3, sp, #16
	add	x4, sp, #28
	mov	x0, x22
	mov	x5, x21
	bl	_walMerge
	add	x24, x24, #1
	lsl	w25, w19, w25
	add	x27, x27, #16
	tst	w25, w26
	b.eq	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #32
	bl	_ArraySize
	cmp	x24, w0, sxtw
	cset	w0, lt
	bl	_assert
	ldr	x8, [x27]
	cbnz	x8, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w0, #0
	b	LBB0_8
LBB0_11:
	mov	w24, #0
LBB0_12:
	add	w19, w24, #1
	add	x25, sp, #32
	add	x0, sp, #32
	bl	_ArraySize
	cmp	w19, w0
	b.ge	LBB0_17
; %bb.13:
	add	x8, x25, w19, uxtw #4
	add	x25, x8, #8
	mov	w26, #2
	mov	w27, #-4
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x24, x19
	add	x19, x19, #1
	add	x0, sp, #32
	bl	_ArraySize
	add	x25, x25, #16
	cmp	w0, w19
	b.le	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	lsl	w28, w26, w24
	tst	w28, w23
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x0, sp, #32
	bl	_ArraySize
	cmp	w0, w19
	cset	w0, gt
	bl	_assert
	ldur	w8, [x25, #-8]
	cmp	w8, w28
	cset	w0, le
	bl	_assert
	ldr	x8, [x25]
	lsl	w9, w27, w24
	and	w9, w9, w23
	add	x9, x20, w9, sxtw #3
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x1, [x25]
	ldur	w2, [x25, #-8]
	add	x3, sp, #16
	add	x4, sp, #28
	mov	x0, x22
	mov	x5, x21
	bl	_walMerge
	b	LBB0_14
LBB0_17:
	ldr	x8, [sp, #16]
	cmp	x8, x20
	cset	w0, eq
	bl	_assert
	ldr	w8, [sp, #28]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	ldur	x8, [x29, #-96]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #272]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #256]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HASHTABLE_NPAGE,4,2            ; @HASHTABLE_NPAGE
	.no_dead_strip	_walMergesort
.subsections_via_symbols
