	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RecursivePassageFlow           ## -- Begin function RecursivePassageFlow
	.p2align	4, 0x90
_RecursivePassageFlow:                  ## @RecursivePassageFlow
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_leafs@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rdi), %rsi
	leaq	-104(%rbp), %rax
	movq	%rax, 8(%rdx)
	movq	$0, -96(%rbp)
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rdx), %rax
	incq	%rax
	movq	%rax, -88(%rbp)
	shlq	$4, %rsi
	cmpl	$0, (%rcx,%rsi)
	jle	LBB0_14
## %bb.1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %r15
	leaq	(%rcx,%rsi), %r8
	movq	40(%rdi), %rax
	leaq	(%rcx,%rsi), %r9
	addq	$8, %r9
	xorl	%r14d, %r14d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%r8), %rcx
	movq	%rbx, %rax
	cmpq	%rcx, %r14
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	(%r9), %rcx
	movq	(%rcx,%r14,8), %r13
	cmpq	$0, 32(%r13)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rbx
	movq	%r13, %rcx
	movq	_portals@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	sarq	$4, %rcx
	movabsq	$-6148914691236517205, %rdx     ## imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rdx, %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rsi
	movl	%ecx, %edi
	sarl	$3, %edi
	andb	$7, %cl
	movl	$1, %edx
	shll	%cl, %edx
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %r10d
	movzbl	%cl, %ecx
	btl	%ecx, %r10d
	jae	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	orl	%edx, (%rcx,%rdi,4)
	movq	(%rax), %r12
	movq	-104(%rbp), %rbx
	movq	_portalbytes@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	_portallongs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rcx
	xorl	%edx, %edx
	movq	_stat_done@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	sete	%dl
	movq	16(%r13,%rdx,8), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_10
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	andq	(%r12,%rsi,8), %rdi
	andq	(%r8,%rsi,8), %rdi
	movq	%rdi, (%rbx,%rsi,8)
	movq	(%r15,%rsi,8), %rcx
	notq	%rcx
	andq	%rdi, %rcx
	orq	%rcx, %rdx
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leaq	-104(%rbp), %rdx
	callq	_RecursivePassageFlow
	movq	$0, -96(%rbp)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_leafs,8,3                      ## @leafs
	.comm	_portals,8,3                    ## @portals
	.comm	_portalbytes,4,2                ## @portalbytes
	.comm	_stat_done,8,3                  ## @stat_done
	.comm	_portallongs,4,2                ## @portallongs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RecursivePassageFlow           ; -- Begin function RecursivePassageFlow
	.p2align	2
_RecursivePassageFlow:                  ; @RecursivePassageFlow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, _leafs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _leafs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	add	x10, sp, #8
	str	x10, [x2, #8]
	ldr	x10, [x2, #16]
	add	x10, x10, #1
	stp	xzr, x10, [sp, #16]
	add	x23, x8, x9, lsl #4
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x24, #0
	ldr	x8, [x1]
	ldr	x8, [x8]
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [x0, #40]
	add	x26, x23, #8
	mov	w25, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x9, [x23]
	mov	x8, x27
	cmp	x24, x9
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x9, [x26]
	ldr	x21, [x9, x24, lsl #3]
	ldr	x9, [x21, #32]
	cbnz	x9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x27, [x8, #8]
Lloh3:
	adrp	x9, _portals@GOTPAGE
Lloh4:
	ldr	x9, [x9, _portals@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x9, x21, x9
	lsr	x9, x9, #4
	mov	w10, #43691
	movk	w10, #43690, lsl #16
	mul	w9, w9, w10
	ldr	x1, [x19]
	asr	w10, w9, #3
	ldr	w11, [x1, w10, sxtw #2]
	and	w10, w9, #0x7
	lsl	w10, w25, w10
	tst	w10, w11
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sbfx	x9, x9, #3, #29
	ldr	x11, [x20]
	ldr	x11, [x11]
	lsl	x9, x9, #2
	ldr	w12, [x11, x9]
	orr	w10, w12, w10
	str	w10, [x11, x9]
	ldr	x28, [x8]
	ldr	x22, [sp, #8]
Lloh6:
	adrp	x8, _portalbytes@GOTPAGE
Lloh7:
	ldr	x8, [x8, _portalbytes@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_memcpy
Lloh9:
	adrp	x8, _portallongs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _portallongs@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	ldr	x10, [x21, #8]
Lloh12:
	adrp	x11, _stat_done@GOTPAGE
Lloh13:
	ldr	x11, [x11, _stat_done@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x10, x11
	mov	w10, #16
	mov	w11, #24
	csel	x10, x11, x10, eq
	ldr	x10, [x21, x10]
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x10, x10, #8
	add	x28, x28, #8
	add	x22, x22, #8
	add	x11, x11, #8
	subs	x8, x8, #1
	b.eq	LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x22]
	cbz	x12, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x13, [x28]
	ldr	x14, [x10]
	and	x12, x13, x12
	and	x12, x12, x14
	str	x12, [x22]
	ldr	x13, [x11]
	bic	x12, x12, x13
	orr	x9, x12, x9
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x9, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_RecursivePassageFlow
	str	xzr, [sp, #16]
	b	LBB0_3
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_leafs,8,3                      ; @leafs
	.comm	_portals,8,3                    ; @portals
	.comm	_portalbytes,4,2                ; @portalbytes
	.comm	_stat_done,8,3                  ; @stat_done
	.comm	_portallongs,4,2                ; @portallongs
.subsections_via_symbols
