	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcde_display_update
_mcde_display_update:                   ## @mcde_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	%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
	movq	%rdi, %r14
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdi
	movq	8(%rdi), %r13
	movq	16(%r14), %rax
	movq	8(%rax), %rbx
	movq	(%rsi), %r15
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %r12
	movq	$0, 8(%rax)
	callq	_spin_lock_irq
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	callq	_drm_crtc_vblank_get
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_crtc_send_vblank_event
	jmp	LBB0_5
LBB0_3:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_crtc_arm_vblank_event
LBB0_5:
	movq	(%r12), %rdi
	callq	_spin_unlock_irq
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_6:
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_drm_fb_cma_get_gem_addr
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mcde_set_extsrc
	movq	%r13, %rdi
	callq	_mcde_display_send_one_frame
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info_once                  ## TAILCALL
LBB0_8:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arm vblank event\n"

L_.str.1:                               ## @.str.1
	.asciz	"insert fake vblank event\n"

L_.str.2:                               ## @.str.2
	.asciz	"sent first display update\n"

L_.str.3:                               ## @.str.3
	.asciz	"ignored a display update\n"

	.no_dead_strip	_mcde_display_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcde_display_update
_mcde_display_update:                   ; @mcde_display_update
	.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	x24, x0
	mov	x22, x0
	ldr	x0, [x22, #8]!
	ldr	x19, [x0, #8]
	ldr	x8, [x24, #16]
	ldr	x23, [x8, #8]
	ldr	x20, [x24]
	ldr	x21, [x20]
	cbz	x23, LBB0_6
; %bb.1:
	str	xzr, [x8, #8]
	bl	_spin_lock_irq
	ldr	x8, [x24, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_drm_crtc_vblank_get
	cbz	x0, LBB0_4
LBB0_3:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x22
	mov	x1, x23
	bl	_drm_crtc_send_vblank_event
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x22
	mov	x1, x23
	bl	_drm_crtc_arm_vblank_event
LBB0_5:
	ldr	x0, [x22]
	bl	_spin_unlock_irq
LBB0_6:
	cbz	x21, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_drm_fb_cma_get_gem_addr
	mov	x1, x0
	mov	x0, x19
	bl	_mcde_set_extsrc
	mov	x0, x19
	bl	_mcde_display_send_one_frame
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	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
	b	_dev_info_once
LBB0_8:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	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
	b	_dev_info
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arm vblank event\n"

l_.str.1:                               ; @.str.1
	.asciz	"insert fake vblank event\n"

l_.str.2:                               ; @.str.2
	.asciz	"sent first display update\n"

l_.str.3:                               ; @.str.3
	.asciz	"ignored a display update\n"

	.no_dead_strip	_mcde_display_update
.subsections_via_symbols
