	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_CalcMuzzlePoint
_CG_CalcMuzzlePoint:                    ## @CG_CalcMuzzlePoint
	.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	%rsi, %r15
	movq	_cg@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	16(%rax), %edi
	movq	%r15, %rsi
	callq	_VectorCopy
	movq	(%rbx), %rax
	movl	8(%rax), %ecx
	addl	%ecx, 8(%r15)
	movl	4(%rax), %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_AngleVectors
	jmp	LBB0_7
LBB0_2:
	movq	_cg_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movslq	%edi, %rbx
	shlq	$4, %rbx
	cmpl	$0, 12(%r14,%rbx)
	je	LBB0_3
## %bb.4:
	movl	8(%r14,%rbx), %edi
	movq	%r15, %rsi
	callq	_VectorCopy
	movl	4(%r14,%rbx), %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_AngleVectors
	movq	_ANIM_TOGGLEBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r14,%rbx), %eax
	movq	_LEGS_WALKCR@GOTPCREL(%rip), %rcx
	movq	_LEGS_IDLECR@GOTPCREL(%rip), %rdi
	movq	_CROUCH_VIEWHEIGHT@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpl	(%rdi), %eax
	je	LBB0_6
## %bb.5:
	movq	_DEFAULT_VIEWHEIGHT@GOTPCREL(%rip), %rsi
LBB0_6:
	cmpl	(%rcx), %eax
	cmoveq	%rdx, %rsi
	movl	(%rsi), %eax
	addl	%eax, 8(%r15)
LBB0_7:
	movq	%r15, %rdi
	movl	$14, %esi
	movq	%r15, %rcx
	callq	_VectorMA
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,8,3                         ## @cg
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_cg_entities,8,3                ## @cg_entities
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_ANIM_TOGGLEBIT,4,2             ## @ANIM_TOGGLEBIT
	.comm	_LEGS_WALKCR,4,2                ## @LEGS_WALKCR
	.comm	_LEGS_IDLECR,4,2                ## @LEGS_IDLECR
	.comm	_CROUCH_VIEWHEIGHT,8,3          ## @CROUCH_VIEWHEIGHT
	.comm	_DEFAULT_VIEWHEIGHT,8,3         ## @DEFAULT_VIEWHEIGHT
	.no_dead_strip	_CG_CalcMuzzlePoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_CalcMuzzlePoint
_CG_CalcMuzzlePoint:                    ; @CG_CalcMuzzlePoint
	.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
	mov	x19, x1
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x20, _cg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cg@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x8, #16]
	mov	x1, x19
	bl	_VectorCopy
	ldr	x8, [x20]
	ldr	w9, [x8, #8]
	ldr	w10, [x19, #8]
	add	w9, w10, w9
	str	w9, [x19, #8]
	ldr	w0, [x8, #4]
	mov	x2, #0
	mov	x3, #0
	bl	_AngleVectors
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _cg_entities@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cg_entities@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x9, x8, w0, sxtw #4
	ldr	w9, [x9, #12]
	cbz	w9, LBB0_5
; %bb.3:
	sxtw	x9, w0
	add	x20, x8, x9, lsl #4
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_VectorCopy
	ldr	w0, [x20, #4]
	mov	x2, #0
	mov	x3, #0
	bl	_AngleVectors
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _ANIM_TOGGLEBIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ANIM_TOGGLEBIT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh8:
	adrp	x9, _LEGS_WALKCR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LEGS_WALKCR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _LEGS_IDLECR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _LEGS_IDLECR@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, w10
Lloh14:
	adrp	x10, _CROUCH_VIEWHEIGHT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CROUCH_VIEWHEIGHT@GOTPAGEOFF]
Lloh16:
	adrp	x11, _DEFAULT_VIEWHEIGHT@GOTPAGE
Lloh17:
	ldr	x11, [x11, _DEFAULT_VIEWHEIGHT@GOTPAGEOFF]
	ccmp	w8, w9, #4, ne
	ldr	w8, [x19, #8]
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	add	w8, w8, w9
	str	w8, [x19, #8]
LBB0_4:
	mov	x0, x19
	mov	w1, #14
	mov	x3, x19
	bl	_VectorMA
Lloh18:
	adrp	x8, _qtrue@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _qfalse@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,8,3                         ; @cg
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_cg_entities,8,3                ; @cg_entities
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_ANIM_TOGGLEBIT,4,2             ; @ANIM_TOGGLEBIT
	.comm	_LEGS_WALKCR,4,2                ; @LEGS_WALKCR
	.comm	_LEGS_IDLECR,4,2                ; @LEGS_IDLECR
	.comm	_CROUCH_VIEWHEIGHT,8,3          ; @CROUCH_VIEWHEIGHT
	.comm	_DEFAULT_VIEWHEIGHT,8,3         ; @DEFAULT_VIEWHEIGHT
	.no_dead_strip	_CG_CalcMuzzlePoint
.subsections_via_symbols
