	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkVisibleSides_r             ## -- Begin function MarkVisibleSides_r
	.p2align	4, 0x90
_MarkVisibleSides_r:                    ## @MarkVisibleSides_r
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	(%rax), %rdi
	callq	_MarkVisibleSides_r
	movq	24(%r14), %rax
	movq	8(%rax), %r14
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_1
LBB0_3:
	cmpl	$0, 16(%r14)
	je	LBB0_12
## %bb.4:
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.5:
	movq	_SFL_VISIBLE@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	cmpq	%r14, %r12
	setne	%al
	movq	24(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	(%rax), %r12
	cmpl	$0, 12(%rbx)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 8(%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_FindPortalSide
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %ecx
	orl	%ecx, (%rax)
	jmp	LBB0_11
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.comm	_SFL_VISIBLE,4,2                ## @SFL_VISIBLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkVisibleSides_r             ; -- Begin function MarkVisibleSides_r
	.p2align	2
_MarkVisibleSides_r:                    ; @MarkVisibleSides_r
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _PLANENUM_LEAF@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PLANENUM_LEAF@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	bl	_MarkVisibleSides_r
	ldr	x8, [x19, #24]
	ldr	x19, [x8, #8]
	ldr	x8, [x19]
	b	LBB0_1
LBB0_3:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_12
; %bb.4:
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_12
; %bb.5:
Lloh2:
	adrp	x21, _SFL_VISIBLE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SFL_VISIBLE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	x22, x19
	cset	w8, ne
	ldr	x9, [x20, #24]
	ldr	x20, [x9, w8, uxtw #3]
	cbz	x20, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x22, [x8]
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_11
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_FindPortalSide
	ldr	x8, [x20]
	cbz	x8, LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x21]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_6
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANENUM_LEAF,8,3              ; @PLANENUM_LEAF
	.comm	_SFL_VISIBLE,4,2                ; @SFL_VISIBLE
.subsections_via_symbols
