	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_crtc_atomic_disable
_komeda_crtc_atomic_disable:            ## @komeda_crtc_atomic_disable
	.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	$40, %rsp
	.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, %r13
	callq	_to_kcrtc
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_to_kcrtc_st
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	8(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r15
	movq	8(%rcx), %rbx
	movq	%r13, %rdi
	callq	_drm_crtc_index
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_ATOMIC
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movl	(%r15), %edi
	movl	(%r14), %esi
	callq	_has_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_komeda_pipeline_disable
LBB0_3:
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	_has_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_komeda_pipeline_disable
LBB0_5:
	movq	8(%r13), %rax
	cmpq	$0, (%rax)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_komeda_pipeline_get_old_state
	movq	$0, (%rax)
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_completion
	movq	%rbx, (%r14)
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	*(%rax)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	8(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	8(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	(%r13), %rdi
	callq	_spin_lock_irqsave
	movq	$0, (%r14)
	movq	(%r13), %rdi
	callq	_spin_unlock_irqrestore
LBB0_10:
	movq	%r13, %rdi
	callq	_drm_crtc_vblank_off
	movq	%r14, %rdi
	callq	_komeda_crtc_unprepare
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRTC%d_DISABLE: active_pipes: 0x%x, affected: 0x%x.\n"

	.comm	_HZ,4,2                         ## @HZ
L_.str.1:                               ## @.str.1
	.asciz	"disable pipeline%d timeout.\n"

	.no_dead_strip	_komeda_crtc_atomic_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_crtc_atomic_disable
_komeda_crtc_atomic_disable:            ; @komeda_crtc_atomic_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x1
	mov	x19, x0
	bl	_to_kcrtc
	mov	x20, x0
	mov	x0, x24
	bl	_to_kcrtc_st
	mov	x25, x0
	ldp	x8, x9, [x19]
	ldr	x21, [x8, #8]
	ldp	x22, x26, [x20, #8]
	ldr	x23, [x9, #8]
	mov	x0, x19
	bl	_drm_crtc_index
	mov	x1, x0
	ldp	w2, w3, [x25]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_ATOMIC
	cbz	x26, LBB0_3
; %bb.1:
	ldr	w0, [x26]
	ldr	w1, [x25]
	bl	_has_bit
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x24]
	mov	x0, x26
	bl	_komeda_pipeline_disable
LBB0_3:
	ldr	w0, [x22]
	ldr	w1, [x25]
	bl	_has_bit
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x24]
	mov	x0, x22
	bl	_komeda_pipeline_disable
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x24]
	mov	x0, x22
	bl	_komeda_pipeline_get_old_state
	str	xzr, [x0]
	add	x23, sp, #8
	add	x0, sp, #8
	bl	_init_completion
	str	x23, [x20]
LBB0_7:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	blr	x8
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_wait_for_completion_timeout
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x0, [x19]
	bl	_spin_lock_irqsave
	str	xzr, [x20]
	ldr	x0, [x19]
	bl	_spin_unlock_irqrestore
LBB0_10:
	mov	x0, x19
	bl	_drm_crtc_vblank_off
	mov	x0, x20
	bl	_komeda_crtc_unprepare
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRTC%d_DISABLE: active_pipes: 0x%x, affected: 0x%x.\n"

	.comm	_HZ,4,2                         ; @HZ
l_.str.1:                               ; @.str.1
	.asciz	"disable pipeline%d timeout.\n"

	.no_dead_strip	_komeda_crtc_atomic_disable
.subsections_via_symbols
