	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function SubdivideFace
LCPI0_0:
	.long	0x497423f0                      ## float 999999
LCPI0_1:
	.long	0xc97423f0                      ## float -999999
LCPI0_2:
	.long	0xc1800000                      ## float -16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SubdivideFace
	.p2align	4, 0x90
_SubdivideFace:                         ## @SubdivideFace
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 32(%rsi)
	jne	LBB0_16
## %bb.1:
	movq	%rsi, %r15
	movq	_texinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%rsi), %r12
	shlq	$4, %r12
	movq	_SURF_WARP@GOTPCREL(%rip), %rax
	movq	_SURF_SKY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r13,%r12)
	jne	LBB0_16
## %bb.2:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13,%r12), %rax
	movl	(%rax), %edi
	callq	_VectorCopy
	movq	24(%r15), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.9:
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movss	%xmm3, -48(%rbp)                ## 4-byte Spill
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_DotProduct
	movaps	%xmm0, %xmm2
	minss	-48(%rbp), %xmm2                ## 4-byte Folded Reload
	maxss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	incq	%rbx
	movslq	(%r14), %rax
	movaps	%xmm2, %xmm3
	movaps	%xmm0, %xmm1
	cmpq	%rax, %rbx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_3:
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
LBB0_11:
	subss	%xmm2, %xmm0
	movq	_subdivide_size@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_12
## %bb.4:
	leaq	(%r12,%r13), %rax
	addq	$8, %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_VectorCopy
	movq	24(%r15), %r14
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.6:
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm3, -48(%rbp)                ## 4-byte Spill
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_DotProduct
	movaps	%xmm0, %xmm2
	minss	-48(%rbp), %xmm2                ## 4-byte Folded Reload
	maxss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	incq	%rbx
	movslq	(%r14), %rax
	movaps	%xmm2, %xmm3
	movaps	%xmm0, %xmm1
	cmpq	%rax, %rbx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
LBB0_8:
	subss	%xmm2, %xmm0
	movq	_subdivide_size@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jae	LBB0_16
LBB0_12:
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %r12
	movq	_c_subdivide@GOTPCREL(%rip), %rax
	incl	(%rax)
	callq	_VectorNormalize
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	(%r12), %xmm1
	addss	LCPI0_2(%rip), %xmm1
	divss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	movq	_ON_EPSILON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movq	%r14, %rdi
	callq	_ClipWindingEpsilon
	cmpq	$0, -72(%rbp)
	je	LBB0_14
## %bb.13:
	cmpq	$0, -64(%rbp)
	jne	LBB0_15
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	_Error
LBB0_15:
	movq	%r15, %rdi
	callq	_NewFaceFromFace
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	movq	-72(%rbp), %rax
	movq	8(%r15), %rcx
	movq	(%rcx), %rdx
	movq	%rax, 24(%rdx)
	movq	(%rbx), %rax
	movq	(%rcx), %rdx
	movq	%rax, 16(%rdx)
	movq	(%rcx), %rax
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_NewFaceFromFace
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	-64(%rbp), %rax
	movq	8(%r15), %rcx
	movq	8(%rcx), %rdx
	movq	%rax, 24(%rdx)
	movq	(%rbx), %rax
	movq	8(%rcx), %rdx
	movq	%rax, 16(%rdx)
	movq	8(%rcx), %rax
	movq	%rax, (%rbx)
	movq	(%rcx), %rsi
	movq	%rbx, %rdi
	callq	_SubdivideFace
	movq	8(%r15), %rax
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	callq	_SubdivideFace
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_texinfo,8,3                    ## @texinfo
	.comm	_SURF_WARP,4,2                  ## @SURF_WARP
	.comm	_SURF_SKY,4,2                   ## @SURF_SKY
	.comm	_subdivide_size,4,2             ## @subdivide_size
	.comm	_c_subdivide,4,2                ## @c_subdivide
	.comm	_ON_EPSILON,4,2                 ## @ON_EPSILON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SubdivideFace: didn't split the polygon"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SubdivideFace                  ; -- Begin function SubdivideFace
	.p2align	2
_SubdivideFace:                         ; @SubdivideFace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	ldr	x8, [x1, #32]
	cbnz	x8, LBB0_16
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _texinfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _texinfo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x1]
	lsl	x10, x9, #4
	ldr	w10, [x8, x10]
Lloh3:
	adrp	x11, _SURF_WARP@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SURF_WARP@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
Lloh6:
	adrp	x12, _SURF_SKY@GOTPAGE
Lloh7:
	ldr	x12, [x12, _SURF_SKY@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w11, w10
	b.ne	LBB0_16
; %bb.2:
	mov	x19, x0
	add	x23, x8, x9, lsl #4
	ldr	x8, [x23, #8]!
	ldr	w0, [x8]
	bl	_VectorCopy
	ldr	x21, [x20, #24]
	ldr	w8, [x21]
	cmp	w8, #0
	b.le	LBB0_5
; %bb.3:
	mov	x22, #0
	mov	w8, #9200
	movk	w8, #51572, lsl #16
	fmov	s9, w8
	mov	w8, #9200
	movk	w8, #18804, lsl #16
	fmov	s8, w8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x22, lsl #2]
	bl	_DotProduct
	fcmp	s0, s8
	fcsel	s8, s0, s8, mi
	fcmp	s0, s9
	fcsel	s9, s0, s9, gt
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w8, #9200
	movk	w8, #18804, lsl #16
	fmov	s8, w8
	mov	w8, #9200
	movk	w8, #51572, lsl #16
	fmov	s9, w8
LBB0_6:
	fsub	s0, s9, s8
Lloh9:
	adrp	x22, _subdivide_size@GOTPAGE
Lloh10:
	ldr	x22, [x22, _subdivide_size@GOTPAGEOFF]
	ldr	s1, [x22]
	fcmp	s0, s1
	b.hi	LBB0_12
; %bb.7:
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
	bl	_VectorCopy
	ldr	x21, [x20, #24]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x23, #0
	mov	w8, #9200
	movk	w8, #51572, lsl #16
	fmov	s9, w8
	mov	w8, #9200
	movk	w8, #18804, lsl #16
	fmov	s8, w8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x23, lsl #2]
	bl	_DotProduct
	fcmp	s0, s8
	fcsel	s8, s0, s8, mi
	fcmp	s0, s9
	fcsel	s9, s0, s9, gt
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_9
	b	LBB0_11
LBB0_10:
	mov	w8, #9200
	movk	w8, #18804, lsl #16
	fmov	s8, w8
	mov	w8, #9200
	movk	w8, #51572, lsl #16
	fmov	s9, w8
LBB0_11:
	fsub	s0, s9, s8
	ldr	s1, [x22]
	fcmp	s0, s1
	b.ls	LBB0_16
LBB0_12:
Lloh11:
	adrp	x8, _c_subdivide@GOTPAGE
Lloh12:
	ldr	x8, [x8, _c_subdivide@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_VectorNormalize
	ldr	s1, [x22]
	fadd	s1, s8, s1
	fmov	s2, #-16.00000000
	fadd	s1, s1, s2
	fdiv	s0, s1, s0
Lloh13:
	adrp	x8, _ON_EPSILON@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ON_EPSILON@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x21
	bl	_ClipWindingEpsilon
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x8, [sp]
	cbnz	x8, LBB0_15
LBB0_14:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
LBB0_15:
	mov	x0, x20
	bl	_NewFaceFromFace
	ldr	x8, [x20, #8]
	str	x0, [x8]
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #8]
	ldr	x10, [x9]
	str	x8, [x10, #24]
	ldr	x8, [x19]
	ldr	x10, [x9]
	str	x8, [x10, #16]
	ldr	x8, [x9]
	str	x8, [x19]
	mov	x0, x20
	bl	_NewFaceFromFace
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
	ldr	x8, [sp]
	ldr	x9, [x20, #8]
	ldr	x10, [x9, #8]
	str	x8, [x10, #24]
	ldr	x8, [x19]
	ldr	x10, [x9, #8]
	str	x8, [x10, #16]
	ldr	x8, [x9, #8]
	str	x8, [x19]
	ldr	x1, [x9]
	mov	x0, x19
	bl	_SubdivideFace
	ldr	x8, [x20, #8]
	ldr	x1, [x8, #8]
	mov	x0, x19
	bl	_SubdivideFace
LBB0_16:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_texinfo,8,3                    ; @texinfo
	.comm	_SURF_WARP,4,2                  ; @SURF_WARP
	.comm	_SURF_SKY,4,2                   ; @SURF_SKY
	.comm	_subdivide_size,4,2             ; @subdivide_size
	.comm	_c_subdivide,4,2                ; @c_subdivide
	.comm	_ON_EPSILON,4,2                 ; @ON_EPSILON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SubdivideFace: didn't split the polygon"

.subsections_via_symbols
