	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotResetGrapple                ## -- Begin function BotResetGrapple
	.p2align	4, 0x90
_BotResetGrapple:                       ## @BotResetGrapple
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	leaq	-24(%rbp), %rsi
	callq	_AAS_ReachabilityFromNum
	movq	_TRAVELTYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-24(%rbp), %eax
	movq	_TRAVEL_GRAPPLEHOOK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.1:
	movl	(%rbx), %eax
	movq	_MFL_ACTIVEGRAPPLE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%eax, %ecx
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
LBB0_3:
	movq	_offhandgrapple@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_5
## %bb.4:
	movl	16(%rbx), %edi
	movq	_cmd_grappleoff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_EA_Command
	movl	(%r14), %ecx
	movl	(%rbx), %eax
LBB0_5:
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	$0, 8(%rbx)
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRAVELTYPE_MASK,4,2            ## @TRAVELTYPE_MASK
	.comm	_TRAVEL_GRAPPLEHOOK,4,2         ## @TRAVEL_GRAPPLEHOOK
	.comm	_MFL_ACTIVEGRAPPLE,4,2          ## @MFL_ACTIVEGRAPPLE
	.comm	_offhandgrapple,8,3             ## @offhandgrapple
	.comm	_cmd_grappleoff,8,3             ## @cmd_grappleoff
	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
	.comm	_botimport,8,3                  ## @botimport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotResetGrapple                ; -- Begin function BotResetGrapple
	.p2align	2
_BotResetGrapple:                       ; @BotResetGrapple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #20]
	add	x1, sp, #8
	bl	_AAS_ReachabilityFromNum
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _TRAVELTYPE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRAVELTYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _TRAVEL_GRAPPLEHOOK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TRAVEL_GRAPPLEHOOK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.1:
	ldr	w8, [x19]
Lloh6:
	adrp	x20, _MFL_ACTIVEGRAPPLE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MFL_ACTIVEGRAPPLE@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	x10, [x19, #8]
	cbz	x10, LBB0_6
LBB0_3:
Lloh8:
	adrp	x10, _offhandgrapple@GOTPAGE
Lloh9:
	ldr	x10, [x10, _offhandgrapple@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	x10, [x10]
	cbz	x10, LBB0_5
; %bb.4:
	ldr	w0, [x19, #16]
Lloh11:
	adrp	x8, _cmd_grappleoff@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cmd_grappleoff@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_EA_Command
	ldr	w9, [x20]
	ldr	w8, [x19]
LBB0_5:
	bic	w8, w8, w9
	str	w8, [x19]
	str	xzr, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TRAVELTYPE_MASK,4,2            ; @TRAVELTYPE_MASK
	.comm	_TRAVEL_GRAPPLEHOOK,4,2         ; @TRAVEL_GRAPPLEHOOK
	.comm	_MFL_ACTIVEGRAPPLE,4,2          ; @MFL_ACTIVEGRAPPLE
	.comm	_offhandgrapple,8,3             ; @offhandgrapple
	.comm	_cmd_grappleoff,8,3             ; @cmd_grappleoff
	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
	.comm	_botimport,8,3                  ; @botimport
.subsections_via_symbols
