	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hk_depth_search
_hk_depth_search:                       ## @hk_depth_search
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movswl	(%rbx), %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movl	$1, %eax
	testl	%esi, %esi
	je	LBB0_12
## %bb.4:
	movq	(%rdi), %r12
	movzwl	(%r12,%rcx,2), %r14d
	movq	_HK_INFINITY@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpw	(%rdx), %r14w
	je	LBB0_12
## %bb.5:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_check_stack_depth
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.6:
	incl	%r14d
	movl	%r15d, %r13d
	incq	%r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	decq	%r13
	cmpq	$1, %r13
	jle	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	-2(%rbx,%r13,2), %eax
	movswq	%ax, %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movswq	(%rax,%r15,2), %rsi
	cmpw	%r14w, (%r12,%rsi,2)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_hk_depth_search
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movw	%ax, (%rcx,%r15,2)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movw	%r15w, (%rcx,%rax,2)
	movl	$1, %eax
	jmp	LBB0_12
LBB0_11:
	movq	_HK_INFINITY@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movw	%ax, (%r12,%rcx,2)
	xorl	%eax, %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HK_INFINITY,2,1                ## @HK_INFINITY
	.no_dead_strip	_hk_depth_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hk_depth_search
_hk_depth_search:                       ; @hk_depth_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x21, [x8, w1, sxtw #3]
	cbz	x21, LBB0_4
; %bb.1:
	ldrsh	w27, [x21]
	cbz	w19, LBB0_5
LBB0_2:
	ldr	x23, [x20]
	sxtw	x22, w19
	ldrh	w24, [x23, x22, lsl #1]
Lloh0:
	adrp	x25, _HK_INFINITY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HK_INFINITY@GOTPAGEOFF]
	ldrh	w8, [x25]
	cmp	w24, w8
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #0
	b	LBB0_13
LBB0_4:
	mov	w27, #0
	cbnz	w19, LBB0_2
LBB0_5:
	mov	w0, #1
	b	LBB0_13
LBB0_6:
	ldp	x8, x26, [x20, #8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	bl	_check_stack_depth
	cmp	w27, #1
	b.lt	LBB0_12
; %bb.7:
	add	w28, w24, #1
	mov	w27, w27
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	subs	x27, x27, #1
	b.le	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrsh	x24, [x21, x27, lsl #1]
	ldrsh	x1, [x26, x24, lsl #1]
	ldrh	w8, [x23, x1, lsl #1]
	cmp	w8, w28, uxth
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_hk_depth_search
	cbz	w0, LBB0_8
; %bb.11:
	and	w8, w24, #0xffff
	strh	w19, [x26, x24, lsl #1]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	strh	w8, [x9, x22, lsl #1]
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
	ldrh	w8, [x25]
	strh	w8, [x23, x22, lsl #1]
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HK_INFINITY,2,1                ; @HK_INFINITY
	.no_dead_strip	_hk_depth_search
.subsections_via_symbols
