	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotBattleUseItems              ## -- Begin function BotBattleUseItems
	.p2align	4, 0x90
_BotBattleUseItems:                     ## @BotBattleUseItems
	.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	_INVENTORY_HEALTH@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	cmpl	$39, (%rax,%rcx,4)
	jg	LBB0_4
## %bb.1:
	movq	_INVENTORY_TELEPORTER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jle	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_BotCTFCarryingFlag
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	callq	_trap_EA_Use
LBB0_4:
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	cmpl	$59, (%rax,%rcx,4)
	jg	LBB0_6
## %bb.5:
	movq	_INVENTORY_MEDKIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jle	LBB0_6
## %bb.7:
	movl	8(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_trap_EA_Use                    ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVENTORY_HEALTH,8,3           ## @INVENTORY_HEALTH
	.comm	_INVENTORY_TELEPORTER,8,3       ## @INVENTORY_TELEPORTER
	.comm	_INVENTORY_MEDKIT,8,3           ## @INVENTORY_MEDKIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotBattleUseItems              ; -- Begin function BotBattleUseItems
	.p2align	2
_BotBattleUseItems:                     ; @BotBattleUseItems
	.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, _INVENTORY_HEALTH@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INVENTORY_HEALTH@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w9, [x8, x9, lsl #2]
	cmp	w9, #39
	b.gt	LBB0_4
; %bb.1:
Lloh2:
	adrp	x9, _INVENTORY_TELEPORTER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INVENTORY_TELEPORTER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_BotCTFCarryingFlag
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_trap_EA_Use
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w9, [x8, x9, lsl #2]
	cmp	w9, #59
	b.gt	LBB0_7
; %bb.5:
Lloh5:
	adrp	x9, _INVENTORY_MEDKIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INVENTORY_MEDKIT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_EA_Use
LBB0_7:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INVENTORY_HEALTH,8,3           ; @INVENTORY_HEALTH
	.comm	_INVENTORY_TELEPORTER,8,3       ; @INVENTORY_TELEPORTER
	.comm	_INVENTORY_MEDKIT,8,3           ; @INVENTORY_MEDKIT
.subsections_via_symbols
