	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_IQMSurfaceAnimVao           ## -- Begin function RB_IQMSurfaceAnimVao
	.p2align	4, 0x90
_RB_IQMSurfaceAnimVao:                  ## @RB_IQMSurfaceAnimVao
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movq	_tess@GOTPCREL(%rip), %rbx
	movl	20(%rbx), %edi
	callq	_ShaderRequiresCPUDeforms
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	24(%r14), %rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.2:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RB_IQMSurfaceAnim              ## TAILCALL
LBB0_3:
	cmpl	$0, 16(%r14)
	je	LBB0_12
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_RB_EndSurface
	movl	20(%rbx), %edi
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	callq	_RB_BeginSurface
	movl	16(%r14), %edi
	callq	_R_BindVao
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	8(%r14), %eax
	movl	%eax, (%rbx)
	movl	(%r13), %eax
	movq	_glState@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_IQM_MAX_JOINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	leal	(%rax,%rax,2), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	4(%r13), %edi
	movq	_backEnd@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$0, %edx
	testl	%edi, %edi
	je	LBB0_7
## %bb.6:
	movl	(%rsi), %eax
	movl	4(%rsi), %ecx
	cltd
	idivl	%edi
	movl	%edx, %r15d
	movl	%ecx, %eax
	cltd
	idivl	%edi
LBB0_7:
	movss	8(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movq	(%r14), %rdi
	movl	%r15d, %esi
	movq	%rbx, %rcx
	callq	_ComputePoseMats
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	movq	8(%r12), %rcx
	addq	$44, %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movss	-44(%rbx), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movq	(%rcx,%rdx,8), %rsi
	movss	%xmm0, (%rsi)
	movss	-28(%rbx), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 4(%rsi)
	movss	-12(%rbx), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rsi)
	movl	$0, 12(%rsi)
	movss	-40(%rbx), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 16(%rsi)
	movss	-24(%rbx), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 20(%rsi)
	movss	-8(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 24(%rsi)
	movl	$0, 28(%rsi)
	movss	-36(%rbx), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 32(%rsi)
	movss	-20(%rbx), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 36(%rsi)
	movss	-4(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 40(%rsi)
	movl	$0, 44(%rsi)
	movss	-32(%rbx), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 48(%rsi)
	movss	-16(%rbx), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 52(%rsi)
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 56(%rsi)
	movl	$1065353216, 60(%rsi)           ## imm = 0x3F800000
	incq	%rdx
	addq	$48, %rbx
	cmpq	%rdx, %rax
	jne	LBB0_9
LBB0_10:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_11:
	xorl	%eax, %eax
	callq	_RB_EndSurface
	movl	$0, (%r12)
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_tess,24,2                      ## @tess
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_glState,16,3                   ## @glState
	.comm	_IQM_MAX_JOINTS,4,2             ## @IQM_MAX_JOINTS
	.comm	_backEnd,8,3                    ## @backEnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_IQMSurfaceAnimVao           ; -- Begin function RB_IQMSurfaceAnimVao
	.p2align	2
_RB_IQMSurfaceAnimVao:                  ; @RB_IQMSurfaceAnimVao
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x23, [x0]
Lloh3:
	adrp	x20, _tess@GOTPAGE
Lloh4:
	ldr	x20, [x20, _tess@GOTPAGEOFF]
	ldr	w0, [x20, #20]
	bl	_ShaderRequiresCPUDeforms
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #24]
	ldur	x8, [x29, #-56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.2:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RB_IQMSurfaceAnim
LBB0_3:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_13
; %bb.4:
	bl	_RB_EndSurface
	ldp	w1, w0, [x20, #16]
	ldr	w2, [x20, #12]
	bl	_RB_BeginSurface
	ldr	w0, [x19, #16]
	bl	_R_BindVao
Lloh8:
	adrp	x8, _qfalse@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	d0, [x19, #8]
	str	d0, [x20]
	ldr	w8, [x23]
Lloh11:
	adrp	x21, _glState@GOTPAGE
Lloh12:
	ldr	x21, [x21, _glState@GOTPAGEOFF]
	str	w8, [x21]
	cbz	w8, LBB0_12
; %bb.5:
	mov	x22, sp
Lloh13:
	adrp	x8, _IQM_MAX_JOINTS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IQM_MAX_JOINTS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #1
	lsl	w8, w8, #2
	lsl	x8, x8, #2
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w9, [x23, #4]
Lloh18:
	adrp	x8, _backEnd@GOTPAGE
Lloh19:
	ldr	x8, [x8, _backEnd@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	w9, LBB0_7
; %bb.6:
	ldp	w10, w11, [x8]
	sdiv	w12, w10, w9
	msub	w1, w12, w9, w10
	sdiv	w10, w11, w9
	msub	w2, w10, w9, w11
	b	LBB0_8
LBB0_7:
	mov	w1, #0
	mov	w2, #0
LBB0_8:
	ldr	s0, [x8, #8]
	ldr	x0, [x19]
	mov	x3, x20
	bl	_ComputePoseMats
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	ldr	x9, [x21, #8]
	add	x10, x20, #24
	mov	w11, #1065353216
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9], #8
	ldur	s0, [x10, #-24]
	str	s0, [x12]
	ldur	s0, [x10, #-8]
	str	s0, [x12, #4]
	ldr	s0, [x10, #8]
	str	s0, [x12, #8]
	str	wzr, [x12, #12]
	ldur	s0, [x10, #-20]
	str	s0, [x12, #16]
	ldur	s0, [x10, #-4]
	str	s0, [x12, #20]
	ldr	s0, [x10, #12]
	str	s0, [x12, #24]
	str	wzr, [x12, #28]
	ldur	s0, [x10, #-16]
	str	s0, [x12, #32]
	ldr	s0, [x10]
	str	s0, [x12, #36]
	ldr	s0, [x10, #16]
	str	s0, [x12, #40]
	str	wzr, [x12, #44]
	ldur	s0, [x10, #-12]
	str	s0, [x12, #48]
	ldr	s0, [x10, #4]
	str	s0, [x12, #52]
	ldr	s0, [x10, #20]
	str	s0, [x12, #56]
	str	w11, [x12, #60]
	add	x10, x10, #48
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	mov	sp, x22
LBB0_12:
	bl	_RB_EndSurface
	str	wzr, [x21]
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_tess,24,2                      ; @tess
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_glState,16,3                   ; @glState
	.comm	_IQM_MAX_JOINTS,4,2             ; @IQM_MAX_JOINTS
	.comm	_backEnd,8,3                    ; @backEnd
.subsections_via_symbols
