	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl111_display_update
_pl111_display_update:                  ## @pl111_display_update
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	(%rdi), %rsi
	movq	16(%rdi), %rax
	movq	8(%rax), %r14
	movq	(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	8(%rax), %r12
	xorl	%edx, %edx
	callq	_drm_fb_cma_get_gem_addr
	movq	_CLCD_UBAS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_2:
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	movq	16(%rbx), %rax
	movq	$0, 8(%rax)
	movq	8(%rbx), %rdi
	callq	_spin_lock_irq
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_drm_crtc_vblank_get
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_crtc_send_vblank_event
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_crtc_arm_vblank_event
LBB0_7:
	movq	(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CLCD_UBAS,8,3                  ## @CLCD_UBAS
	.no_dead_strip	_pl111_display_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl111_display_update
_pl111_display_update:                  ; @pl111_display_update
	.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	x21, x0
	add	x19, x0, #8
	ldr	x8, [x0, #16]
	ldr	x20, [x8, #8]
	ldr	x1, [x0]
	ldr	x0, [x1]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x22, [x8, #8]
	mov	w2, #0
	bl	_drm_fb_cma_get_gem_addr
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _CLCD_UBAS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CLCD_UBAS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_2:
	cbz	x20, LBB0_6
; %bb.3:
	ldp	x0, x8, [x21, #8]
	str	xzr, [x8, #8]
	bl	_spin_lock_irq
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_drm_crtc_vblank_get
	cbz	x0, LBB0_7
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_drm_crtc_send_vblank_event
	b	LBB0_8
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
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_drm_crtc_arm_vblank_event
LBB0_8:
	ldr	x0, [x19]
	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	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CLCD_UBAS,8,3                  ; @CLCD_UBAS
	.no_dead_strip	_pl111_display_update
.subsections_via_symbols
