	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_InitPicAnims                 ## -- Begin function P_InitPicAnims
	.p2align	4, 0x90
_P_InitPicAnims:                        ## @P_InitPicAnims
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_anims@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_lastanim@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
	movq	_animdefs@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rsi,%rbx), %eax
	movl	%eax, 16(%rcx)
	addq	$20, %rcx
	movq	%rcx, (%r15)
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	$16, %rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %ecx
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%rax,%rbx), %edi
	callq	_R_CheckTextureNumForName
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movl	8(%rax,%rbx), %edi
	callq	_R_TextureNumForName
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	(%r12), %rax
	movl	12(%rax,%rbx), %edi
	callq	_R_TextureNumForName
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%rax,%rbx), %edi
	callq	_W_CheckNumForName
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movl	8(%rax,%rbx), %edi
	callq	_R_FlatNumForName
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	(%r12), %rax
	movl	12(%rax,%rbx), %edi
	callq	_R_FlatNumForName
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r12), %rsi
	movl	(%rsi,%rbx), %edx
	movl	%edx, 8(%rcx)
	movl	(%rcx), %edx
	subl	%eax, %edx
	leal	1(%rdx), %eax
	movl	%eax, 12(%rcx)
	testl	%edx, %edx
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rsi,%rbx), %edx
	movl	12(%rsi,%rbx), %esi
	movq	%r14, %rdi
	callq	_I_Error
	movq	(%r12), %rsi
	movq	(%r15), %rcx
	jmp	LBB0_9
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_anims,8,3                      ## @anims
	.comm	_lastanim,8,3                   ## @lastanim
	.comm	_animdefs,8,3                   ## @animdefs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P_InitPicAnims: bad cycle from %s to %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_InitPicAnims                 ; -- Begin function P_InitPicAnims
	.p2align	2
_P_InitPicAnims:                        ; @P_InitPicAnims
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, #0
Lloh0:
	adrp	x8, _anims@GOTPAGE
Lloh1:
	ldr	x8, [x8, _anims@GOTPAGEOFF]
Lloh2:
	adrp	x21, _lastanim@GOTPAGE
Lloh3:
	ldr	x21, [x21, _lastanim@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh5:
	adrp	x22, _animdefs@GOTPAGE
Lloh6:
	ldr	x22, [x22, _animdefs@GOTPAGEOFF]
Lloh7:
	adrp	x19, l_.str@PAGE
Lloh8:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, x20
	ldr	w9, [x9, #4]
	str	w9, [x8, #16]
	add	x8, x8, #20
	str	x8, [x21]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w9, [x8, x20]
	cbz	w9, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmn	w9, #1
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x20
	ldr	w0, [x8, #12]
	bl	_R_CheckTextureNumForName
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	add	x8, x8, x20
	ldr	w0, [x8, #8]
	bl	_R_TextureNumForName
	ldr	x8, [x21]
	str	w0, [x8]
	ldr	x8, [x22]
	add	x8, x8, x20
	ldr	w0, [x8, #12]
	bl	_R_TextureNumForName
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x20
	ldr	w0, [x8, #12]
	bl	_W_CheckNumForName
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	add	x8, x8, x20
	ldr	w0, [x8, #8]
	bl	_R_FlatNumForName
	ldr	x8, [x21]
	str	w0, [x8]
	ldr	x8, [x22]
	add	x8, x8, x20
	ldr	w0, [x8, #12]
	bl	_R_FlatNumForName
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	w10, [x9, x20]
	stp	w0, w10, [x8, #4]
	ldr	w10, [x8]
	sub	w10, w10, w0
	add	w11, w10, #1
	str	w11, [x8, #12]
	cmp	w10, #0
	b.gt	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, x20
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	bl	_I_Error
	ldr	x9, [x22]
	ldr	x8, [x21]
	b	LBB0_1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_anims,8,3                      ; @anims
	.comm	_lastanim,8,3                   ; @lastanim
	.comm	_animdefs,8,3                   ; @animdefs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P_InitPicAnims: bad cycle from %s to %s"

.subsections_via_symbols
