	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_crtc_ddp_config
_mtk_crtc_ddp_config:                   ## @mtk_crtc_ddp_config
	.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
	callq	_to_mtk_crtc
	movq	%rax, %r15
	movl	24(%rax), %edi
	callq	_to_mtk_crtc_state
	movq	%rax, %rbx
	movq	16(%r15), %rax
	movq	(%rax), %r14
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %esi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_mtk_ddp_comp_config
	movl	$0, (%rbx)
LBB0_2:
	cmpl	$0, (%r15)
	je	LBB0_9
## %bb.3:
	cmpl	$0, 4(%r15)
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movl	4(%r15), %eax
	cmpq	%rax, %rbx
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_to_mtk_plane_state
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_mtk_ddp_comp_layer_config
	movl	$0, (%r12)
	jmp	LBB0_7
LBB0_8:
	movl	$0, (%r15)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mtk_crtc_ddp_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_crtc_ddp_config
_mtk_crtc_ddp_config:                   ; @mtk_crtc_ddp_config
	.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
	bl	_to_mtk_crtc
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_to_mtk_crtc_state
	ldr	x8, [x19, #16]
	ldr	x20, [x8]
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x21, x0
	ldp	w2, w1, [x0, #8]
	ldr	w3, [x0, #4]
	mov	x0, x20
	mov	w4, #0
	bl	_mtk_ddp_comp_config
	str	wzr, [x21]
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_8
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	w8, [x19, #4]
	cmp	x21, x8
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_to_mtk_plane_state
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_mtk_ddp_comp_layer_config
	str	wzr, [x22]
	b	LBB0_5
LBB0_8:
	str	wzr, [x19]
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mtk_crtc_ddp_config
.subsections_via_symbols
