	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Pickup_Health                  ## -- Begin function Pickup_Health
	.p2align	4, 0x90
_Pickup_Health:                         ## @Pickup_Health
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	cmpl	$5, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$100, %eax
	jne	LBB0_2
LBB0_3:
	movq	16(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	_STAT_MAX_HEALTH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,8), %edx
	addl	%edx, %edx
	jmp	LBB0_4
LBB0_2:
	movq	16(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	_STAT_MAX_HEALTH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,8), %edx
LBB0_4:
	movl	(%rdi), %edi
	testl	%edi, %edi
	cmovel	%eax, %edi
	addl	4(%rsi), %edi
	cmpl	%edx, %edi
	cmovgel	%edx, %edi
	movl	%edi, 4(%rsi)
	movslq	%edi, %rdx
	movq	_STAT_HEALTH@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rdx, (%rcx,%rsi,8)
	cmpl	$100, %eax
	jne	LBB0_5
## %bb.6:
	movq	_RESPAWN_MEGAHEALTH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_RESPAWN_HEALTH@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STAT_MAX_HEALTH,8,3            ## @STAT_MAX_HEALTH
	.comm	_STAT_HEALTH,8,3                ## @STAT_HEALTH
	.comm	_RESPAWN_MEGAHEALTH,4,2         ## @RESPAWN_MEGAHEALTH
	.comm	_RESPAWN_HEALTH,4,2             ## @RESPAWN_HEALTH
	.comm	_PW_GUARD,8,3                   ## @PW_GUARD
	.comm	_STAT_PERSISTANT_POWERUP,8,3    ## @STAT_PERSISTANT_POWERUP
	.comm	_bg_itemlist,8,3                ## @bg_itemlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Pickup_Health                  ; -- Begin function Pickup_Health
	.p2align	2
_Pickup_Health:                         ; @Pickup_Health
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #5
	b.eq	LBB0_2
; %bb.1:
	cmp	w8, #100
	b.ne	LBB0_3
LBB0_2:
	ldr	x9, [x1, #16]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _STAT_MAX_HEALTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _STAT_MAX_HEALTH@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	x10, [x9, x10, lsl #3]
	lsl	w10, w10, #1
	b	LBB0_4
LBB0_3:
	ldr	x9, [x1, #16]
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _STAT_MAX_HEALTH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _STAT_MAX_HEALTH@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x10, [x9, x10, lsl #3]
LBB0_4:
	ldr	w11, [x0]
	cmp	w11, #0
	csel	w11, w8, w11, eq
	ldr	w12, [x1, #4]
	add	w11, w11, w12
	cmp	w11, w10
	csel	w10, w11, w10, lt
	str	w10, [x1, #4]
Lloh6:
	adrp	x11, _STAT_HEALTH@GOTPAGE
Lloh7:
	ldr	x11, [x11, _STAT_HEALTH@GOTPAGEOFF]
	sxtw	x10, w10
Lloh8:
	ldr	x11, [x11]
	str	x10, [x9, x11, lsl #3]
Lloh9:
	adrp	x9, _RESPAWN_MEGAHEALTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RESPAWN_MEGAHEALTH@GOTPAGEOFF]
Lloh11:
	adrp	x10, _RESPAWN_HEALTH@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RESPAWN_HEALTH@GOTPAGEOFF]
	cmp	w8, #100
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STAT_MAX_HEALTH,8,3            ; @STAT_MAX_HEALTH
	.comm	_STAT_HEALTH,8,3                ; @STAT_HEALTH
	.comm	_RESPAWN_MEGAHEALTH,4,2         ; @RESPAWN_MEGAHEALTH
	.comm	_RESPAWN_HEALTH,4,2             ; @RESPAWN_HEALTH
	.comm	_PW_GUARD,8,3                   ; @PW_GUARD
	.comm	_STAT_PERSISTANT_POWERUP,8,3    ; @STAT_PERSISTANT_POWERUP
	.comm	_bg_itemlist,8,3                ; @bg_itemlist
.subsections_via_symbols
