	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function TitanRenderThreads
LCPI0_0:
	.quad	2                               ## 0x2
	.quad	3                               ## 0x3
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_2:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_3:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_4:
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5
LCPI0_5:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
LCPI0_6:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TitanRenderThreads
	.p2align	4, 0x90
_TitanRenderThreads:                    ## @TitanRenderThreads
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_vidsoft_num_priority_threads@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leal	1(%rcx), %esi
	movq	_tt_context@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%esi
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movdqa	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	_priority_thread_context@GOTPCREL(%rip), %r8
	movq	%rdi, 16(%r8)
	movl	%r14d, (%r8)
	testl	%ecx, %ecx
	js	LBB0_9
## %bb.1:
	movl	%esi, %r9d
	cmpl	$8, %esi
	jae	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	jmp	LBB0_6
LBB0_3:
	movl	%r9d, %edi
	andl	$-8, %edi
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm6                ## xmm6 = xmm0[0,0,0,0]
	leaq	(,%r9,4), %rsi
	andq	$-32, %rsi
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [2,3]
	movaps	LCPI0_1(%rip), %xmm2            ## xmm2 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	movdqa	LCPI0_2(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	xorl	%ebx, %ebx
	movdqa	LCPI0_3(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	pcmpeqd	%xmm9, %xmm9
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [5,5,5,5]
	movdqa	LCPI0_5(%rip), %xmm7            ## xmm7 = [8,8]
	movdqa	LCPI0_6(%rip), %xmm4            ## xmm4 = [8,8,8,8]
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm3
	paddd	%xmm8, %xmm3
	movdqa	%xmm6, %xmm0
	pmulld	%xmm5, %xmm0
	pmulld	%xmm6, %xmm3
	movdqa	%xmm0, -64(%rbp,%rbx)
	movdqa	%xmm3, -48(%rbp,%rbx)
	movaps	%xmm2, %xmm0
	shufps	$136, %xmm1, %xmm0              ## xmm0 = xmm0[0,2],xmm1[0,2]
	movaps	%xmm0, %xmm3
	psubd	%xmm9, %xmm3
	paddd	%xmm10, %xmm0
	pmulld	%xmm6, %xmm3
	pmulld	%xmm6, %xmm0
	movdqa	%xmm3, -96(%rbp,%rbx)
	movdqa	%xmm0, -80(%rbp,%rbx)
	paddq	%xmm7, %xmm2
	paddq	%xmm7, %xmm1
	paddd	%xmm4, %xmm5
	addq	$32, %rbx
	cmpq	%rbx, %rsi
	jne	LBB0_4
## %bb.5:
	cmpq	%r9, %rdi
	je	LBB0_8
LBB0_6:
	movl	%eax, %esi
	imull	%edi, %esi
	leal	1(%rdi), %ebx
	imull	%eax, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, -64(%rbp,%rdi,4)
	movl	%ebx, -96(%rbp,%rdi,4)
	incq	%rdi
	addl	%eax, %esi
	addl	%eax, %ebx
	cmpq	%rdi, %r9
	jne	LBB0_7
LBB0_8:
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.10:
	movq	8(%r8), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-60(%rbp,%rsi,4), %ecx
	movl	%ecx, (%rax,%rsi,8)
	movl	-92(%rbp,%rsi,4), %ecx
	movl	%ecx, 4(%rax,%rsi,8)
	leaq	1(%rsi), %rdi
	movslq	(%r12), %rcx
	movq	%rdi, %rsi
	cmpq	%rcx, %rdi
	jl	LBB0_11
	jmp	LBB0_12
LBB0_9:
	movq	8(%r8), %rax
LBB0_12:
	movslq	%ecx, %rcx
	addl	%edx, -4(%rax,%rcx,8)
	cmpl	$0, (%r12)
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_TitanStartPriorityThread
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_14
LBB0_15:
	movl	-64(%rbp), %esi
	movl	-96(%rbp), %edx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_TitanRenderSimplifiedCheck
	cmpl	$0, (%r12)
	jle	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_TitanWaitForPriorityThread
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_17
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_vidsoft_num_priority_threads,4,2 ## @vidsoft_num_priority_threads
	.comm	_tt_context,4,2                 ## @tt_context
	.comm	_priority_thread_context,24,3   ## @priority_thread_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function TitanRenderThreads
lCPI0_0:
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
lCPI0_1:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
lCPI0_2:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TitanRenderThreads
	.p2align	2
_TitanRenderThreads:                    ; @TitanRenderThreads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _vidsoft_num_priority_threads@GOTPAGE
Lloh4:
	ldr	x22, [x22, _vidsoft_num_priority_threads@GOTPAGEOFF]
	stur	x8, [x29, #-40]
	ldr	w9, [x22]
	add	w12, w9, #1
Lloh5:
	adrp	x8, _tt_context@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tt_context@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sdiv	w10, w8, w12
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #48]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
Lloh8:
	adrp	x11, _priority_thread_context@GOTPAGE
Lloh9:
	ldr	x11, [x11, _priority_thread_context@GOTPAGEOFF]
	msub	w8, w10, w12, w8
	str	x0, [x11, #16]
	str	w1, [x11]
	tbnz	w9, #31, LBB0_11
; %bb.1:
	cmp	w12, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x13, #0
	b	LBB0_6
LBB0_3:
	and	x13, x12, #0xfffffff0
	dup.4s	v0, w10
	add	x14, sp, #8
	add	x14, x14, #32
	add	x15, sp, #32
	add	x15, x15, #32
Lloh10:
	adrp	x16, lCPI0_0@PAGE
Lloh11:
	ldr	q1, [x16, lCPI0_0@PAGEOFF]
Lloh12:
	adrp	x16, lCPI0_1@PAGE
Lloh13:
	ldr	q2, [x16, lCPI0_1@PAGEOFF]
Lloh14:
	adrp	x16, lCPI0_2@PAGE
Lloh15:
	ldr	q3, [x16, lCPI0_2@PAGEOFF]
	movi.4s	v4, #4
	movi.4s	v5, #8
	movi.4s	v6, #12
	movi.4s	v7, #1
	movi.4s	v16, #5
	movi.4s	v17, #9
	movi.4s	v18, #13
	mov	w16, #16
	dup.2d	v19, x16
	movi.4s	v20, #16
	mov	x16, x13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v21, v3, v4
	add.4s	v22, v3, v5
	add.4s	v23, v3, v6
	mul.4s	v24, v0, v3
	mul.4s	v21, v0, v21
	mul.4s	v22, v0, v22
	mul.4s	v23, v0, v23
	stp	q24, q21, [x15, #-32]
	stp	q22, q23, [x15], #64
	uzp1.4s	v21, v2, v1
	add.4s	v22, v21, v7
	add.4s	v23, v21, v16
	add.4s	v24, v21, v17
	add.4s	v21, v21, v18
	mul.4s	v22, v0, v22
	mul.4s	v23, v0, v23
	mul.4s	v24, v0, v24
	mul.4s	v21, v0, v21
	stp	q22, q23, [x14, #-32]
	stp	q24, q21, [x14], #64
	add.2d	v1, v1, v19
	add.2d	v2, v2, v19
	add.4s	v3, v3, v20
	subs	x16, x16, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x13, x12
	b.eq	LBB0_8
LBB0_6:
	mov	w14, #0
	mul	w15, w10, w13
	lsl	x17, x13, #2
	add	x16, sp, #8
	add	x16, x16, x17
	add	x0, sp, #32
	add	x17, x0, x17
	sub	x12, x12, x13
	add	w13, w10, w15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w15, w14
	str	w0, [x17], #4
	add	w0, w13, w14
	str	w0, [x16], #4
	add	w14, w14, w10
	subs	x12, x12, #1
	b.ne	LBB0_7
LBB0_8:
	cmp	w9, #0
	b.le	LBB0_11
; %bb.9:
	mov	x14, #0
	ldr	x10, [x11, #8]
	add	x11, x10, #4
	add	x9, sp, #8
	orr	x12, x9, #0x4
	add	x9, sp, #32
	orr	x13, x9, #0x4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x9, x14, #2
	add	x15, x14, #1
	ldr	w14, [x13, x9]
	ldr	w9, [x12, x9]
	stp	w14, w9, [x11, #-4]
	ldrsw	x9, [x22]
	add	x11, x11, #8
	mov	x14, x15
	cmp	x15, x9
	b.lt	LBB0_10
	b	LBB0_12
LBB0_11:
	ldr	x10, [x11, #8]
LBB0_12:
	add	x9, x10, w9, sxtw #3
	ldur	w10, [x9, #-4]
	add	w8, w10, w8
	stur	w8, [x9, #-4]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	w21, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_TitanStartPriorityThread
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_14
LBB0_15:
	ldr	w1, [sp, #32]
	ldr	w2, [sp, #8]
	mov	x0, x20
	mov	x3, x19
	bl	_TitanRenderSimplifiedCheck
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	w19, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TitanWaitForPriorityThread
	add	w19, w19, #1
	ldr	w8, [x22]
	cmp	w19, w8
	b.lt	LBB0_17
LBB0_18:
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	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
	add	sp, sp, #112
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdrp	Lloh10, Lloh12
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_vidsoft_num_priority_threads,4,2 ; @vidsoft_num_priority_threads
	.comm	_tt_context,4,2                 ; @tt_context
	.comm	_priority_thread_context,24,3   ; @priority_thread_context
.subsections_via_symbols
