	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __handle_mouse_on_X
___handle_mouse_on_X:                   ## @__handle_mouse_on_X
	.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
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	(%rdi), %r15
	callq	___get_panel_idx_in_pos
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_get_word_from_canvas
	cmpl	$-1, %ebx
	je	LBB0_1
## %bb.2:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	___get_panel
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	(%rax), %eax
	addl	$2, %eax
	xorl	%r15d, %r15d
	cmpl	%r14d, %eax
	jne	LBB0_12
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	(%rbx), %rax
	movl	4(%rax), %r14d
	movl	8(%rax), %r15d
	leal	(%r15,%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	___set_curnode
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	___set_refresh_all
	cmpl	%r13d, -48(%rbp)                ## 4-byte Folded Reload
	jle	LBB0_7
## %bb.5:
	leal	(%r15,%r14), %eax
	addl	$-13, %eax
	cmpl	%r13d, %eax
	jge	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	___get_cur_panel
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	___toggle_cache
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_7:
	cmpl	%r13d, %r14d
	jge	LBB0_10
## %bb.8:
	addl	$5, %r14d
	cmpl	%r13d, %r14d
	jle	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	___dismantle_del_panel
	jmp	LBB0_11
LBB0_10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___get_panel
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	___create_almighty
	movq	_PANEL_MODE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	___set_mode
LBB0_11:
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	___set_refresh_all
	movl	$1, %r15d
LBB0_12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" X "

	.comm	_PANEL_MODE_DEFAULT,4,2         ## @PANEL_MODE_DEFAULT
	.no_dead_strip	___handle_mouse_on_X
.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_X
___handle_mouse_on_X:                   ; @__handle_mouse_on_X
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x25, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x0]
	bl	___get_panel_idx_in_pos
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x25
	bl	_get_word_from_canvas
	cmn	w23, #1
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x23
	bl	___get_panel
	ldr	x8, [x0]
	ldr	w8, [x8]
	add	w8, w8, #2
	cmp	w8, w25
	b.ne	LBB0_6
; %bb.2:
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x24]
	ldp	w25, w8, [x8, #4]
	add	w26, w8, w25
	mov	x0, x20
	mov	x1, x23
	bl	___set_curnode
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	___set_refresh_all
	sub	w8, w26, #13
	cmp	w26, w22
	ccmp	w8, w22, #0, gt
	b.lt	LBB0_8
; %bb.4:
	add	w8, w25, #5
	cmp	w25, w22
	ccmp	w8, w22, #4, lt
	b.gt	LBB0_9
; %bb.5:
	mov	x0, x21
	mov	w1, #0
	bl	___get_panel
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x20
	bl	___create_almighty
Lloh2:
	adrp	x8, _PANEL_MODE_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PANEL_MODE_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	___set_mode
	b	LBB0_10
LBB0_6:
	mov	w20, #0
	b	LBB0_11
LBB0_7:
	mov	w20, #0
	b	LBB0_12
LBB0_8:
	mov	x0, x21
	bl	___get_cur_panel
	mov	x1, x0
	mov	x0, x20
	bl	___toggle_cache
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	___dismantle_del_panel
LBB0_10:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	___set_refresh_all
	mov	w20, #1
LBB0_11:
	mov	x0, x19
	bl	_free
LBB0_12:
	mov	x0, x20
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" X "

	.comm	_PANEL_MODE_DEFAULT,4,2         ; @PANEL_MODE_DEFAULT
	.no_dead_strip	___handle_mouse_on_X
.subsections_via_symbols
