	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotGetPatrolWaypoints          ## -- Begin function BotGetPatrolWaypoints
	.p2align	4, 0x90
_BotGetPatrolWaypoints:                 ## @BotGetPatrolWaypoints
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_MESSAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_KEYAREA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_trap_BotMatchVariable
	movq	_MTCONTEXT_PATROLKEYAREA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_trap_BotFindMatch
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	leaq	-64(%rbp), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_KEYAREA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_trap_BotMatchVariable
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-72(%rbp), %rdx
	callq	_BotGetMessageTeamGoal
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-72(%rbp), %edx
	movl	-68(%rbp), %esi
	movq	%r14, %rdi
	callq	_BotCreateWayPoint
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rax)
	movq	%r15, %rdx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rdx, %rcx
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%rcx)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	movq	%rax, %r15
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, 8(%rax)
	movl	-64(%rbp), %eax
	movq	_ST_BACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ST_REVERSE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ST_MORE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_trap_BotMatchVariable
	movq	_MTCONTEXT_PATROLKEYAREA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_trap_BotFindMatch
	testl	%eax, %eax
	jne	LBB0_2
LBB0_13:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_trap_EA_SayTeam
	movq	%r15, %rdi
	callq	_BotFreeWaypoints
	movq	$0, 8(%rbx)
	jmp	LBB0_22
LBB0_14:
	movq	%r15, %rdi
	callq	_BotFreeWaypoints
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
	jmp	LBB0_22
LBB0_15:
	movq	_PATROL_LOOP@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_PATROL_REVERSE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %r13d
LBB0_18:
	testq	%r15, %r15
	je	LBB0_21
## %bb.19:
	cmpq	$0, (%r15)
	je	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_BotFreeWaypoints
	movq	%r15, 8(%rbx)
	movq	%r15, 16(%rbx)
	movl	%r13d, (%rbx)
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_trap_EA_SayTeam
	movq	%r15, %rdi
	callq	_BotFreeWaypoints
LBB0_22:
	movq	_qfalse@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MESSAGE_SIZE,4,2           ## @MAX_MESSAGE_SIZE
	.comm	_KEYAREA,4,2                    ## @KEYAREA
	.comm	_MTCONTEXT_PATROLKEYAREA,4,2    ## @MTCONTEXT_PATROLKEYAREA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"what do you say?"

	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_ST_BACK,4,2                    ## @ST_BACK
	.comm	_PATROL_LOOP,4,2                ## @PATROL_LOOP
	.comm	_ST_REVERSE,4,2                 ## @ST_REVERSE
	.comm	_PATROL_REVERSE,4,2             ## @PATROL_REVERSE
	.comm	_ST_MORE,4,2                    ## @ST_MORE
	.comm	_MORE,4,2                       ## @MORE
L_.str.1:                               ## @.str.1
	.asciz	"I need more key points to patrol\n"

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotGetPatrolWaypoints          ; -- Begin function BotGetPatrolWaypoints
	.p2align	2
_BotGetPatrolWaypoints:                 ; @BotGetPatrolWaypoints
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-88]
Lloh3:
	adrp	x22, _MAX_MESSAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAX_MESSAGE_SIZE@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x9, x3
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x3, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
Lloh7:
	adrp	x23, _KEYAREA@GOTPAGE
Lloh8:
	ldr	x23, [x23, _KEYAREA@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x8
	mov	x2, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_trap_BotMatchVariable
Lloh9:
	adrp	x24, _MTCONTEXT_PATROLKEYAREA@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MTCONTEXT_PATROLKEYAREA@GOTPAGEOFF]
	ldr	w2, [x24]
	sub	x1, x29, #96
	mov	x0, x21
	bl	_trap_BotFindMatch
	mov	x20, #0
	cbz	w0, LBB0_13
; %bb.1:
Lloh11:
	adrp	x25, _ST_BACK@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ST_BACK@GOTPAGEOFF]
Lloh13:
	adrp	x26, _ST_REVERSE@GOTPAGE
Lloh14:
	ldr	x26, [x26, _ST_REVERSE@GOTPAGEOFF]
Lloh15:
	adrp	x27, _ST_MORE@GOTPAGE
Lloh16:
	ldr	x27, [x27, _ST_MORE@GOTPAGEOFF]
Lloh17:
	adrp	x28, _MORE@GOTPAGE
Lloh18:
	ldr	x28, [x28, _MORE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w1, [x23]
	ldr	w3, [x22]
	sub	x0, x29, #96
	mov	x2, x21
	bl	_trap_BotMatchVariable
	sub	x2, x29, #104
	mov	x0, x19
	mov	x1, x21
	bl	_BotGetMessageTeamGoal
	cbz	w0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w2, w1, [x29, #-104]
	mov	x0, x21
	bl	_BotCreateWayPoint
	cbz	x0, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x0]
	mov	x9, x20
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x8, x9
	cbz	x9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x9, [x8]
	cbnz	x9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [x8]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [x0, #8]
	ldur	w8, [x29, #-96]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x28]
	ldr	w3, [x22]
	sub	x0, x29, #96
	mov	x2, x21
	bl	_trap_BotMatchVariable
	ldr	w2, [x24]
	sub	x1, x29, #96
	mov	x0, x21
	bl	_trap_BotFindMatch
	cbnz	w0, LBB0_2
LBB0_13:
	ldr	w0, [x19, #24]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_trap_EA_SayTeam
LBB0_14:
	mov	x0, x20
	bl	_BotFreeWaypoints
	str	xzr, [x19, #8]
	b	LBB0_21
LBB0_15:
	mov	w21, #0
	cbnz	x20, LBB0_18
	b	LBB0_20
LBB0_16:
Lloh21:
	adrp	x8, _PATROL_LOOP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PATROL_LOOP@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	cbnz	x20, LBB0_18
	b	LBB0_20
LBB0_17:
Lloh24:
	adrp	x8, _PATROL_REVERSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PATROL_REVERSE@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	cbz	x20, LBB0_20
LBB0_18:
	ldr	x8, [x20]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	x0, [x19, #8]
	bl	_BotFreeWaypoints
	stp	x20, x20, [x19, #8]
	str	w21, [x19]
Lloh27:
	adrp	x8, _qtrue@GOTPAGE
Lloh28:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
	ldr	w0, [x19, #24]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_trap_EA_SayTeam
	mov	x0, x20
	bl	_BotFreeWaypoints
LBB0_21:
Lloh31:
	adrp	x8, _qfalse@GOTPAGE
Lloh32:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MESSAGE_SIZE,4,2           ; @MAX_MESSAGE_SIZE
	.comm	_KEYAREA,4,2                    ; @KEYAREA
	.comm	_MTCONTEXT_PATROLKEYAREA,4,2    ; @MTCONTEXT_PATROLKEYAREA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"what do you say?"

	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_ST_BACK,4,2                    ; @ST_BACK
	.comm	_PATROL_LOOP,4,2                ; @PATROL_LOOP
	.comm	_ST_REVERSE,4,2                 ; @ST_REVERSE
	.comm	_PATROL_REVERSE,4,2             ; @PATROL_REVERSE
	.comm	_ST_MORE,4,2                    ; @ST_MORE
	.comm	_MORE,4,2                       ; @MORE
l_.str.1:                               ; @.str.1
	.asciz	"I need more key points to patrol\n"

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
