	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function TitanRender
LCPI0_0:
	.long	32895                           ## 0x807f
	.long	1023                            ## 0x3ff
	.long	31                              ## 0x1f
	.long	319                             ## 0x13f
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TitanRender
	.p2align	4, 0x90
_TitanRender:                           ## @TitanRender
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_tt_context@GOTPCREL(%rip), %r8
	cmpl	$0, 16(%r8)
	je	LBB0_4
## %bb.1:
	cmpl	$0, 12(%r8)
	je	LBB0_4
## %bb.2:
	movq	_Vdp2Regs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movdqu	(%r9), %xmm0
	pand	LCPI0_0(%rip), %xmm0
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	movmskps	%xmm1, %esi
	movl	%esi, %eax
	andb	$2, %al
	shrb	%al
	movl	%esi, %edx
	shrb	$2, %dl
	movl	%esi, %ecx
	shrb	$3, %cl
	andb	%dl, %cl
	andb	%al, %cl
	andb	%sil, %cl
	movzbl	%cl, %ecx
	movl	16(%r9), %eax
	andl	$7, %eax
	movq	(%r8), %rsi
	movq	_TITAN_NBG0@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rsi,%rdx,4)
	movl	16(%r9), %eax
	shrl	$8, %eax
	andl	$7, %eax
	movq	_TITAN_NBG1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rsi,%rdx,4)
	movl	20(%r9), %eax
	andl	$7, %eax
	movq	_TITAN_NBG2@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rsi,%rdx,4)
	movl	20(%r9), %eax
	shrl	$8, %eax
	andl	$7, %eax
	movq	_TITAN_NBG3@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rsi,%rdx,4)
	movl	24(%r9), %eax
	andl	$7, %eax
	movq	_TITAN_RBG0@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rsi,%rdx,4)
	movq	_vidsoft_num_priority_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_3
## %bb.5:
	movl	%ecx, %esi
	popq	%rbp
	jmp	_TitanRenderThreads             ## TAILCALL
LBB0_4:
	popq	%rbp
	retq
LBB0_3:
	movl	8(%r8), %edx
	xorl	%esi, %esi
	popq	%rbp
	jmp	_TitanRenderSimplifiedCheck     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tt_context,24,3                ## @tt_context
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
	.comm	_TITAN_NBG0,8,3                 ## @TITAN_NBG0
	.comm	_TITAN_NBG1,8,3                 ## @TITAN_NBG1
	.comm	_TITAN_NBG2,8,3                 ## @TITAN_NBG2
	.comm	_TITAN_NBG3,8,3                 ## @TITAN_NBG3
	.comm	_TITAN_RBG0,8,3                 ## @TITAN_RBG0
	.comm	_vidsoft_num_priority_threads,8,3 ## @vidsoft_num_priority_threads
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TitanRender                    ; -- Begin function TitanRender
	.p2align	2
_TitanRender:                           ; @TitanRender
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _tt_context@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tt_context@GOTPAGEOFF]
	ldp	w10, w9, [x8, #12]
	cmp	w9, #0
	ccmp	w10, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ret
LBB0_2:
Lloh2:
	adrp	x9, _Vdp2Regs@GOTPAGE
Lloh3:
	ldr	x9, [x9, _Vdp2Regs@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	mov	w10, #32895
	ldp	w11, w12, [x9]
	and	w10, w11, w10
	and	w11, w12, #0x3ff
	ldp	w12, w13, [x9, #8]
	and	w12, w12, #0x1f
	mov	w14, #319
	and	w13, w13, w14
	orr	w12, w13, w12
	orr	w11, w12, w11
	orr	w10, w11, w10
	cmp	w10, #0
	ldr	w10, [x9, #16]
	and	w10, w10, #0x7
	ldr	x11, [x8]
Lloh5:
	adrp	x12, _TITAN_NBG0@GOTPAGE
Lloh6:
	ldr	x12, [x12, _TITAN_NBG0@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	str	w10, [x11, x12, lsl #2]
	ldr	w10, [x9, #16]
Lloh8:
	adrp	x12, _TITAN_NBG1@GOTPAGE
Lloh9:
	ldr	x12, [x12, _TITAN_NBG1@GOTPAGEOFF]
	ubfx	w10, w10, #8, #3
Lloh10:
	ldr	x12, [x12]
	str	w10, [x11, x12, lsl #2]
	ldr	w10, [x9, #20]
	and	w10, w10, #0x7
Lloh11:
	adrp	x12, _TITAN_NBG2@GOTPAGE
Lloh12:
	ldr	x12, [x12, _TITAN_NBG2@GOTPAGEOFF]
Lloh13:
	ldr	x12, [x12]
	str	w10, [x11, x12, lsl #2]
	ldr	w10, [x9, #20]
	ubfx	w10, w10, #8, #3
Lloh14:
	adrp	x12, _TITAN_NBG3@GOTPAGE
Lloh15:
	ldr	x12, [x12, _TITAN_NBG3@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x12]
	str	w10, [x11, x12, lsl #2]
	cset	w3, eq
	ldr	w9, [x9, #24]
	and	w9, w9, #0x7
Lloh17:
	adrp	x10, _TITAN_RBG0@GOTPAGE
Lloh18:
	ldr	x10, [x10, _TITAN_RBG0@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	str	w9, [x11, x10, lsl #2]
Lloh20:
	adrp	x9, _vidsoft_num_priority_threads@GOTPAGE
Lloh21:
	ldr	x9, [x9, _vidsoft_num_priority_threads@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x1, x3
	b	_TitanRenderThreads
LBB0_4:
	ldr	w2, [x8, #8]
	mov	w1, #0
	b	_TitanRenderSimplifiedCheck
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_tt_context,24,3                ; @tt_context
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.comm	_TITAN_NBG0,8,3                 ; @TITAN_NBG0
	.comm	_TITAN_NBG1,8,3                 ; @TITAN_NBG1
	.comm	_TITAN_NBG2,8,3                 ; @TITAN_NBG2
	.comm	_TITAN_NBG3,8,3                 ; @TITAN_NBG3
	.comm	_TITAN_RBG0,8,3                 ; @TITAN_RBG0
	.comm	_vidsoft_num_priority_threads,8,3 ; @vidsoft_num_priority_threads
.subsections_via_symbols
