	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSelectActivateWeapon        ## -- Begin function BotSelectActivateWeapon
	.p2align	4, 0x90
_BotSelectActivateWeapon:               ## @BotSelectActivateWeapon
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_INVENTORY_MACHINEGUN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_3
## %bb.1:
	movq	_INVENTORY_BULLETS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_3
## %bb.2:
	movq	_WEAPONINDEX_MACHINEGUN@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_3:
	movq	_INVENTORY_SHOTGUN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_6
## %bb.4:
	movq	_INVENTORY_SHELLS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_6
## %bb.5:
	movq	_WEAPONINDEX_SHOTGUN@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_6:
	movq	_INVENTORY_PLASMAGUN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_9
## %bb.7:
	movq	_INVENTORY_CELLS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_9
## %bb.8:
	movq	_WEAPONINDEX_PLASMAGUN@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_9:
	movq	_INVENTORY_LIGHTNING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_12
## %bb.10:
	movq	_INVENTORY_LIGHTNINGAMMO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_12
## %bb.11:
	movq	_WEAPONINDEX_LIGHTNING@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_12:
	movq	_INVENTORY_GRENADELAUNCHER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_15
## %bb.13:
	movq	_INVENTORY_GRENADES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_15
## %bb.14:
	movq	_WEAPONINDEX_GRENADE_LAUNCHER@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_15:
	movq	_INVENTORY_RAILGUN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_18
## %bb.16:
	movq	_INVENTORY_SLUGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_18
## %bb.17:
	movq	_WEAPONINDEX_RAILGUN@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_18:
	movq	_INVENTORY_ROCKETLAUNCHER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_21
## %bb.19:
	movq	_INVENTORY_ROCKETS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_21
## %bb.20:
	movq	_WEAPONINDEX_ROCKET_LAUNCHER@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_21:
	movq	_INVENTORY_BFG10K@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_22
## %bb.23:
	movq	_INVENTORY_BFGAMMO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	movl	$-1, %eax
	jle	LBB0_26
## %bb.24:
	movq	_WEAPONINDEX_BFG@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
LBB0_26:
	popq	%rbp
	retq
LBB0_22:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVENTORY_MACHINEGUN,8,3       ## @INVENTORY_MACHINEGUN
	.comm	_INVENTORY_BULLETS,8,3          ## @INVENTORY_BULLETS
	.comm	_WEAPONINDEX_MACHINEGUN,4,2     ## @WEAPONINDEX_MACHINEGUN
	.comm	_INVENTORY_SHOTGUN,8,3          ## @INVENTORY_SHOTGUN
	.comm	_INVENTORY_SHELLS,8,3           ## @INVENTORY_SHELLS
	.comm	_WEAPONINDEX_SHOTGUN,4,2        ## @WEAPONINDEX_SHOTGUN
	.comm	_INVENTORY_PLASMAGUN,8,3        ## @INVENTORY_PLASMAGUN
	.comm	_INVENTORY_CELLS,8,3            ## @INVENTORY_CELLS
	.comm	_WEAPONINDEX_PLASMAGUN,4,2      ## @WEAPONINDEX_PLASMAGUN
	.comm	_INVENTORY_LIGHTNING,8,3        ## @INVENTORY_LIGHTNING
	.comm	_INVENTORY_LIGHTNINGAMMO,8,3    ## @INVENTORY_LIGHTNINGAMMO
	.comm	_WEAPONINDEX_LIGHTNING,4,2      ## @WEAPONINDEX_LIGHTNING
	.comm	_INVENTORY_GRENADELAUNCHER,8,3  ## @INVENTORY_GRENADELAUNCHER
	.comm	_INVENTORY_GRENADES,8,3         ## @INVENTORY_GRENADES
	.comm	_WEAPONINDEX_GRENADE_LAUNCHER,4,2 ## @WEAPONINDEX_GRENADE_LAUNCHER
	.comm	_INVENTORY_RAILGUN,8,3          ## @INVENTORY_RAILGUN
	.comm	_INVENTORY_SLUGS,8,3            ## @INVENTORY_SLUGS
	.comm	_WEAPONINDEX_RAILGUN,4,2        ## @WEAPONINDEX_RAILGUN
	.comm	_INVENTORY_ROCKETLAUNCHER,8,3   ## @INVENTORY_ROCKETLAUNCHER
	.comm	_INVENTORY_ROCKETS,8,3          ## @INVENTORY_ROCKETS
	.comm	_WEAPONINDEX_ROCKET_LAUNCHER,4,2 ## @WEAPONINDEX_ROCKET_LAUNCHER
	.comm	_INVENTORY_BFG10K,8,3           ## @INVENTORY_BFG10K
	.comm	_INVENTORY_BFGAMMO,8,3          ## @INVENTORY_BFGAMMO
	.comm	_WEAPONINDEX_BFG,4,2            ## @WEAPONINDEX_BFG
	.comm	_INVENTORY_BELT,8,3             ## @INVENTORY_BELT
	.comm	_INVENTORY_CHAINGUN,8,3         ## @INVENTORY_CHAINGUN
	.comm	_INVENTORY_MINES,8,3            ## @INVENTORY_MINES
	.comm	_INVENTORY_NAILGUN,8,3          ## @INVENTORY_NAILGUN
	.comm	_INVENTORY_NAILS,8,3            ## @INVENTORY_NAILS
	.comm	_INVENTORY_PROXLAUNCHER,8,3     ## @INVENTORY_PROXLAUNCHER
	.comm	_WEAPONINDEX_CHAINGUN,4,2       ## @WEAPONINDEX_CHAINGUN
	.comm	_WEAPONINDEX_NAILGUN,4,2        ## @WEAPONINDEX_NAILGUN
	.comm	_WEAPONINDEX_PROXLAUNCHER,4,2   ## @WEAPONINDEX_PROXLAUNCHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSelectActivateWeapon        ; -- Begin function BotSelectActivateWeapon
	.p2align	2
_BotSelectActivateWeapon:               ; @BotSelectActivateWeapon
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _INVENTORY_MACHINEGUN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INVENTORY_MACHINEGUN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _INVENTORY_BULLETS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INVENTORY_BULLETS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _WEAPONINDEX_MACHINEGUN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WEAPONINDEX_MACHINEGUN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_3:
Lloh9:
	adrp	x9, _INVENTORY_SHOTGUN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INVENTORY_SHOTGUN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_6
; %bb.4:
Lloh12:
	adrp	x9, _INVENTORY_SHELLS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _INVENTORY_SHELLS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _WEAPONINDEX_SHOTGUN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WEAPONINDEX_SHOTGUN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh18:
	adrp	x9, _INVENTORY_PLASMAGUN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _INVENTORY_PLASMAGUN@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_9
; %bb.7:
Lloh21:
	adrp	x9, _INVENTORY_CELLS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _INVENTORY_CELLS@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_9
; %bb.8:
Lloh24:
	adrp	x8, _WEAPONINDEX_PLASMAGUN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WEAPONINDEX_PLASMAGUN@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ret
LBB0_9:
Lloh27:
	adrp	x9, _INVENTORY_LIGHTNING@GOTPAGE
Lloh28:
	ldr	x9, [x9, _INVENTORY_LIGHTNING@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_12
; %bb.10:
Lloh30:
	adrp	x9, _INVENTORY_LIGHTNINGAMMO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _INVENTORY_LIGHTNINGAMMO@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_12
; %bb.11:
Lloh33:
	adrp	x8, _WEAPONINDEX_LIGHTNING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WEAPONINDEX_LIGHTNING@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ret
LBB0_12:
Lloh36:
	adrp	x9, _INVENTORY_GRENADELAUNCHER@GOTPAGE
Lloh37:
	ldr	x9, [x9, _INVENTORY_GRENADELAUNCHER@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_15
; %bb.13:
Lloh39:
	adrp	x9, _INVENTORY_GRENADES@GOTPAGE
Lloh40:
	ldr	x9, [x9, _INVENTORY_GRENADES@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_15
; %bb.14:
Lloh42:
	adrp	x8, _WEAPONINDEX_GRENADE_LAUNCHER@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WEAPONINDEX_GRENADE_LAUNCHER@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ret
LBB0_15:
Lloh45:
	adrp	x9, _INVENTORY_RAILGUN@GOTPAGE
Lloh46:
	ldr	x9, [x9, _INVENTORY_RAILGUN@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_18
; %bb.16:
Lloh48:
	adrp	x9, _INVENTORY_SLUGS@GOTPAGE
Lloh49:
	ldr	x9, [x9, _INVENTORY_SLUGS@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_18
; %bb.17:
Lloh51:
	adrp	x8, _WEAPONINDEX_RAILGUN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WEAPONINDEX_RAILGUN@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	ret
LBB0_18:
Lloh54:
	adrp	x9, _INVENTORY_ROCKETLAUNCHER@GOTPAGE
Lloh55:
	ldr	x9, [x9, _INVENTORY_ROCKETLAUNCHER@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_21
; %bb.19:
Lloh57:
	adrp	x9, _INVENTORY_ROCKETS@GOTPAGE
Lloh58:
	ldr	x9, [x9, _INVENTORY_ROCKETS@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_21
; %bb.20:
Lloh60:
	adrp	x8, _WEAPONINDEX_ROCKET_LAUNCHER@GOTPAGE
Lloh61:
	ldr	x8, [x8, _WEAPONINDEX_ROCKET_LAUNCHER@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
	ret
LBB0_21:
Lloh63:
	adrp	x9, _INVENTORY_BFG10K@GOTPAGE
Lloh64:
	ldr	x9, [x9, _INVENTORY_BFG10K@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_23
; %bb.22:
Lloh66:
	adrp	x9, _INVENTORY_BFGAMMO@GOTPAGE
Lloh67:
	ldr	x9, [x9, _INVENTORY_BFGAMMO@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh69:
	adrp	x9, _WEAPONINDEX_BFG@GOTPAGE
Lloh70:
	ldr	x9, [x9, _WEAPONINDEX_BFG@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	cmp	x8, #0
	csinv	w0, w9, wzr, gt
	ret
LBB0_23:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_INVENTORY_MACHINEGUN,8,3       ; @INVENTORY_MACHINEGUN
	.comm	_INVENTORY_BULLETS,8,3          ; @INVENTORY_BULLETS
	.comm	_WEAPONINDEX_MACHINEGUN,4,2     ; @WEAPONINDEX_MACHINEGUN
	.comm	_INVENTORY_SHOTGUN,8,3          ; @INVENTORY_SHOTGUN
	.comm	_INVENTORY_SHELLS,8,3           ; @INVENTORY_SHELLS
	.comm	_WEAPONINDEX_SHOTGUN,4,2        ; @WEAPONINDEX_SHOTGUN
	.comm	_INVENTORY_PLASMAGUN,8,3        ; @INVENTORY_PLASMAGUN
	.comm	_INVENTORY_CELLS,8,3            ; @INVENTORY_CELLS
	.comm	_WEAPONINDEX_PLASMAGUN,4,2      ; @WEAPONINDEX_PLASMAGUN
	.comm	_INVENTORY_LIGHTNING,8,3        ; @INVENTORY_LIGHTNING
	.comm	_INVENTORY_LIGHTNINGAMMO,8,3    ; @INVENTORY_LIGHTNINGAMMO
	.comm	_WEAPONINDEX_LIGHTNING,4,2      ; @WEAPONINDEX_LIGHTNING
	.comm	_INVENTORY_GRENADELAUNCHER,8,3  ; @INVENTORY_GRENADELAUNCHER
	.comm	_INVENTORY_GRENADES,8,3         ; @INVENTORY_GRENADES
	.comm	_WEAPONINDEX_GRENADE_LAUNCHER,4,2 ; @WEAPONINDEX_GRENADE_LAUNCHER
	.comm	_INVENTORY_RAILGUN,8,3          ; @INVENTORY_RAILGUN
	.comm	_INVENTORY_SLUGS,8,3            ; @INVENTORY_SLUGS
	.comm	_WEAPONINDEX_RAILGUN,4,2        ; @WEAPONINDEX_RAILGUN
	.comm	_INVENTORY_ROCKETLAUNCHER,8,3   ; @INVENTORY_ROCKETLAUNCHER
	.comm	_INVENTORY_ROCKETS,8,3          ; @INVENTORY_ROCKETS
	.comm	_WEAPONINDEX_ROCKET_LAUNCHER,4,2 ; @WEAPONINDEX_ROCKET_LAUNCHER
	.comm	_INVENTORY_BFG10K,8,3           ; @INVENTORY_BFG10K
	.comm	_INVENTORY_BFGAMMO,8,3          ; @INVENTORY_BFGAMMO
	.comm	_WEAPONINDEX_BFG,4,2            ; @WEAPONINDEX_BFG
	.comm	_INVENTORY_BELT,8,3             ; @INVENTORY_BELT
	.comm	_INVENTORY_CHAINGUN,8,3         ; @INVENTORY_CHAINGUN
	.comm	_INVENTORY_MINES,8,3            ; @INVENTORY_MINES
	.comm	_INVENTORY_NAILGUN,8,3          ; @INVENTORY_NAILGUN
	.comm	_INVENTORY_NAILS,8,3            ; @INVENTORY_NAILS
	.comm	_INVENTORY_PROXLAUNCHER,8,3     ; @INVENTORY_PROXLAUNCHER
	.comm	_WEAPONINDEX_CHAINGUN,4,2       ; @WEAPONINDEX_CHAINGUN
	.comm	_WEAPONINDEX_NAILGUN,4,2        ; @WEAPONINDEX_NAILGUN
	.comm	_WEAPONINDEX_PROXLAUNCHER,4,2   ; @WEAPONINDEX_PROXLAUNCHER
.subsections_via_symbols
