	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PM_UpdateViewAngles            ## -- Begin function PM_UpdateViewAngles
	.p2align	4, 0x90
_PM_UpdateViewAngles:                   ## @PM_UpdateViewAngles
	.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	(%rdi), %rax
	movq	_PM_INTERMISSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.1:
	movq	_PM_SPINTERMISSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_PM_SPECTATOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movq	_STAT_HEALTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_17
LBB0_4:
	movq	(%r14), %rax
	movzwl	(%rax), %ecx
	movq	16(%rbx), %rax
	movzwl	(%rax), %edx
	addw	%cx, %dx
	movq	_PITCH@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_8
## %bb.5:
	movswl	%dx, %edi
	movw	$16000, %si                     ## imm = 0x3E80
	cmpl	$16000, %edi                    ## imm = 0x3E80
	jg	LBB0_7
## %bb.6:
	movw	$-16000, %si                    ## imm = 0xC180
	cmpl	$-16001, %edi                   ## imm = 0xC17F
	jg	LBB0_8
LBB0_7:
	movswl	%si, %edx
	subl	%ecx, %edx
	movw	%dx, (%rax)
	movl	%esi, %edx
LBB0_8:
	movswl	%dx, %edi
	callq	_SHORT2ANGLE
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rax
	movzwl	2(%rax), %ecx
	movq	16(%rbx), %rax
	movzwl	2(%rax), %edx
	addw	%cx, %dx
	cmpl	$1, (%r15)
	jne	LBB0_12
## %bb.9:
	movswl	%dx, %edi
	movw	$16000, %si                     ## imm = 0x3E80
	cmpl	$16000, %edi                    ## imm = 0x3E80
	jg	LBB0_11
## %bb.10:
	movw	$-16000, %si                    ## imm = 0xC180
	cmpl	$-16001, %edi                   ## imm = 0xC17F
	jg	LBB0_12
LBB0_11:
	movswl	%si, %edx
	subl	%ecx, %edx
	movw	%dx, 2(%rax)
	movl	%esi, %edx
LBB0_12:
	movswl	%dx, %edi
	callq	_SHORT2ANGLE
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r14), %rax
	movzwl	4(%rax), %ecx
	movq	16(%rbx), %rax
	movzwl	4(%rax), %edx
	addw	%cx, %dx
	cmpl	$2, (%r15)
	jne	LBB0_16
## %bb.13:
	movswl	%dx, %edi
	movw	$16000, %si                     ## imm = 0x3E80
	cmpl	$16000, %edi                    ## imm = 0x3E80
	jg	LBB0_15
## %bb.14:
	movw	$-16000, %si                    ## imm = 0xC180
	cmpl	$-16001, %edi                   ## imm = 0xC17F
	jg	LBB0_16
LBB0_15:
	movswl	%si, %edx
	subl	%ecx, %edx
	movw	%dx, 4(%rax)
	movl	%esi, %edx
LBB0_16:
	movswl	%dx, %edi
	callq	_SHORT2ANGLE
	movq	24(%rbx), %rcx
	movl	%eax, 8(%rcx)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_INTERMISSION,8,3            ## @PM_INTERMISSION
	.comm	_PM_SPINTERMISSION,8,3          ## @PM_SPINTERMISSION
	.comm	_PM_SPECTATOR,8,3               ## @PM_SPECTATOR
	.comm	_STAT_HEALTH,8,3                ## @STAT_HEALTH
	.comm	_PITCH,4,2                      ## @PITCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PM_UpdateViewAngles            ; -- Begin function PM_UpdateViewAngles
	.p2align	2
_PM_UpdateViewAngles:                   ; @PM_UpdateViewAngles
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PM_INTERMISSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PM_INTERMISSION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PM_SPINTERMISSION@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PM_SPINTERMISSION@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_19
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh6:
	adrp	x9, _PM_SPECTATOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PM_SPECTATOR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _STAT_HEALTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STAT_HEALTH@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, #1
	b.lt	LBB0_19
LBB0_3:
	ldr	x8, [x20]
	ldrh	w8, [x8]
	ldr	x9, [x19, #16]
	ldrh	w10, [x9]
	add	w10, w10, w8
	sxth	w10, w10
Lloh12:
	adrp	x21, _PITCH@GOTPAGE
Lloh13:
	ldr	x21, [x21, _PITCH@GOTPAGEOFF]
	ldr	w11, [x21]
	cbnz	w11, LBB0_8
; %bb.4:
	mov	w11, #16000
	cmp	w10, w11
	b.gt	LBB0_7
; %bb.5:
	mov	w11, #-16001
	cmp	w10, w11
	b.gt	LBB0_8
; %bb.6:
	mov	w11, #49536
LBB0_7:
	sub	w8, w11, w8
	strh	w8, [x9]
	mov	x10, x11
LBB0_8:
	sxth	w0, w10
	bl	_SHORT2ANGLE
	ldp	x8, x9, [x19, #16]
	str	w0, [x9]
	ldr	x9, [x20]
	ldrh	w9, [x9, #2]
	ldrh	w10, [x8, #2]
	add	w10, w10, w9
	sxth	w10, w10
	ldr	w11, [x21]
	cmp	w11, #1
	b.ne	LBB0_13
; %bb.9:
	mov	w11, #16000
	cmp	w10, w11
	b.gt	LBB0_12
; %bb.10:
	mov	w11, #-16001
	cmp	w10, w11
	b.gt	LBB0_13
; %bb.11:
	mov	w11, #49536
LBB0_12:
	sub	w9, w11, w9
	strh	w9, [x8, #2]
	mov	x10, x11
LBB0_13:
	sxth	w0, w10
	bl	_SHORT2ANGLE
	ldp	x8, x9, [x19, #16]
	str	w0, [x9, #4]
	ldr	x9, [x20]
	ldrh	w9, [x9, #4]
	ldrh	w10, [x8, #4]
	add	w10, w10, w9
	sxth	w10, w10
	ldr	w11, [x21]
	cmp	w11, #2
	b.ne	LBB0_18
; %bb.14:
	mov	w11, #16000
	cmp	w10, w11
	b.gt	LBB0_17
; %bb.15:
	mov	w11, #-16001
	cmp	w10, w11
	b.gt	LBB0_18
; %bb.16:
	mov	w11, #49536
LBB0_17:
	sub	w9, w11, w9
	strh	w9, [x8, #4]
	mov	x10, x11
LBB0_18:
	sxth	w0, w10
	bl	_SHORT2ANGLE
	ldr	x8, [x19, #24]
	str	w0, [x8, #8]
LBB0_19:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_INTERMISSION,8,3            ; @PM_INTERMISSION
	.comm	_PM_SPINTERMISSION,8,3          ; @PM_SPINTERMISSION
	.comm	_PM_SPECTATOR,8,3               ; @PM_SPECTATOR
	.comm	_STAT_HEALTH,8,3                ; @STAT_HEALTH
	.comm	_PITCH,4,2                      ; @PITCH
.subsections_via_symbols
