	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function VS_CalcVisibleLightmapPixelArea
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VS_CalcVisibleLightmapPixelArea
	.p2align	4, 0x90
_VS_CalcVisibleLightmapPixelArea:       ## @VS_CalcVisibleLightmapPixelArea
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	__printf
	movq	_numDrawSurfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_24
## %bb.1:
	xorl	%edi, %edi
	movq	_drawSurfaces@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_numDrawSurfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	_drawSurfaces@GOTPCREL(%rip), %rbx
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	movslq	%eax, %rcx
	cmpq	%rcx, %rdi
	jge	LBB0_24
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_17 Depth 4
	movq	_lsurfaceTest@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rdi,8), %r13
	testq	%r13, %r13
	je	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rcx
	leaq	(%rdi,%rdi,2), %rsi
	shlq	$4, %rsi
	cmpl	$0, (%rcx,%rsi)
	js	LBB0_23
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rcx,%rsi), %edx
	testl	%edx, %edx
	jle	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rsi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rsi), %r14
	addq	$4, %r14
	movl	8(%rcx,%rsi), %eax
	xorl	%r15d, %r15d
	movl	%eax, %ecx
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r14), %edx
	movl	%eax, %ecx
	movl	-68(%rbp), %esi                 ## 4-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%esi, %r15d
	cmpl	%edx, %esi
	jge	LBB0_22
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_17 Depth 4
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15d, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	leal	1(%r15), %edx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=3
	leaq	-64(%rbp), %rdi
	callq	_WindingArea
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	_LIGHTMAP_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	imull	(%rcx), %eax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movl	20(%r14), %ecx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	addl	%r15d, %ecx
	addl	%eax, %ecx
	movq	_LIGHTMAP_WIDTH@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	movl	24(%r14), %eax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	addl	%r12d, %eax
	addl	%ecx, %eax
	movq	_lightmappixelarea@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movss	%xmm0, (%rcx,%rax,4)
	movl	4(%r14), %eax
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=3
	incl	%r12d
	movl	%eax, %ecx
	cmpl	%eax, %r12d
	jge	LBB0_20
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_17 Depth 4
	movq	12(%r14), %rdx
	movq	_MST_PATCH@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	movl	(%r14), %edx
	decl	%edx
	cmpl	%edx, %r15d
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=3
	decl	%ecx
	cmpl	%ecx, %r12d
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	_lsurfaceTest@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	16(%rax), %r14
	movq	8(%r14), %rax
	movl	(%r14), %ecx
	imull	%r15d, %ecx
	addl	%r12d, %ecx
	movslq	%ecx, %rcx
	movl	4(%rax,%rcx,8), %edi
	movq	-56(%rbp), %rax
	movl	(%rax), %esi
	callq	_VectorCopy
	movq	8(%r14), %rax
	movl	(%r14), %ecx
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	imull	%ebx, %ecx
	addl	%r12d, %ecx
	movslq	%ecx, %rcx
	movl	4(%rax,%rcx,8), %edi
	movq	-56(%rbp), %rax
	movl	4(%rax), %esi
	callq	_VectorCopy
	movq	8(%r14), %rax
	movl	(%r14), %ecx
	imull	%ebx, %ecx
	addl	%r12d, %ecx
	incl	%ecx
	movslq	%ecx, %rcx
	movl	4(%rax,%rcx,8), %edi
	movq	-56(%rbp), %rax
	movl	8(%rax), %esi
	callq	_VectorCopy
	movq	8(%r14), %rax
	movl	(%r14), %ecx
	imull	%r15d, %ecx
	addl	%r12d, %ecx
	incl	%ecx
	movslq	%ecx, %rcx
	movl	4(%rax,%rcx,8), %edi
	movq	-56(%rbp), %rax
	movl	12(%rax), %esi
	callq	_VectorCopy
	movl	$4, -64(%rbp)
	movq	_nostitching@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	8(%r14), %rax
	movl	(%r14), %ecx
	imull	%r15d, %ecx
	addl	%r12d, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,8), %esi
	leaq	-64(%rbp), %rdi
	callq	_VS_WindingAreaOutsideSolid
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=3
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r12d, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	36(%r14), %edi
	movq	_LIGHTMAP_PIXELSHIFT@GOTPCREL(%rip), %rbx
	subss	(%rbx), %xmm0
	movq	28(%r14), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax
	movl	(%rax), %edx
	callq	_VectorMA
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	(%rbx), %xmm0
	movq	28(%r14), %rax
	movl	4(%rax), %esi
	movl	%edi, %edx
	callq	_VectorMA
	movl	36(%r14), %edi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	(%rbx), %xmm0
	movq	28(%r14), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax
	movl	12(%rax), %edx
	callq	_VectorMA
	movq	-56(%rbp), %rax
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	(%rbx), %xmm0
	movl	12(%rax), %edi
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movq	28(%r14), %rax
	movl	4(%rax), %esi
	movl	%edi, %edx
	callq	_VectorMA
	movl	36(%r14), %edi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	(%rbx), %xmm0
	addss	LCPI0_0(%rip), %xmm0
	movq	28(%r14), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax
	movl	8(%rax), %edx
	callq	_VectorMA
	movq	-56(%rbp), %rax
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	(%rbx), %xmm0
	movl	8(%rax), %edi
	addss	LCPI0_0(%rip), %xmm0
	movq	28(%r14), %rax
	movl	4(%rax), %esi
	movl	%edi, %edx
	callq	_VectorMA
	movl	36(%r14), %edi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	(%rbx), %xmm0
	addss	LCPI0_0(%rip), %xmm0
	movq	28(%r14), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax
	movl	4(%rax), %edx
	callq	_VectorMA
	movq	-56(%rbp), %rax
	movl	4(%rax), %edi
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	(%rbx), %xmm0
	movq	28(%r14), %rax
	movl	4(%rax), %esi
	movl	%edi, %edx
	callq	_VectorMA
	movl	$4, -64(%rbp)
	cmpl	$0, (%r13)
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	jle	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=3
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r15
	leaq	-128(%rbp), %r12
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_9 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	8(%r13), %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	callq	_VS_ChopWindingWithFacet
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	incq	%rbx
	movslq	(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=2
	incl	%r15d
	movl	%r15d, %esi
	jmp	LBB0_21
LBB0_24:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calculating visible lightmap pixel area...\n"

	.comm	_numDrawSurfaces,4,2            ## @numDrawSurfaces
	.comm	_lsurfaceTest,8,3               ## @lsurfaceTest
	.comm	_drawSurfaces,8,3               ## @drawSurfaces
	.comm	_MST_PATCH,8,3                  ## @MST_PATCH
	.comm	_nostitching,8,3                ## @nostitching
	.comm	_LIGHTMAP_PIXELSHIFT,4,2        ## @LIGHTMAP_PIXELSHIFT
	.comm	_LIGHTMAP_HEIGHT,4,2            ## @LIGHTMAP_HEIGHT
	.comm	_LIGHTMAP_WIDTH,4,2             ## @LIGHTMAP_WIDTH
	.comm	_lightmappixelarea,8,3          ## @lightmappixelarea
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VS_CalcVisibleLightmapPixelArea ; -- Begin function VS_CalcVisibleLightmapPixelArea
	.p2align	2
_VS_CalcVisibleLightmapPixelArea:       ; @VS_CalcVisibleLightmapPixelArea
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	d11, d10, [sp, #96]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__printf
Lloh2:
	adrp	x8, _numDrawSurfaces@GOTPAGE
Lloh3:
	ldr	x8, [x8, _numDrawSurfaces@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x11, #0
Lloh5:
	adrp	x12, _drawSurfaces@GOTPAGE
Lloh6:
	ldr	x12, [x12, _drawSurfaces@GOTPAGEOFF]
	mov	w13, #48
	fmov	s9, #1.00000000
Lloh7:
	adrp	x22, _LIGHTMAP_PIXELSHIFT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _LIGHTMAP_PIXELSHIFT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _numDrawSurfaces@GOTPAGE
Lloh10:
	ldr	x8, [x8, _numDrawSurfaces@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
Lloh12:
	adrp	x12, _drawSurfaces@GOTPAGE
Lloh13:
	ldr	x12, [x12, _drawSurfaces@GOTPAGEOFF]
	mov	w13, #48
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #1
	cmp	x11, w8, sxtw
	b.ge	LBB0_24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;         Child Loop BB0_21 Depth 4
Lloh14:
	adrp	x9, _lsurfaceTest@GOTPAGE
Lloh15:
	ldr	x9, [x9, _lsurfaceTest@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x23, [x9, x11, lsl #3]
	cbz	x23, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x12]
	madd	x9, x11, x13, x10
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	ldr	w9, [x9]
	tbnz	w9, #31, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x14, x11, x13, x10
	ldr	w9, [x14, #4]!
	str	x14, [sp, #24]                  ; 8-byte Folded Spill
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
	madd	x10, x11, x13, x10
	ldr	w8, [x10, #8]!
	add	x26, x10, #8
	add	x27, x10, #32
	add	x28, x10, #24
	add	x11, x10, #16
	str	x10, [sp, #32]                  ; 8-byte Folded Spill
	add	x10, x10, #20
	stp	x10, x11, [sp, #40]             ; 16-byte Folded Spill
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w9, [x9]
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x21, x10
	cmp	w10, w9
	b.ge	LBB0_2
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;         Child Loop BB0_21 Depth 4
	cmp	w8, #0
	b.le	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	w25, #0
	scvtf	s10, w21
	add	w9, w21, #1
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=3
	movi	d8, #0000000000000000
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=3
	ldp	x10, x8, [sp, #48]              ; 16-byte Folded Reload
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _LIGHTMAP_HEIGHT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LIGHTMAP_HEIGHT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [x10]
	add	w10, w10, w21
	madd	w8, w9, w8, w10
Lloh20:
	adrp	x9, _LIGHTMAP_WIDTH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LIGHTMAP_WIDTH@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w10, [x10]
	add	w10, w10, w25
	madd	w8, w8, w9, w10
Lloh23:
	adrp	x9, _lightmappixelarea@GOTPAGE
Lloh24:
	ldr	x9, [x9, _lightmappixelarea@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	str	s8, [x9, w8, sxtw #2]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=3
	add	w25, w25, #1
	cmp	w25, w8
	b.ge	LBB0_8
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_21 Depth 4
	ldr	x9, [x26]
Lloh26:
	adrp	x10, _MST_PATCH@GOTPAGE
Lloh27:
	ldr	x10, [x10, _MST_PATCH@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w9, [x9]
	sub	w9, w9, #1
	sub	w10, w8, #1
	cmp	w21, w9
	ccmp	w25, w10, #4, ne
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=3
Lloh29:
	adrp	x8, _lsurfaceTest@GOTPAGE
Lloh30:
	ldr	x8, [x8, _lsurfaceTest@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, x9, lsl #3]
	ldr	x20, [x8, #16]
	ldr	x8, [x20, #8]
	ldr	w9, [x20]
	madd	w9, w9, w21, w25
	add	x8, x8, w9, sxtw #3
	ldr	w0, [x8, #4]
	ldr	x8, [sp, #88]
	ldr	w1, [x8]
	bl	_VectorCopy
	ldr	x8, [x20, #8]
	ldr	w9, [x20]
	ldr	w24, [sp, #20]                  ; 4-byte Folded Reload
	madd	w9, w9, w24, w25
	add	x8, x8, w9, sxtw #3
	ldr	w0, [x8, #4]
	ldr	x8, [sp, #88]
	ldr	w1, [x8, #4]
	bl	_VectorCopy
	ldr	x8, [x20, #8]
	ldr	w9, [x20]
	add	w19, w25, #1
	madd	w9, w9, w24, w19
	add	x8, x8, w9, sxtw #3
	ldr	w0, [x8, #4]
	ldr	x8, [sp, #88]
	ldr	w1, [x8, #8]
	bl	_VectorCopy
	ldr	x8, [x20, #8]
	ldr	w9, [x20]
	madd	w9, w9, w21, w19
	add	x8, x8, w9, sxtw #3
	ldr	w0, [x8, #4]
	ldr	x8, [sp, #88]
	ldr	w1, [x8, #12]
	bl	_VectorCopy
	mov	w8, #4
	str	w8, [sp, #80]
Lloh32:
	adrp	x8, _nostitching@GOTPAGE
Lloh33:
	ldr	x8, [x8, _nostitching@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=3
	add	x0, sp, #80
	bl	_WindingArea
	fmov	s8, s0
	b	LBB0_13
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=3
	ldr	w0, [x27]
	scvtf	s8, w25
	ldr	s0, [x22]
	fsub	s0, s8, s0
	ldr	x8, [x28]
	ldr	w1, [x8]
	ldr	x8, [sp, #88]
	ldr	w2, [x8]
	bl	_VectorMA
	ldr	x8, [sp, #88]
	ldr	w0, [x8]
	ldr	s0, [x22]
	fsub	s0, s10, s0
	ldr	x8, [x28]
	ldr	w1, [x8, #4]
	mov	x2, x0
	bl	_VectorMA
	ldr	w0, [x27]
	ldr	s0, [x22]
	fsub	s0, s8, s0
	ldr	x8, [x28]
	ldr	w1, [x8]
	ldr	x8, [sp, #88]
	ldr	w2, [x8, #12]
	bl	_VectorMA
	ldr	x8, [sp, #88]
	ldr	w0, [x8, #12]
	ldr	s0, [x22]
	fsub	s0, s10, s0
	fadd	s0, s0, s9
	ldr	x8, [x28]
	ldr	w1, [x8, #4]
	mov	x2, x0
	bl	_VectorMA
	ldr	w0, [x27]
	ldr	s0, [x22]
	fsub	s0, s8, s0
	fadd	s0, s0, s9
	ldr	x8, [x28]
	ldr	w1, [x8]
	ldr	x8, [sp, #88]
	ldr	w2, [x8, #8]
	bl	_VectorMA
	ldr	x8, [sp, #88]
	ldr	w0, [x8, #8]
	ldr	s0, [x22]
	fsub	s0, s10, s0
	fadd	s0, s0, s9
	ldr	x8, [x28]
	ldr	w1, [x8, #4]
	mov	x2, x0
	bl	_VectorMA
	ldr	w0, [x27]
	ldr	s0, [x22]
	fsub	s0, s8, s0
	fadd	s0, s0, s9
	ldr	x8, [x28]
	ldr	w1, [x8]
	ldr	x8, [sp, #88]
	ldr	w2, [x8, #4]
	bl	_VectorMA
	ldr	x8, [sp, #88]
	ldr	w0, [x8, #4]
	ldr	s0, [x22]
	fsub	s0, s10, s0
	ldr	x8, [x28]
	ldr	w1, [x8, #4]
	mov	x2, x0
	bl	_VectorMA
	mov	w8, #4
	str	w8, [sp, #80]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=3
	mov	x20, #0
	mov	x19, #0
	movi	d8, #0000000000000000
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ;       Parent Loop BB0_15 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	add	x0, sp, #64
	add	x1, sp, #80
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x23, #8]
	add	x1, x8, x20
	add	x0, sp, #64
	bl	_VS_ChopWindingWithFacet
	scvtf	s0, x0
	fadd	s8, s8, s0
	add	x19, x19, #1
	ldrsw	x8, [x23]
	add	x20, x20, #4
	cmp	x19, x8
	b.lt	LBB0_21
	b	LBB0_13
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=3
	ldr	x8, [x20, #8]
	ldr	w9, [x20]
	madd	w9, w9, w21, w25
	sbfiz	x9, x9, #3, #32
	ldr	w1, [x8, x9]
	add	x0, sp, #80
	bl	_VS_WindingAreaOutsideSolid
	fmov	s8, s0
	b	LBB0_13
LBB0_23:                                ;   in Loop: Header=BB0_10 Depth=2
	add	w10, w21, #1
	b	LBB0_9
LBB0_24:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calculating visible lightmap pixel area...\n"

	.comm	_numDrawSurfaces,4,2            ; @numDrawSurfaces
	.comm	_lsurfaceTest,8,3               ; @lsurfaceTest
	.comm	_drawSurfaces,8,3               ; @drawSurfaces
	.comm	_MST_PATCH,8,3                  ; @MST_PATCH
	.comm	_nostitching,8,3                ; @nostitching
	.comm	_LIGHTMAP_PIXELSHIFT,4,2        ; @LIGHTMAP_PIXELSHIFT
	.comm	_LIGHTMAP_HEIGHT,4,2            ; @LIGHTMAP_HEIGHT
	.comm	_LIGHTMAP_WIDTH,4,2             ; @LIGHTMAP_WIDTH
	.comm	_lightmappixelarea,8,3          ; @lightmappixelarea
.subsections_via_symbols
