	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_GivePower                    ## -- Begin function P_GivePower
	.p2align	4, 0x90
_P_GivePower:                           ## @P_GivePower
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_pw_invulnerability@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_INVULNTICS@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movslq	%ebx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_13
LBB0_3:
	movq	_pw_invisibility@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_INVISTICS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movslq	%ebx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_MF_SHADOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	orl	%eax, (%rcx)
LBB0_13:
	movl	$1, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_pw_infrared@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_INFRATICS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_pw_ironfeet@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_IRONTICS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	_pw_strength@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	$100, %esi
	callq	_P_GiveBody
	movq	(%r14), %rax
	movslq	%ebx, %rcx
	movl	$1, (%rax,%rcx,4)
	jmp	LBB0_13
LBB0_11:
	movq	(%r14), %rcx
	movslq	%ebx, %rdx
	xorl	%eax, %eax
	cmpl	$0, (%rcx,%rdx,4)
	jne	LBB0_14
## %bb.12:
	movl	$1, (%rcx,%rdx,4)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_pw_invulnerability,4,2         ## @pw_invulnerability
	.comm	_INVULNTICS,4,2                 ## @INVULNTICS
	.comm	_pw_invisibility,4,2            ## @pw_invisibility
	.comm	_INVISTICS,4,2                  ## @INVISTICS
	.comm	_MF_SHADOW,4,2                  ## @MF_SHADOW
	.comm	_pw_infrared,4,2                ## @pw_infrared
	.comm	_INFRATICS,4,2                  ## @INFRATICS
	.comm	_pw_ironfeet,4,2                ## @pw_ironfeet
	.comm	_IRONTICS,4,2                   ## @IRONTICS
	.comm	_pw_strength,4,2                ## @pw_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_GivePower                    ; -- Begin function P_GivePower
	.p2align	2
_P_GivePower:                           ; @P_GivePower
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _pw_invulnerability@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pw_invulnerability@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _INVULNTICS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INVULNTICS@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, w19, sxtw #2]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _pw_invisibility@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pw_invisibility@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _INVISTICS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INVISTICS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	x9, x10, [x20]
	str	w8, [x9, w19, sxtw #2]
Lloh11:
	adrp	x8, _MF_SHADOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MF_SHADOW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x10]
	orr	w8, w9, w8
	str	w8, [x10]
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh14:
	adrp	x8, _pw_infrared@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pw_infrared@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, _INFRATICS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INFRATICS@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
Lloh19:
	adrp	x8, _pw_ironfeet@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pw_ironfeet@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_11
; %bb.10:
Lloh22:
	adrp	x8, _IRONTICS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IRONTICS@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
Lloh24:
	adrp	x8, _pw_strength@GOTPAGE
Lloh25:
	ldr	x8, [x8, _pw_strength@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	mov	w1, #100
	bl	_P_GiveBody
	ldr	x8, [x20]
	mov	w0, #1
	str	w0, [x8, w19, sxtw #2]
	b	LBB0_6
LBB0_13:
	ldr	x8, [x20]
	ldr	w9, [x8, w19, sxtw #2]
	cbz	w9, LBB0_15
; %bb.14:
	mov	w0, #0
	b	LBB0_6
LBB0_15:
	sxtw	x9, w19
	mov	w0, #1
	str	w0, [x8, x9, lsl #2]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_pw_invulnerability,4,2         ; @pw_invulnerability
	.comm	_INVULNTICS,4,2                 ; @INVULNTICS
	.comm	_pw_invisibility,4,2            ; @pw_invisibility
	.comm	_INVISTICS,4,2                  ; @INVISTICS
	.comm	_MF_SHADOW,4,2                  ; @MF_SHADOW
	.comm	_pw_infrared,4,2                ; @pw_infrared
	.comm	_INFRATICS,4,2                  ; @INFRATICS
	.comm	_pw_ironfeet,4,2                ; @pw_ironfeet
	.comm	_IRONTICS,4,2                   ; @IRONTICS
	.comm	_pw_strength,4,2                ; @pw_strength
.subsections_via_symbols
