	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_plane_init_data_flow
_komeda_plane_init_data_flow:           ## @komeda_plane_init_data_flow
	.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
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	56(%rdi), %rdi
	callq	_to_kplane
	movq	%rax, %r15
	movq	72(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_to_kfb
	movq	(%rax), %r13
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	(%rax), %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	(%rbx), %rax
	movq	%rax, (%r12)
	movl	64(%rbx), %edi
	callq	_to_kcrtc
	cmpq	(%rax), %r15
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	testq	%rax, %rax
	js	LBB0_4
LBB0_6:
	movl	48(%rbx), %eax
	movl	%eax, 48(%r12)
	movl	8(%rbx), %eax
	sarl	$8, %eax
	movl	%eax, 8(%r12)
	movups	32(%rbx), %xmm0
	movups	%xmm0, 32(%r12)
	movdqu	12(%rbx), %xmm0
	psrad	$16, %xmm0
	movdqu	%xmm0, 12(%r12)
	movl	28(%rbx), %edi
	movl	4(%r13), %esi
	callq	_drm_rotation_simplify
	movl	%eax, 28(%r12)
	movl	4(%r13), %esi
	movl	%eax, %edi
	callq	_has_bits
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_komeda_complete_data_flow_cfg
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	(%r12), %rax
	subq	(%r14), %rax
	movq	%rax, (%r12)
	testq	%rax, %rax
	jns	LBB0_6
LBB0_4:
	movq	(%rbx), %rdx
	movq	56(%rbx), %rax
	movl	(%rax), %esi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_ATOMIC
	jmp	LBB0_5
LBB0_7:
	movl	28(%r12), %r15d
	movl	(%r13), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_komeda_get_format_name
	movslq	%eax, %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_ATOMIC
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s zorder:%d < max_slave_zorder: %d.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"rotation(0x%x) isn't supported by %s.\n"

	.no_dead_strip	_komeda_plane_init_data_flow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function komeda_plane_init_data_flow
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.long	4294967280                      ; 0xfffffff0
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_komeda_plane_init_data_flow:           ; @komeda_plane_init_data_flow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x0, [x0, #56]
	bl	_to_kplane
	mov	x21, x0
	ldr	x20, [x22, #72]
	mov	x0, x20
	bl	_to_kfb
	ldr	x24, [x0]
	ldr	x8, [x21]
	ldr	x25, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	x8, [x22]
	str	x8, [x19]
	ldr	w0, [x22, #64]
	bl	_to_kcrtc
	ldr	x8, [x0]
	cmp	x25, x8
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_5
LBB0_2:
	ldr	w8, [x22, #48]
	str	w8, [x19, #48]
	ldr	q0, [x22, #32]
	str	q0, [x19, #32]
	ldur	q0, [x22, #8]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	sshl.4s	v0, v0, v1
	stur	q0, [x19, #8]
	ldrsh	w8, [x22, #26]
	str	w8, [x19, #24]
	ldr	w0, [x22, #28]
	ldr	w1, [x24, #4]
	bl	_drm_rotation_simplify
	str	w0, [x19, #28]
	ldr	w1, [x24, #4]
	bl	_has_bits
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x0, [x21]
	mov	x1, x19
	mov	x2, x20
	bl	_komeda_complete_data_flow_cfg
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	ldr	x8, [x23]
	ldr	x9, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
	tbz	x8, #63, LBB0_2
LBB0_5:
	ldr	x8, [x22, #56]
	ldr	w1, [x8]
	ldr	x2, [x22]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	w19, [x19, #28]
	ldr	w0, [x24]
	ldr	w1, [x20]
	bl	_komeda_get_format_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
LBB0_7:
	bl	_DRM_DEBUG_ATOMIC
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s zorder:%d < max_slave_zorder: %d.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"rotation(0x%x) isn't supported by %s.\n"

	.no_dead_strip	_komeda_plane_init_data_flow
.subsections_via_symbols
