	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_fb_pan_display
_vmw_fb_pan_display:                    ## @vmw_fb_pan_display
	.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	8(%rdi), %rax
	addq	(%rdi), %rax
	cmpq	16(%rdi), %rax
	jg	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	addq	24(%rdi), %rax
	cmpq	40(%rdi), %rax
	jle	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	(%rsi), %r15
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rsi
	movq	%rsi, (%r15)
	movq	24(%rbx), %rdx
	movq	%rdx, 8(%r15)
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	movq	%r15, %rdi
	callq	_vmw_fb_dirty_mark
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested panning can not fit in framebuffer\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vmw_fb_pan_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_fb_pan_display
_vmw_fb_pan_display:                    ; @vmw_fb_pan_display
	.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
	ldp	x8, x9, [x0]
	ldr	x10, [x0, #16]
	add	x8, x9, x8
	cmp	x8, x10
	b.gt	LBB0_2
; %bb.1:
	mov	x20, x0
	ldp	x8, x9, [x0, #24]
	ldr	x10, [x0, #40]
	add	x8, x9, x8
	cmp	x8, x10
	b.le	LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	ldr	x21, [x1]
	add	x19, x21, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	x1, [x20]
	ldr	x2, [x20, #24]
	stp	x1, x2, [x21]
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldp	w4, w3, [x8]
	mov	x0, x21
	bl	_vmw_fb_dirty_mark
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested panning can not fit in framebuffer\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vmw_fb_pan_display
.subsections_via_symbols
