	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_crtc_do_flush
_komeda_crtc_do_flush:                  ## @komeda_crtc_do_flush
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_to_kcrtc
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_to_kcrtc_st
	movq	%rax, %r12
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rcx
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r13
	movq	%rcx, %rbx
	movq	%r14, %rdi
	callq	_drm_crtc_index
	movl	(%r12), %edx
	movl	4(%r12), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_ATOMIC
	movl	(%rbx), %edi
	movl	4(%r12), %esi
	callq	_has_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_komeda_pipeline_update
LBB0_2:
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:
	movl	(%r13), %edi
	movl	4(%r12), %esi
	callq	_has_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_komeda_pipeline_update
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.6:
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	cmpq	$0, (%rsi)
	je	LBB0_9
## %bb.8:
	callq	_drm_writeback_queue_job
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rbx), %esi
	movl	(%r12), %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRTC%d_FLUSH: active_pipes: 0x%x, affected: 0x%x.\n"

	.no_dead_strip	_komeda_crtc_do_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_crtc_do_flush
_komeda_crtc_do_flush:                  ; @komeda_crtc_do_flush
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x1
	mov	x25, x0
	bl	_to_kcrtc
	mov	x22, x0
	ldr	w0, [x25]
	bl	_to_kcrtc_st
	mov	x19, x0
	ldp	x21, x8, [x22, #16]
	ldr	x20, [x8]
	ldp	x22, x24, [x22]
	mov	x0, x25
	bl	_drm_crtc_index
	mov	x1, x0
	ldp	w2, w3, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_ATOMIC
	ldr	w0, [x21]
	ldr	w1, [x19, #4]
	bl	_has_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_komeda_pipeline_update
LBB0_2:
	cbz	x24, LBB0_5
; %bb.3:
	ldr	w0, [x24]
	ldr	w1, [x19, #4]
	bl	_has_bit
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x23]
	mov	x0, x24
	bl	_komeda_pipeline_update
LBB0_5:
	cbz	x22, LBB0_9
; %bb.6:
	ldr	x1, [x22]
	cbz	x1, LBB0_9
; %bb.7:
	ldr	x8, [x1]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x22
	bl	_drm_writeback_queue_job
LBB0_9:
	ldr	x8, [x20]
	ldr	x3, [x8]
	ldr	w1, [x21]
	ldr	w2, [x19]
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRTC%d_FLUSH: active_pipes: 0x%x, affected: 0x%x.\n"

	.no_dead_strip	_komeda_crtc_do_flush
.subsections_via_symbols
