	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLMouseSetImage               ## -- Begin function VGLMouseSetImage
	.p2align	4, 0x90
_VGLMouseSetImage:                      ## @VGLMouseSetImage
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_VGL_MOUSEHIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___VGLMouseMode
	movl	%eax, %r14d
	movq	_VGLMouseAndMask@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_VGLMouseOrMask@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rdi
	callq	_free
	movq	(%rbx), %rdi
	callq	_free
LBB0_2:
	movq	_MEMBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movl	4(%r15), %esi
	xorl	%ecx, %ecx
	callq	_VGLBitmapCreate
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_VGLBitmapAllocateBits
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_VGLBitmapCvt
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___VGLMouseMode                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VGL_MOUSEHIDE,4,2              ## @VGL_MOUSEHIDE
	.comm	_VGLMouseAndMask,8,3            ## @VGLMouseAndMask
	.comm	_VGLMouseOrMask,8,3             ## @VGLMouseOrMask
	.comm	_MEMBUF,4,2                     ## @MEMBUF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLMouseSetImage               ; -- Begin function VGLMouseSetImage
	.p2align	2
_VGLMouseSetImage:                      ; @VGLMouseSetImage
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _VGL_MOUSEHIDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VGL_MOUSEHIDE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___VGLMouseMode
	mov	x20, x0
Lloh3:
	adrp	x8, _VGLMouseAndMask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VGLMouseAndMask@GOTPAGEOFF]
Lloh5:
	str	x21, [x8]
Lloh6:
	adrp	x21, _VGLMouseOrMask@GOTPAGE
Lloh7:
	ldr	x21, [x21, _VGLMouseOrMask@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x8]
	bl	_free
	ldr	x0, [x21]
	bl	_free
LBB0_2:
Lloh8:
	adrp	x8, _MEMBUF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEMBUF@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	w2, w1, [x19]
	mov	w3, #0
	bl	_VGLBitmapCreate
	str	x0, [x21]
	bl	_VGLBitmapAllocateBits
	ldr	x1, [x21]
	mov	x0, x19
	bl	_VGLBitmapCvt
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	___VGLMouseMode
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VGL_MOUSEHIDE,4,2              ; @VGL_MOUSEHIDE
	.comm	_VGLMouseAndMask,8,3            ; @VGLMouseAndMask
	.comm	_VGLMouseOrMask,8,3             ; @VGLMouseOrMask
	.comm	_MEMBUF,4,2                     ; @MEMBUF
.subsections_via_symbols
