	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tve200_display_update
_tve200_display_update:                 ## @tve200_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, %rbx
	leaq	8(%rdi), %r15
	movq	(%rdi), %r12
	movq	16(%rdi), %rax
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r13
	testq	%r13, %r13
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movq	8(%rax), %r14
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_drm_fb_cma_get_gem_addr
	movq	_TVE200_Y_FRAME_BASE_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_DRM_FORMAT_YUV420@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_drm_fb_cma_get_gem_addr
	movq	_TVE200_U_FRAME_BASE_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_drm_fb_cma_get_gem_addr
	movq	_TVE200_V_FRAME_BASE_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_9
## %bb.4:
	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_7
## %bb.5:
	movq	%r15, %rdi
	callq	_drm_crtc_vblank_get
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_crtc_send_vblank_event
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_crtc_arm_vblank_event
LBB0_8:
	movq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TVE200_Y_FRAME_BASE_ADDR,8,3   ## @TVE200_Y_FRAME_BASE_ADDR
	.comm	_DRM_FORMAT_YUV420,8,3          ## @DRM_FORMAT_YUV420
	.comm	_TVE200_U_FRAME_BASE_ADDR,8,3   ## @TVE200_U_FRAME_BASE_ADDR
	.comm	_TVE200_V_FRAME_BASE_ADDR,8,3   ## @TVE200_V_FRAME_BASE_ADDR
	.no_dead_strip	_tve200_display_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tve200_display_update
_tve200_display_update:                 ; @tve200_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	x21, x0
	add	x19, x0, #8
	ldr	x8, [x0, #16]
	ldr	x20, [x8, #8]
	ldr	x22, [x0]
	ldr	x23, [x22]
	cbz	x23, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x24, [x8, #8]
	mov	x0, x23
	mov	x1, x22
	mov	w2, #0
	bl	_drm_fb_cma_get_gem_addr
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _TVE200_Y_FRAME_BASE_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TVE200_Y_FRAME_BASE_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DRM_FORMAT_YUV420@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_FORMAT_YUV420@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x23
	mov	x1, x22
	mov	w2, #1
	bl	_drm_fb_cma_get_gem_addr
	ldr	x8, [x24]
Lloh6:
	adrp	x9, _TVE200_U_FRAME_BASE_ADDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TVE200_U_FRAME_BASE_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x23
	mov	x1, x22
	mov	w2, #2
	bl	_drm_fb_cma_get_gem_addr
	ldr	x8, [x24]
Lloh9:
	adrp	x9, _TVE200_V_FRAME_BASE_ADDR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TVE200_V_FRAME_BASE_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_3:
	cbz	x20, LBB0_7
; %bb.4:
	ldp	x0, x8, [x21, #8]
	str	xzr, [x8, #8]
	bl	_spin_lock_irq
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_drm_crtc_vblank_get
	cbz	x0, LBB0_8
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_drm_crtc_send_vblank_event
	b	LBB0_9
LBB0_7:
	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
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_drm_crtc_arm_vblank_event
LBB0_9:
	ldr	x0, [x19]
	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	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TVE200_Y_FRAME_BASE_ADDR,8,3   ; @TVE200_Y_FRAME_BASE_ADDR
	.comm	_DRM_FORMAT_YUV420,8,3          ; @DRM_FORMAT_YUV420
	.comm	_TVE200_U_FRAME_BASE_ADDR,8,3   ; @TVE200_U_FRAME_BASE_ADDR
	.comm	_TVE200_V_FRAME_BASE_ADDR,8,3   ; @TVE200_V_FRAME_BASE_ADDR
	.no_dead_strip	_tve200_display_update
.subsections_via_symbols
