	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___activate_cursor              ## -- Begin function __activate_cursor
	.p2align	4, 0x90
___activate_cursor:                     ## @__activate_cursor
	.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	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	___get_cur_panel
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	___is_normal_cursor_type
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___is_abnormal_cursor_type
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	movq	8(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	___show_status_yesno
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	8(%r14), %rax
	movl	$0, (%rax)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	___set_cmd_str_cache
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	___show_status
	movq	(%rbx), %rax
	xorl	%esi, %esi
	cmpl	$0, (%rax)
	sete	%sil
	movq	%rbx, %rdi
	callq	___set_cursor
	movq	(%r14), %rax
	movl	$1, (%rax)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___reset_scroll_pos             ## TAILCALL
LBB0_6:
	movq	(%rbx), %rax
	xorl	%esi, %esi
	cmpl	$0, (%rax)
	sete	%sil
	movq	%rbx, %rdi
	callq	___set_cursor
	movq	(%r14), %rax
	movl	$1, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___show_status                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"You need to turn off cache to use cursor. Turn off now?(Y/n)"

L_.str.1:                               ## @.str.1
	.asciz	"Cache is off and cursor is on"

L_.str.2:                               ## @.str.2
	.asciz	"You can always toggle cache by '&' key"

L_.str.3:                               ## @.str.3
	.asciz	"Cursor is not available for the current panel."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___activate_cursor              ; -- Begin function __activate_cursor
	.p2align	2
___activate_cursor:                     ; @__activate_cursor
	.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, x0
	ldr	x0, [x0, #8]
	bl	___get_cur_panel
	mov	x20, x0
	bl	___is_normal_cursor_type
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	___is_abnormal_cursor_type
	cbz	x0, LBB0_7
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w21, #1
	mov	x0, x19
	mov	w1, #1
	bl	___show_status_yesno
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x20, #8]
	str	wzr, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	___set_cmd_str_cache
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	___show_status
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	bl	___set_cursor
	ldr	x8, [x20]
	str	w21, [x8]
	mov	x0, x20
	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
	b	___reset_scroll_pos
LBB0_5:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	bl	___set_cursor
	ldr	x8, [x20]
	mov	w9, #1
	str	w9, [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
LBB0_6:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x19
	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
	b	___show_status
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"You need to turn off cache to use cursor. Turn off now?(Y/n)"

l_.str.1:                               ; @.str.1
	.asciz	"Cache is off and cursor is on"

l_.str.2:                               ; @.str.2
	.asciz	"You can always toggle cache by '&' key"

l_.str.3:                               ; @.str.3
	.asciz	"Cursor is not available for the current panel."

.subsections_via_symbols
