	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_overlay_plane_update
_armada_overlay_plane_update:           ## @armada_overlay_plane_update
	.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, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	16(%rbp), %eax
	subq	$8, %rsp
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	pushq	48(%rbp)
	pushq	40(%rbp)
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	%rax
	callq	_trace_armada_ovl_plane_update
	addq	$48, %rsp
	movl	(%rbx), %edi
	callq	_drm_atomic_state_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	56(%rbp), %rax
	movq	%rax, (%r12)
	movq	%r12, %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_6:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_atomic_set_crtc_for_plane
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	%r12, %rdi
	callq	_drm_atomic_state_put
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_drm_atomic_set_fb_for_plane
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r15)
	movl	16(%rbp), %eax
	movl	%eax, 8(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r15)
	movq	24(%rbp), %rax
	movq	%rax, 40(%r15)
	movq	32(%rbp), %rax
	movq	%rax, 32(%r15)
	movq	48(%rbp), %rax
	movq	%rax, 24(%r15)
	movq	40(%rbp), %rax
	movq	%rax, 16(%r15)
	movq	%r12, %rdi
	callq	_drm_atomic_nonblocking_commit
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_armada_overlay_plane_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada_overlay_plane_update
_armada_overlay_plane_update:           ; @armada_overlay_plane_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x6
	mov	x22, x4
	mov	x23, x3
	mov	x25, x2
	mov	x26, x1
	mov	x27, x0
	ldp	x19, x28, [x29, #24]
	ldr	x20, [x29, #16]
	stp	x19, x28, [sp, #8]
	str	x20, [sp]
	str	w5, [sp, #36]                   ; 4-byte Folded Spill
	str	x7, [sp, #40]                   ; 8-byte Folded Spill
	bl	_trace_armada_ovl_plane_update
	ldr	w0, [x27]
	bl	_drm_atomic_state_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x24, x0
	ldr	x8, [x29, #40]
	str	x8, [x0]
	mov	x1, x27
	bl	_drm_atomic_get_plane_state
	mov	x27, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x27
	bl	_PTR_ERR
LBB0_3:
	mov	x26, x0
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_7
LBB0_5:
	mov	x0, x27
	mov	x1, x26
	bl	_drm_atomic_set_crtc_for_plane
	mov	x26, x0
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x24
	bl	_drm_atomic_state_put
LBB0_7:
	mov	x0, x26
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	mov	x0, x27
	mov	x1, x25
	bl	_drm_atomic_set_fb_for_plane
	stp	w23, w22, [x27]
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	stp	w21, w8, [x27, #8]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	stp	x20, x8, [x27, #32]
	stp	x19, x28, [x27, #16]
	mov	x0, x24
	bl	_drm_atomic_nonblocking_commit
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_armada_overlay_plane_update
.subsections_via_symbols
