	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLBitmapCopy                  ## -- Begin function VGLBitmapCopy
	.p2align	4, 0x90
_VGLBitmapCopy:                         ## @VGLBitmapCopy
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	24(%rbp), %r12d
	movl	$-1, %r15d
	testl	%r12d, %r12d
	js	LBB0_9
## %bb.1:
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_VGLDisplay@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdi, %rax
	jne	LBB0_3
## %bb.2:
	movq	_VGLVDisplay@GOTPCREL(%rip), %r14
LBB0_3:
	movq	(%r14), %rsi
	movq	_MEMBUF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rsi
	jne	LBB0_9
## %bb.4:
	movl	16(%rbp), %r10d
	cmpq	%rcx, %rax
	je	LBB0_5
## %bb.6:
	cmpq	%rsi, (%rcx)
	je	LBB0_7
	jmp	LBB0_9
LBB0_5:
	xorl	%eax, %eax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	callq	_VGLMouseFreeze
	movq	_VGLVDisplay@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r12
	movl	16(%rbp), %eax
	pushq	%rax
	callq	___VGLBitmapCopy
	addq	$16, %rsp
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movq	_VGLVDisplay@GOTPCREL(%rip), %r14
	movq	%r14, %rcx
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r12
	movl	16(%rbp), %eax
	pushq	%rax
	callq	___VGLBitmapCopy
	movl	16(%rbp), %r10d
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$16, %rsp
	movl	%eax, %r15d
	movl	%r9d, %r13d
	movl	%r8d, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_7:
	negl	%r12d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movq	%rcx, %rbx
	pushq	%r12
	pushq	%r10
	callq	___VGLBitmapCopy
	addq	$16, %rsp
	movl	%eax, %r15d
	movq	_VGLDisplay@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_VGLMouseUnFreeze
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VGLDisplay,8,3                 ## @VGLDisplay
	.comm	_VGLVDisplay,8,3                ## @VGLVDisplay
	.comm	_MEMBUF,8,3                     ## @MEMBUF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLBitmapCopy                  ; -- Begin function VGLBitmapCopy
	.p2align	2
_VGLBitmapCopy:                         ; @VGLBitmapCopy
	.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
	tbnz	w7, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x28, _VGLDisplay@GOTPAGE
Lloh1:
	ldr	x28, [x28, _VGLDisplay@GOTPAGEOFF]
	ldr	x9, [x28]
Lloh2:
	adrp	x8, _VGLVDisplay@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VGLVDisplay@GOTPAGEOFF]
	cmp	x9, x0
	csel	x26, x8, x0, eq
	ldr	x8, [x26]
Lloh4:
	adrp	x10, _MEMBUF@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MEMBUF@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.2:
	mov	x23, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x24, x2
	mov	x25, x1
	cmp	x9, x3
	b.eq	LBB0_6
; %bb.3:
	ldr	x9, [x19]
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_4:
	mov	w24, #-1
LBB0_5:
	mov	x0, x24
	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
LBB0_6:
	bl	_VGLMouseFreeze
Lloh7:
	adrp	x27, _VGLVDisplay@GOTPAGE
Lloh8:
	ldr	x27, [x27, _VGLVDisplay@GOTPAGEOFF]
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	mov	x3, x27
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x23
	bl	___VGLBitmapCopy
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	mov	x3, x27
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x23
	bl	___VGLBitmapCopy
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.7:
	mov	x24, x21
	mov	x25, x22
	mov	x26, x27
LBB0_8:
	neg	w7, w23
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	mov	x3, x19
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	bl	___VGLBitmapCopy
	mov	x24, x0
	ldr	x8, [x28]
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.9:
	bl	_VGLMouseUnFreeze
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VGLDisplay,8,3                 ; @VGLDisplay
	.comm	_VGLVDisplay,8,3                ; @VGLVDisplay
	.comm	_MEMBUF,8,3                     ; @MEMBUF
.subsections_via_symbols
