	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_atomic_commit_hw_done
_malidp_atomic_commit_hw_done:          ## @malidp_atomic_commit_hw_done
	.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, %r14
	movq	(%rdi), %r12
	movq	8(%r12), %rbx
	leaq	8(%rbx), %r15
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rax
	movq	%rax, (%rbx)
	movq	$0, 8(%rcx)
	cmpq	$0, (%rcx)
	je	LBB0_10
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_drm_crtc_vblank_get
LBB0_3:
	movq	%r12, %rdi
	callq	_malidp_set_and_wait_config_valid
	testq	%rax, %rax
	jns	LBB0_12
## %bb.4:
	movq	%r12, %rdi
	callq	_malidp_set_and_wait_config_valid
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r12, %rdi
	callq	_malidp_set_and_wait_config_valid
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%r12, %rdi
	callq	_malidp_set_and_wait_config_valid
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_malidp_set_and_wait_config_valid
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_malidp_set_and_wait_config_valid
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_12
LBB0_10:
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_drm_crtc_send_vblank_event
	movq	$0, (%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_irq
LBB0_12:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_atomic_helper_commit_hw_done ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out waiting for updated configuration\n"

	.no_dead_strip	_malidp_atomic_commit_hw_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_atomic_commit_hw_done
_malidp_atomic_commit_hw_done:          ; @malidp_atomic_commit_hw_done
	.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	x19, x0
	ldr	x20, [x0]
	ldr	x22, [x20, #8]
	mov	x21, x22
	ldr	x9, [x21, #8]!
	ldp	x10, x8, [x9]
	str	x8, [x22]
	str	xzr, [x9, #8]
	cbz	x10, LBB0_10
; %bb.1:
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_drm_crtc_vblank_get
LBB0_3:
	mov	x0, x20
	bl	_malidp_set_and_wait_config_valid
	tbz	x0, #63, LBB0_12
; %bb.4:
	mov	x0, x20
	bl	_malidp_set_and_wait_config_valid
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_malidp_set_and_wait_config_valid
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_malidp_set_and_wait_config_valid
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_malidp_set_and_wait_config_valid
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_malidp_set_and_wait_config_valid
LBB0_9:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	b	LBB0_12
LBB0_10:
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	x1, [x22]
	mov	x0, x21
	bl	_drm_crtc_send_vblank_event
	str	xzr, [x22]
	mov	x0, x20
	bl	_spin_unlock_irq
LBB0_12:
	mov	x0, x19
	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	_drm_atomic_helper_commit_hw_done
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out waiting for updated configuration\n"

	.no_dead_strip	_malidp_atomic_commit_hw_done
.subsections_via_symbols
