	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BetterPortalVis                ## -- Begin function BetterPortalVis
	.p2align	4, 0x90
_BetterPortalVis:                       ## @BetterPortalVis
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_portals@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movslq	%edi, %rbx
	shlq	$5, %rbx
	cmpq	$0, 24(%r14,%rbx)
	jne	LBB0_2
## %bb.1:
	movl	16(%r14,%rbx), %edi
	movl	8(%r14,%rbx), %edx
	movl	12(%r14,%rbx), %esi
	callq	_RecursiveLeafBitFlow
	movl	8(%r14,%rbx), %edi
	movq	_numportals@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%esi, %esi
	callq	_CountBits
	movq	%rax, (%r14,%rbx)
	movq	_c_vis@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_portals,8,3                    ## @portals
	.comm	_numportals,4,2                 ## @numportals
	.comm	_c_vis,4,2                      ## @c_vis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BetterPortalVis                ; -- Begin function BetterPortalVis
	.p2align	2
_BetterPortalVis:                       ; @BetterPortalVis
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _portals@GOTPAGE
Lloh1:
	ldr	x8, [x8, _portals@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sxtw	x9, w0
	add	x19, x8, x9, lsl #5
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #12]
	ldr	w2, [x19, #8]
	bl	_RecursiveLeafBitFlow
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _numportals@GOTPAGE
Lloh4:
	ldr	x8, [x8, _numportals@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w1, w8, #1
	bl	_CountBits
	str	x0, [x19]
Lloh6:
	adrp	x8, _c_vis@GOTPAGE
Lloh7:
	ldr	x8, [x8, _c_vis@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_portals,8,3                    ; @portals
	.comm	_numportals,4,2                 ; @numportals
	.comm	_c_vis,4,2                      ; @c_vis
.subsections_via_symbols
