	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function PM_Footsteps
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
LCPI0_1:
	.long	0x3e99999a                      ## float 0.300000012
LCPI0_2:
	.long	0x3ecccccd                      ## float 0.400000006
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_PM_Footsteps:                          ## @PM_Footsteps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pm@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edi
	imull	%ecx, %ecx
	imull	%edi, %edi
	addl	%ecx, %edi
	callq	_sqrt
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	16(%rcx), %rdx
	movq	8(%rdx), %rsi
	movq	_ENTITYNUM_NONE@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_6
## %bb.1:
	movq	24(%rdx), %rax
	movq	_PW_INVULNERABILITY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_3
## %bb.2:
	movq	_LEGS_IDLECR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PM_ContinueLegsAnim
	movq	(%rbx), %rcx
LBB0_3:
	cmpl	$2, 4(%rcx)
	jl	LBB0_37
## %bb.4:
	movq	_LEGS_SWIM@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PM_ContinueLegsAnim            ## TAILCALL
LBB0_6:
	cmpl	$0, 32(%rcx)
	jne	LBB0_12
## %bb.7:
	cmpl	$0, 28(%rcx)
	je	LBB0_8
LBB0_12:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	20(%rdx), %eax
	movq	_PMF_DUCKED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_17
## %bb.13:
	movq	_PMF_BACKWARDS_RUN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.14:
	movq	_LEGS_BACKCR@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_17:
	movq	_BUTTON_WALKING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_PMF_BACKWARDS_RUN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%esi, 24(%rcx)
	je	LBB0_18
## %bb.22:
	testl	%eax, %edx
	je	LBB0_24
## %bb.23:
	movq	_LEGS_BACKWALK@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_16:
	movq	_LEGS_WALKCR@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edi
	callq	_PM_ContinueLegsAnim
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_26
LBB0_8:
	cmpl	$4, %eax
	jg	LBB0_37
## %bb.9:
	movl	$0, 16(%rdx)
	movq	_PMF_DUCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%rdx)
	je	LBB0_11
## %bb.10:
	movq	_LEGS_IDLECR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_18:
	testl	%eax, %edx
	jne	LBB0_19
## %bb.20:
	movq	_LEGS_RUN@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_24:
	movq	_LEGS_WALK@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %edi
	callq	_PM_ContinueLegsAnim
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_26
LBB0_19:
	movq	_LEGS_BACK@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %edi
	callq	_PM_ContinueLegsAnim
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
LBB0_26:
	movq	(%rbx), %rax
	movq	16(%rax), %rcx
	movl	16(%rcx), %edx
	cvtsi2ss	%edx, %xmm1
	movq	_pml@GOTPCREL(%rip), %rsi
	mulss	(%rsi), %xmm0
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %esi
	movzbl	%sil, %edi
	movl	%edi, 16(%rcx)
	addl	$64, %edx
	addl	$64, %esi
	xorl	%edx, %esi
	testb	$-128, %sil
	je	LBB0_37
## %bb.27:
	movl	4(%rax), %ecx
	cmpl	$2, %ecx
	je	LBB0_36
## %bb.28:
	cmpl	$1, %ecx
	je	LBB0_33
## %bb.29:
	testl	%ecx, %ecx
	jne	LBB0_37
## %bb.30:
	testq	%r14, %r14
	je	LBB0_37
## %bb.31:
	cmpl	$0, 8(%rax)
	je	LBB0_32
LBB0_37:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_36:
	movq	_EV_SWIM@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_33:
	movq	_EV_FOOTSPLASH@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %edi
LBB0_35:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PM_AddEvent                    ## TAILCALL
LBB0_11:
	movq	_LEGS_IDLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_32:
	xorl	%eax, %eax
	callq	_PM_FootstepForSurface
	movl	%eax, %edi
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_pm,8,3                         ## @pm
	.comm	_ENTITYNUM_NONE,8,3             ## @ENTITYNUM_NONE
	.comm	_PW_INVULNERABILITY,8,3         ## @PW_INVULNERABILITY
	.comm	_LEGS_IDLECR,4,2                ## @LEGS_IDLECR
	.comm	_LEGS_SWIM,4,2                  ## @LEGS_SWIM
	.comm	_PMF_DUCKED,4,2                 ## @PMF_DUCKED
	.comm	_LEGS_IDLE,4,2                  ## @LEGS_IDLE
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_PMF_BACKWARDS_RUN,4,2          ## @PMF_BACKWARDS_RUN
	.comm	_LEGS_BACKCR,4,2                ## @LEGS_BACKCR
	.comm	_LEGS_WALKCR,4,2                ## @LEGS_WALKCR
	.comm	_BUTTON_WALKING,4,2             ## @BUTTON_WALKING
	.comm	_LEGS_BACK,4,2                  ## @LEGS_BACK
	.comm	_LEGS_RUN,4,2                   ## @LEGS_RUN
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_LEGS_BACKWALK,4,2              ## @LEGS_BACKWALK
	.comm	_LEGS_WALK,4,2                  ## @LEGS_WALK
	.comm	_pml,4,2                        ## @pml
	.comm	_EV_FOOTSPLASH,4,2              ## @EV_FOOTSPLASH
	.comm	_EV_SWIM,4,2                    ## @EV_SWIM
	.no_dead_strip	_PM_Footsteps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PM_Footsteps
_PM_Footsteps:                          ; @PM_Footsteps
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _pm@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pm@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldp	w9, w8, [x8]
	mul	w9, w9, w9
	madd	w0, w8, w8, w9
	bl	_sqrt
	ldr	x8, [x19]
	str	w0, [x8]
	ldr	x9, [x8, #16]
	ldr	x10, [x9, #8]
Lloh2:
	adrp	x11, _ENTITYNUM_NONE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _ENTITYNUM_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.1:
	ldr	x9, [x9, #24]
Lloh5:
	adrp	x10, _PW_INVULNERABILITY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PW_INVULNERABILITY@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	cbz	x9, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _LEGS_IDLECR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LEGS_IDLECR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_PM_ContinueLegsAnim
	ldr	x8, [x19]
LBB0_3:
	ldr	w8, [x8, #4]
	cmp	w8, #2
	b.lt	LBB0_29
; %bb.4:
Lloh11:
	adrp	x8, _LEGS_SWIM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LEGS_SWIM@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PM_ContinueLegsAnim
LBB0_6:
	ldr	w10, [x8, #32]
	cbnz	w10, LBB0_8
; %bb.7:
	ldr	w10, [x8, #28]
	cbz	w10, LBB0_16
LBB0_8:
Lloh13:
	adrp	x10, _qfalse@GOTPAGE
Lloh14:
	ldr	x10, [x10, _qfalse@GOTPAGEOFF]
Lloh15:
	ldr	x20, [x10]
	ldr	w9, [x9, #20]
Lloh16:
	adrp	x10, _PMF_DUCKED@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PMF_DUCKED@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.9:
Lloh19:
	adrp	x8, _PMF_BACKWARDS_RUN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PMF_BACKWARDS_RUN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_14
; %bb.10:
Lloh22:
	adrp	x8, _LEGS_BACKCR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LEGS_BACKCR@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	ldr	w10, [x8, #24]
Lloh24:
	adrp	x8, _BUTTON_WALKING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BUTTON_WALKING@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x8]
Lloh27:
	adrp	x8, _PMF_BACKWARDS_RUN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PMF_BACKWARDS_RUN@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	and	w8, w8, w9
	tst	w11, w10
	b.eq	LBB0_19
; %bb.12:
	cbz	w8, LBB0_20
; %bb.13:
Lloh30:
	adrp	x8, _LEGS_BACKWALK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LEGS_BACKWALK@GOTPAGEOFF]
	b	LBB0_21
LBB0_14:
Lloh32:
	adrp	x8, _LEGS_WALKCR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LEGS_WALKCR@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	bl	_PM_ContinueLegsAnim
	fmov	s0, #0.50000000
	b	LBB0_23
LBB0_16:
	cmp	w0, #4
	b.gt	LBB0_29
; %bb.17:
	str	wzr, [x9, #16]
	ldr	w8, [x9, #20]
Lloh34:
	adrp	x9, _PMF_DUCKED@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PMF_DUCKED@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.18:
Lloh37:
	adrp	x8, _LEGS_IDLECR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LEGS_IDLECR@GOTPAGEOFF]
	b	LBB0_5
LBB0_19:
Lloh39:
	adrp	x9, _LEGS_RUN@GOTPAGE
Lloh40:
	ldr	x9, [x9, _LEGS_RUN@GOTPAGEOFF]
Lloh41:
	adrp	x10, _LEGS_BACK@GOTPAGE
Lloh42:
	ldr	x10, [x10, _LEGS_BACK@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	bl	_PM_ContinueLegsAnim
Lloh43:
	adrp	x8, _qtrue@GOTPAGE
Lloh44:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh45:
	ldr	x20, [x8]
	mov	w8, #52429
	movk	w8, #16076, lsl #16
	b	LBB0_22
LBB0_20:
Lloh46:
	adrp	x8, _LEGS_WALK@GOTPAGE
Lloh47:
	ldr	x8, [x8, _LEGS_WALK@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	bl	_PM_ContinueLegsAnim
	mov	w8, #39322
	movk	w8, #16025, lsl #16
LBB0_22:
	fmov	s0, w8
LBB0_23:
	ldr	x8, [x19]
	ldr	x9, [x8, #16]
	ldr	w10, [x9, #16]
	scvtf	s1, w10
Lloh48:
	adrp	x11, _pml@GOTPAGE
Lloh49:
	ldr	x11, [x11, _pml@GOTPAGEOFF]
Lloh50:
	ldr	s2, [x11]
	fmadd	s0, s0, s2, s1
	fcvtzs	w11, s0
	and	w12, w11, #0xff
	str	w12, [x9, #16]
	add	w9, w10, #64
	add	w10, w11, #64
	eor	w9, w10, w9
	tbz	w9, #7, LBB0_29
; %bb.24:
	ldr	w9, [x8, #4]
	cmp	w9, #2
	b.eq	LBB0_30
; %bb.25:
	cmp	w9, #1
	b.eq	LBB0_31
; %bb.26:
	cbnz	w9, LBB0_29
; %bb.27:
	cbz	x20, LBB0_29
; %bb.28:
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_35
LBB0_29:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_30:
Lloh51:
	adrp	x8, _EV_SWIM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EV_SWIM@GOTPAGEOFF]
	b	LBB0_32
LBB0_31:
Lloh53:
	adrp	x8, _EV_FOOTSPLASH@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EV_FOOTSPLASH@GOTPAGEOFF]
LBB0_32:
	ldr	w0, [x8]
LBB0_33:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PM_AddEvent
LBB0_34:
Lloh55:
	adrp	x8, _LEGS_IDLE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _LEGS_IDLE@GOTPAGEOFF]
	b	LBB0_5
LBB0_35:
	bl	_PM_FootstepForSurface
	b	LBB0_33
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_pm,8,3                         ; @pm
	.comm	_ENTITYNUM_NONE,8,3             ; @ENTITYNUM_NONE
	.comm	_PW_INVULNERABILITY,8,3         ; @PW_INVULNERABILITY
	.comm	_LEGS_IDLECR,4,2                ; @LEGS_IDLECR
	.comm	_LEGS_SWIM,4,2                  ; @LEGS_SWIM
	.comm	_PMF_DUCKED,4,2                 ; @PMF_DUCKED
	.comm	_LEGS_IDLE,4,2                  ; @LEGS_IDLE
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_PMF_BACKWARDS_RUN,4,2          ; @PMF_BACKWARDS_RUN
	.comm	_LEGS_BACKCR,4,2                ; @LEGS_BACKCR
	.comm	_LEGS_WALKCR,4,2                ; @LEGS_WALKCR
	.comm	_BUTTON_WALKING,4,2             ; @BUTTON_WALKING
	.comm	_LEGS_BACK,4,2                  ; @LEGS_BACK
	.comm	_LEGS_RUN,4,2                   ; @LEGS_RUN
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_LEGS_BACKWALK,4,2              ; @LEGS_BACKWALK
	.comm	_LEGS_WALK,4,2                  ; @LEGS_WALK
	.comm	_pml,4,2                        ; @pml
	.comm	_EV_FOOTSPLASH,4,2              ; @EV_FOOTSPLASH
	.comm	_EV_SWIM,4,2                    ; @EV_SWIM
	.no_dead_strip	_PM_Footsteps
.subsections_via_symbols
