	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotGetLevelItemGoal            ## -- Begin function BotGetLevelItemGoal
	.p2align	4, 0x90
_BotGetLevelItemGoal:                   ## @BotGetLevelItemGoal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	_itemconfig@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpq	$0, (%rcx)
	je	LBB0_18
## %bb.1:
	movq	_levelitems@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	testl	%edi, %edi
	js	LBB0_5
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rbx)
	movq	40(%rbx), %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_18
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.6:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_g_gametype@GOTPCREL(%rip), %r13
	movq	_GT_SINGLE_PLAYER@GOTPCREL(%rip), %r12
	movq	_IFL_NOTSINGLE@GOTPCREL(%rip), %rsi
	movq	_IFL_NOTBOT@GOTPCREL(%rip), %r15
	movq	_GT_TEAM@GOTPCREL(%rip), %rdi
	movq	_IFL_NOTFREE@GOTPCREL(%rip), %r14
	movq	_IFL_NOTTEAM@GOTPCREL(%rip), %r9
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rbx), %eax
	testl	%eax, (%rsi)
	je	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	40(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpq	(%r12), %rcx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rbx), %eax
	cmpq	(%rdi), %rcx
	jge	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, (%r14)
	jne	LBB0_11
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, (%r9)
	jne	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_itemconfig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_Q_stricmp
	movq	_IFL_NOTTEAM@GOTPCREL(%rip), %r9
	movq	_GT_TEAM@GOTPCREL(%rip), %rdi
	movq	_IFL_NOTSINGLE@GOTPCREL(%rip), %rsi
	testl	%eax, %eax
	jne	LBB0_11
## %bb.16:
	movl	32(%rbx), %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 24(%r14)
	movl	28(%rbx), %edi
	movl	20(%r14), %esi
	callq	_VectorCopy
	movl	24(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	_itemconfig@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %edi
	movl	12(%r14), %esi
	callq	_VectorCopy
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	8(%r14), %esi
	callq	_VectorCopy
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movq	_GFL_ITEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, 4(%r14)
	cmpq	$0, 16(%rbx)
	je	LBB0_18
## %bb.17:
	movq	_GFL_DROPPED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 4(%r14)
	jmp	LBB0_18
LBB0_12:
	movl	$-1, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_itemconfig,8,3                 ## @itemconfig
	.comm	_levelitems,8,3                 ## @levelitems
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_GT_SINGLE_PLAYER,8,3           ## @GT_SINGLE_PLAYER
	.comm	_IFL_NOTSINGLE,4,2              ## @IFL_NOTSINGLE
	.comm	_GT_TEAM,8,3                    ## @GT_TEAM
	.comm	_IFL_NOTTEAM,4,2                ## @IFL_NOTTEAM
	.comm	_IFL_NOTFREE,4,2                ## @IFL_NOTFREE
	.comm	_IFL_NOTBOT,4,2                 ## @IFL_NOTBOT
	.comm	_GFL_ITEM,4,2                   ## @GFL_ITEM
	.comm	_GFL_DROPPED,4,2                ## @GFL_DROPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotGetLevelItemGoal            ; -- Begin function BotGetLevelItemGoal
	.p2align	2
_BotGetLevelItemGoal:                   ; @BotGetLevelItemGoal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x22, _itemconfig@GOTPAGE
Lloh1:
	ldr	x22, [x22, _itemconfig@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_17
; %bb.1:
	mov	x20, x1
Lloh2:
	adrp	x8, _levelitems@GOTPAGE
Lloh3:
	ldr	x8, [x8, _levelitems@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
	tbnz	w0, #31, LBB0_5
; %bb.2:
	cbz	x21, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	x21, [x21, #40]
	cmp	w8, w0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x21, LBB0_3
	b	LBB0_17
LBB0_5:
	cbz	x21, LBB0_17
; %bb.6:
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
Lloh5:
	adrp	x23, _g_gametype@GOTPAGE
Lloh6:
	ldr	x23, [x23, _g_gametype@GOTPAGEOFF]
Lloh7:
	adrp	x24, _GT_SINGLE_PLAYER@GOTPAGE
Lloh8:
	ldr	x24, [x24, _GT_SINGLE_PLAYER@GOTPAGEOFF]
Lloh9:
	adrp	x25, _IFL_NOTSINGLE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _IFL_NOTSINGLE@GOTPAGEOFF]
Lloh11:
	adrp	x26, _IFL_NOTBOT@GOTPAGE
Lloh12:
	ldr	x26, [x26, _IFL_NOTBOT@GOTPAGEOFF]
Lloh13:
	adrp	x28, _GT_TEAM@GOTPAGE
Lloh14:
	ldr	x28, [x28, _GT_TEAM@GOTPAGEOFF]
Lloh15:
	adrp	x19, _IFL_NOTFREE@GOTPAGE
Lloh16:
	ldr	x19, [x19, _IFL_NOTFREE@GOTPAGEOFF]
Lloh17:
	adrp	x27, _IFL_NOTTEAM@GOTPAGE
Lloh18:
	ldr	x27, [x27, _IFL_NOTTEAM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x21, [x21, #40]
	cbz	x21, LBB0_17
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	ldr	x8, [x24]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21, #4]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_7
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x28]
	ldr	w8, [x21, #4]
	cmp	x9, x10
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x19]
	tst	w9, w8
	b.ne	LBB0_7
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_Q_stricmp
	cbnz	w0, LBB0_7
; %bb.15:
	ldp	w0, w8, [x21, #28]
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	str	w8, [x20, #24]
	ldr	w1, [x20, #20]
	bl	_VectorCopy
	ldr	w8, [x21, #24]
	str	w8, [x20, #16]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	mov	w19, #12
	madd	x8, x9, x19, x8
	ldr	w0, [x8, #4]
	ldr	w1, [x20, #12]
	bl	_VectorCopy
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	mul	x9, x9, x19
	ldr	w0, [x8, x9]
	ldr	w1, [x20, #8]
	bl	_VectorCopy
	ldr	w0, [x21]
	str	w0, [x20]
Lloh19:
	adrp	x8, _GFL_ITEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFL_ITEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_18
; %bb.16:
Lloh22:
	adrp	x9, _GFL_DROPPED@GOTPAGE
Lloh23:
	ldr	x9, [x9, _GFL_DROPPED@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	b	LBB0_18
LBB0_17:
	mov	w0, #-1
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_itemconfig,8,3                 ; @itemconfig
	.comm	_levelitems,8,3                 ; @levelitems
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_GT_SINGLE_PLAYER,8,3           ; @GT_SINGLE_PLAYER
	.comm	_IFL_NOTSINGLE,4,2              ; @IFL_NOTSINGLE
	.comm	_GT_TEAM,8,3                    ; @GT_TEAM
	.comm	_IFL_NOTTEAM,4,2                ; @IFL_NOTTEAM
	.comm	_IFL_NOTFREE,4,2                ; @IFL_NOTFREE
	.comm	_IFL_NOTBOT,4,2                 ; @IFL_NOTBOT
	.comm	_GFL_ITEM,4,2                   ; @GFL_ITEM
	.comm	_GFL_DROPPED,4,2                ; @GFL_DROPPED
.subsections_via_symbols
