	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function VS_WindingForBrushSide
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VS_WindingForBrushSide
	.p2align	4, 0x90
_VS_WindingForBrushSide:                ## @VS_WindingForBrushSide
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_dplanes@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_dbrushsides@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movslq	(%rdi), %rdx
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r12
	addq	%r12, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	4(%rax,%rcx,8), %edi
	callq	_VectorCopy
	callq	_VectorInverse
	movq	(%r13), %rax
	movq	(%r15), %rcx
	movslq	(%rbx), %rdx
	addq	%r12, %rdx
	movq	(%rcx,%rdx,8), %rcx
	xorl	%esi, %esi
	subl	(%rax,%rcx,8), %esi
	movl	%esi, -48(%rbp)
	callq	_BaseWindingForPlane
	movq	%rax, %r12
	movl	4(%r14), %edi
	movl	(%rax), %edx
	movl	4(%rax), %esi
	shll	$2, %edx
	callq	_memcpy
	movl	(%r12), %eax
	movq	%r14, %rcx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r14)
	movl	4(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpl	%eax, %r13d
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, %r12d
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_dplanes@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_dbrushsides@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movslq	(%rbx), %rdx
	addq	%r13, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	4(%rax,%rcx,8), %edi
	movl	-44(%rbp), %esi
	callq	_VectorCopy
	movl	-44(%rbp), %edi
	callq	_VectorInverse
	movq	(%r15), %rax
	movq	(%r14), %rcx
	movslq	(%rbx), %rdx
	addq	%r13, %rdx
	movq	(%rcx,%rdx,8), %rcx
	xorl	%edx, %edx
	subl	(%rax,%rcx,8), %edx
	movl	%edx, -48(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_VS_ChopWinding
	movq	_SIDE_BACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %eax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dplanes,8,3                    ## @dplanes
	.comm	_dbrushsides,8,3                ## @dbrushsides
	.comm	_SIDE_BACK,4,2                  ## @SIDE_BACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VS_WindingForBrushSide         ; -- Begin function VS_WindingForBrushSide
	.p2align	2
_VS_WindingForBrushSide:                ; @VS_WindingForBrushSide
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _dplanes@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dplanes@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x24, _dbrushsides@GOTPAGE
Lloh3:
	ldr	x24, [x24, _dbrushsides@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	w10, [x0]
	add	w10, w10, w1
	ldr	x9, [x9, w10, sxtw #3]
	add	x8, x8, x9, lsl #3
	ldr	w0, [x8, #4]
	bl	_VectorCopy
	bl	_VectorInverse
	ldr	x8, [x24]
	ldr	w9, [x20]
	add	w9, w9, w21
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x9, [x23]
	lsl	x8, x8, #3
	ldr	w8, [x9, x8]
	neg	w1, w8
	str	w1, [sp, #8]
	bl	_BaseWindingForPlane
	mov	x22, x0
	ldr	w0, [x19, #4]
	ldp	w8, w1, [x22]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w8, [x22]
	str	w8, [x19]
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
	mov	x25, #-7378697629483820647
	movk	x25, #39322
	movk	x25, #16313, lsl #48
Lloh4:
	adrp	x26, _SIDE_BACK@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SIDE_BACK@GOTPAGEOFF]
	mov	w21, w21
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	w22, w8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, w22
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	ldrsw	x10, [x20]
	add	x10, x22, x10
	ldr	x9, [x9, x10, lsl #3]
	add	x8, x8, x9, lsl #3
	ldr	w0, [x8, #4]
	ldr	w1, [sp, #12]
	bl	_VectorCopy
	ldr	w0, [sp, #12]
	bl	_VectorInverse
	ldr	x8, [x24]
	ldrsw	x9, [x20]
	add	x9, x22, x9
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x23]
	lsl	x8, x8, #3
	ldr	w8, [x9, x8]
	neg	w8, w8
	str	w8, [sp, #8]
	fmov	d0, x25
	add	x1, sp, #8
	mov	x0, x19
	bl	_VS_ChopWinding
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #4]
	b	LBB0_2
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dplanes,8,3                    ; @dplanes
	.comm	_dbrushsides,8,3                ; @dbrushsides
	.comm	_SIDE_BACK,4,2                  ; @SIDE_BACK
.subsections_via_symbols
