	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_middle_click                ## -- Begin function on_middle_click
	.p2align	4, 0x90
_on_middle_click:                       ## @on_middle_click
	.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	_g@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	16(%rax), %esi
	movl	12(%rax), %edx
	movl	8(%rax), %ecx
	movl	(%rax), %r9d
	movl	4(%rax), %r8d
	subq	$8, %rsp
	leaq	-20(%rbp), %rax
	leaq	-24(%rbp), %rbx
	leaq	-28(%rbp), %r10
	xorl	%edi, %edi
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_hit_test
	addq	$32, %rsp
	movq	_item_count@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	_items@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rsi,%rdx,4)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	(%r14), %rax
	movl	%edx, (%rax)
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g,8,3                          ## @g
	.comm	_item_count,4,2                 ## @item_count
	.comm	_items,8,3                      ## @items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_middle_click                ; -- Begin function on_middle_click
	.p2align	2
_on_middle_click:                       ; @on_middle_click
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x19, _g@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldp	w2, w1, [x8, #12]
	ldp	w4, w3, [x8, #4]
	ldr	w5, [x8]
	add	x8, sp, #20
	str	x8, [sp]
	sub	x6, x29, #20
	add	x7, sp, #24
	mov	w0, #0
	bl	_hit_test
Lloh2:
	adrp	x8, _item_count@GOTPAGE
Lloh3:
	ldr	x8, [x8, _item_count@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
Lloh5:
	adrp	x10, _items@GOTPAGE
Lloh6:
	ldr	x10, [x10, _items@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	cmp	w11, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_g,8,3                          ; @g
	.comm	_item_count,4,2                 ; @item_count
	.comm	_items,8,3                      ; @items
.subsections_via_symbols
