	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotReachedGoal                 ## -- Begin function BotReachedGoal
	.p2align	4, 0x90
_BotReachedGoal:                        ## @BotReachedGoal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	movq	_GFL_ITEM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.1:
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_trap_BotTouchingGoal
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_GFL_DROPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_qtrue@GOTPCREL(%rip), %r15
	testl	%eax, (%r12)
	jne	LBB0_17
## %bb.3:
	movl	32(%r14), %edi
	movl	40(%r12), %esi
	movl	$-1, %edx
	callq	_trap_BotSetAvoidGoalTime
	jmp	LBB0_17
LBB0_12:
	movq	_GFL_AIR@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_trap_BotTouchingGoal
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.13:
	movq	_qtrue@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:
	movl	16(%r14), %ebx
	xorl	%eax, %eax
	callq	_FloatTime
	cmpl	%eax, %ebx
	jl	LBB0_11
	jmp	LBB0_17
LBB0_4:
	movl	28(%r14), %edi
	movl	20(%r14), %edx
	movl	24(%r14), %esi
	movq	%r12, %rcx
	callq	_trap_BotItemGoalInVisButNotVisible
	movq	_qtrue@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	jne	LBB0_17
## %bb.5:
	movq	8(%r14), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_11
## %bb.6:
	movq	(%r14), %rdi
	movq	(%rdi), %rsi
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movq	(%rax), %rbx
	movq	(%rcx), %rdx
	addq	%rbx, %rdx
	cmpq	%rdx, %rsi
	jle	LBB0_11
## %bb.7:
	movq	32(%r12), %rdx
	addq	(%rdx), %rbx
	cmpq	%rbx, %rsi
	jge	LBB0_11
## %bb.8:
	movq	8(%rdi), %rsi
	movq	8(%rax), %rax
	movq	8(%rcx), %rcx
	addq	%rax, %rcx
	cmpq	%rcx, %rsi
	jle	LBB0_11
## %bb.9:
	addq	8(%rdx), %rax
	cmpq	%rax, %rsi
	jge	LBB0_11
## %bb.10:
	callq	_trap_AAS_Swimming
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_17
LBB0_15:
	testq	%rax, %rax
	je	LBB0_11
## %bb.16:
	movq	_qtrue@GOTPCREL(%rip), %r15
	jmp	LBB0_17
LBB0_11:
	movq	_qfalse@GOTPCREL(%rip), %r15
LBB0_17:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFL_ITEM,4,2                   ## @GFL_ITEM
	.comm	_GFL_DROPPED,4,2                ## @GFL_DROPPED
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_GFL_AIR,4,2                    ## @GFL_AIR
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotReachedGoal                 ; -- Begin function BotReachedGoal
	.p2align	2
_BotReachedGoal:                        ; @BotReachedGoal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _GFL_ITEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GFL_ITEM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_trap_BotTouchingGoal
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _GFL_DROPPED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GFL_DROPPED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.3:
	ldr	w0, [x20, #32]
	ldr	w1, [x19, #40]
	mov	w2, #-1
	bl	_trap_BotSetAvoidGoalTime
	b	LBB0_16
LBB0_4:
Lloh6:
	adrp	x9, _GFL_AIR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GFL_AIR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w21, w9, w8
	ldr	x0, [x20]
	mov	x1, x19
	bl	_trap_BotTouchingGoal
	cbz	w21, LBB0_15
; %bb.5:
	cbnz	x0, LBB0_16
; %bb.6:
	ldr	w19, [x20, #16]
	bl	_FloatTime
	cmp	w19, w0
	b.ge	LBB0_16
	b	LBB0_14
LBB0_7:
	ldp	w1, w0, [x20, #24]
	ldr	w2, [x20, #20]
	mov	x3, x19
	bl	_trap_BotItemGoalInVisButNotVisible
	cbnz	x0, LBB0_16
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.9:
	ldr	x0, [x20]
	ldr	x11, [x0]
	ldp	x8, x9, [x19, #16]
	ldr	x12, [x8]
	ldr	x10, [x9]
	add	x10, x10, x12
	cmp	x11, x10
	b.le	LBB0_14
; %bb.10:
	ldr	x10, [x19, #32]
	ldr	x13, [x10]
	add	x12, x13, x12
	cmp	x11, x12
	b.ge	LBB0_14
; %bb.11:
	ldr	x11, [x0, #8]
	ldr	x8, [x8, #8]
	ldr	x9, [x9, #8]
	add	x9, x9, x8
	cmp	x11, x9
	b.le	LBB0_14
; %bb.12:
	ldr	x9, [x10, #8]
	add	x8, x9, x8
	cmp	x11, x8
	b.ge	LBB0_14
; %bb.13:
	bl	_trap_AAS_Swimming
	cbz	w0, LBB0_16
LBB0_14:
Lloh9:
	adrp	x8, _qfalse@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	cbz	x0, LBB0_14
LBB0_16:
Lloh11:
	adrp	x8, _qtrue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFL_ITEM,4,2                   ; @GFL_ITEM
	.comm	_GFL_DROPPED,4,2                ; @GFL_DROPPED
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_GFL_AIR,4,2                    ; @GFL_AIR
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
