	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ParseFace
_ParseFace:                             ## @ParseFace
	.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
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_LittleLong
	movl	%eax, %ebx
	movl	4(%r12), %edi
	callq	_LittleLong
	incl	%eax
	movl	%eax, (%r15)
	movl	32(%r12), %edi
	movl	%ebx, %esi
	callq	_ShaderForShaderNum
	movq	%rax, 16(%r15)
	movq	_r_singleShader@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.1:
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_tr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_3:
	movl	8(%r12), %edi
	callq	_LittleLong
	movl	%eax, %r13d
	movq	_MAX_FACE_POINTS@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.4:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	*8(%rax)
	movl	(%r14), %r13d
	movq	_tr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_5:
	movl	12(%r12), %edi
	callq	_LittleLong
	movl	%eax, %r14d
	leal	(,%r13,8), %ebx
	addl	32, %ebx
	leal	(%rbx,%r14,4), %edi
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_h_low@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
	movq	%rax, %r15
	movq	_SF_FACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movl	%r13d, (%r15)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, 4(%r15)
	movl	%ebx, 8(%r15)
	movl	16(%r12), %edi
	callq	_LittleLong
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.6:
	cltq
	movl	%r13d, %ebx
	shlq	$5, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %r14
	addq	$24, %r14
	shlq	$3, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r13,4), %rax
	movl	(%rax), %edi
	callq	_LittleFloat
	movq	32(%r15), %rcx
	movq	(%rcx,%r13), %rcx
	movq	%rax, (%rcx)
	movq	(%r14,%r13,4), %rax
	movl	4(%rax), %edi
	callq	_LittleFloat
	movq	32(%r15), %rcx
	movq	(%rcx,%r13), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r14,%r13,4), %rax
	movl	8(%rax), %edi
	callq	_LittleFloat
	movq	32(%r15), %rcx
	movq	(%rcx,%r13), %rcx
	movq	%rax, 16(%rcx)
	movq	-8(%r14,%r13,4), %rax
	movl	(%rax), %edi
	callq	_LittleFloat
	movq	32(%r15), %rcx
	movq	(%rcx,%r13), %rcx
	movq	%rax, 24(%rcx)
	movq	-16(%r14,%r13,4), %rax
	movl	(%rax), %edi
	callq	_LittleFloat
	movq	32(%r15), %rcx
	movq	(%rcx,%r13), %rcx
	movq	%rax, 40(%rcx)
	movq	-8(%r14,%r13,4), %rax
	movl	4(%rax), %edi
	callq	_LittleFloat
	movq	32(%r15), %rcx
	movq	(%rcx,%r13), %rcx
	movq	%rax, 32(%rcx)
	movq	-16(%r14,%r13,4), %rax
	movl	4(%rax), %edi
	callq	_LittleFloat
	movq	32(%r15), %rcx
	movq	(%rcx,%r13), %rcx
	movq	%rax, 48(%rcx)
	movl	-24(%r14,%r13,4), %edi
	movq	32(%r15), %rax
	movq	(%rax,%r13), %rsi
	addq	$56, %rsi
	callq	_R_ColorShiftLightingBytes
	addq	$8, %r13
	cmpq	%r13, %rbx
	jne	LBB0_7
LBB0_8:
	movl	20(%r12), %edi
	callq	_LittleLong
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testl	%edx, %edx
	jle	LBB0_11
## %bb.9:
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	movl	%edx, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edi
	callq	_LittleLong
	movslq	8(%r15), %rcx
	leaq	(%r15,%rcx,4), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_10
LBB0_11:
	movq	%r15, %rbx
	addq	$16, %rbx
	movq	24(%r12), %rax
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_LittleFloat
	movq	16(%r15), %rcx
	movq	%rax, (%rcx)
	movq	24(%r12), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %edi
	callq	_LittleFloat
	movq	16(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r12), %rax
	movq	16(%rax), %rax
	movl	8(%rax), %edi
	callq	_LittleFloat
	movq	16(%r15), %rcx
	movq	%rax, 16(%rcx)
	movq	16(%r15), %rsi
	movq	32(%r15), %rax
	movq	(%rax), %rdi
	callq	_DotProduct
	movl	%eax, 28(%r15)
	movq	%rbx, %rdi
	callq	_SetPlaneSignbits
	movq	16(%r15), %rdi
	callq	_PlaneTypeForNormal
	movl	%eax, 24(%r15)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, 8(%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_singleShader,8,3             ## @r_singleShader
	.comm	_tr,8,3                         ## @tr
	.comm	_MAX_FACE_POINTS,4,2            ## @MAX_FACE_POINTS
	.comm	_ri,16,3                        ## @ri
	.comm	_PRINT_WARNING,4,2              ## @PRINT_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: MAX_FACE_POINTS exceeded: %i\n"

	.comm	_h_low,4,2                      ## @h_low
	.comm	_SF_FACE,4,2                    ## @SF_FACE
	.no_dead_strip	_ParseFace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ParseFace
_ParseFace:                             ; @ParseFace
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_LittleLong
	mov	x22, x0
	ldr	w0, [x20, #4]
	bl	_LittleLong
	add	w8, w0, #1
	str	w8, [x19]
	ldr	w0, [x20, #32]
	mov	x1, x22
	bl	_ShaderForShaderNum
	str	x0, [x19, #16]
Lloh0:
	adrp	x8, _r_singleShader@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_singleShader@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _tr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_3:
	ldr	w0, [x20, #8]
	bl	_LittleLong
	mov	x25, x0
Lloh6:
	adrp	x23, _MAX_FACE_POINTS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MAX_FACE_POINTS@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh8:
	adrp	x22, _ri@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ri@GOTPAGEOFF]
	cmp	w0, w8
	b.le	LBB0_5
; %bb.4:
	ldr	x8, [x22, #8]
Lloh10:
	adrp	x9, _PRINT_WARNING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PRINT_WARNING@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	blr	x8
	ldr	w25, [x23]
Lloh15:
	adrp	x8, _tr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_5:
	ldr	w0, [x20, #12]
	bl	_LittleLong
	mov	x23, x0
	mov	w8, #32
	ldr	x8, [x8]
	add	x26, x8, w25, sxtw #3
	add	w0, w26, w0, lsl #2
	ldr	x8, [x22]
Lloh18:
	adrp	x9, _h_low@GOTPAGE
Lloh19:
	ldr	x9, [x9, _h_low@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	blr	x8
	mov	x22, x0
Lloh21:
	adrp	x8, _SF_FACE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SF_FACE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	stp	w25, w23, [x0]
	str	w26, [x0, #8]
	ldr	w0, [x20, #16]
	bl	_LittleLong
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w25, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x26, #0
	sxtw	x8, w0
	add	x24, x24, x8, lsl #5
	mov	w8, w25
	lsl	x25, x8, #3
	mov	w27, #24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x28, x24, x27
	ldr	x8, [x28]
	ldr	w0, [x8]
	bl	_LittleFloat
	ldr	x8, [x22, #32]
	ldr	x8, [x8, x26]
	str	x0, [x8]
	ldr	x8, [x28]
	ldr	w0, [x8, #4]
	bl	_LittleFloat
	ldr	x8, [x22, #32]
	ldr	x8, [x8, x26]
	str	x0, [x8, #8]
	ldr	x8, [x28]
	ldr	w0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x22, #32]
	ldr	x8, [x8, x26]
	str	x0, [x8, #16]
	ldur	x8, [x28, #-8]
	ldr	w0, [x8]
	bl	_LittleFloat
	ldr	x8, [x22, #32]
	ldr	x8, [x8, x26]
	str	x0, [x8, #24]
	ldur	x8, [x28, #-16]
	ldr	w0, [x8]
	bl	_LittleFloat
	ldr	x8, [x22, #32]
	ldr	x8, [x8, x26]
	str	x0, [x8, #40]
	ldur	x8, [x28, #-8]
	ldr	w0, [x8, #4]
	bl	_LittleFloat
	ldr	x8, [x22, #32]
	ldr	x8, [x8, x26]
	str	x0, [x8, #32]
	ldur	x8, [x28, #-16]
	ldr	w0, [x8, #4]
	bl	_LittleFloat
	ldr	x8, [x22, #32]
	ldr	x8, [x8, x26]
	str	x0, [x8, #48]
	ldr	w0, [x24, x26, lsl #2]
	ldr	x8, [x22, #32]
	ldr	x8, [x8, x26]
	add	x1, x8, #56
	bl	_R_ColorShiftLightingBytes
	add	x26, x26, #8
	add	x27, x27, #32
	cmp	x25, x26
	b.ne	LBB0_7
LBB0_8:
	ldr	w0, [x20, #20]
	bl	_LittleLong
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.9:
	add	x21, x21, w0, sxtw #2
	mov	x24, x22
	mov	w23, w23
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21], #4
	bl	_LittleLong
	ldrsw	x8, [x22, #8]
	str	w0, [x24, x8, lsl #2]
	add	x24, x24, #4
	subs	x23, x23, #1
	b.ne	LBB0_10
LBB0_11:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
	bl	_LittleFloat
	mov	x21, x22
	ldr	x8, [x21, #16]!
	str	x0, [x8]
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #16]
	ldr	w0, [x8, #4]
	bl	_LittleFloat
	ldr	x8, [x21]
	str	x0, [x8, #8]
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #16]
	ldr	w0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x21]
	str	x0, [x8, #16]
	ldr	x8, [x22, #32]
	ldr	x0, [x8]
	ldr	x1, [x21]
	bl	_DotProduct
	str	w0, [x22, #28]
	mov	x0, x21
	bl	_SetPlaneSignbits
	ldr	x0, [x21]
	bl	_PlaneTypeForNormal
	str	w0, [x22, #24]
	str	x22, [x19, #8]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_r_singleShader,8,3             ; @r_singleShader
	.comm	_tr,8,3                         ; @tr
	.comm	_MAX_FACE_POINTS,4,2            ; @MAX_FACE_POINTS
	.comm	_ri,16,3                        ; @ri
	.comm	_PRINT_WARNING,4,2              ; @PRINT_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: MAX_FACE_POINTS exceeded: %i\n"

	.comm	_h_low,4,2                      ; @h_low
	.comm	_SF_FACE,4,2                    ; @SF_FACE
	.no_dead_strip	_ParseFace
.subsections_via_symbols
