	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___handle_mouse_on_top          ## -- Begin function __handle_mouse_on_top
	.p2align	4, 0x90
___handle_mouse_on_top:                 ## @__handle_mouse_on_top
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movl	%esi, %edx
	movq	%rdi, %r14
	movq	(%rdi), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_get_word_from_canvas
	movq	%rax, %r12
	movq	_menus@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_COUNT
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	movq	(%rbx,%r13,8), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	%rbx, %rdi
	callq	_COUNT
	cltq
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movb	(%r12), %bl
	cmpb	$91, %bl
	jne	LBB0_11
## %bb.9:
	cmpb	$0, 1(%r12)
	je	LBB0_11
## %bb.10:
	movl	$1, %eax
	cmpb	$93, 2(%r12)
	je	LBB0_15
LBB0_11:
	movq	%r12, %rdi
	callq	_atoi
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movsbl	%bl, %esi
	movq	%r14, %rdi
	callq	___handle_tab_nth
	jmp	LBB0_14
LBB0_3:
	movq	_PANEL_MODE_MENU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	___set_mode
	movq	%r14, %rdi
	callq	___clear_panels_menu
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movslq	(%rax), %rax
	movq	-8(%rcx,%rax,8), %rax
	movl	%r13d, (%rax)
	movq	16(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	___set_refresh_all
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	___handle_tab_new
LBB0_7:
	movq	%r12, %rdi
	callq	_free
LBB0_14:
	movl	$1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_menus,8,3                      ## @menus
	.comm	_PANEL_MODE_MENU,4,2            ## @PANEL_MODE_MENU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tab"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___handle_mouse_on_top          ; -- Begin function __handle_mouse_on_top
	.p2align	2
___handle_mouse_on_top:                 ; @__handle_mouse_on_top
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x3, x2
	mov	x2, x1
	mov	x19, x0
	ldr	x21, [x0]
	mov	x1, x21
	bl	_get_word_from_canvas
	mov	x20, x0
Lloh0:
	adrp	x24, _menus@GOTPAGE
Lloh1:
	ldr	x24, [x24, _menus@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_COUNT
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x24]
	ldr	x1, [x22, x23, lsl #3]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	mov	x0, x22
	bl	_COUNT
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.5:
	ldrb	w21, [x20]
	cmp	w21, #91
	b.ne	LBB0_8
; %bb.6:
	ldrb	w8, [x20, #1]
	cbz	w8, LBB0_8
; %bb.7:
	ldrb	w8, [x20, #2]
	cmp	w8, #93
	b.eq	LBB0_13
LBB0_8:
	mov	x0, x20
	bl	_atoi
	cbz	x0, LBB0_14
; %bb.9:
	sxtb	w1, w21
	mov	x0, x19
	bl	___handle_tab_nth
	b	LBB0_13
LBB0_10:
Lloh4:
	adrp	x8, _PANEL_MODE_MENU@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PANEL_MODE_MENU@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___set_mode
	mov	x0, x19
	bl	___clear_panels_menu
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #3
	ldur	x8, [x8, #-8]
	str	w23, [x8]
	ldr	x8, [x8, #16]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	___set_refresh_all
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	___handle_tab_new
LBB0_12:
	mov	x0, x20
	bl	_free
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_menus,8,3                      ; @menus
	.comm	_PANEL_MODE_MENU,4,2            ; @PANEL_MODE_MENU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tab"

.subsections_via_symbols
