	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_MDRAddAnimSurfaces           ## -- Begin function R_MDRAddAnimSurfaces
	.p2align	4, 0x90
_R_MDRAddAnimSurfaces:                  ## @R_MDRAddAnimSurfaces
	.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	%rdi, %r14
	movq	_tr@GOTPCREL(%rip), %r13
	movq	40(%r13), %rbx
	movl	(%rdi), %eax
	movq	_RF_THIRD_PERSON@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 56(%r13)
	jne	LBB0_3
## %bb.2:
	movq	_VPF_SHADOWMAP@GOTPCREL(%rip), %rcx
	movq	_VPF_DEPTHSHADOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, 48(%r13)
	sete	%dl
LBB0_3:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %r15
	movq	_RF_WRAP_FRAMES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movl	8(%r15), %edi
	movl	28(%r14), %esi
	movl	32(%r14), %eax
	cltd
	idivl	%edi
	movl	%edx, %ecx
	movl	%edx, 32(%r14)
	movl	%esi, %eax
	cltd
	idivl	%edi
	movl	%edx, 28(%r14)
	jmp	LBB0_6
LBB0_4:
	movl	32(%r14), %ecx
	movl	8(%r15), %edi
LBB0_6:
	movl	28(%r14), %edx
	testl	%ecx, %ecx
	js	LBB0_10
## %bb.7:
	cmpl	%edi, %ecx
	jge	LBB0_10
## %bb.8:
	cmpl	%edi, %edx
	jge	LBB0_10
## %bb.9:
	testl	%edx, %edx
	jns	LBB0_11
LBB0_10:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_DEVELOPER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	callq	*(%rax)
	movq	$0, 28(%r14)
LBB0_11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_R_MDRCullModel
	movq	_CULL_OUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_51
## %bb.12:
	movq	%r14, %rdi
	callq	_R_ComputeLOD
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_51
## %bb.13:
	leal	-1(%rdx), %ecx
	cmpl	%eax, %edx
	cmovgl	%eax, %ecx
	movslq	4(%r15), %rax
	leaq	(%r15,%rax,4), %rbx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.14:
	leal	-1(%rcx), %edx
	movl	%ecx, %eax
	andl	$7, %eax
	cmpl	$7, %edx
	jb	LBB0_17
## %bb.15:
	andl	$-8, %ecx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rdx
	leaq	(%rbx,%rdx,4), %rsi
	movslq	(%rbx,%rdx,4), %rdx
	leaq	(%rsi,%rdx,4), %rdi
	movslq	(%rsi,%rdx,4), %rdx
	leaq	(%rdi,%rdx,4), %rsi
	movslq	(%rdi,%rdx,4), %rdx
	leaq	(%rsi,%rdx,4), %rdi
	movslq	(%rsi,%rdx,4), %rdx
	leaq	(%rdi,%rdx,4), %rsi
	movslq	(%rdi,%rdx,4), %rdx
	leaq	(%rsi,%rdx,4), %rdi
	movslq	(%rsi,%rdx,4), %rdx
	leaq	(%rdi,%rdx,4), %rsi
	movslq	(%rdi,%rdx,4), %rdx
	leaq	(%rsi,%rdx,4), %rbx
	addl	$-8, %ecx
	jne	LBB0_16
LBB0_17:
	testl	%eax, %eax
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rcx
	leaq	(%rbx,%rcx,4), %rbx
	decl	%eax
	jne	LBB0_18
LBB0_19:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_21
## %bb.20:
	movq	_r_shadows@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$2, (%rax)
	jl	LBB0_22
LBB0_21:
	leaq	32(%r13), %rdi
	movq	%r14, %rsi
	callq	_R_SetupEntityLighting
LBB0_22:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_R_MDRComputeFogNum
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	24(%r14), %edi
	callq	_R_CubemapForPoint
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%rbx)
	jle	LBB0_51
## %bb.23:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movslq	4(%rcx), %rax
	leaq	(%rcx,%rax,4), %rbx
	xorl	%r12d, %r12d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_24 Depth=1
	movslq	8(%rbx), %rax
	leaq	(%rbx,%rax,4), %rbx
	incl	%r12d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	8(%rax), %r12d
	jge	LBB0_51
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_24 Depth=1
	callq	_R_GetShaderByHandle
	movq	%rax, %rsi
LBB0_36:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testb	%r15b, %r15b
	jne	LBB0_43
LBB0_38:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_r_shadows@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$2, (%rax)
	jne	LBB0_43
## %bb.39:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_43
## %bb.40:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_RF_DEPTHHACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RF_NOSHADOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, (%r14)
	jne	LBB0_43
## %bb.41:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	(%rsi), %rax
	movq	_SS_OPAQUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rsi
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%ecx, %r8d
	xorl	%r9d, %r9d
	callq	_R_AddDrawSurf
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	jle	LBB0_34
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpq	(%r13), %rdi
	jge	LBB0_34
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=1
	callq	_R_GetSkinByHandle
	movq	24(%r13), %rsi
	cmpl	$0, (%rax)
	jle	LBB0_36
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rax, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movl	8(%rax,%r13), %edi
	movl	12(%rbx), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=2
	incq	%r14
	movslq	(%r15), %rax
	addq	$16, %r13
	cmpq	%rax, %r14
	jl	LBB0_30
## %bb.33:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	_tr@GOTPCREL(%rip), %r13
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testb	%r15b, %r15b
	je	LBB0_38
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_r_shadows@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$3, (%rax)
	jne	LBB0_48
## %bb.44:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_48
## %bb.45:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_RF_SHADOW_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_48
## %bb.46:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	(%rsi), %rax
	movq	_SS_OPAQUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rsi
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%ecx, %r8d
	xorl	%r9d, %r9d
	callq	_R_AddDrawSurf
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_24 Depth=1
	testb	%r15b, %r15b
	jne	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%ecx, %r8d
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	callq	_R_AddDrawSurf
	jmp	LBB0_50
LBB0_34:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jg	LBB0_25
## %bb.35:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	24(%r13), %rsi
	jmp	LBB0_36
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r13), %rsi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	_tr@GOTPCREL(%rip), %r13
	jmp	LBB0_36
LBB0_51:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,64,3                        ## @tr
	.comm	_RF_THIRD_PERSON,4,2            ## @RF_THIRD_PERSON
	.comm	_VPF_SHADOWMAP,4,2              ## @VPF_SHADOWMAP
	.comm	_VPF_DEPTHSHADOW,4,2            ## @VPF_DEPTHSHADOW
	.comm	_RF_WRAP_FRAMES,4,2             ## @RF_WRAP_FRAMES
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_DEVELOPER,4,2            ## @PRINT_DEVELOPER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"R_MDRAddAnimSurfaces: no such frame %d to %d for '%s'\n"

	.comm	_CULL_OUT,4,2                   ## @CULL_OUT
	.comm	_r_shadows,8,3                  ## @r_shadows
	.comm	_RF_NOSHADOW,4,2                ## @RF_NOSHADOW
	.comm	_RF_DEPTHHACK,4,2               ## @RF_DEPTHHACK
	.comm	_SS_OPAQUE,8,3                  ## @SS_OPAQUE
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_RF_SHADOW_PLANE,4,2            ## @RF_SHADOW_PLANE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_MDRAddAnimSurfaces           ; -- Begin function R_MDRAddAnimSurfaces
	.p2align	2
_R_MDRAddAnimSurfaces:                  ; @R_MDRAddAnimSurfaces
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _tr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tr@GOTPAGEOFF]
	ldr	x8, [x21, #40]
	ldr	x20, [x8, #8]
Lloh2:
	adrp	x10, _RF_THIRD_PERSON@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RF_THIRD_PERSON@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh4:
	ldr	w10, [x10]
	and	w10, w10, w9
	ldr	x11, [x21, #56]
	cmp	w10, #0
	ccmp	x11, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	mov	w26, #0
	b	LBB0_3
LBB0_2:
	ldr	w10, [x21, #48]
Lloh5:
	adrp	x11, _VPF_SHADOWMAP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _VPF_SHADOWMAP@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
Lloh8:
	adrp	x12, _VPF_DEPTHSHADOW@GOTPAGE
Lloh9:
	ldr	x12, [x12, _VPF_DEPTHSHADOW@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w11, w10
	cset	w26, eq
LBB0_3:
Lloh11:
	adrp	x10, _RF_WRAP_FRAMES@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RF_WRAP_FRAMES@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
	ldr	w9, [x20, #8]
	ldp	w11, w10, [x19, #28]
	sdiv	w12, w10, w9
	msub	w3, w12, w9, w10
	sdiv	w10, w11, w9
	msub	w10, w10, w9, w11
	stp	w10, w3, [x19, #28]
	ldr	w2, [x19, #28]
	tbz	w3, #31, LBB0_6
	b	LBB0_8
LBB0_5:
	ldr	w3, [x19, #32]
	ldr	w9, [x20, #8]
	ldr	w2, [x19, #28]
	tbnz	w3, #31, LBB0_8
LBB0_6:
	cmp	w3, w9
	ccmp	w2, w9, #0, lt
	b.ge	LBB0_8
; %bb.7:
	tbz	w2, #31, LBB0_9
LBB0_8:
Lloh14:
	adrp	x9, _ri@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ri@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _PRINT_DEVELOPER@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PRINT_DEVELOPER@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x10]
	ldr	w4, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	blr	x9
	stp	wzr, wzr, [x19, #28]
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_R_MDRCullModel
Lloh22:
	adrp	x8, _CULL_OUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CULL_OUT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_42
; %bb.10:
	mov	x0, x19
	bl	_R_ComputeLOD
	ldr	w8, [x20]
	subs	w9, w8, #1
	b.lt	LBB0_42
; %bb.11:
	cmp	w8, w0
	csel	w8, w0, w9, gt
	ldrsw	x9, [x20, #4]
	add	x27, x20, x9, lsl #2
	cmp	w8, #1
	b.lt	LBB0_13
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x27]
	add	x27, x27, x9, lsl #2
	subs	w8, w8, #1
	b.ne	LBB0_12
LBB0_13:
Lloh25:
	adrp	x28, _r_shadows@GOTPAGE
Lloh26:
	ldr	x28, [x28, _r_shadows@GOTPAGEOFF]
	cbz	w26, LBB0_15
; %bb.14:
	ldr	x8, [x28]
	ldr	w8, [x8]
	cmp	w8, #1
	b.le	LBB0_16
LBB0_15:
	add	x0, x21, #32
	mov	x1, x19
	bl	_R_SetupEntityLighting
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_R_MDRComputeFogNum
	mov	x20, x0
	ldr	w0, [x19, #24]
	bl	_R_CubemapForPoint
	ldr	w8, [x27, #8]
	cmp	w8, #1
	b.lt	LBB0_42
; %bb.17:
	mov	x24, x0
	mov	w25, #0
	ldrsw	x8, [x27, #4]
	add	x22, x27, x8, lsl #2
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldrsw	x8, [x22, #8]
	add	x22, x22, x8, lsl #2
	add	w25, w25, #1
	ldr	w8, [x27, #8]
	cmp	w25, w8
	b.ge	LBB0_42
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_32
LBB0_20:                                ;   in Loop: Header=BB0_19 Depth=1
	bl	_R_GetShaderByHandle
	mov	x23, x0
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	tbnz	w26, #0, LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x28]
	ldr	w8, [x8]
	cmp	w8, #2
	ccmp	w20, #0, #0, eq
	b.ne	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x19]
Lloh27:
	adrp	x9, _RF_NOSHADOW@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RF_NOSHADOW@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _RF_DEPTHHACK@GOTPAGE
Lloh31:
	ldr	x10, [x10, _RF_DEPTHHACK@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x23]
Lloh33:
	adrp	x9, _SS_OPAQUE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SS_OPAQUE@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x1, [x21, #16]
Lloh36:
	adrp	x8, _qfalse@GOTPAGE
Lloh37:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	x4, x3
	mov	w5, #0
	bl	_R_AddDrawSurf
LBB0_26:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x28]
	ldr	w8, [x8]
	cmp	w8, #3
	ccmp	w20, #0, #0, eq
	b.ne	LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x19]
Lloh39:
	adrp	x9, _RF_SHADOW_PLANE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _RF_SHADOW_PLANE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x23]
Lloh42:
	adrp	x9, _SS_OPAQUE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _SS_OPAQUE@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x1, [x21, #8]
Lloh45:
	adrp	x8, _qfalse@GOTPAGE
Lloh46:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	x4, x3
	mov	w5, #0
	bl	_R_AddDrawSurf
LBB0_30:                                ;   in Loop: Header=BB0_19 Depth=1
	tbnz	w26, #0, LBB0_18
; %bb.31:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh48:
	adrp	x8, _qfalse@GOTPAGE
Lloh49:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh50:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	mov	x4, x3
	mov	x5, x24
	bl	_R_AddDrawSurf
	b	LBB0_18
LBB0_32:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x19, #16]
	ldr	x8, [x21]
	cmp	x0, #1
	ccmp	x0, x8, #0, ge
	b.lt	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x22]
	cmp	x0, #1
	b.ge	LBB0_20
; %bb.34:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x23, [x21, #24]
	b	LBB0_21
LBB0_35:                                ;   in Loop: Header=BB0_19 Depth=1
	bl	_R_GetSkinByHandle
	ldr	x23, [x21, #24]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x24, x0
	mov	x21, #0
	mov	x28, #0
LBB0_37:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24, #8]
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	ldr	w1, [x22, #12]
	bl	_strcmp
	cbz	w0, LBB0_40
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=2
	add	x28, x28, #1
	ldrsw	x8, [x24]
	add	x21, x21, #16
	cmp	x28, x8
	b.lt	LBB0_37
	b	LBB0_41
LBB0_39:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_21
LBB0_40:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x24, #8]
	ldr	x23, [x8, x21]
LBB0_41:                                ;   in Loop: Header=BB0_19 Depth=1
Lloh51:
	adrp	x21, _tr@GOTPAGE
Lloh52:
	ldr	x21, [x21, _tr@GOTPAGEOFF]
Lloh53:
	adrp	x28, _r_shadows@GOTPAGE
Lloh54:
	ldr	x28, [x28, _r_shadows@GOTPAGEOFF]
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_21
LBB0_42:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,64,3                        ; @tr
	.comm	_RF_THIRD_PERSON,4,2            ; @RF_THIRD_PERSON
	.comm	_VPF_SHADOWMAP,4,2              ; @VPF_SHADOWMAP
	.comm	_VPF_DEPTHSHADOW,4,2            ; @VPF_DEPTHSHADOW
	.comm	_RF_WRAP_FRAMES,4,2             ; @RF_WRAP_FRAMES
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_DEVELOPER,4,2            ; @PRINT_DEVELOPER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"R_MDRAddAnimSurfaces: no such frame %d to %d for '%s'\n"

	.comm	_CULL_OUT,4,2                   ; @CULL_OUT
	.comm	_r_shadows,8,3                  ; @r_shadows
	.comm	_RF_NOSHADOW,4,2                ; @RF_NOSHADOW
	.comm	_RF_DEPTHHACK,4,2               ; @RF_DEPTHHACK
	.comm	_SS_OPAQUE,8,3                  ; @SS_OPAQUE
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_RF_SHADOW_PLANE,4,2            ; @RF_SHADOW_PLANE
.subsections_via_symbols
