	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PM_FinishWeaponChange
_PM_FinishWeaponChange:                 ## @PM_FinishWeaponChange
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_pm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %ecx
	movq	_WP_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_WP_NUM_WEAPONS@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	movl	%edx, %esi
	cmovll	%ecx, %esi
	cmpl	%edx, %ecx
	cmovll	%edx, %esi
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_STAT_WEAPONS@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	(%rcx,%rdi,4), %ecx
	btl	%esi, %ecx
	cmovael	%edx, %esi
	movl	%esi, 8(%rax)
	movq	_WEAPON_RAISING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	addl	$250, 12(%rax)
	movq	_TORSO_RAISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_PM_StartTorsoAnim              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pm,8,3                         ## @pm
	.comm	_WP_NONE,4,2                    ## @WP_NONE
	.comm	_WP_NUM_WEAPONS,4,2             ## @WP_NUM_WEAPONS
	.comm	_STAT_WEAPONS,8,3               ## @STAT_WEAPONS
	.comm	_WEAPON_RAISING,4,2             ## @WEAPON_RAISING
	.comm	_TORSO_RAISE,4,2                ## @TORSO_RAISE
	.no_dead_strip	_PM_FinishWeaponChange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PM_FinishWeaponChange
_PM_FinishWeaponChange:                 ; @PM_FinishWeaponChange
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _pm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pm@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _WP_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WP_NONE@GOTPAGEOFF]
	ldr	w10, [x8, #8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x11, _WP_NUM_WEAPONS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _WP_NUM_WEAPONS@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w10, w11
	ccmp	w10, w9, #8, lt
	csel	w10, w10, w9, ge
	ldr	x8, [x8]
	ldr	x11, [x8]
Lloh9:
	adrp	x12, _STAT_WEAPONS@GOTPAGE
Lloh10:
	ldr	x12, [x12, _STAT_WEAPONS@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	ldr	w11, [x11, x12, lsl #2]
	lsr	w11, w11, w10
	tst	w11, #0x1
	csel	w9, w9, w10, eq
Lloh12:
	adrp	x10, _WEAPON_RAISING@GOTPAGE
Lloh13:
	ldr	x10, [x10, _WEAPON_RAISING@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x10]
	ldr	w10, [x8, #12]
	add	w10, w10, #250
	str	w9, [x8, #8]
	stp	w10, w11, [x8, #12]
Lloh15:
	adrp	x8, _TORSO_RAISE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TORSO_RAISE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	_PM_StartTorsoAnim
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pm,8,3                         ; @pm
	.comm	_WP_NONE,4,2                    ; @WP_NONE
	.comm	_WP_NUM_WEAPONS,4,2             ; @WP_NUM_WEAPONS
	.comm	_STAT_WEAPONS,8,3               ; @STAT_WEAPONS
	.comm	_WEAPON_RAISING,4,2             ; @WEAPON_RAISING
	.comm	_TORSO_RAISE,4,2                ; @TORSO_RAISE
	.no_dead_strip	_PM_FinishWeaponChange
.subsections_via_symbols
