	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_module_from_mouse_event    ## -- Begin function set_module_from_mouse_event
	.p2align	4, 0x90
_set_module_from_mouse_event:           ## @set_module_from_mouse_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MAX_HEIGHT_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MAX_HEIGHT_FOOTER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	subl	%eax, %edx
	incl	%edx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_get_find_current_module
	jmp	LBB0_3
LBB0_2:
	addl	8(%rbx), %edx
	movq	_DASH_COLLAPSED@GOTPCREL(%rip), %rcx
	movl	%edx, %eax
	cltd
	idivl	(%rcx)
LBB0_3:
	movq	_TOTAL_MODULES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	leal	-1(%rdx), %esi
	cmpl	%edx, %eax
	cmovgel	%esi, %ecx
	movl	$1, %eax
	cmpl	%ecx, (%rbx)
	je	LBB0_5
## %bb.4:
	movl	%ecx, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_HEIGHT_HEADER,4,2          ## @MAX_HEIGHT_HEADER
	.comm	_MAX_HEIGHT_FOOTER,4,2          ## @MAX_HEIGHT_FOOTER
	.comm	_DASH_COLLAPSED,4,2             ## @DASH_COLLAPSED
	.comm	_TOTAL_MODULES,4,2              ## @TOTAL_MODULES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_module_from_mouse_event    ; -- Begin function set_module_from_mouse_event
	.p2align	2
_set_module_from_mouse_event:           ; @set_module_from_mouse_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_HEIGHT_HEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_HEIGHT_HEADER@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MAX_HEIGHT_FOOTER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_HEIGHT_FOOTER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w9
	sub	w8, w2, w8
	add	w8, w8, #1
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_2
; %bb.1:
	mov	x0, x1
	mov	x1, x8
	bl	_get_find_current_module
	b	LBB0_3
LBB0_2:
	ldr	w9, [x19, #8]
	add	w8, w8, w9
Lloh6:
	adrp	x9, _DASH_COLLAPSED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DASH_COLLAPSED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w0, w8, w9
LBB0_3:
Lloh9:
	adrp	x8, _TOTAL_MODULES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TOTAL_MODULES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w9, w8, #1
	cmp	w0, #0
	csel	w10, w0, wzr, gt
	cmp	w0, w8
	csel	w8, w10, w9, lt
	ldr	w9, [x19]
	cmp	w9, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_HEIGHT_HEADER,4,2          ; @MAX_HEIGHT_HEADER
	.comm	_MAX_HEIGHT_FOOTER,4,2          ; @MAX_HEIGHT_FOOTER
	.comm	_DASH_COLLAPSED,4,2             ; @DASH_COLLAPSED
	.comm	_TOTAL_MODULES,4,2              ; @TOTAL_MODULES
.subsections_via_symbols
