	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ST_updateFaceWidget            ## -- Begin function ST_updateFaceWidget
	.p2align	4, 0x90
_ST_updateFaceWidget:                   ## @ST_updateFaceWidget
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_plyr@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_1
## %bb.3:
	movl	_ST_updateFaceWidget.priority(%rip), %r9d
	cmpl	$8, %r9d
	jg	LBB0_51
## %bb.4:
	cmpq	$0, 64(%rdx)
	je	LBB0_19
## %bb.5:
	movq	_NUMWEAPONS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_19
## %bb.6:
	movq	_oldweaponsowned@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rdx), %rsi
	cmpl	$1, %r8d
	jne	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	xorl	%ebx, %ebx
LBB0_14:
	testb	$1, %r8b
	je	LBB0_17
## %bb.15:
	movq	(%rsi,%rdi,8), %rax
	cmpq	%rax, (%rcx,%rdi,8)
	je	LBB0_17
## %bb.16:
	movq	%rax, (%rcx,%rdi,8)
	movl	$1, %ebx
LBB0_17:
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.18:
	movl	$8, _ST_updateFaceWidget.priority(%rip)
	movq	_ST_EVILGRINCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_st_facecount@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_ST_calcPainOffset
	movq	_ST_EVILGRINOFFSET@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_st_faceindex@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	_ST_updateFaceWidget.priority(%rip), %r9d
LBB0_19:
	cmpl	$7, %r9d
	jg	LBB0_51
## %bb.20:
	movq	(%r14), %rcx
	cmpq	$0, 40(%rcx)
	je	LBB0_34
## %bb.21:
	movq	56(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.22:
	movq	48(%rcx), %rdx
	cmpq	%rdx, %rax
	je	LBB0_34
## %bb.23:
	movl	$7, _ST_updateFaceWidget.priority(%rip)
	movq	(%rcx), %rcx
	movq	_st_oldhealth@GOTPCREL(%rip), %rsi
	subq	(%rsi), %rcx
	movq	_ST_MUCHPAIN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jle	LBB0_25
## %bb.24:
	movq	_ST_TURNCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_st_facecount@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_ST_calcPainOffset
	movq	_ST_OUCHOFFSET@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	jmp	LBB0_33
LBB0_1:
	movl	$9, _ST_updateFaceWidget.priority(%rip)
	movq	_ST_DEADFACE@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
	movq	_st_faceindex@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_53
LBB0_8:
	movl	%r8d, %edx
	andl	$-2, %edx
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$2, %rdi
	cmpq	%rdi, %rdx
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rax
	cmpq	%rax, (%rcx,%rdi,8)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, (%rcx,%rdi,8)
	movl	$1, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rsi,%rdi,8), %rax
	cmpq	%rax, 8(%rcx,%rdi,8)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, 8(%rcx,%rdi,8)
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_25:
	movl	8(%rdx), %esi
	movl	12(%rdx), %edi
	movl	8(%rax), %ecx
	movl	12(%rax), %edx
	callq	_R_PointToAngle2
	movq	(%r14), %rcx
	movq	48(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rbx
	subq	%rcx, %rbx
	jle	LBB0_27
## %bb.26:
	movq	_ANG180@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	setg	%r15b
	jmp	LBB0_28
LBB0_27:
	subq	%rax, %rcx
	movq	_ANG180@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	setle	%r15b
	movq	%rcx, %rbx
LBB0_28:
	movq	_ST_TURNCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_st_facecount@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_ST_calcPainOffset
	movq	_ANG45@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jge	LBB0_30
## %bb.29:
	movq	_ST_RAMPAGEOFFSET@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	jmp	LBB0_33
LBB0_30:
	movq	_ST_TURNOFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testb	%r15b, %r15b
	je	LBB0_32
## %bb.31:
	addq	%rcx, %rax
	jmp	LBB0_33
LBB0_32:
	addq	%rcx, %rax
	incq	%rax
LBB0_33:
	movq	_st_faceindex@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_34:
	cmpl	$6, _ST_updateFaceWidget.priority(%rip)
	jg	LBB0_51
## %bb.35:
	movq	(%r14), %rax
	cmpq	$0, 40(%rax)
	je	LBB0_40
## %bb.36:
	movq	(%rax), %rcx
	movq	_st_oldhealth@GOTPCREL(%rip), %rax
	subq	(%rax), %rcx
	movq	_ST_MUCHPAIN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	setg	%al
	jle	LBB0_37
## %bb.38:
	movq	_ST_OUCHOFFSET@GOTPCREL(%rip), %rbx
	jmp	LBB0_39
LBB0_37:
	movq	_ST_RAMPAGEOFFSET@GOTPCREL(%rip), %rbx
LBB0_39:
	orl	$6, %eax
	movl	%eax, _ST_updateFaceWidget.priority(%rip)
	movq	_ST_TURNCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_st_facecount@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_ST_calcPainOffset
	addq	(%rbx), %rax
	movq	_st_faceindex@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_40:
	movl	_ST_updateFaceWidget.priority(%rip), %eax
	cmpl	$5, %eax
	jg	LBB0_51
## %bb.41:
	movq	(%r14), %rcx
	cmpq	$0, 32(%rcx)
	je	LBB0_46
## %bb.42:
	movl	_ST_updateFaceWidget.lastattackdown(%rip), %ecx
	cmpl	$-1, %ecx
	je	LBB0_43
## %bb.44:
	decl	%ecx
	movl	%ecx, _ST_updateFaceWidget.lastattackdown(%rip)
	jne	LBB0_47
## %bb.45:
	movl	$5, _ST_updateFaceWidget.priority(%rip)
	xorl	%eax, %eax
	callq	_ST_calcPainOffset
	movq	_ST_RAMPAGEOFFSET@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_st_faceindex@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_st_facecount@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, _ST_updateFaceWidget.lastattackdown(%rip)
	movl	_ST_updateFaceWidget.priority(%rip), %eax
	jmp	LBB0_47
LBB0_46:
	movl	$-1, _ST_updateFaceWidget.lastattackdown(%rip)
	jmp	LBB0_47
LBB0_43:
	movq	_ST_RAMPAGEDELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, _ST_updateFaceWidget.lastattackdown(%rip)
LBB0_47:
	cmpl	$4, %eax
	jg	LBB0_51
## %bb.48:
	movq	(%r14), %rax
	movq	_CF_GODMODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	jne	LBB0_50
## %bb.49:
	movq	24(%rax), %rax
	movq	_pw_invulnerability@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_51
LBB0_50:
	movl	$4, _ST_updateFaceWidget.priority(%rip)
	movq	_ST_GODFACE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_51:
	movq	_st_facecount@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_53
## %bb.52:
	xorl	%eax, %eax
	callq	_ST_calcPainOffset
	movq	_st_randomnumber@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1431655766, %rcx, %rdx         ## imm = 0x55555556
	movq	%rdx, %rsi
	shrq	$63, %rsi
	shrq	$32, %rdx
	addl	%esi, %edx
	leal	(%rdx,%rdx,2), %edx
	subl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	%rax, %rcx
	movq	_st_faceindex@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movq	_ST_STRAIGHTFACECOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, _ST_updateFaceWidget.priority(%rip)
LBB0_53:
	decl	%eax
	movq	_st_facecount@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @ST_updateFaceWidget.lastattackdown
_ST_updateFaceWidget.lastattackdown:
	.long	4294967295                      ## 0xffffffff

.zerofill __DATA,__bss,_ST_updateFaceWidget.priority,4,2 ## @ST_updateFaceWidget.priority
	.comm	_plyr,8,3                       ## @plyr
	.comm	_ST_DEADFACE,8,3                ## @ST_DEADFACE
	.comm	_st_faceindex,8,3               ## @st_faceindex
	.comm	_st_facecount,4,2               ## @st_facecount
	.comm	_NUMWEAPONS,4,2                 ## @NUMWEAPONS
	.comm	_oldweaponsowned,8,3            ## @oldweaponsowned
	.comm	_ST_EVILGRINCOUNT,4,2           ## @ST_EVILGRINCOUNT
	.comm	_ST_EVILGRINOFFSET,8,3          ## @ST_EVILGRINOFFSET
	.comm	_st_oldhealth,8,3               ## @st_oldhealth
	.comm	_ST_MUCHPAIN,8,3                ## @ST_MUCHPAIN
	.comm	_ST_TURNCOUNT,4,2               ## @ST_TURNCOUNT
	.comm	_ST_OUCHOFFSET,8,3              ## @ST_OUCHOFFSET
	.comm	_ANG180,8,3                     ## @ANG180
	.comm	_ANG45,8,3                      ## @ANG45
	.comm	_ST_RAMPAGEOFFSET,8,3           ## @ST_RAMPAGEOFFSET
	.comm	_ST_TURNOFFSET,8,3              ## @ST_TURNOFFSET
	.comm	_ST_RAMPAGEDELAY,4,2            ## @ST_RAMPAGEDELAY
	.comm	_CF_GODMODE,4,2                 ## @CF_GODMODE
	.comm	_pw_invulnerability,8,3         ## @pw_invulnerability
	.comm	_ST_GODFACE,8,3                 ## @ST_GODFACE
	.comm	_st_randomnumber,4,2            ## @st_randomnumber
	.comm	_ST_STRAIGHTFACECOUNT,4,2       ## @ST_STRAIGHTFACECOUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ST_updateFaceWidget            ; -- Begin function ST_updateFaceWidget
	.p2align	2
_ST_updateFaceWidget:                   ; @ST_updateFaceWidget
	.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
Lloh0:
	adrp	x21, _plyr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _plyr@GOTPAGEOFF]
	ldr	x12, [x21]
	ldr	x8, [x12]
Lloh2:
	adrp	x19, _st_facecount@GOTPAGE
Lloh3:
	ldr	x19, [x19, _st_facecount@GOTPAGEOFF]
	adrp	x20, _ST_updateFaceWidget.priority@PAGE
	cbz	x8, LBB0_8
; %bb.1:
	ldr	w8, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
	cmp	w8, #8
	b.gt	LBB0_42
; %bb.2:
	ldr	x9, [x12, #64]
	cbz	x9, LBB0_12
; %bb.3:
Lloh4:
	adrp	x9, _NUMWEAPONS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NUMWEAPONS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.4:
	mov	w10, #0
Lloh7:
	adrp	x11, _oldweaponsowned@GOTPAGE
Lloh8:
	ldr	x11, [x11, _oldweaponsowned@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	ldr	x12, [x12, #8]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x12, x12, #8
	add	x11, x11, #8
	subs	x9, x9, #1
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11]
	ldr	x13, [x12]
	cmp	x14, x13
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x13, [x11]
	mov	w10, #1
	b	LBB0_5
LBB0_8:
	mov	w8, #9
Lloh10:
	adrp	x9, _ST_DEADFACE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ST_DEADFACE@GOTPAGEOFF]
LBB0_9:
	str	w8, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
	ldr	x8, [x9]
Lloh12:
	adrp	x9, _st_faceindex@GOTPAGE
Lloh13:
	ldr	x9, [x9, _st_faceindex@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
	mov	w8, #1
	b	LBB0_44
LBB0_10:
	cbz	w10, LBB0_12
; %bb.11:
	mov	w8, #8
	str	w8, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
Lloh15:
	adrp	x8, _ST_EVILGRINCOUNT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ST_EVILGRINCOUNT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19]
	bl	_ST_calcPainOffset
Lloh18:
	adrp	x8, _ST_EVILGRINOFFSET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ST_EVILGRINOFFSET@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x8, x8, x0
Lloh21:
	adrp	x9, _st_faceindex@GOTPAGE
Lloh22:
	ldr	x9, [x9, _st_faceindex@GOTPAGEOFF]
Lloh23:
	str	x8, [x9]
	ldr	w8, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
LBB0_12:
	cmp	w8, #7
	b.gt	LBB0_42
; %bb.13:
	ldr	x10, [x21]
	ldr	x8, [x10, #40]
	cbz	x8, LBB0_26
; %bb.14:
	ldr	x8, [x10, #56]
	cbz	x8, LBB0_26
; %bb.15:
	ldr	x9, [x10, #48]
	cmp	x8, x9
	b.eq	LBB0_26
; %bb.16:
	mov	w11, #7
	str	w11, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
	ldr	x10, [x10]
Lloh24:
	adrp	x11, _st_oldhealth@GOTPAGE
Lloh25:
	ldr	x11, [x11, _st_oldhealth@GOTPAGEOFF]
Lloh26:
	ldr	x11, [x11]
Lloh27:
	adrp	x12, _ST_MUCHPAIN@GOTPAGE
Lloh28:
	ldr	x12, [x12, _ST_MUCHPAIN@GOTPAGEOFF]
Lloh29:
	ldr	x12, [x12]
	sub	x10, x10, x11
	cmp	x10, x12
	b.le	LBB0_18
; %bb.17:
Lloh30:
	adrp	x8, _ST_TURNCOUNT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ST_TURNCOUNT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19]
	bl	_ST_calcPainOffset
Lloh33:
	adrp	x8, _ST_OUCHOFFSET@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ST_OUCHOFFSET@GOTPAGEOFF]
	b	LBB0_23
LBB0_18:
	ldp	w1, w0, [x9, #8]
	ldp	w3, w2, [x8, #8]
	bl	_R_PointToAngle2
	ldr	x8, [x21]
	ldr	x8, [x8, #48]
	ldr	x8, [x8]
	subs	x22, x0, x8
	b.le	LBB0_20
; %bb.19:
Lloh35:
	adrp	x8, _ANG180@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ANG180@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x22, x8
	cset	w23, gt
	b	LBB0_21
LBB0_20:
Lloh38:
	adrp	x9, _ANG180@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ANG180@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	sub	x22, x8, x0
	cmp	x22, x9
	cset	w23, le
LBB0_21:
Lloh41:
	adrp	x8, _ST_TURNCOUNT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ST_TURNCOUNT@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	str	w8, [x19]
	bl	_ST_calcPainOffset
Lloh44:
	adrp	x8, _ANG45@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ANG45@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ge	LBB0_35
; %bb.22:
Lloh47:
	adrp	x8, _ST_RAMPAGEOFFSET@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ST_RAMPAGEOFFSET@GOTPAGEOFF]
LBB0_23:
	ldr	x8, [x8]
LBB0_24:
	add	x8, x8, x0
LBB0_25:
Lloh49:
	adrp	x9, _st_faceindex@GOTPAGE
Lloh50:
	ldr	x9, [x9, _st_faceindex@GOTPAGEOFF]
Lloh51:
	str	x8, [x9]
LBB0_26:
	ldr	w8, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
	cmp	w8, #6
	b.gt	LBB0_42
; %bb.27:
	ldr	x8, [x21]
	ldr	x9, [x8, #40]
	cbz	x9, LBB0_29
; %bb.28:
	ldr	x8, [x8]
Lloh52:
	adrp	x9, _st_oldhealth@GOTPAGE
Lloh53:
	ldr	x9, [x9, _st_oldhealth@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
Lloh55:
	adrp	x10, _ST_MUCHPAIN@GOTPAGE
Lloh56:
	ldr	x10, [x10, _ST_MUCHPAIN@GOTPAGEOFF]
Lloh57:
	ldr	x10, [x10]
	sub	x8, x8, x9
	cmp	x8, x10
	mov	w8, #6
	cinc	w8, w8, gt
	str	w8, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
Lloh58:
	adrp	x8, _ST_TURNCOUNT@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ST_TURNCOUNT@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh61:
	adrp	x8, _ST_OUCHOFFSET@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ST_OUCHOFFSET@GOTPAGEOFF]
Lloh63:
	adrp	x9, _ST_RAMPAGEOFFSET@GOTPAGE
Lloh64:
	ldr	x9, [x9, _ST_RAMPAGEOFFSET@GOTPAGEOFF]
	csel	x22, x8, x9, gt
	bl	_ST_calcPainOffset
	ldr	x8, [x22]
	add	x8, x8, x0
Lloh65:
	adrp	x9, _st_faceindex@GOTPAGE
Lloh66:
	ldr	x9, [x9, _st_faceindex@GOTPAGEOFF]
Lloh67:
	str	x8, [x9]
LBB0_29:
	ldr	w8, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
	cmp	w8, #5
	b.gt	LBB0_42
; %bb.30:
	ldr	x9, [x21]
	ldr	x9, [x9, #32]
	cbz	x9, LBB0_34
; %bb.31:
	adrp	x22, _ST_updateFaceWidget.lastattackdown@PAGE
	ldr	w9, [x22, _ST_updateFaceWidget.lastattackdown@PAGEOFF]
	cmn	w9, #1
	b.eq	LBB0_37
; %bb.32:
	subs	w9, w9, #1
	str	w9, [x22, _ST_updateFaceWidget.lastattackdown@PAGEOFF]
	b.ne	LBB0_38
; %bb.33:
	mov	w8, #5
	str	w8, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
	bl	_ST_calcPainOffset
Lloh68:
	adrp	x8, _ST_RAMPAGEOFFSET@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ST_RAMPAGEOFFSET@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
Lloh71:
	adrp	x9, _st_faceindex@GOTPAGE
Lloh72:
	ldr	x9, [x9, _st_faceindex@GOTPAGEOFF]
	add	x8, x8, x0
Lloh73:
	str	x8, [x9]
	mov	w8, #1
	str	w8, [x19]
	str	w8, [x22, _ST_updateFaceWidget.lastattackdown@PAGEOFF]
	ldr	w8, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
	b	LBB0_38
LBB0_34:
	mov	w9, #-1
	adrp	x10, _ST_updateFaceWidget.lastattackdown@PAGE
	str	w9, [x10, _ST_updateFaceWidget.lastattackdown@PAGEOFF]
	b	LBB0_38
LBB0_35:
Lloh74:
	adrp	x8, _ST_TURNOFFSET@GOTPAGE
Lloh75:
	ldr	x8, [x8, _ST_TURNOFFSET@GOTPAGEOFF]
Lloh76:
	ldr	x8, [x8]
	cbnz	w23, LBB0_24
; %bb.36:
	add	x8, x0, x8
	add	x8, x8, #1
	b	LBB0_25
LBB0_37:
Lloh77:
	adrp	x9, _ST_RAMPAGEDELAY@GOTPAGE
Lloh78:
	ldr	x9, [x9, _ST_RAMPAGEDELAY@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	str	w9, [x22, _ST_updateFaceWidget.lastattackdown@PAGEOFF]
LBB0_38:
	cmp	w8, #4
	b.gt	LBB0_42
; %bb.39:
	ldr	x8, [x21]
	ldr	w9, [x8, #16]
Lloh80:
	adrp	x10, _CF_GODMODE@GOTPAGE
Lloh81:
	ldr	x10, [x10, _CF_GODMODE@GOTPAGEOFF]
Lloh82:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_41
; %bb.40:
	ldr	x8, [x8, #24]
Lloh83:
	adrp	x9, _pw_invulnerability@GOTPAGE
Lloh84:
	ldr	x9, [x9, _pw_invulnerability@GOTPAGEOFF]
Lloh85:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_42
LBB0_41:
	mov	w8, #4
Lloh86:
	adrp	x9, _ST_GODFACE@GOTPAGE
Lloh87:
	ldr	x9, [x9, _ST_GODFACE@GOTPAGEOFF]
	b	LBB0_9
LBB0_42:
	ldr	w8, [x19]
	cbnz	w8, LBB0_44
; %bb.43:
	bl	_ST_calcPainOffset
Lloh88:
	adrp	x8, _st_randomnumber@GOTPAGE
Lloh89:
	ldr	x8, [x8, _st_randomnumber@GOTPAGEOFF]
Lloh90:
	ldrsw	x8, [x8]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	add	w9, w9, w9, lsl #1
	sub	w8, w8, w9
Lloh91:
	adrp	x9, _st_faceindex@GOTPAGE
Lloh92:
	ldr	x9, [x9, _st_faceindex@GOTPAGEOFF]
	add	x8, x0, w8, sxtw
Lloh93:
	str	x8, [x9]
Lloh94:
	adrp	x8, _ST_STRAIGHTFACECOUNT@GOTPAGE
Lloh95:
	ldr	x8, [x8, _ST_STRAIGHTFACECOUNT@GOTPAGEOFF]
Lloh96:
	ldr	w8, [x8]
	str	wzr, [x20, _ST_updateFaceWidget.priority@PAGEOFF]
LBB0_44:
	sub	w8, w8, #1
	str	w8, [x19]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotStr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotStr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotStr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @ST_updateFaceWidget.lastattackdown
_ST_updateFaceWidget.lastattackdown:
	.long	4294967295                      ; 0xffffffff

.zerofill __DATA,__bss,_ST_updateFaceWidget.priority,4,2 ; @ST_updateFaceWidget.priority
	.comm	_plyr,8,3                       ; @plyr
	.comm	_ST_DEADFACE,8,3                ; @ST_DEADFACE
	.comm	_st_faceindex,8,3               ; @st_faceindex
	.comm	_st_facecount,4,2               ; @st_facecount
	.comm	_NUMWEAPONS,4,2                 ; @NUMWEAPONS
	.comm	_oldweaponsowned,8,3            ; @oldweaponsowned
	.comm	_ST_EVILGRINCOUNT,4,2           ; @ST_EVILGRINCOUNT
	.comm	_ST_EVILGRINOFFSET,8,3          ; @ST_EVILGRINOFFSET
	.comm	_st_oldhealth,8,3               ; @st_oldhealth
	.comm	_ST_MUCHPAIN,8,3                ; @ST_MUCHPAIN
	.comm	_ST_TURNCOUNT,4,2               ; @ST_TURNCOUNT
	.comm	_ST_OUCHOFFSET,8,3              ; @ST_OUCHOFFSET
	.comm	_ANG180,8,3                     ; @ANG180
	.comm	_ANG45,8,3                      ; @ANG45
	.comm	_ST_RAMPAGEOFFSET,8,3           ; @ST_RAMPAGEOFFSET
	.comm	_ST_TURNOFFSET,8,3              ; @ST_TURNOFFSET
	.comm	_ST_RAMPAGEDELAY,4,2            ; @ST_RAMPAGEDELAY
	.comm	_CF_GODMODE,4,2                 ; @CF_GODMODE
	.comm	_pw_invulnerability,8,3         ; @pw_invulnerability
	.comm	_ST_GODFACE,8,3                 ; @ST_GODFACE
	.comm	_st_randomnumber,4,2            ; @st_randomnumber
	.comm	_ST_STRAIGHTFACECOUNT,4,2       ; @ST_STRAIGHTFACECOUNT
.subsections_via_symbols
