	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp5_crtc_atomic_enable
_mdp5_crtc_atomic_enable:               ## @mdp5_crtc_atomic_enable
	.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
	callq	_to_mdp5_crtc
	movq	%rax, %r15
	movl	4(%rbx), %edi
	callq	_to_mdp5_crtc_state
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_get_kms
	movq	%rax, %r14
	movq	8(%rax), %r13
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movl	(%r15), %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	%r13, %rdi
	callq	_pm_runtime_get_sync
	cmpq	$0, 32(%r15)
	je	LBB0_6
## %bb.2:
	cmpq	$0, 24(%r15)
	je	LBB0_3
## %bb.4:
	leaq	16(%r15), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_mdp5_crtc_restore_cursor
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_3:
	xorl	%ecx, %ecx
LBB0_5:
	movl	12(%r12), %edi
	movq	%r12, %rsi
	addq	$8, %rsi
	xorl	%edx, %edx
	callq	_mdp5_ctl_set_cursor
LBB0_6:
	movq	%rbx, %rdi
	callq	_mdp5_crtc_vblank_on
	movq	%rbx, %rdi
	callq	_mdp5_crtc_mode_set_nofb
	leaq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_mdp_irq_register
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_mdp_irq_register
LBB0_8:
	movl	$1, (%r15)
LBB0_9:
	addq	$8, %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	"%s"

	.no_dead_strip	_mdp5_crtc_atomic_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdp5_crtc_atomic_enable
_mdp5_crtc_atomic_enable:               ; @mdp5_crtc_atomic_enable
	.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	x20, x0
	bl	_to_mdp5_crtc
	mov	x19, x0
	ldr	w0, [x20, #4]
	bl	_to_mdp5_crtc_state
	mov	x22, x0
	mov	x0, x20
	bl	_get_kms
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	w1, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	w0, [x19]
	bl	_WARN_ON
	cbnz	x0, LBB0_9
; %bb.1:
	mov	x0, x23
	bl	_pm_runtime_get_sync
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	add	x23, x19, #16
	mov	x0, x23
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_mdp5_crtc_restore_cursor
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	mov	w3, #1
	b	LBB0_5
LBB0_4:
	mov	w3, #0
LBB0_5:
	ldr	w0, [x22, #12]
	add	x1, x22, #8
	mov	w2, #0
	bl	_mdp5_ctl_set_cursor
LBB0_6:
	mov	x0, x20
	bl	_mdp5_crtc_vblank_on
	mov	x0, x20
	bl	_mdp5_crtc_mode_set_nofb
	add	x1, x19, #8
	mov	x0, x21
	bl	_mdp_irq_register
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.7:
	add	x1, x19, #4
	mov	x0, x21
	bl	_mdp_irq_register
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.no_dead_strip	_mdp5_crtc_atomic_enable
.subsections_via_symbols
