	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_helper_update_plane ## -- Begin function drm_atomic_helper_update_plane
	.p2align	4, 0x90
_drm_atomic_helper_update_plane:        ## @drm_atomic_helper_update_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r12d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_drm_atomic_state_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	56(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_atomic_get_plane_state
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_PTR_ERR
LBB0_8:
	movl	%eax, %r13d
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_4:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_atomic_set_crtc_for_plane
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_5
LBB0_9:
	movq	%r14, %rdi
	callq	_drm_atomic_state_put
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	16(%rbp), %r13d
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_drm_atomic_set_fb_for_plane
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r12)
	movl	%r13d, 12(%r12)
	movq	24(%rbp), %rax
	movq	%rax, 40(%r12)
	movq	32(%rbp), %rax
	movq	%rax, 32(%r12)
	movq	40(%rbp), %rax
	movq	%rax, 24(%r12)
	movq	48(%rbp), %rax
	movq	%rax, 16(%r12)
	cmpq	%r15, (%rbx)
	jne	LBB0_7
## %bb.6:
	movl	$1, (%r14)
LBB0_7:
	movq	%r14, %rdi
	callq	_drm_atomic_commit
	jmp	LBB0_8
	.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_update_plane ; -- Begin function drm_atomic_helper_update_plane
	.p2align	2
_drm_atomic_helper_update_plane:        ; @drm_atomic_helper_update_plane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x7
	mov	x23, x6
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x27, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_drm_atomic_state_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x29, #40]
	str	x8, [x0, #8]
	mov	x1, x21
	bl	_drm_atomic_get_plane_state
	mov	x28, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x28
	bl	_PTR_ERR
LBB0_3:
	mov	x20, x0
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_5:
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	mov	x0, x28
	mov	x1, x22
	bl	_drm_atomic_set_crtc_for_plane
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_drm_atomic_state_put
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	ldr	x8, [x29, #32]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x8, [x29, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x20, [x29, #16]
	mov	x0, x28
	mov	x1, x27
	bl	_drm_atomic_set_fb_for_plane
	stp	w26, w25, [x28]
	stp	w24, w23, [x28, #8]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	x20, x8, [x28, #32]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	stp	x8, x9, [x28, #16]
	ldr	x8, [x22]
	cmp	x8, x21
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x19]
LBB0_10:
	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
