	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cirrus_pipe_update
_cirrus_pipe_update:                    ## @cirrus_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	%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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	8(%rax), %r12
	movq	(%r12), %r13
	callq	_cirrus_cpp
	cmpq	%rax, %r13
	je	LBB0_3
## %bb.2:
	leaq	24(%rbx), %rsi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_cirrus_mode_set
LBB0_3:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_atomic_helper_damage_merged
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_cirrus_fb_blit_rect
LBB0_5:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	8(%rbx), %r14
	movq	8(%rbx), %rdi
	callq	_spin_lock_irq
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_drm_crtc_send_vblank_event
	movq	16(%rbx), %rax
	movq	$0, (%rax)
	movq	8(%rbx), %rdi
	callq	_spin_unlock_irq
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cirrus_pipe_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cirrus_pipe_update
_cirrus_pipe_update:                    ; @cirrus_pipe_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20, #8]!
	ldr	x22, [x0]
	ldr	w0, [x22]
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x23, [x8, #8]
	ldr	x24, [x23]
	bl	_cirrus_cpp
	cmp	x24, x0
	b.eq	LBB0_3
; %bb.2:
	mov	x1, x19
	ldr	x8, [x1], #24
	ldr	w2, [x8]
	mov	x0, x23
	bl	_cirrus_mode_set
LBB0_3:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_drm_atomic_helper_damage_merged
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_cirrus_fb_blit_rect
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x0, [x19, #8]
	bl	_spin_lock_irq
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	mov	x0, x20
	bl	_drm_crtc_send_vblank_event
	ldp	x0, x8, [x19, #8]
	str	xzr, [x8]
	bl	_spin_unlock_irq
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cirrus_pipe_update
.subsections_via_symbols
