	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_force_atomic_commit
_dm_force_atomic_commit:                ## @dm_force_atomic_commit
	.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
	movq	8(%rdi), %r13
	movq	%r13, %rdi
	callq	_drm_atomic_state_alloc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_to_amdgpu_crtc
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	(%rax), %r15
	movl	(%r13), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_atomic_get_connector_state
	movq	%rax, %rdi
	callq	_PTR_ERR_OR_ZERO
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_drm_atomic_get_crtc_state
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_PTR_ERR_OR_ZERO
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	$1, (%r12)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_atomic_get_plane_state
	movq	%rax, %rdi
	callq	_PTR_ERR_OR_ZERO
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_drm_atomic_commit
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_ERROR
	movq	%r14, %rdi
	callq	_drm_atomic_state_put
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Restoring old state failed with %i\n"

	.no_dead_strip	_dm_force_atomic_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_force_atomic_commit
_dm_force_atomic_commit:                ; @dm_force_atomic_commit
	.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	x21, x0
	ldr	x23, [x0, #8]
	mov	x0, x23
	bl	_drm_atomic_state_alloc
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_to_amdgpu_crtc
	cbz	x19, LBB0_6
; %bb.1:
	mov	x22, x0
	ldr	x20, [x0]
	ldr	w8, [x23]
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_drm_atomic_get_connector_state
	bl	_PTR_ERR_OR_ZERO
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	bl	_drm_atomic_get_crtc_state
	mov	x22, x0
	bl	_PTR_ERR_OR_ZERO
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	w8, #1
	str	w8, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_drm_atomic_get_plane_state
	bl	_PTR_ERR_OR_ZERO
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_drm_atomic_commit
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_drm_atomic_state_put
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Restoring old state failed with %i\n"

	.no_dead_strip	_dm_force_atomic_commit
.subsections_via_symbols
