	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __handle_mouse_on_panel
___handle_mouse_on_panel:               ## @__handle_mouse_on_panel
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	leaq	-68(%rbp), %rdi
	callq	_r_cons_get_size
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	___get_panel_idx_in_pos
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_get_word_from_canvas
	xorl	%ebx, %ebx
	cmpl	$-1, %r12d
	je	LBB0_11
## %bb.1:
	movq	%rax, %r13
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	___set_curnode
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	___set_refresh_all
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	___get_panel
	movq	%rax, %r14
	testq	%r13, %r13
	je	LBB0_8
## %bb.2:
	movq	_PANEL_CMD_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	___check_panel_type
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	___check_if_addr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_r_num_math
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_r_core_seek
	movq	_PANEL_CMD_DISASSEMBLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	$1, %ebx
	callq	___set_addr_by_type
LBB0_5:
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_r_config_set
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_r_num_math
	testq	%rax, %rax
	jle	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	___seek_all
LBB0_7:
	movq	%r13, %rdi
	callq	_free
LBB0_8:
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	jg	LBB0_11
## %bb.9:
	addl	$4, %eax
	cmpl	%ecx, %eax
	jle	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$99, (%rax)
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PANEL_CMD_FUNCTION,4,2         ## @PANEL_CMD_FUNCTION
	.comm	_PANEL_CMD_DISASSEMBLY,4,2      ## @PANEL_CMD_DISASSEMBLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scr.highlight"

	.no_dead_strip	___handle_mouse_on_panel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __handle_mouse_on_panel
___handle_mouse_on_panel:               ; @__handle_mouse_on_panel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	add	x0, sp, #12
	bl	_r_cons_get_size
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	___get_panel_idx_in_pos
	mov	x25, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	bl	_get_word_from_canvas
	cmn	w25, #1
	b.eq	LBB0_10
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x25
	bl	___set_curnode
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	___set_refresh_all
	mov	x0, x23
	mov	x1, x25
	bl	___get_panel
	mov	x23, x0
	cbz	x22, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _PANEL_CMD_FUNCTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PANEL_CMD_FUNCTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x24
	bl	___check_panel_type
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_strlen
	mov	x1, x0
	mov	x0, x22
	bl	___check_if_addr
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x21]
	mov	x1, x22
	bl	_r_num_math
	mov	x24, x0
	mov	x0, x21
	mov	x1, x24
	mov	w2, #1
	bl	_r_core_seek
Lloh3:
	adrp	x8, _PANEL_CMD_DISASSEMBLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PANEL_CMD_DISASSEMBLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x24
	bl	___set_addr_by_type
LBB0_5:
	ldr	w0, [x21, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_r_config_set
	ldr	w0, [x21]
	mov	x1, x22
	bl	_r_num_math
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.6:
	mov	x1, x0
	mov	x0, x21
	bl	___seek_all
LBB0_7:
	mov	x0, x22
	bl	_free
LBB0_8:
	ldr	x8, [x23]
	ldr	w8, [x8]
	add	w9, w8, #4
	cmp	w8, w20
	ccmp	w9, w20, #4, le
	b.gt	LBB0_11
; %bb.9:
	mov	w0, #1
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w0, #0
	mov	w8, #99
	str	w8, [x19]
LBB0_12:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PANEL_CMD_FUNCTION,4,2         ; @PANEL_CMD_FUNCTION
	.comm	_PANEL_CMD_DISASSEMBLY,4,2      ; @PANEL_CMD_DISASSEMBLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scr.highlight"

	.no_dead_strip	___handle_mouse_on_panel
.subsections_via_symbols
