	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function R_MarkLeaves
_R_MarkLeaves:                          ## @R_MarkLeaves
	.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	_r_lockpvs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_33:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_tr@GOTPCREL(%rip), %r14
	movl	40(%r14), %edi
	callq	_R_PointInLeaf
	movl	(%rax), %ebx
	movq	_r_showcluster@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rdx
	cmpl	%ebx, (%r14)
	jne	LBB0_5
## %bb.2:
	cmpl	$0, 24(%r14)
	jne	LBB0_5
## %bb.3:
	testq	%rdx, %rdx
	jne	LBB0_4
	jmp	LBB0_33
LBB0_5:
	testq	%rdx, %rdx
	je	LBB0_6
LBB0_4:
	movq	_qfalse@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rcx)
	cmpq	$0, (%rcx)
	jne	LBB0_8
	jmp	LBB0_9
LBB0_6:
	cmpq	$0, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	_qfalse@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rcx)
LBB0_8:
	movq	_ri@GOTPCREL(%rip), %r8
	movq	_PRINT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	4(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	*(%r8)
LBB0_9:
	movq	8(%r14), %rax
	incq	%rax
	movq	%rax, 8(%r14)
	movl	%ebx, (%r14)
	movq	_r_novis@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_11
## %bb.10:
	cmpl	$-1, %ebx
	je	LBB0_11
## %bb.23:
	movl	%ebx, %edi
	callq	_R_ClusterPVS
	movq	32(%r14), %r9
	movl	(%r9), %r10d
	testl	%r10d, %r10d
	jle	LBB0_33
## %bb.24:
	movq	8(%r9), %rsi
	movq	8(%r14), %rdi
	movq	16(%r14), %r8
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_25 Depth=1
	incl	%ebx
	addq	$32, %rsi
	cmpl	%r10d, %ebx
	je	LBB0_33
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
	movl	(%rsi), %edx
	testl	%edx, %edx
	js	LBB0_32
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	4(%r9), %edx
	jge	LBB0_32
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	%rdx, %rcx
	shrq	$3, %rcx
	movl	(%rax,%rcx,4), %ecx
	andb	$7, %dl
	movzbl	%dl, %edx
	btl	%edx, %ecx
	jae	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	4(%rsi), %ecx
	movl	%ecx, %edx
	sarl	$3, %edx
	movslq	%edx, %rdx
	movl	(%r8,%rdx,4), %edx
	andb	$7, %cl
	movzbl	%cl, %ecx
	btl	%ecx, %edx
	jb	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	%rsi, %rcx
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdi, 16(%rcx)
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	movq	%rdi, 16(%rcx)
	movq	24(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_30
	jmp	LBB0_32
LBB0_11:
	movq	32(%r14), %rcx
	movl	(%rcx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_33
## %bb.12:
	movq	8(%rcx), %r8
	cmpl	$1, %r9d
	jne	LBB0_14
## %bb.13:
	xorl	%esi, %esi
LBB0_20:
	testb	$1, %r9b
	je	LBB0_33
## %bb.21:
	shlq	$5, %rsi
	movq	8(%r8,%rsi), %rcx
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_33
## %bb.22:
	movq	%rax, 16(%r8,%rsi)
	jmp	LBB0_33
LBB0_14:
	movl	%r9d, %edi
	andl	$-2, %edi
	leaq	48(%r8), %rbx
	xorl	%esi, %esi
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$2, %rsi
	addq	$64, %rbx
	cmpq	%rsi, %rdi
	je	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbx), %rdx
	cmpq	(%rcx), %rdx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rax, -32(%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-8(%rbx), %rdx
	cmpq	(%rcx), %rdx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rax, (%rbx)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_r_lockpvs,8,3                  ## @r_lockpvs
	.comm	_tr,48,3                        ## @tr
	.comm	_r_showcluster,8,3              ## @r_showcluster
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cluster:%i  area:%i\n"

	.comm	_r_novis,8,3                    ## @r_novis
	.comm	_CONTENTS_SOLID,8,3             ## @CONTENTS_SOLID
	.no_dead_strip	_R_MarkLeaves
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_MarkLeaves
_R_MarkLeaves:                          ; @R_MarkLeaves
	.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
Lloh0:
	adrp	x8, _r_lockpvs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_lockpvs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x20, _tr@GOTPAGE
Lloh4:
	ldr	x20, [x20, _tr@GOTPAGEOFF]
	ldr	w0, [x20, #40]
	bl	_R_PointInLeaf
	ldr	w19, [x0]
	ldr	w10, [x20]
	ldr	w11, [x20, #24]
Lloh5:
	adrp	x8, _r_showcluster@GOTPAGE
Lloh6:
	ldr	x8, [x8, _r_showcluster@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cmp	w10, w19
	ccmp	w11, #0, #0, eq
	b.eq	LBB0_6
; %bb.3:
	cbnz	x9, LBB0_7
; %bb.4:
	ldr	x9, [x8]
	cbz	x9, LBB0_9
; %bb.5:
Lloh8:
	adrp	x9, _qfalse@GOTPAGE
Lloh9:
	ldr	x9, [x9, _qfalse@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	x9, [x8, #8]
	b	LBB0_8
LBB0_6:
	cbz	x9, LBB0_1
LBB0_7:
	ldr	x9, [x8]
Lloh11:
	adrp	x10, _qfalse@GOTPAGE
Lloh12:
	ldr	x10, [x10, _qfalse@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	str	x10, [x8, #8]
	cbz	x9, LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _ri@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x8]
Lloh17:
	adrp	x8, _PRINT_ALL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PRINT_ALL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w3, [x0, #4]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	mov	x2, x19
	blr	x9
LBB0_9:
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	str	w19, [x20]
Lloh22:
	adrp	x9, _r_novis@GOTPAGE
Lloh23:
	ldr	x9, [x9, _r_novis@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x9, #0
	ccmn	w19, #1, #4, eq
	b.ne	LBB0_31
; %bb.10:
	ldr	x9, [x20, #32]
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_1
; %bb.11:
	ldr	x11, [x9, #8]
Lloh25:
	adrp	x9, _CONTENTS_SOLID@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CONTENTS_SOLID@GOTPAGEOFF]
	cmp	w10, #9
	b.lo	LBB0_41
; %bb.12:
	add	x12, x11, #8
	add	x13, x11, x10, lsl #5
	sub	x13, x13, #8
	add	x14, x9, #8
	cmp	x12, x14
	ccmp	x13, x9, #0, lo
	b.hi	LBB0_41
; %bb.13:
	ands	x12, x10, #0x7
	mov	w13, #8
	csel	x12, x13, x12, eq
	sub	x12, x10, x12
	ld1r.2d	{ v0 }, [x9]
	add	x13, x11, #136
	mov	x14, x12
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x13, x13, #256
	subs	x14, x14, #8
	b.eq	LBB0_42
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	x15, x13, #128
	sub	x16, x13, #64
	ld4.2d	{ v2, v3, v4, v5 }, [x15]
	ld4.2d	{ v20, v21, v22, v23 }, [x16]
	mov	x15, x13
	ld4.2d	{ v16, v17, v18, v19 }, [x15], #64
	ldr	d1, [x9]
	cmeq.2d	v2, v2, v0
	mvn.16b	v2, v2
	xtn.2s	v2, v2
	fmov	w16, s2
	tbz	w16, #0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	stur	x8, [x13, #-120]
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	mov.s	w16, v2[1]
	ld4.2d	{ v2, v3, v4, v5 }, [x15]
	tbz	w16, #0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	stur	x8, [x13, #-88]
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	cmeq.2d	v6, v20, v0
	mvn.16b	v6, v6
	xtn.2s	v6, v6
	fmov	w15, s6
	tbz	w15, #0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	stur	x8, [x13, #-56]
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	mov.s	w15, v6[1]
	tbz	w15, #0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	stur	x8, [x13, #-24]
LBB0_23:                                ;   in Loop: Header=BB0_15 Depth=1
	cmeq.2d	v6, v16, v0
	mvn.16b	v6, v6
	xtn.2s	v6, v6
	fmov	w15, s6
	tbz	w15, #0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_15 Depth=1
	str	x8, [x13, #8]
LBB0_25:                                ;   in Loop: Header=BB0_15 Depth=1
	mov.s	w15, v6[1]
	tbz	w15, #0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_15 Depth=1
	str	x8, [x13, #40]
LBB0_27:                                ;   in Loop: Header=BB0_15 Depth=1
	dup.2d	v1, v1[0]
	cmeq.2d	v1, v2, v1
	mvn.16b	v1, v1
	xtn.2s	v1, v1
	fmov	w15, s1
	tbz	w15, #0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_15 Depth=1
	str	x8, [x13, #72]
LBB0_29:                                ;   in Loop: Header=BB0_15 Depth=1
	mov.s	w15, v1[1]
	tbz	w15, #0, LBB0_14
; %bb.30:                               ;   in Loop: Header=BB0_15 Depth=1
	str	x8, [x13, #104]
	b	LBB0_14
LBB0_31:
	mov	x0, x19
	bl	_R_ClusterPVS
	ldr	x8, [x20, #32]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_1
; %bb.32:
	mov	w10, #0
	ldr	x11, [x8, #8]
	ldp	x13, x12, [x20, #8]
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=1
	add	w10, w10, #1
	add	x11, x11, #32
	cmp	w10, w9
	b.eq	LBB0_1
LBB0_34:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_39 Depth 2
	ldr	w14, [x11]
	tbnz	w14, #31, LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	w15, [x8, #4]
	cmp	w14, w15
	b.ge	LBB0_33
; %bb.36:                               ;   in Loop: Header=BB0_34 Depth=1
	lsr	x15, x14, #1
	and	x15, x15, #0x7ffffffc
	ldr	w15, [x0, x15]
	and	w14, w14, #0x7
	lsr	w14, w15, w14
	tbz	w14, #0, LBB0_33
; %bb.37:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	w14, [x11, #4]
	asr	w15, w14, #3
	ldr	w15, [x12, w15, sxtw #2]
	and	x14, x14, #0x7
	lsr	w14, w15, w14
	tbnz	w14, #0, LBB0_33
; %bb.38:                               ;   in Loop: Header=BB0_34 Depth=1
	mov	x14, x11
LBB0_39:                                ;   Parent Loop BB0_34 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x14, #16]
	cmp	x15, x13
	b.eq	LBB0_33
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=2
	str	x13, [x14, #16]
	ldr	x14, [x14, #24]
	cbnz	x14, LBB0_39
	b	LBB0_33
LBB0_41:
	mov	x12, #0
LBB0_42:
	add	x11, x11, x12, lsl #5
	add	x11, x11, #16
	sub	x10, x10, x12
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x11, x11, #32
	subs	x10, x10, #1
	b.eq	LBB0_1
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x11, #-8]
	ldr	x13, [x9]
	cmp	x12, x13
	b.eq	LBB0_43
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	str	x8, [x11]
	b	LBB0_43
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_r_lockpvs,8,3                  ; @r_lockpvs
	.comm	_tr,48,3                        ; @tr
	.comm	_r_showcluster,8,3              ; @r_showcluster
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cluster:%i  area:%i\n"

	.comm	_r_novis,8,3                    ; @r_novis
	.comm	_CONTENTS_SOLID,8,3             ; @CONTENTS_SOLID
	.no_dead_strip	_R_MarkLeaves
.subsections_via_symbols
