	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PassagePortalFlow              ## -- Begin function PassagePortalFlow
	.p2align	4, 0x90
_PassagePortalFlow:                     ## @PassagePortalFlow
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	_sorted_portals@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rbx
	cmpq	$0, 24(%rbx)
	jne	LBB0_9
## %bb.1:
	movq	_stat_working@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%rbx, -16(%rbp)
	movq	%rbx, -24(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -28(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_portallongs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.2:
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_4:
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rsi
	movq	(%rsi,%rcx,8), %rsi
	movq	-48(%rbp), %rdi
	movq	%rsi, (%rdi,%rcx,8)
	movq	8(%rbx), %rsi
	movq	8(%rsi,%rcx,8), %rsi
	movq	-48(%rbp), %rdi
	movq	%rsi, 8(%rdi,%rcx,8)
	movq	8(%rbx), %rsi
	movq	16(%rsi,%rcx,8), %rsi
	movq	-48(%rbp), %rdi
	movq	%rsi, 16(%rdi,%rcx,8)
	movq	8(%rbx), %rsi
	movq	24(%rsi,%rcx,8), %rsi
	movq	-48(%rbp), %rdi
	movq	%rsi, 24(%rdi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_5
LBB0_6:
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdx
	movq	(%rdx,%rcx,8), %rdx
	movq	-48(%rbp), %rsi
	movq	%rdx, (%rsi,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_7
LBB0_8:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_RecursivePassagePortalFlow
LBB0_9:
	movq	_stat_done@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sorted_portals,8,3             ## @sorted_portals
	.comm	_stat_done,8,3                  ## @stat_done
	.comm	_stat_working,8,3               ## @stat_working
	.comm	_portallongs,4,2                ## @portallongs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PassagePortalFlow              ; -- Begin function PassagePortalFlow
	.p2align	2
_PassagePortalFlow:                     ; @PassagePortalFlow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _sorted_portals@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sorted_portals@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x19, [x8, w0, sxtw #3]
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _stat_working@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stat_working@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	stp	x19, x19, [sp, #32]
	ldr	d0, [x19, #16]
	str	d0, [sp, #24]
	str	xzr, [sp, #16]
Lloh6:
	adrp	x8, _portallongs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _portallongs@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x8, #0
	lsl	x9, x9, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	ldr	x10, [x10, x8]
	ldr	x11, [sp, #8]
	str	x10, [x11, x8]
	add	x8, x8, #8
	cmp	x9, x8
	b.ne	LBB0_3
LBB0_4:
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_RecursivePassagePortalFlow
LBB0_5:
Lloh9:
	adrp	x8, _stat_done@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stat_done@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_sorted_portals,8,3             ; @sorted_portals
	.comm	_stat_done,8,3                  ; @stat_done
	.comm	_stat_working,8,3               ; @stat_working
	.comm	_portallongs,4,2                ; @portallongs
.subsections_via_symbols
