	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_helper_disable_plane ## -- Begin function drm_atomic_helper_disable_plane
	.p2align	4, 0x90
_drm_atomic_helper_disable_plane:       ## @drm_atomic_helper_disable_plane
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_drm_atomic_state_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, (%rax)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_drm_atomic_get_plane_state
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_PTR_ERR
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	cmpq	%rbx, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	(%r15), %rax
	movl	$1, (%rax)
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___drm_atomic_helper_disable_plane
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:
	movq	%r14, %rdi
	callq	_drm_atomic_state_put
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_drm_atomic_commit
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_helper_disable_plane ; -- Begin function drm_atomic_helper_disable_plane
	.p2align	2
_drm_atomic_helper_disable_plane:       ; @drm_atomic_helper_disable_plane
	.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	x21, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_drm_atomic_state_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	x21, [x0]
	mov	x1, x20
	bl	_drm_atomic_get_plane_state
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_PTR_ERR
LBB0_3:
	mov	x20, x0
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_5:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x21]
	mov	w9, #1
	str	w9, [x8]
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	bl	___drm_atomic_helper_disable_plane
	mov	x20, x0
	cbz	w0, LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_drm_atomic_state_put
LBB0_10:
	mov	x0, x20
	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
	ret
LBB0_11:
	mov	x0, x19
	bl	_drm_atomic_commit
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
