	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_get_plane_state     ## -- Begin function drm_atomic_get_plane_state
	.p2align	4, 0x90
_drm_atomic_get_plane_state:            ## @drm_atomic_get_plane_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_drm_plane_index
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	$0, 8(%r14)
	sete	%dil
	callq	_WARN_ON
	movl	(%rbx), %edi
	callq	_WARN_ON
	movl	4(%rbx), %edi
	callq	_WARN_ON
	movl	8(%rbx), %edi
	callq	_WARN_ON
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_atomic_get_existing_plane_state
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	32(%rbx), %rdi
	movl	8(%r14), %esi
	callq	_drm_modeset_lock
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %edi
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movq	(%r14), %rax
	movslq	%r15d, %rcx
	shlq	$5, %rcx
	movq	%r12, 24(%rax,%rcx)
	movq	%rbx, 16(%rax,%rcx)
	movl	20(%rbx), %edx
	movl	%edx, 8(%rax,%rcx)
	movq	%r12, (%rax,%rcx)
	movq	%r14, 8(%r12)
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_DRM_DEBUG_ATOMIC
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_drm_atomic_get_crtc_state
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Added [PLANE:%d:%s] %p state to %p\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_get_plane_state     ; -- Begin function drm_atomic_get_plane_state
	.p2align	2
_drm_atomic_get_plane_state:            ; @drm_atomic_get_plane_state
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_drm_plane_index
	mov	x21, x0
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w0, [x20]
	bl	_WARN_ON
	ldr	w0, [x20, #4]
	bl	_WARN_ON
	ldr	w0, [x20, #8]
	bl	_WARN_ON
	mov	x0, x19
	mov	x1, x20
	bl	_drm_atomic_get_existing_plane_state
	mov	x22, x0
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x22
	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_2:
	add	x0, x20, #32
	ldr	w1, [x19, #8]
	bl	_drm_modeset_lock
	cbz	w0, LBB0_4
LBB0_3:
	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
	b	_ERR_PTR
LBB0_4:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	ldr	x8, [x19]
	sxtw	x9, w21
	add	x8, x8, x9, lsl #5
	stp	x20, x0, [x8, #16]
	ldr	w9, [x20, #20]
	str	w9, [x8, #8]
	str	x0, [x8]
	str	x19, [x0, #8]
	ldp	w2, w1, [x20, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x22
	mov	x4, x19
	bl	_DRM_DEBUG_ATOMIC
	ldr	x1, [x22]
	cbz	x1, LBB0_1
; %bb.6:
	mov	x0, x19
	bl	_drm_atomic_get_crtc_state
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_1
; %bb.7:
	mov	x0, x19
	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
	b	_ERR_CAST
LBB0_8:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.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	"Added [PLANE:%d:%s] %p state to %p\n"

.subsections_via_symbols
