	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dfs_check                      ## -- Begin function dfs_check
	.p2align	4, 0x90
_dfs_check:                             ## @dfs_check
	.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
	movl	(%rdi), %eax
	cmpl	$1000, %eax                     ## imm = 0x3E8
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	movl	$1001, (%rdi)                   ## imm = 0x3E9
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	xorl	%r15d, %r15d
	movq	_FE_TABLEREF@GOTPCREL(%rip), %r12
	movq	_MAX_HEIGHT@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rdi
	callq	_dfs_check
	cmpl	%r15d, %eax
	cmovgl	%eax, %r15d
	cmpl	(%r13), %eax
	jle	LBB0_6
LBB0_7:
	leal	1(%r15), %eax
	cmpl	$999, %r15d                     ## imm = 0x3E7
	cmovel	%r15d, %eax
	jmp	LBB0_8
LBB0_2:
	movl	$1, %eax
LBB0_8:
	movl	%eax, (%r14)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_TABLEREF,8,3                ## @FE_TABLEREF
	.comm	_MAX_HEIGHT,4,2                 ## @MAX_HEIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dfs_check                      ; -- Begin function dfs_check
	.p2align	2
_dfs_check:                             ; @dfs_check
	.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
	mov	x19, x0
	ldr	w0, [x0]
	cmp	w0, #1000
	b.ne	LBB0_9
; %bb.1:
	mov	w8, #1001
	str	w8, [x19]
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_7
; %bb.2:
	mov	w20, #0
Lloh0:
	adrp	x22, _FE_TABLEREF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FE_TABLEREF@GOTPAGEOFF]
Lloh2:
	adrp	x23, _MAX_HEIGHT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAX_HEIGHT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x21, #8]
	bl	_dfs_check
	cmp	w0, w20
	csel	w20, w0, w20, gt
	ldr	w8, [x23]
	cmp	w0, w8
	b.le	LBB0_3
LBB0_6:
	cmp	w20, #999
	cinc	w0, w20, ne
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	str	w0, [x19]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_TABLEREF,8,3                ; @FE_TABLEREF
	.comm	_MAX_HEIGHT,4,2                 ; @MAX_HEIGHT
.subsections_via_symbols
