	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_BringUpWeapon                ## -- Begin function P_BringUpWeapon
	.p2align	4, 0x90
_P_BringUpWeapon:                       ## @P_BringUpWeapon
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_wp_nochange@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	_wp_chainsaw@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	24(%rbx), %edi
	movq	_sfx_sawup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_S_StartSound
	movq	(%rbx), %rax
LBB0_4:
	movq	_weaponinfo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	_WEAPONBOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movq	_ps_weapon@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%eax, (%rcx,%rsi,4)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_P_SetPsprite                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wp_nochange,8,3                ## @wp_nochange
	.comm	_wp_chainsaw,8,3                ## @wp_chainsaw
	.comm	_sfx_sawup,4,2                  ## @sfx_sawup
	.comm	_weaponinfo,8,3                 ## @weaponinfo
	.comm	_WEAPONBOTTOM,4,2               ## @WEAPONBOTTOM
	.comm	_ps_weapon,8,3                  ## @ps_weapon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_BringUpWeapon                ; -- Begin function P_BringUpWeapon
	.p2align	2
_P_BringUpWeapon:                       ; @P_BringUpWeapon
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _wp_nochange@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wp_nochange@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	str	x8, [x19]
LBB0_2:
Lloh2:
	adrp	x9, _wp_chainsaw@GOTPAGE
Lloh3:
	ldr	x9, [x9, _wp_chainsaw@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #24]
Lloh5:
	adrp	x8, _sfx_sawup@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sfx_sawup@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_S_StartSound
	ldr	x8, [x19]
LBB0_4:
Lloh8:
	adrp	x9, _weaponinfo@GOTPAGE
Lloh9:
	ldr	x9, [x9, _weaponinfo@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w2, [x9, x8, lsl #2]
	ldr	x8, [x20]
	str	x8, [x19]
Lloh11:
	adrp	x8, _WEAPONBOTTOM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WEAPONBOTTOM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
Lloh14:
	adrp	x10, _ps_weapon@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ps_weapon@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x10]
	str	w8, [x9, x1, lsl #2]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_P_SetPsprite
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_wp_nochange,8,3                ; @wp_nochange
	.comm	_wp_chainsaw,8,3                ; @wp_chainsaw
	.comm	_sfx_sawup,4,2                  ; @sfx_sawup
	.comm	_weaponinfo,8,3                 ; @weaponinfo
	.comm	_WEAPONBOTTOM,4,2               ; @WEAPONBOTTOM
	.comm	_ps_weapon,8,3                  ; @ps_weapon
.subsections_via_symbols
