	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hk_breadth_search
_hk_breadth_search:                     ## @hk_breadth_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ecx
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r14
	movq	_HK_INFINITY@GOTPCREL(%rip), %r8
	movzwl	(%r8), %eax
	movw	%ax, (%r14)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movq	24(%rdi), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	xorl	%r10d, %r10d
	movl	$1, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movzwl	(%r8), %esi
	movw	%si, (%r14,%rdx,2)
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	je	LBB0_4
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rdx,8)
	jne	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movw	$0, (%r14,%rdx,2)
	movslq	%r10d, %rsi
	incl	%r10d
	movw	%dx, (%rbx,%rsi,2)
	jmp	LBB0_16
LBB0_4:
	testl	%r10d, %r10d
	jle	LBB0_14
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	$2, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r10d, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, %rcx
	jge	LBB0_14
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movswq	(%rax,%rcx,2), %r15
	incq	%rcx
	movzwl	(%r14,%r15,2), %eax
	cmpw	(%r14), %ax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jge	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%rdi), %rax
	movq	(%rax,%r15,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movswq	(%rsi), %rax
	testq	%rax, %rax
	jle	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r12d
	incq	%r12
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	decq	%r12
	cmpq	$1, %r12
	jle	LBB0_13
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%rdi), %rax
	movswq	-2(%rsi,%r12,2), %rcx
	movslq	(%rax,%rcx,4), %r13
	movzwl	(%r14,%r13,2), %eax
	cmpw	(%r8), %ax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movzwl	(%r14,%r15,2), %eax
	incl	%eax
	movw	%ax, (%r14,%r13,2)
	xorl	%edi, %edi
	cmpl	-48(%rbp), %r10d                ## 4-byte Folded Reload
	setl	%dil
	movq	%r8, %rbx
	movl	%r10d, -60(%rbp)                ## 4-byte Spill
	callq	_Assert
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %r10d                ## 4-byte Reload
	movq	%rbx, %r8
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movslq	%r10d, %rax
	incl	%r10d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movw	%r13w, (%rcx,%rax,2)
	jmp	LBB0_12
LBB0_14:
	movzwl	(%r14), %ecx
	xorl	%eax, %eax
	cmpw	(%r8), %cx
	setne	%al
	addq	$56, %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_breadth_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hk_breadth_search
_hk_breadth_search:                     ; @hk_breadth_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
	ldr	w8, [x0]
	ldp	x21, x20, [x0, #8]
Lloh0:
	adrp	x25, _HK_INFINITY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HK_INFINITY@GOTPAGEOFF]
	ldrh	w9, [x25]
	strh	w9, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x19, x0
	mov	w23, #0
	ldr	x9, [x0, #24]
	add	x10, x8, #1
	mov	w11, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w12, [x25]
	strh	w12, [x20, x11, lsl #1]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #1
	cmp	x10, x11
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x11, lsl #3]
	cbnz	x12, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	strh	wzr, [x20, x11, lsl #1]
	strh	w11, [x21, w23, sxtw #1]
	add	w23, w23, #1
	b	LBB0_3
LBB0_6:
	cmp	w23, #1
	b.lt	LBB0_16
; %bb.7:
	mov	x24, #0
	add	w8, w8, #2
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, #1
	cmp	x24, w23, sxtw
	b.ge	LBB0_16
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldrsh	x26, [x21, x24, lsl #1]
	ldrsh	w8, [x20, x26, lsl #1]
	ldrsh	w9, [x20]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #32]
	ldr	x27, [x8, x26, lsl #3]
	cbz	x27, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsh	x8, [x27]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	and	x28, x8, #0xffffffff
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	subs	x28, x28, #1
	b.le	LBB0_8
LBB0_14:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #40]
	ldrsh	x9, [x27, x28, lsl #1]
	ldrsw	x22, [x8, x9, lsl #2]
	ldrh	w8, [x20, x22, lsl #1]
	ldrh	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldrh	w8, [x20, x26, lsl #1]
	add	w8, w8, #1
	strh	w8, [x20, x22, lsl #1]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w23, w8
	cset	w0, lt
	bl	_Assert
	strh	w22, [x21, w23, sxtw #1]
	add	w23, w23, #1
	b	LBB0_13
LBB0_16:
	ldrh	w8, [x20]
	ldrh	w9, [x25]
	cmp	w8, w9
	cset	w0, ne
	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_breadth_search
.subsections_via_symbols
