	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_distance
_count_distance:                        ## @count_distance
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	8(%rdi), %rax
	movl	8(%rax), %ecx
	movq	_UNINTERESTING@GOTPCREL(%rip), %r15
	movq	_COUNTED@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	(%r15), %esi
	orl	%edx, %esi
	testl	%ecx, %esi
	je	LBB0_2
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rax
	movl	8(%rax), %ecx
	movl	(%r12), %edx
	movl	(%r15), %esi
	orl	%edx, %esi
	testl	%ecx, %esi
	jne	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	orl	%ecx, %edx
	movq	_TREESAME@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	cmpl	$1, %ecx
	adcl	$0, %r14d
	movl	%edx, 8(%rax)
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_count_distance
	addl	%eax, %r14d
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_UNINTERESTING,4,2              ## @UNINTERESTING
	.comm	_COUNTED,4,2                    ## @COUNTED
	.comm	_TREESAME,4,2                   ## @TREESAME
	.no_dead_strip	_count_distance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_distance
_count_distance:                        ; @count_distance
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #8]
Lloh0:
	adrp	x21, _UNINTERESTING@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UNINTERESTING@GOTPAGEOFF]
	ldr	w11, [x21]
Lloh2:
	adrp	x22, _COUNTED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _COUNTED@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w11, w10, w11
	tst	w11, w9
	b.eq	LBB0_4
LBB0_2:
	mov	w19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w19, #0
Lloh4:
	adrp	x23, _TREESAME@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TREESAME@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24, #8]
	ldr	w9, [x8, #8]
	ldr	w11, [x21]
	ldr	w10, [x22]
	orr	w11, w10, w11
	tst	w11, w9
	b.ne	LBB0_3
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w11, [x23]
	tst	w11, w9
	cinc	w19, w19, eq
	orr	w9, w10, w9
	str	w9, [x8, #8]
	ldr	x24, [x8]
	cbz	x24, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [x24]
	cbz	x20, LBB0_5
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_count_distance
	add	w19, w0, w19
	ldr	x20, [x20]
	cbnz	x20, LBB0_8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UNINTERESTING,4,2              ; @UNINTERESTING
	.comm	_COUNTED,4,2                    ; @COUNTED
	.comm	_TREESAME,4,2                   ; @TREESAME
	.no_dead_strip	_count_distance
.subsections_via_symbols
