	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotChooseWeapon                ## -- Begin function BotChooseWeapon
	.p2align	4, 0x90
_BotChooseWeapon:                       ## @BotChooseWeapon
	.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	24(%rdi), %rax
	movq	_WEAPON_RAISING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_WEAPON_DROPPING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.4:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_trap_BotChooseBestFightWeapon
	movl	%eax, %r14d
	cmpl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_FloatTime
	movl	%eax, 8(%rbx)
LBB0_6:
	movl	%r14d, (%rbx)
	movl	4(%rbx), %edi
	movl	%r14d, %esi
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_trap_EA_SelectWeapon           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WEAPON_RAISING,8,3             ## @WEAPON_RAISING
	.comm	_WEAPON_DROPPING,8,3            ## @WEAPON_DROPPING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotChooseWeapon                ; -- Begin function BotChooseWeapon
	.p2align	2
_BotChooseWeapon:                       ; @BotChooseWeapon
	.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, #24]
Lloh0:
	adrp	x9, _WEAPON_RAISING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WEAPON_RAISING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _WEAPON_DROPPING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WEAPON_DROPPING@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldp	w1, w0, [x19]
	b	LBB0_5
LBB0_2:
	ldp	w1, w0, [x19, #12]
	bl	_trap_BotChooseBestFightWeapon
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, w0
	b.eq	LBB0_4
; %bb.3:
	bl	_FloatTime
	str	w0, [x19, #8]
LBB0_4:
	str	w20, [x19]
	ldr	w0, [x19, #4]
	mov	x1, x20
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_EA_SelectWeapon
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WEAPON_RAISING,8,3             ; @WEAPON_RAISING
	.comm	_WEAPON_DROPPING,8,3            ; @WEAPON_DROPPING
.subsections_via_symbols
