	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLMouseMerge                  ## -- Begin function VGLMouseMerge
	.p2align	4, 0x90
_VGLMouseMerge:                         ## @VGLMouseMerge
	.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
	movq	%rcx, %r14
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	_VGLMouseXpos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	movl	%edi, %r12d
	cmovgl	%eax, %r12d
	addl	%edi, %ebx
	movq	_VGLMouseAndMask@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	leal	(%rdx,%rax), %esi
	cmpl	%esi, %ebx
	cmovgel	%esi, %ebx
	cmpl	%ebx, %r12d
	jge	LBB0_6
## %bb.1:
	movl	%edi, %r13d
	decl	%ebx
	negl	%r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %esi
	movq	_VGLMouseYpos@GOTPCREL(%rip), %rdi
	subl	(%rdi), %esi
	imull	%edx, %esi
	subl	%eax, %esi
	addl	%r12d, %esi
	movq	8(%rcx), %rax
	movslq	%esi, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_VGLMouseOrMask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VGLDisplay@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	imull	%edx, %esi
	movslq	%esi, %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	leal	(%r12,%r13), %eax
	imull	%edx, %eax
	cltq
	leaq	(%r14,%rax,4), %rdi
	callq	_memmove
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %ebx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_VGLMouseAndMask@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %edx
	movq	_VGLMouseXpos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%r12d
	jmp	LBB0_2
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VGLMouseXpos,4,2               ## @VGLMouseXpos
	.comm	_VGLMouseAndMask,8,3            ## @VGLMouseAndMask
	.comm	_VGLMouseYpos,4,2               ## @VGLMouseYpos
	.comm	_VGLMouseOrMask,8,3             ## @VGLMouseOrMask
	.comm	_VGLDisplay,8,3                 ## @VGLDisplay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLMouseMerge                  ; -- Begin function VGLMouseMerge
	.p2align	2
_VGLMouseMerge:                         ; @VGLMouseMerge
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _VGLMouseXpos@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VGLMouseXpos@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w9, w0
	csel	w22, w9, w0, gt
	add	w11, w2, w0
Lloh2:
	adrp	x23, _VGLMouseAndMask@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VGLMouseAndMask@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w10, [x8]
	add	w12, w10, w9
	cmp	w11, w12
	csel	w11, w11, w12, lt
	cmp	w22, w11
	b.ge	LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x20, x1
	sub	w24, w11, #1
	neg	w25, w0
Lloh4:
	adrp	x26, _VGLMouseYpos@GOTPAGE
Lloh5:
	ldr	x26, [x26, _VGLMouseYpos@GOTPAGEOFF]
Lloh6:
	adrp	x27, _VGLMouseOrMask@GOTPAGE
Lloh7:
	ldr	x27, [x27, _VGLMouseOrMask@GOTPAGEOFF]
Lloh8:
	adrp	x28, _VGLDisplay@GOTPAGE
Lloh9:
	ldr	x28, [x28, _VGLDisplay@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x26]
	sub	w11, w20, w11
	neg	w9, w9
	madd	w9, w10, w11, w9
	add	w9, w22, w9
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w9, sxtw #3]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8]
	ldr	x10, [x28]
	ldr	w2, [x10]
	mul	w9, w2, w9
	add	x1, x8, w9, sxtw #2
	add	w8, w25, w22
	mul	w8, w2, w8
	add	x0, x19, w8, sxtw #2
	bl	_memmove
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w24, w22
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	ldr	w10, [x8]
	ldr	w9, [x21]
	add	w22, w22, #1
	b	LBB0_2
LBB0_6:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VGLMouseXpos,4,2               ; @VGLMouseXpos
	.comm	_VGLMouseAndMask,8,3            ; @VGLMouseAndMask
	.comm	_VGLMouseYpos,4,2               ; @VGLMouseYpos
	.comm	_VGLMouseOrMask,8,3             ; @VGLMouseOrMask
	.comm	_VGLDisplay,8,3                 ; @VGLDisplay
.subsections_via_symbols
