	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitSurfacesForTesting         ## -- Begin function InitSurfacesForTesting
	.p2align	4, 0x90
_InitSurfacesForTesting:                ## @InitSurfacesForTesting
	.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	_numDrawSurfaces@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_FacetsForTriangleSurface
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	_numDrawSurfaces@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	_drawSurfaces@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	(,%r13,4), %r15
	addq	%r13, %r15
	cmpl	$0, 36(%r14,%r15,8)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 32(%r14,%r15,8)
	je	LBB0_14
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r15,8), %rbx
	movq	_dshaders@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_ShaderInfoForShader
	movq	%rax, %rcx
	movq	_CONTENTS_TRANSLUCENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SURF_ALPHASHADOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rcx)
	je	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	_surfaceTest@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax,%r13,8)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_ClearBounds
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, 16(%r14,%r15,8)
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r15
	addq	$16, %r15
	movq	8(%rax,%rcx,8), %r12
	shlq	$2, %r12
	movq	_drawVerts@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%r14,4), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	callq	_AddPointToBounds
	incq	%r14
	cmpl	(%r15), %r14d
	jl	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rbx), %edi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%rbx, %rcx
	callq	_SphereFromBounds
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rax,%rcx,8), %rax
	movq	_MST_TRIANGLE_SOUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MST_PLANAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MST_PATCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdx
	callq	_FacetsForPatch
	jmp	LBB0_14
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numDrawSurfaces,4,2            ## @numDrawSurfaces
	.comm	_drawSurfaces,8,3               ## @drawSurfaces
	.comm	_dshaders,8,3                   ## @dshaders
	.comm	_CONTENTS_TRANSLUCENT,4,2       ## @CONTENTS_TRANSLUCENT
	.comm	_SURF_ALPHASHADOW,4,2           ## @SURF_ALPHASHADOW
	.comm	_surfaceTest,8,3                ## @surfaceTest
	.comm	_drawVerts,8,3                  ## @drawVerts
	.comm	_MST_TRIANGLE_SOUP,8,3          ## @MST_TRIANGLE_SOUP
	.comm	_MST_PLANAR,8,3                 ## @MST_PLANAR
	.comm	_MST_PATCH,8,3                  ## @MST_PATCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitSurfacesForTesting         ; -- Begin function InitSurfacesForTesting
	.p2align	2
_InitSurfacesForTesting:                ; @InitSurfacesForTesting
	.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
Lloh0:
	adrp	x22, _numDrawSurfaces@GOTPAGE
Lloh1:
	ldr	x22, [x22, _numDrawSurfaces@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x23, #0
	mov	w25, #40
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_FacetsForTriangleSurface
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
Lloh2:
	adrp	x8, _drawSurfaces@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drawSurfaces@GOTPAGEOFF]
Lloh4:
	ldr	x28, [x8]
	madd	x19, x23, x25, x28
	ldr	w8, [x19, #36]
	cbnz	w8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x23, x25, x28
	ldr	w8, [x8, #32]
	cbz	w8, LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x8, _dshaders@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dshaders@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w0, [x8, x9, lsl #2]
	bl	_ShaderInfoForShader
	mov	x20, x0
	ldr	w8, [x0]
Lloh8:
	adrp	x9, _CONTENTS_TRANSLUCENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CONTENTS_TRANSLUCENT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #4]
Lloh11:
	adrp	x9, _SURF_ALPHASHADOW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SURF_ALPHASHADOW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #16
	bl	_malloc
	mov	x21, x0
Lloh14:
	adrp	x8, _surfaceTest@GOTPAGE
Lloh15:
	ldr	x8, [x8, _surfaceTest@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x0, [x8, x23, lsl #3]
	ldr	w0, [x0, #12]
	ldr	w1, [x21, #8]
	bl	_ClearBounds
	madd	x26, x23, x25, x28
	ldr	w8, [x26, #16]!
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
Lloh17:
	adrp	x8, _drawVerts@GOTPAGE
Lloh18:
	ldr	x8, [x8, _drawVerts@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	madd	x9, x23, x25, x28
	ldr	x9, [x9, #8]
	add	x24, x8, x9, lsl #2
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24, x27, lsl #2]
	ldp	w2, w1, [x21, #8]
	bl	_AddPointToBounds
	ldr	w8, [x26]
	add	x27, x27, #1
	cmp	w27, w8
	b.lt	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w0, [x21, #8]
	ldr	w2, [x21, #4]
	mov	x3, x21
	bl	_SphereFromBounds
	mul	x8, x23, x25
	add	x8, x28, x8
	ldr	x8, [x8, #24]
Lloh20:
	adrp	x9, _MST_TRIANGLE_SOUP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MST_TRIANGLE_SOUP@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	adrp	x10, _MST_PLANAR@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MST_PLANAR@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh26:
	adrp	x9, _MST_PATCH@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MST_PATCH@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_FacetsForPatch
	b	LBB0_3
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_numDrawSurfaces,4,2            ; @numDrawSurfaces
	.comm	_drawSurfaces,8,3               ; @drawSurfaces
	.comm	_dshaders,8,3                   ; @dshaders
	.comm	_CONTENTS_TRANSLUCENT,4,2       ; @CONTENTS_TRANSLUCENT
	.comm	_SURF_ALPHASHADOW,4,2           ; @SURF_ALPHASHADOW
	.comm	_surfaceTest,8,3                ; @surfaceTest
	.comm	_drawVerts,8,3                  ; @drawVerts
	.comm	_MST_TRIANGLE_SOUP,8,3          ; @MST_TRIANGLE_SOUP
	.comm	_MST_PLANAR,8,3                 ; @MST_PLANAR
	.comm	_MST_PATCH,8,3                  ; @MST_PATCH
.subsections_via_symbols
