	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udl_user_framebuffer_dirty
_udl_user_framebuffer_dirty:            ## @udl_user_framebuffer_dirty
	.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
	movl	%r9d, %r12d
	movq	%r8, %r13
	movq	%rdi, %r14
	callq	_to_udl_fb
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_drm_modeset_lock_all
	cmpl	$0, 8(%r15)
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rax), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_buf_begin_cpu_access
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_4:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.8:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r12d
	shlq	$5, %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13,%r14), %rsi
	movq	24(%r13,%r14), %rcx
	subq	%rsi, %rcx
	movq	(%r13,%r14), %rdx
	movq	8(%r13,%r14), %r8
	subq	%rdx, %r8
	movq	%r15, %rdi
	callq	_udl_handle_damage
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_9 Depth=1
	addq	$32, %r14
	cmpq	%r14, %r12
	jne	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	(%rax), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_buf_end_cpu_access
	movl	%eax, %ebx
LBB0_14:
	movl	(%r14), %edi
	callq	_drm_modeset_unlock_all
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_udl_user_framebuffer_dirty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udl_user_framebuffer_dirty
_udl_user_framebuffer_dirty:            ; @udl_user_framebuffer_dirty
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x5
	mov	x21, x4
	mov	x19, x0
	bl	_to_udl_fb
	mov	x20, x0
	ldr	w0, [x19]
	bl	_drm_modeset_lock_all
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_8
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dma_buf_begin_cpu_access
	mov	x23, x0
	cbnz	w0, LBB0_12
LBB0_3:
	cbz	w22, LBB0_7
; %bb.4:
	mov	w22, w22
	add	x21, x21, #16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x1, x8, [x21]
	sub	x3, x8, x1
	ldp	x2, x8, [x21, #-16]
	sub	x4, x8, x2
	mov	x0, x20
	bl	_udl_handle_damage
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #32
	subs	x22, x22, #1
	b.ne	LBB0_5
LBB0_7:
	mov	w23, #0
	b	LBB0_10
LBB0_8:
	mov	w23, #0
	b	LBB0_12
LBB0_9:
	mov	x23, x0
LBB0_10:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_dma_buf_end_cpu_access
	mov	x23, x0
LBB0_12:
	ldr	w0, [x19]
	bl	_drm_modeset_unlock_all
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_udl_user_framebuffer_dirty
.subsections_via_symbols
