	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_gfx_pipe_update
_aspeed_gfx_pipe_update:                ## @aspeed_gfx_pipe_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
	callq	_drm_pipe_to_aspeed_gfx
	movq	%rax, %r14
	leaq	8(%rbx), %r12
	movq	(%rbx), %rax
	movq	8(%rbx), %rdi
	movq	(%rax), %r15
	callq	_spin_lock_irq
	movq	16(%rbx), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	$0, (%rax)
	movq	%r12, %rdi
	callq	_drm_crtc_vblank_get
	movq	%r12, %rdi
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	callq	_drm_crtc_send_vblank_event
	jmp	LBB0_4
LBB0_2:
	callq	_drm_crtc_arm_vblank_event
LBB0_4:
	movq	(%r12), %rdi
	callq	_spin_unlock_irq
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_drm_fb_cma_get_gem_obj
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%rax), %edi
	movq	_CRT_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRT_ADDR,8,3                   ## @CRT_ADDR
	.no_dead_strip	_aspeed_gfx_pipe_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aspeed_gfx_pipe_update
_aspeed_gfx_pipe_update:                ; @aspeed_gfx_pipe_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	x22, x0
	bl	_drm_pipe_to_aspeed_gfx
	mov	x19, x0
	mov	x21, x22
	ldr	x0, [x21, #8]!
	ldr	x8, [x22]
	ldr	x20, [x8]
	bl	_spin_lock_irq
	ldr	x8, [x22, #16]
	ldr	x22, [x8]
	cbz	x22, LBB0_4
; %bb.1:
	str	xzr, [x8]
	mov	x0, x21
	bl	_drm_crtc_vblank_get
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	bl	_drm_crtc_send_vblank_event
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	mov	x1, x22
	bl	_drm_crtc_arm_vblank_event
LBB0_4:
	ldr	x0, [x21]
	bl	_spin_unlock_irq
	cbz	x20, LBB0_7
; %bb.5:
	mov	x0, x20
	mov	w1, #0
	bl	_drm_fb_cma_get_gem_obj
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CRT_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CRT_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	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	_writel
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CRT_ADDR,8,3                   ; @CRT_ADDR
	.no_dead_strip	_aspeed_gfx_pipe_update
.subsections_via_symbols
