	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function BotTravel_Grapple
LCPI0_0:
	.long	0x40a00000                      ## float 5
LCPI0_1:
	.long	0xc0800000                      ## float -4
LCPI0_2:
	.long	0x43960000                      ## float 300
LCPI0_3:
	.long	0x428c0000                      ## float 70
LCPI0_4:
	.long	0x43c80000                      ## float 400
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BotTravel_Grapple
	.p2align	4, 0x90
_BotTravel_Grapple:                     ## @BotTravel_Grapple
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_BotClearMoveResult
	movl	(%rbx), %eax
	movq	_MFL_GRAPPLERESET@GOTPCREL(%rip), %rdx
	movq	_offhandgrapple@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	testl	%eax, (%rdx)
	je	LBB0_4
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movl	40(%rbx), %edi
	movq	_cmd_grappleoff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_EA_Command
	movl	(%rbx), %eax
LBB0_3:
	movq	_MFL_ACTIVEGRAPPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
LBB0_21:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_weapindex_grapple@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r14)
	movq	_MOVERESULT_MOVEMENTWEAPON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r14)
LBB0_6:
	movq	_MFL_ACTIVEGRAPPLE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	callq	_AAS_Time
	movsd	%xmm0, 8(%rbx)
	movl	4(%r15), %edi
	movq	32(%rbx), %rsi
	callq	_VectorSubtract
	movq	32(%rbx), %rdi
	movl	48(%rbx), %esi
	callq	_VectorAdd
	movl	(%r15), %edi
	callq	_VectorSubtract
	callq	_VectorNormalize
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movq	8(%r14), %rsi
	callq	_Vector2Angles
	movq	_MOVERESULT_MOVEMENTVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14)
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	ucomiss	-64(%rbp), %xmm0                ## 16-byte Folded Reload
	jbe	LBB0_17
## %bb.9:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	56(%rbx), %rax
	movl	(%rax), %esi
	callq	_AngleDiff
	movl	%eax, %edi
	callq	_fabs
	cmpl	$1, %eax
	jg	LBB0_17
## %bb.10:
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	movq	56(%rbx), %rax
	movl	4(%rax), %esi
	callq	_AngleDiff
	movl	%eax, %edi
	callq	_fabs
	cmpl	$1, %eax
	jg	LBB0_17
## %bb.11:
	movq	32(%rbx), %rdi
	movl	48(%rbx), %esi
	callq	_VectorAdd
	movl	(%r15), %ecx
	movl	44(%rbx), %r8d
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_AAS_Trace
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_VectorSubtract
	callq	_VectorLength
	cmpl	$17, %eax
	jl	LBB0_13
## %bb.12:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_21
LBB0_17:
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	-64(%rbp), %xmm3                ## 16-byte Reload
	mulss	%xmm3, %xmm0
	movss	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	subss	%xmm0, %xmm1
	cmpltss	LCPI0_3(%rip), %xmm3
	movss	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm3, %xmm2
	andnps	%xmm0, %xmm2
	andps	%xmm1, %xmm3
	orps	%xmm2, %xmm3
	movaps	%xmm3, -64(%rbp)                ## 16-byte Spill
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_BotCheckBlocked
	movl	40(%rbx), %edi
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	callq	_EA_Move
	movl	(%r14), %esi
	callq	_VectorCopy
LBB0_18:
	movq	32(%rbx), %rdi
	callq	_AAS_PointAreaNum
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	cmpl	16(%rbx), %eax
	je	LBB0_21
## %bb.20:
	movq	$0, 24(%rbx)
	jmp	LBB0_21
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_BotTravel_Grapple.cold.1
	jmp	LBB0_21
LBB0_13:
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	movl	40(%rbx), %edi
	je	LBB0_15
## %bb.14:
	movq	_cmd_grappleon@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_EA_Command
	jmp	LBB0_16
LBB0_15:
	callq	_EA_Attack
LBB0_16:
	movl	(%r12), %eax
	orl	%eax, (%rbx)
	movl	$1232348144, 4(%rbx)            ## imm = 0x497423F0
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function BotTravel_Grapple.cold.1
_BotTravel_Grapple.cold.1:              ## @BotTravel_Grapple.cold.1
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_GrappleState
	movl	(%rbx), %edi
	movq	32(%r14), %rsi
	callq	_VectorSubtract
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_MFL_GRAPPLERESET,4,2           ## @MFL_GRAPPLERESET
	.comm	_offhandgrapple,8,3             ## @offhandgrapple
	.comm	_cmd_grappleoff,8,3             ## @cmd_grappleoff
	.comm	_MFL_ACTIVEGRAPPLE,4,2          ## @MFL_ACTIVEGRAPPLE
	.comm	_weapindex_grapple,8,3          ## @weapindex_grapple
	.comm	_MOVERESULT_MOVEMENTWEAPON,4,2  ## @MOVERESULT_MOVEMENTWEAPON
	.comm	_MFL_SWIMMING,4,2               ## @MFL_SWIMMING
	.comm	_MOVERESULT_MOVEMENTVIEW,4,2    ## @MOVERESULT_MOVEMENTVIEW
	.comm	_CONTENTS_SOLID,4,2             ## @CONTENTS_SOLID
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_cmd_grappleon,8,3              ## @cmd_grappleon
	.comm	_LINECOLOR_BLUE,4,2             ## @LINECOLOR_BLUE
	.comm	_PRT_ERROR,4,2                  ## @PRT_ERROR
	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
	.comm	_botimport,24,3                 ## @botimport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotTravel_Grapple              ; -- Begin function BotTravel_Grapple
	.p2align	2
_BotTravel_Grapple:                     ; @BotTravel_Grapple
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x21, x1
	mov	x19, x0
	mov	x20, x8
	mov	x0, x8
	bl	_BotClearMoveResult
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _MFL_GRAPPLERESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MFL_GRAPPLERESET@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
Lloh3:
	adrp	x23, _offhandgrapple@GOTPAGE
Lloh4:
	ldr	x23, [x23, _offhandgrapple@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x9, [x9]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.1:
	cbz	x9, LBB0_3
; %bb.2:
	ldr	w0, [x19, #40]
Lloh5:
	adrp	x8, _cmd_grappleoff@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cmd_grappleoff@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_EA_Command
	ldr	w8, [x19]
LBB0_3:
Lloh8:
	adrp	x9, _MFL_ACTIVEGRAPPLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MFL_ACTIVEGRAPPLE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_5:
	cbnz	w9, LBB0_7
; %bb.6:
Lloh11:
	adrp	x9, _weapindex_grapple@GOTPAGE
Lloh12:
	ldr	x9, [x9, _weapindex_grapple@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _MOVERESULT_MOVEMENTWEAPON@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MOVERESULT_MOVEMENTWEAPON@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh16:
	ldr	w10, [x10]
	ldr	w11, [x20, #16]
	orr	w10, w11, w10
	stp	w10, w9, [x20, #16]
LBB0_7:
Lloh17:
	adrp	x22, _MFL_ACTIVEGRAPPLE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _MFL_ACTIVEGRAPPLE@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.8:
	bl	_AAS_Time
	str	d0, [x19, #8]
	ldr	w0, [x21, #4]
	ldr	x1, [x19, #32]
	bl	_VectorSubtract
	ldr	x0, [x19, #32]
	ldr	w1, [x19, #48]
	bl	_VectorAdd
	ldr	w0, [x21]
	bl	_VectorSubtract
	bl	_VectorNormalize
	fmov	s8, s0
	ldr	x1, [x20, #8]
	bl	_Vector2Angles
Lloh19:
	adrp	x8, _MOVERESULT_MOVEMENTVIEW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MOVERESULT_MOVEMENTVIEW@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
	fmov	s0, #5.00000000
	fcmp	s8, s0
	b.pl	LBB0_13
; %bb.9:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	x8, [x19, #56]
	ldr	w1, [x8]
	bl	_AngleDiff
	bl	_fabs
	cmp	w0, #1
	b.gt	LBB0_13
; %bb.10:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	ldr	x8, [x19, #56]
	ldr	w1, [x8, #4]
	bl	_AngleDiff
	bl	_fabs
	cmp	w0, #1
	b.gt	LBB0_13
; %bb.11:
	ldr	x0, [x19, #32]
	ldr	w1, [x19, #48]
	bl	_VectorAdd
	ldr	w3, [x21]
	ldr	w4, [x19, #44]
Lloh22:
	adrp	x8, _CONTENTS_SOLID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CONTENTS_SOLID@GOTPAGEOFF]
Lloh24:
	ldr	w5, [x8]
	mov	x1, #0
	mov	x2, #0
	bl	_AAS_Trace
	mov	x1, x0
	ldr	w0, [x21]
	bl	_VectorSubtract
	bl	_VectorLength
	cmp	w0, #17
	b.lt	LBB0_17
; %bb.12:
Lloh25:
	adrp	x8, _qtrue@GOTPAGE
Lloh26:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	b	LBB0_4
LBB0_13:
	mov	w8, #1133903872
	fmov	s0, w8
	fmov	s1, #-4.00000000
	fmadd	s1, s8, s1, s0
	fsub	s0, s0, s1
	mov	w8, #1116471296
	fmov	s1, w8
	fcmp	s8, s1
	mov	w8, #1137180672
	fmov	s1, w8
	fcsel	s8, s0, s1, mi
Lloh28:
	adrp	x8, _qtrue@GOTPAGE
Lloh29:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_BotCheckBlocked
	ldr	w0, [x19, #40]
	fmov	s0, s8
	bl	_EA_Move
	ldr	w1, [x20]
	bl	_VectorCopy
LBB0_14:
	ldr	x0, [x19, #32]
	bl	_AAS_PointAreaNum
	cbz	w0, LBB0_4
; %bb.15:
	ldr	w8, [x19, #16]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.16:
	str	xzr, [x19, #24]
	b	LBB0_4
LBB0_17:
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w0, [x19, #40]
	cbz	x8, LBB0_19
; %bb.18:
Lloh31:
	adrp	x8, _cmd_grappleon@GOTPAGE
Lloh32:
	ldr	x8, [x8, _cmd_grappleon@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_EA_Command
	b	LBB0_20
LBB0_19:
	bl	_EA_Attack
LBB0_20:
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	mov	w9, #9200
	movk	w9, #18804, lsl #16
	stp	w8, w9, [x19]
	b	LBB0_14
LBB0_21:
	mov	x0, x19
	mov	x1, x21
	bl	_BotTravel_Grapple.cold.1
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function BotTravel_Grapple.cold.1
_BotTravel_Grapple.cold.1:              ; @BotTravel_Grapple.cold.1
	.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, x1
	mov	x20, x0
	bl	_GrappleState
	ldr	w0, [x19]
	ldr	x1, [x20, #32]
	bl	_VectorSubtract
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_MFL_GRAPPLERESET,4,2           ; @MFL_GRAPPLERESET
	.comm	_offhandgrapple,8,3             ; @offhandgrapple
	.comm	_cmd_grappleoff,8,3             ; @cmd_grappleoff
	.comm	_MFL_ACTIVEGRAPPLE,4,2          ; @MFL_ACTIVEGRAPPLE
	.comm	_weapindex_grapple,8,3          ; @weapindex_grapple
	.comm	_MOVERESULT_MOVEMENTWEAPON,4,2  ; @MOVERESULT_MOVEMENTWEAPON
	.comm	_MFL_SWIMMING,4,2               ; @MFL_SWIMMING
	.comm	_MOVERESULT_MOVEMENTVIEW,4,2    ; @MOVERESULT_MOVEMENTVIEW
	.comm	_CONTENTS_SOLID,4,2             ; @CONTENTS_SOLID
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_cmd_grappleon,8,3              ; @cmd_grappleon
	.comm	_LINECOLOR_BLUE,4,2             ; @LINECOLOR_BLUE
	.comm	_PRT_ERROR,4,2                  ; @PRT_ERROR
	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
	.comm	_botimport,24,3                 ; @botimport
.subsections_via_symbols
