	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_plane_set_scanout
__dpu_plane_set_scanout:                ## @_dpu_plane_set_scanout
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_to_dpu_plane
	movq	%rax, %r12
	leaq	8(%rax), %rdi
	callq	__dpu_plane_get_kms
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_dpu_format_populate_layout
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_1
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_DEBUG_PLANE                ## TAILCALL
LBB0_1:
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR_PLANE                ## TAILCALL
LBB0_2:
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.6:
	movl	8(%rax), %edi
	movl	(%r14), %edx
	movq	%r15, %rsi
	callq	_trace_dpu_plane_set_scanout
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movl	(%r14), %edx
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not updating same src addrs\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get format layout, %d\n"

	.no_dead_strip	__dpu_plane_set_scanout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dpu_plane_set_scanout
__dpu_plane_set_scanout:                ; @_dpu_plane_set_scanout
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	bl	_to_dpu_plane
	mov	x21, x0
	add	x0, x0, #8
	bl	__dpu_plane_get_kms
	ldr	x0, [x0]
	mov	x1, x22
	mov	x2, x19
	bl	_dpu_format_populate_layout
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	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	_DPU_DEBUG_PLANE
LBB0_2:
	mov	x2, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	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	_DPU_ERROR_PLANE
LBB0_4:
	ldr	x8, [x21]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	w0, [x8, #8]
	ldr	w2, [x20]
	mov	x1, x19
	bl	_trace_dpu_plane_set_scanout
	ldr	x0, [x21]
	ldr	x3, [x0]
	ldr	w2, [x20]
	mov	x1, 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
	br	x3
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not updating same src addrs\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get format layout, %d\n"

	.no_dead_strip	__dpu_plane_set_scanout
.subsections_via_symbols
