	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_helper_suspend      ## -- Begin function drm_atomic_helper_suspend
	.p2align	4, 0x90
_drm_atomic_helper_suspend:             ## @drm_atomic_helper_suspend
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_DRM_MODESET_LOCK_ALL_BEGIN
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_drm_atomic_helper_duplicate_state
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-32(%rbp), %edi
	callq	_DRM_MODESET_LOCK_ALL_END
	jmp	LBB0_6
LBB0_2:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_drm_atomic_helper_disable_all
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	-32(%rbp), %edi
	movl	%r14d, %esi
	callq	_DRM_MODESET_LOCK_ALL_END
	testl	%r14d, %r14d
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	%r15, %rdi
	callq	_drm_atomic_state_put
	movl	%r14d, %edi
	callq	_ERR_PTR
	movl	-32(%rbp), %edi
	movl	%r14d, %esi
	callq	_DRM_MODESET_LOCK_ALL_END
LBB0_5:
	movl	%r14d, %edi
	callq	_ERR_PTR
	movq	%rax, %r15
LBB0_6:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_helper_suspend      ; -- Begin function drm_atomic_helper_suspend
	.p2align	2
_drm_atomic_helper_suspend:             ; @drm_atomic_helper_suspend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_DRM_MODESET_LOCK_ALL_BEGIN
	add	x1, sp, #8
	mov	x0, x20
	bl	_drm_atomic_helper_duplicate_state
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_DRM_MODESET_LOCK_ALL_END
	b	LBB0_6
LBB0_2:
	add	x1, sp, #8
	mov	x0, x20
	bl	_drm_atomic_helper_disable_all
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	w0, [sp, #8]
	mov	x1, x20
	bl	_DRM_MODESET_LOCK_ALL_END
	cbnz	w20, LBB0_5
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_drm_atomic_state_put
	mov	x0, x20
	bl	_ERR_PTR
	ldr	w0, [sp, #8]
	mov	x1, x20
	bl	_DRM_MODESET_LOCK_ALL_END
LBB0_5:
	mov	x0, x20
	bl	_ERR_PTR
	mov	x19, x0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
