	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function VL_SubdivideAreaLight
LCPI0_0:
	.long	0x4b989680                      ## float 2.0E+7
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VL_SubdivideAreaLight
	.p2align	4, 0x90
_VL_SubdivideAreaLight:                 ## @VL_SubdivideAreaLight
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_WindingBounds
	movq	%rbx, %rdi
	callq	_WindingArea
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jae	LBB0_8
## %bb.2:
	ucomiss	LCPI0_0(%rip), %xmm0
	ja	LBB0_8
## %bb.3:
	movl	$72, %edi
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	callq	_malloc
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	_LIGHT_POINTFAKESURFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movl	32(%r13), %esi
	movq	%rbx, %rdi
	callq	_WindingCenter
	movl	68(%r13), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	shll	$3, %edx
	callq	_memcpy
	movl	(%rbx), %eax
	movl	%eax, 64(%r13)
	movq	48(%r13), %rsi
	movq	%r14, %rdi
	callq	_VectorCopy
	movq	56(%r13), %rsi
	movq	%r14, %rdi
	callq	_VectorCopy
	movl	32(%r13), %edi
	movq	%r14, %rsi
	callq	_DotProduct
	movq	56(%r13), %rcx
	movl	%eax, 12(%rcx)
	movss	(%r15), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	movq	_lightAreaScale@GOTPCREL(%rip), %rbx
	mulss	(%rbx), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	32(%r13), %edi
	movq	48(%r13), %rsi
	movl	%edi, %edx
	callq	_VectorAdd
	movq	8(%r15), %rdi
	movq	24(%r13), %rsi
	callq	_VectorCopy
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r13)
	movq	_lightFormFactorValueScale@GOTPCREL(%rip), %rax
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	(%rax), %xmm0
	movq	8(%r15), %rdi
	mulss	(%rbx), %xmm0
	movq	8(%r13), %rsi
	callq	_VectorScale
	movq	8(%r13), %rdi
	movq	24(%r13), %rsi
	callq	_VectorCopy
	movq	%r15, 16(%r13)
	movq	_CONTENTS_FOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r15)
	je	LBB0_5
## %bb.4:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
LBB0_5:
	movq	_vlights@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_numvlights@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rsi)
	movq	%r13, (%rax,%rcx,8)
	testq	%r12, %r12
	je	LBB0_8
## %bb.6:
	cmpl	$0, 20(%r15)
	jle	LBB0_8
## %bb.7:
	movl	$72, %edi
	movq	%rsi, %r12
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	_LIGHT_POINTRADIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	32(%r13), %edi
	movl	24(%r15), %esi
	movl	32(%rbx), %ecx
	movq	%r14, %rdx
	callq	_VectorMA
	movq	8(%r15), %rdi
	movq	24(%rbx), %rsi
	callq	_VectorCopy
	xorps	%xmm0, %xmm0
	cvtsi2ssl	20(%r15), %xmm0
	mulss	(%r13), %xmm0
	movss	%xmm0, (%rbx)
	movq	%r15, 16(%rbx)
	movq	_vlights@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r12), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%r12)
	movq	%rbx, (%rax,%rcx,8)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ON_EPSILON,4,2                 ## @ON_EPSILON
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_LIGHT_POINTFAKESURFACE,4,2     ## @LIGHT_POINTFAKESURFACE
	.comm	_lightAreaScale,4,2             ## @lightAreaScale
	.comm	_lightFormFactorValueScale,4,2  ## @lightFormFactorValueScale
	.comm	_CONTENTS_FOG,4,2               ## @CONTENTS_FOG
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_vlights,8,3                    ## @vlights
	.comm	_numvlights,4,2                 ## @numvlights
	.comm	_LIGHT_POINTRADIAL,4,2          ## @LIGHT_POINTRADIAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VL_SubdivideAreaLight          ; -- Begin function VL_SubdivideAreaLight
	.p2align	2
_VL_SubdivideAreaLight:                 ; @VL_SubdivideAreaLight
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	cbz	x1, LBB0_7
; %bb.1:
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	bl	_WindingBounds
	mov	x0, x23
	bl	_WindingArea
	fmov	s8, s0
	fcmp	s0, #0.0
	mov	w8, #38528
	movk	w8, #19352, lsl #16
	fmov	s0, w8
	fccmp	s8, s0, #0, hi
	b.gt	LBB0_7
; %bb.2:
	mov	w0, #72
	bl	_malloc
	mov	x21, x0
	mov	w1, #0
	mov	w2, #72
	bl	_memset
Lloh0:
	adrp	x8, _LIGHT_POINTFAKESURFACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIGHT_POINTFAKESURFACE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #36]
	ldr	w1, [x21, #32]
	mov	x0, x23
	bl	_WindingCenter
	ldr	w0, [x21, #68]
	ldp	w8, w1, [x23]
	lsl	w2, w8, #3
	bl	_memcpy
	ldr	w8, [x23]
	str	w8, [x21, #64]
	ldr	x1, [x21, #48]
	mov	x0, x20
	bl	_VectorCopy
	ldr	x1, [x21, #56]
	mov	x0, x20
	bl	_VectorCopy
	ldr	w0, [x21, #32]
	mov	x1, x20
	bl	_DotProduct
	ldp	x1, x8, [x21, #48]
	str	w0, [x8, #12]
	ldr	s9, [x19]
	fmul	s0, s8, s9
Lloh3:
	adrp	x23, _lightAreaScale@GOTPAGE
Lloh4:
	ldr	x23, [x23, _lightAreaScale@GOTPAGEOFF]
	ldr	s1, [x23]
	fmul	s8, s0, s1
	ldr	w0, [x21, #32]
	mov	x2, x0
	bl	_VectorAdd
	ldr	x0, [x19, #8]
	ldr	x1, [x21, #24]
	bl	_VectorCopy
	str	s8, [x21]
Lloh5:
	adrp	x8, _lightFormFactorValueScale@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lightFormFactorValueScale@GOTPAGEOFF]
	ldr	x0, [x19, #8]
Lloh7:
	ldr	s0, [x8]
	fmul	s0, s9, s0
	ldr	s1, [x23]
	fmul	s0, s0, s1
	ldr	x1, [x21, #8]
	bl	_VectorScale
	ldr	x0, [x21, #8]
	ldr	x1, [x21, #24]
	bl	_VectorCopy
	str	x19, [x21, #16]
	ldr	w8, [x19, #16]
Lloh8:
	adrp	x9, _CONTENTS_FOG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CONTENTS_FOG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _qtrue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21, #40]
LBB0_4:
Lloh14:
	adrp	x24, _vlights@GOTPAGE
Lloh15:
	ldr	x24, [x24, _vlights@GOTPAGEOFF]
Lloh16:
	adrp	x23, _numvlights@GOTPAGE
Lloh17:
	ldr	x23, [x23, _numvlights@GOTPAGEOFF]
	ldr	x8, [x24]
	ldrsw	x9, [x23]
	add	w10, w9, #1
	str	w10, [x23]
	str	x21, [x8, x9, lsl #3]
	cbz	x22, LBB0_7
; %bb.5:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.6:
	mov	w0, #72
	bl	_malloc
	mov	x22, x0
	mov	w1, #0
	mov	w2, #72
	bl	_memset
Lloh18:
	adrp	x8, _LIGHT_POINTRADIAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LIGHT_POINTRADIAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x22, #36]
	ldr	w0, [x21, #32]
	ldr	w1, [x19, #24]
	ldr	w3, [x22, #32]
	mov	x2, x20
	bl	_VectorMA
	ldr	x0, [x19, #8]
	ldr	x1, [x22, #24]
	bl	_VectorCopy
	ldr	s0, [x21]
	ldr	s1, [x19, #20]
	scvtf	s1, s1
	fmul	s0, s0, s1
	str	s0, [x22]
	str	x19, [x22, #16]
	ldr	x8, [x24]
	ldrsw	x9, [x23]
	add	w10, w9, #1
	str	w10, [x23]
	str	x22, [x8, x9, lsl #3]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ON_EPSILON,4,2                 ; @ON_EPSILON
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_LIGHT_POINTFAKESURFACE,4,2     ; @LIGHT_POINTFAKESURFACE
	.comm	_lightAreaScale,4,2             ; @lightAreaScale
	.comm	_lightFormFactorValueScale,4,2  ; @lightFormFactorValueScale
	.comm	_CONTENTS_FOG,4,2               ; @CONTENTS_FOG
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_vlights,8,3                    ; @vlights
	.comm	_numvlights,4,2                 ; @numvlights
	.comm	_LIGHT_POINTRADIAL,4,2          ; @LIGHT_POINTRADIAL
.subsections_via_symbols
