	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_sort__array_lookup         ## -- Begin function svn_sort__array_lookup
	.p2align	4, 0x90
_svn_sort__array_lookup:                ## @svn_sort__array_lookup
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r8
	movq	%rdi, %r14
	testq	%rdx, %rdx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.1:
	movl	(%r12), %eax
	leal	1(%rax), %r15d
	movl	(%r14), %ecx
	cmpl	%ecx, %r15d
	jge	LBB0_5
## %bb.2:
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	%r15d, (%r12)
	movq	8(%r14), %r13
	movl	4(%r14), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	imull	%ecx, %eax
	movslq	%eax, %rdi
	addq	%r13, %rdi
	movq	%r8, %rsi
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	imull	%r15d, %eax
	cltq
	addq	%rax, %r13
	movq	%r13, %rdi
	movq	%r8, %rsi
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_16
LBB0_5:
	movl	%ecx, (%r12)
	movslq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	decq	%rax
	movslq	4(%r14), %rdi
	imulq	%rax, %rdi
	addq	8(%r14), %rdi
	movq	%r8, %rsi
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, %eax
	jns	LBB0_9
	jmp	LBB0_14
LBB0_8:
	movl	$0, (%r12)
	movq	8(%r14), %rdi
	movq	%r8, %rsi
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_15
LBB0_9:
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	movq	%r8, %rdi
	movq	%rbx, %r8
	callq	_bsearch_lower_bound
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movl	%eax, (%r12)
LBB0_11:
	cmpl	(%r14), %eax
	jge	LBB0_14
## %bb.12:
	movslq	4(%r14), %rcx
	movslq	%eax, %rbx
	imulq	%rcx, %rbx
	addq	8(%r14), %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	xorl	%r13d, %r13d
	testl	%eax, %eax
	cmoveq	%rbx, %r13
	jmp	LBB0_16
LBB0_14:
	xorl	%r13d, %r13d
LBB0_16:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	8(%r14), %r13
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_sort__array_lookup         ; -- Begin function svn_sort__array_lookup
	.p2align	2
_svn_sort__array_lookup:                ; @svn_sort__array_lookup
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	cbz	x2, LBB0_8
; %bb.1:
	ldr	w8, [x22]
	add	w23, w8, #1
	ldr	w9, [x21]
	cmp	w23, w9
	b.ge	LBB0_5
; %bb.2:
	tbnz	w8, #31, LBB0_7
; %bb.3:
	str	w23, [x22]
	ldr	x24, [x21, #8]
	ldr	w25, [x21, #4]
	mul	w8, w25, w8
	add	x0, x24, w8, sxtw
	mov	x1, x20
	blr	x19
	cbz	w0, LBB0_8
; %bb.4:
	mul	w8, w25, w23
	add	x23, x24, w8, sxtw
	mov	x0, x23
	mov	x1, x20
	blr	x19
	cbnz	w0, LBB0_8
	b	LBB0_13
LBB0_5:
	str	w9, [x22]
	ldrsw	x8, [x21]
	cbz	w8, LBB0_12
; %bb.6:
	sub	x8, x8, #1
	ldrsw	x9, [x21, #4]
	ldr	x10, [x21, #8]
	madd	x0, x9, x8, x10
	mov	x1, x20
	blr	x19
	tbz	w0, #31, LBB0_8
	b	LBB0_12
LBB0_7:
	str	wzr, [x22]
	ldr	x0, [x21, #8]
	mov	x1, x20
	blr	x19
	cbz	w0, LBB0_14
LBB0_8:
	ldr	x1, [x21, #8]
	ldp	w2, w3, [x21]
	mov	x0, x20
	mov	x4, x19
	bl	_bsearch_lower_bound
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	x22, LBB0_10
; %bb.9:
	str	w0, [x22]
LBB0_10:
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_12
; %bb.11:
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21, #4]
	sxtw	x10, w0
	madd	x21, x9, x10, x8
	mov	x0, x21
	mov	x1, x20
	blr	x19
	cmp	w0, #0
	csel	x23, x21, xzr, eq
	b	LBB0_13
LBB0_12:
	mov	x23, #0
LBB0_13:
	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
LBB0_14:
	ldr	x23, [x21, #8]
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
