	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function RB_SurfacePolychain
LCPI0_0:
	.long	257                             ## 0x101
	.long	257                             ## 0x101
	.long	257                             ## 0x101
	.long	257                             ## 0x101
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_RB_SurfacePolychain:                   ## @RB_SurfacePolychain
	.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	%rdi, %r14
	movq	_tess@GOTPCREL(%rip), %r15
	movl	48(%r15), %edi
	callq	_RB_CheckVao
	movl	(%r14), %edi
	leal	(%rdi,%rdi,2), %esi
	addl	$-6, %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_RB_CHECKOVERFLOW
	movl	(%r15), %ebx
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r13
	movq	8(%r14), %rax
	leaq	(,%r13,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	shlq	$3, %r13
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rax,%r12), %edi
	movq	40(%r15), %rax
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movl	(%rax,%rbx,4), %esi
	callq	_VectorCopy
	movq	8(%r14), %rax
	movq	8(%rax,%r12), %rcx
	movl	(%rcx), %edx
	movq	32(%r15), %rsi
	addq	%r13, %rsi
	movq	(%rsi,%rbx,8), %rsi
	movl	%edx, (%rsi)
	movl	4(%rcx), %ecx
	movl	%ecx, 4(%rsi)
	movq	(%rax,%r12), %rcx
	movq	8(%r15), %rdx
	addq	%r13, %rdx
	movq	(%rdx,%rbx,8), %rdx
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	shufps	$136, %xmm1, %xmm0              ## xmm0 = xmm0[0,2],xmm1[0,2]
	pmulld	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%rdx)
	incq	%rbx
	movslq	(%r14), %rcx
	addq	$24, %r12
	cmpq	%rcx, %rbx
	jl	LBB0_2
## %bb.3:
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	cmpl	$2, %ecx
	jle	LBB0_6
## %bb.4:
	movq	16(%r15), %rax
	movl	24(%r15), %edx
	movl	$2, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movslq	%edx, %rdx
	movl	%esi, (%rax,%rdx,4)
	movl	(%r15), %edx
	addl	%ecx, %edx
	decl	%edx
	movslq	24(%r15), %rsi
	movl	%edx, 4(%rax,%rsi,4)
	movl	(%r15), %edx
	addl	%ecx, %edx
	movslq	24(%r15), %rsi
	movl	%edx, 8(%rax,%rsi,4)
	movl	24(%r15), %edx
	addl	$3, %edx
	movl	%edx, 24(%r15)
	movl	(%r14), %esi
	addl	$-2, %esi
	leal	1(%rcx), %edi
	decl	%ecx
	cmpl	%esi, %ecx
	movl	%edi, %ecx
	jl	LBB0_5
LBB0_6:
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
LBB0_7:
	movl	%ebx, (%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tess,56,3                      ## @tess
	.no_dead_strip	_RB_SurfacePolychain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RB_SurfacePolychain
_RB_SurfacePolychain:                   ; @RB_SurfacePolychain
	.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, x0
Lloh0:
	adrp	x20, _tess@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tess@GOTPAGEOFF]
	ldr	w0, [x20, #48]
	bl	_RB_CheckVao
	ldr	w0, [x19]
	add	w8, w0, w0, lsl #1
	sub	w1, w8, #6
	bl	_RB_CHECKOVERFLOW
	ldr	w21, [x20]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x23, #0
	mov	x22, #0
	mov	x8, x21
	sxtw	x9, w8
	ldr	x8, [x19, #8]
	lsl	x24, x9, #2
	lsl	x25, x9, #3
	mov	w9, #257
	dup.4s	v0, w9
	str	q0, [sp]                        ; 16-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x23
	ldr	w0, [x8, #16]
	ldr	x8, [x20, #40]
	add	x8, x8, x24
	ldr	w1, [x8, x22, lsl #2]
	bl	_VectorCopy
	ldr	x8, [x19, #8]
	add	x9, x8, x23
	ldp	x9, x10, [x9]
	ldr	w11, [x10]
	ldr	x12, [x20, #32]
	add	x12, x12, x25
	lsl	x13, x22, #3
	ldr	x12, [x12, x13]
	str	w11, [x12]
	ldr	w10, [x10, #4]
	str	w10, [x12, #4]
	ldr	x10, [x20, #8]
	add	x10, x10, x25
	ldr	x10, [x10, x13]
	ldp	q1, q0, [x9]
	uzp1.4s	v0, v1, v0
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	mul.4s	v0, v0, v1
	str	q0, [x10]
	add	x22, x22, #1
	ldrsw	x9, [x19]
	add	x23, x23, #24
	cmp	x22, x9
	b.lt	LBB0_2
; %bb.3:
	add	x21, x21, x22
	cmp	w9, #2
	b.le	LBB0_6
; %bb.4:
	ldr	x8, [x20, #16]
	ldr	w10, [x20, #24]
	mov	w9, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x20]
	str	w11, [x8, w10, sxtw #2]
	ldr	w10, [x20]
	add	w10, w9, w10
	sub	w10, w10, #1
	ldrsw	x11, [x20, #24]
	add	x11, x8, x11, lsl #2
	str	w10, [x11, #4]
	ldr	w10, [x20]
	add	w10, w9, w10
	ldrsw	x11, [x20, #24]
	add	x11, x8, x11, lsl #2
	str	w10, [x11, #8]
	ldr	w10, [x20, #24]
	add	w10, w10, #3
	str	w10, [x20, #24]
	ldr	w11, [x19]
	sub	w11, w11, #2
	sub	w12, w9, #1
	add	w9, w9, #1
	cmp	w12, w11
	b.lt	LBB0_5
LBB0_6:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_7:
	str	w21, [x20]
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tess,56,3                      ; @tess
	.no_dead_strip	_RB_SurfacePolychain
.subsections_via_symbols
