	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function TraceLine
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TraceLine
	.p2align	4, 0x90
_TraceLine:                             ## @TraceLine
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_MAP_DRAW_SURFS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_numthreads@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_c_totalTrace@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_2:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	movups	%xmm0, (%rax)
	movabsq	$4607182418800017408, %rbx      ## imm = 0x3FF0000000000000
	movq	%rbx, 16(%rax)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	36(%r15), %esi
	movq	%r13, %rdi
	callq	_VectorCopy
	movl	32(%r15), %esi
	movq	%r12, %rdi
	callq	_VectorCopy
	movq	%r14, 24(%r15)
	movl	$0, (%r15)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%rbx, 8(%r14)
	xorl	%edi, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_TraceLine_r
	testl	%eax, %eax
	setne	%al
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	sete	%cl
	testb	%al, %cl
	jne	LBB0_19
## %bb.3:
	movq	_noSurfaces@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_19
## %bb.4:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	_numDrawSurfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	7(%rdx), %eax
	addl	$14, %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	cmpl	$0, (%rdi)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	jle	LBB0_18
## %bb.5:
	cvtsd2ss	%xmm0, %xmm1
	cvtss2sd	%xmm1, %xmm1
	movsd	%xmm1, -104(%rbp)               ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	_dleafsurfaces@GOTPCREL(%rip), %r15
	movq	_surfaceTest@GOTPCREL(%rip), %r9
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	_dleafs@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	8(%rdi), %rax
	movq	(%rax,%rcx,8), %r13
	cmpl	$0, (%r12,%r13,8)
	jle	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%r9, %rbx
	callq	_TraceAgainstSurface
	movq	%rbx, %r9
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%r14
	cmpl	(%r12,%r13,8), %r14d
	jge	LBB0_15
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movslq	4(%r12,%r13,8), %rcx
	addq	%r14, %rcx
	movslq	(%rax,%rcx,4), %rax
	movl	%eax, %esi
	sarl	$3, %esi
	movl	%eax, %ecx
	andb	$7, %cl
	movl	$1, %edx
	shll	%cl, %edx
	movslq	%esi, %rsi
	movl	(%r8,%rsi,4), %ebx
	movzbl	%cl, %ecx
	btl	%ecx, %ebx
	jb	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	orl	%ebx, %edx
	movl	%edx, (%r8,%rsi,4)
	movq	(%r9), %rcx
	movq	(%rcx,%rax,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$0, 16(%rdi)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpq	$0, (%rsi)
	jne	LBB0_14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movsd	-104(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rcx
	movslq	(%rdi), %rax
	cmpq	%rax, %rcx
	jl	LBB0_7
	jmp	LBB0_18
LBB0_17:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 24(%rcx)
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %ecx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ecx, %xmm1
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %edx
	subl	%ecx, %edx
	cvtsi2sd	%edx, %xmm2
	mulsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %ecx
	movl	%ecx, (%rax)
	movl	4(%rdi), %ecx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ecx, %xmm1
	movl	4(%rsi), %edx
	subl	%ecx, %edx
	xorps	%xmm2, %xmm2
	cvtsi2sd	%edx, %xmm2
	mulsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %ecx
	movl	%ecx, 4(%rax)
	movl	8(%rdi), %ecx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ecx, %xmm1
	movl	8(%rsi), %edx
	subl	%ecx, %edx
	xorps	%xmm2, %xmm2
	cvtsi2sd	%edx, %xmm2
	mulsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %ecx
	movl	%ecx, 8(%rax)
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MAP_DRAW_SURFS,4,2         ## @MAX_MAP_DRAW_SURFS
	.comm	_numthreads,4,2                 ## @numthreads
	.comm	_c_totalTrace,4,2               ## @c_totalTrace
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_noSurfaces,8,3                 ## @noSurfaces
	.comm	_numDrawSurfaces,4,2            ## @numDrawSurfaces
	.comm	_dleafs,8,3                     ## @dleafs
	.comm	_dleafsurfaces,8,3              ## @dleafsurfaces
	.comm	_surfaceTest,8,3                ## @surfaceTest
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TraceLine                      ; -- Begin function TraceLine
	.p2align	2
_TraceLine:                             ; @TraceLine
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #32
	mov	x22, x4
	mov	x24, x3
	mov	x21, x2
	mov	x20, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
Lloh3:
	adrp	x8, _MAX_MAP_DRAW_SURFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_MAP_DRAW_SURFS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x8, _numthreads@GOTPAGE
Lloh9:
	ldr	x8, [x8, _numthreads@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _c_totalTrace@GOTPAGE
Lloh12:
	ldr	x8, [x8, _c_totalTrace@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_2:
	ldr	x8, [x21]
	fmov.2d	v0, #1.00000000
	str	q0, [x8]
	mov	x19, #4607182418800017408
	str	x19, [x8, #16]
	ldr	w1, [x22, #36]
	mov	x0, x25
	bl	_VectorCopy
	ldr	w1, [x22, #32]
	mov	x0, x20
	bl	_VectorCopy
	str	x21, [x22, #24]
	str	wzr, [x22]
Lloh13:
	adrp	x8, _qfalse@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	str	x19, [x21, #8]
	mov	w0, #0
	mov	x1, x25
	mov	x2, x20
	mov	x3, x22
	bl	_TraceLine_r
	cmp	w0, #0
	ccmp	w24, #0, #0, ne
	b.eq	LBB0_19
; %bb.3:
Lloh16:
	adrp	x8, _noSurfaces@GOTPAGE
Lloh17:
	ldr	x8, [x8, _noSurfaces@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbnz	x8, LBB0_19
; %bb.4:
	stp	x25, x20, [x29, #-120]          ; 16-byte Folded Spill
Lloh19:
	adrp	x8, _numDrawSurfaces@GOTPAGE
Lloh20:
	ldr	x8, [x8, _numDrawSurfaces@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	add	w9, w8, #7
	add	w8, w8, #14
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w2, w8, #3
	mov	x0, x23
	mov	w1, #0
	bl	_memset
	ldr	w8, [x22]
	ldr	d0, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.5:
	mov	x24, #0
	fcvt	s1, d0
	fcvt	d8, s1
Lloh22:
	adrp	x26, _dleafsurfaces@GOTPAGE
Lloh23:
	ldr	x26, [x26, _dleafsurfaces@GOTPAGEOFF]
	mov	w27, #1
Lloh24:
	adrp	x28, _surfaceTest@GOTPAGE
Lloh25:
	ldr	x28, [x28, _surfaceTest@GOTPAGEOFF]
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
Lloh26:
	adrp	x8, _dleafs@GOTPAGE
Lloh27:
	ldr	x8, [x8, _dleafs@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x9, [x22, #8]
	ldr	x9, [x9, x24, lsl #3]
	add	x19, x8, x9, lsl #3
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, #0
	add	x25, x19, #4
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x22
	bl	_TraceAgainstSurface
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x19]
	add	x20, x20, #1
	cmp	w20, w8
	b.ge	LBB0_14
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	ldrsw	x9, [x25]
	add	x9, x20, x9
	ldr	w8, [x8, x9, lsl #2]
	asr	w9, w8, #3
	ldr	w9, [x23, w9, sxtw #2]
	and	x10, x8, #0x7
	lsl	w10, w27, w10
	tst	w10, w9
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x11, x8
	sxtw	x8, w8
	sbfx	x11, x11, #3, #29
	orr	w9, w10, w9
	str	w9, [x23, x11, lsl #2]
	ldr	x9, [x28]
	ldr	x1, [x9, x8, lsl #3]
	cbz	x1, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x22, #16]
	cbnz	w8, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x1]
	cbnz	x8, LBB0_9
	b	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	d0, [x21, #8]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	fcmp	d0, d8
	b.mi	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.lt	LBB0_6
	b	LBB0_18
LBB0_17:
Lloh29:
	adrp	x8, _qtrue@GOTPAGE
Lloh30:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x21, #24]
LBB0_18:
	ldp	x12, x11, [x29, #-120]          ; 16-byte Folded Reload
	ldr	w8, [x12]
	scvtf	d1, w8
	ldr	w9, [x11]
	sub	w8, w9, w8
	scvtf	d2, w8
	fmadd	d1, d2, d0, d1
	fcvtzs	w8, d1
	ldr	x9, [x21, #16]
	str	w8, [x9]
	ldr	w8, [x12, #4]
	scvtf	d1, w8
	ldr	w10, [x11, #4]
	sub	w8, w10, w8
	scvtf	d2, w8
	fmadd	d1, d2, d0, d1
	fcvtzs	w8, d1
	str	w8, [x9, #4]
	ldr	w8, [x12, #8]
	scvtf	d1, w8
	ldr	w10, [x11, #8]
	sub	w8, w10, w8
	scvtf	d2, w8
	fmadd	d0, d2, d0, d1
	fcvtzs	w8, d0
	str	w8, [x9, #8]
LBB0_19:
	ldur	x8, [x29, #-104]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	sub	sp, x29, #96
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MAP_DRAW_SURFS,4,2         ; @MAX_MAP_DRAW_SURFS
	.comm	_numthreads,4,2                 ; @numthreads
	.comm	_c_totalTrace,4,2               ; @c_totalTrace
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_noSurfaces,8,3                 ; @noSurfaces
	.comm	_numDrawSurfaces,4,2            ; @numDrawSurfaces
	.comm	_dleafs,8,3                     ; @dleafs
	.comm	_dleafsurfaces,8,3              ; @dleafsurfaces
	.comm	_surfaceTest,8,3                ; @surfaceTest
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
