	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function UI_ParseAnimationFile
LCPI0_0:
	.long	0x447a0000                      ## float 1000
LCPI0_1:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_UI_ParseAnimationFile:                 ## @UI_ParseAnimationFile
	.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
	pushq	%rax
	movl	$20040, %eax                    ## imm = 0x4E48
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.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	_MAX_ANIMATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$5, %edx
	movq	%rsi, -20080(%rbp)              ## 8-byte Spill
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_FS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20060(%rbp), %rsi
	movq	%r14, %rdi
	callq	_trap_FS_FOpenFile
	movq	_qfalse@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	jle	LBB0_32
## %bb.1:
	cmpl	$19998, %eax                    ## imm = 0x4E1E
	jbe	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_31
LBB0_3:
	movq	%r14, -20072(%rbp)              ## 8-byte Spill
	movl	%eax, %ebx
	movl	-20060(%rbp), %edx
	leaq	-20048(%rbp), %r14
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_trap_FS_Read
	movb	$0, -20048(%rbp,%rbx)
	movl	-20060(%rbp), %edi
	callq	_trap_FS_FCloseFile
	movq	%r14, -20056(%rbp)
	leaq	-20056(%rbp), %rdi
	callq	_COM_Parse
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %r12
	leaq	-20056(%rbp), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_COM_Parse
	testq	%rax, %rax
	je	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-20056(%rbp), %r14
	movq	%r15, %rdi
	callq	_COM_Parse
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	(%r13), %al
	addb	$-48, %al
	cmpb	$9, %al
	jbe	LBB0_14
## %bb.34:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movq	%r13, %rsi
	movq	-20072(%rbp), %rdx              ## 8-byte Reload
	xorl	%eax, %eax
	callq	_Com_Printf
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_COM_Parse
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	leal	1(%rbx), %eax
	cmpl	$2, %ebx
	movl	%eax, %ebx
	jb	LBB0_9
	jmp	LBB0_11
LBB0_14:
	movq	%r14, -20056(%rbp)
LBB0_15:
	movq	_MAX_ANIMATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_29
## %bb.16:
	leaq	-20056(%rbp), %r14
	movq	_LEGS_WALKCR@GOTPCREL(%rip), %r12
	movq	-20080(%rbp), %r15              ## 8-byte Reload
	xorl	%r13d, %r13d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_17 Depth=1
	cvttss2si	%xmm1, %eax
	movl	%eax, 4(%r15)
	movl	%eax, 8(%r15)
	incq	%rbx
	movq	_MAX_ANIMATIONS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$32, %r15
	cmpq	%rax, %rbx
	jge	LBB0_28
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_COM_Parse
	testq	%rax, %rax
	je	LBB0_28
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %rdi
	callq	_atoi
	movl	%eax, (%r15)
	movslq	(%r12), %rcx
	movl	%ecx, %edx
	cmpq	%rdx, %rbx
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rcx, %rdx
	shlq	$5, %rdx
	movq	-20080(%rbp), %rsi              ## 8-byte Reload
	movl	(%rsi,%rdx), %r13d
	movq	_TORSO_GESTURE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$5, %rdx
	subl	(%rsi,%rdx), %r13d
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rcx, %rbx
	jl	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	subl	%r13d, %eax
	movl	%eax, (%r15)
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	callq	_COM_Parse
	testq	%rax, %rax
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, 24(%r15)
	movq	%r14, %rdi
	callq	_COM_Parse
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, 16(%r15)
	movq	%r14, %rdi
	callq	_COM_Parse
	testq	%rax, %rax
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %rdi
	callq	_atof
	ucomiss	LCPI0_1(%rip), %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	jne	LBB0_26
	jnp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=1
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	jmp	LBB0_27
LBB0_28:
	movq	_MAX_ANIMATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_29:
	cmpl	%eax, %ebx
	movq	_qfalse@GOTPCREL(%rip), %rbx
	jne	LBB0_30
## %bb.35:
	movq	_qtrue@GOTPCREL(%rip), %rbx
	jmp	LBB0_32
LBB0_30:
	leaq	L_.str.5(%rip), %rdi
	movq	-20072(%rbp), %r14              ## 8-byte Reload
LBB0_31:
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_Com_Printf
LBB0_32:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_36
## %bb.33:
	addq	$20040, %rsp                    ## imm = 0x4E48
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ANIMATIONS,4,2             ## @MAX_ANIMATIONS
	.comm	_FS_READ,4,2                    ## @FS_READ
	.comm	_qfalse,4,2                     ## @qfalse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"File %s too long\n"

L_.str.1:                               ## @.str.1
	.asciz	"footsteps"

L_.str.2:                               ## @.str.2
	.asciz	"headoffset"

L_.str.3:                               ## @.str.3
	.asciz	"sex"

L_.str.4:                               ## @.str.4
	.asciz	"unknown token '%s' is %s\n"

	.comm	_LEGS_WALKCR,4,2                ## @LEGS_WALKCR
	.comm	_TORSO_GESTURE,8,3              ## @TORSO_GESTURE
L_.str.5:                               ## @.str.5
	.asciz	"Error parsing animation file: %s"

	.comm	_qtrue,4,2                      ## @qtrue
	.no_dead_strip	_UI_ParseAnimationFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_ParseAnimationFile
_UI_ParseAnimationFile:                 ; @UI_ParseAnimationFile
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w9, #20032
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #3648
	mov	x20, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh5:
	adrp	x26, _MAX_ANIMATIONS@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MAX_ANIMATIONS@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	w2, w8, #5
	mov	x0, x1
	mov	w1, #0
	bl	_memset
Lloh7:
	adrp	x8, _FS_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FS_READ@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_trap_FS_FOpenFile
	cmp	w0, #1
	b.lt	LBB0_32
; %bb.1:
	mov	x21, x0
	mov	w8, #19998
	cmp	w0, w8
	b.ls	LBB0_3
; %bb.2:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_31
LBB0_3:
	ldr	w2, [sp, #12]
	add	x22, sp, #24
	add	x0, sp, #24
	mov	x1, x21
	bl	_trap_FS_Read
	strb	wzr, [x22, w21, uxtw]
	ldr	w0, [sp, #12]
	bl	_trap_FS_FCloseFile
	str	x22, [sp, #16]
	add	x0, sp, #16
	bl	_COM_Parse
	cbz	x0, LBB0_16
; %bb.4:
	mov	x25, x0
	add	x27, sp, #24
Lloh12:
	adrp	x21, l_.str.1@PAGE
Lloh13:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh14:
	adrp	x22, l_.str.2@PAGE
Lloh15:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh16:
	adrp	x23, l_.str.3@PAGE
Lloh17:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh18:
	adrp	x24, l_.str.4@PAGE
Lloh19:
	add	x24, x24, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	bl	_COM_Parse
	cbz	x0, LBB0_16
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x27, [sp, #16]
	add	x0, sp, #16
	bl	_COM_Parse
	mov	x25, x0
	cbz	x0, LBB0_16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x21
	bl	_Q_stricmp
	cbz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	x1, x22
	bl	_Q_stricmp
	cbz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_Q_stricmp
	cbz	w0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x25]
	sub	w8, w8, #48
	cmp	w8, #9
	b.ls	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x19, [sp]
	mov	x0, x24
	mov	x1, x25
	bl	_Com_Printf
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	bl	_COM_Parse
	cbz	x0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	bl	_COM_Parse
	cbz	x0, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	bl	_COM_Parse
	b	LBB0_6
LBB0_15:
	str	x27, [sp, #16]
LBB0_16:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.17:
	mov	x21, #0
	mov	w23, #0
Lloh20:
	adrp	x22, _LEGS_WALKCR@GOTPAGE
Lloh21:
	ldr	x22, [x22, _LEGS_WALKCR@GOTPAGEOFF]
Lloh22:
	adrp	x24, _TORSO_GESTURE@GOTPAGE
Lloh23:
	ldr	x24, [x24, _TORSO_GESTURE@GOTPAGEOFF]
	mov	w25, #1148846080
	mov	x27, x20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	bl	_COM_Parse
	cbz	x0, LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_atoi
	str	w0, [x27]
	ldrsw	x8, [x22]
	cmp	x21, w8, uxtw
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	lsl	x9, x8, #5
	ldr	w9, [x20, x9]
	ldr	x10, [x24]
	lsl	x10, x10, #5
	ldr	w10, [x20, x10]
	sub	w23, w9, w10
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	cmp	x21, x8
	b.lt	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	w8, w0, w23
	str	w8, [x27]
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x0, sp, #16
	bl	_COM_Parse
	cbz	x0, LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_atoi
	str	x0, [x27, #24]
	add	x0, sp, #16
	bl	_COM_Parse
	cbz	x0, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_atoi
	str	x0, [x27, #16]
	add	x0, sp, #16
	bl	_COM_Parse
	cbz	x0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_atof
	fmov	s1, w25
	fdiv	s2, s1, s0
	fcmp	s0, #0.0
	fcsel	s0, s1, s2, eq
	fcvtzs	w8, s0
	stp	w8, w8, [x27, #4]
	add	x21, x21, #1
	ldrsw	x8, [x26]
	add	x27, x27, #32
	cmp	x21, x8
	b.lt	LBB0_18
LBB0_27:
	ldr	w8, [x26]
	cmp	w21, w8
	b.ne	LBB0_30
LBB0_28:
Lloh24:
	adrp	x8, _qtrue@GOTPAGE
Lloh25:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_33
LBB0_29:
	mov	w21, #0
	cmp	w21, w8
	b.eq	LBB0_28
LBB0_30:
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_31:
	mov	x1, x19
	bl	_Com_Printf
LBB0_32:
Lloh28:
	adrp	x8, _qfalse@GOTPAGE
Lloh29:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_33:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.34:
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #3648
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ANIMATIONS,4,2             ; @MAX_ANIMATIONS
	.comm	_FS_READ,4,2                    ; @FS_READ
	.comm	_qfalse,4,2                     ; @qfalse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"File %s too long\n"

l_.str.1:                               ; @.str.1
	.asciz	"footsteps"

l_.str.2:                               ; @.str.2
	.asciz	"headoffset"

l_.str.3:                               ; @.str.3
	.asciz	"sex"

l_.str.4:                               ; @.str.4
	.asciz	"unknown token '%s' is %s\n"

	.comm	_LEGS_WALKCR,4,2                ; @LEGS_WALKCR
	.comm	_TORSO_GESTURE,8,3              ; @TORSO_GESTURE
l_.str.5:                               ; @.str.5
	.asciz	"Error parsing animation file: %s"

	.comm	_qtrue,4,2                      ; @qtrue
	.no_dead_strip	_UI_ParseAnimationFile
.subsections_via_symbols
