	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_du_plane_setup_format_gen2
_rcar_du_plane_setup_format_gen2:       ## @rcar_du_plane_setup_format_gen2
	.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	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_PnDDCR2_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_rcar_du_plane_setup_mode
	movq	16(%rbx), %rax
	cmpl	$2, (%rax)
	jne	LBB0_4
## %bb.1:
	cmpl	%r15d, (%rbx)
	jne	LBB0_2
## %bb.3:
	movq	_PnDDCR2_DIVY@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_4
LBB0_2:
	movq	8(%rax), %rax
	movq	_DRM_FORMAT_NV21@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movq	_DRM_FORMAT_NV12@GOTPCREL(%rip), %r8
	movq	_PnDDCR2_Y420@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	$0, %edi
	movq	_PnDDCR2_NV21@GOTPCREL(%rip), %rcx
	cmovel	(%rcx), %edx
	cmovel	%esi, %edi
	cmpq	(%r8), %rax
	cmovel	%esi, %edi
	orl	%r12d, %edi
	orl	%edx, %edi
	movq	_PnDDCR2_DIVU@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, %r12d
LBB0_4:
	movq	_PnDDCR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	callq	_rcar_du_plane_write
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rax
	movq	_PnDDCR4_CODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	16(%rax), %ecx
	movq	_RCAR_DU_PLANE_MEMORY@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_6
## %bb.5:
	movq	_PnDDCR4_VSPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %ecx
	movq	_PnDDCR4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcar_du_plane_write            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PnDDCR2_CODE,4,2               ## @PnDDCR2_CODE
	.comm	_DRM_FORMAT_NV12,8,3            ## @DRM_FORMAT_NV12
	.comm	_DRM_FORMAT_NV21,8,3            ## @DRM_FORMAT_NV21
	.comm	_PnDDCR2_Y420,4,2               ## @PnDDCR2_Y420
	.comm	_PnDDCR2_NV21,4,2               ## @PnDDCR2_NV21
	.comm	_PnDDCR2_DIVU,4,2               ## @PnDDCR2_DIVU
	.comm	_PnDDCR2_DIVY,4,2               ## @PnDDCR2_DIVY
	.comm	_PnDDCR2,4,2                    ## @PnDDCR2
	.comm	_PnDDCR4_CODE,4,2               ## @PnDDCR4_CODE
	.comm	_RCAR_DU_PLANE_MEMORY,8,3       ## @RCAR_DU_PLANE_MEMORY
	.comm	_PnDDCR4_VSPS,4,2               ## @PnDDCR4_VSPS
	.comm	_PnDDCR4,4,2                    ## @PnDDCR4
	.no_dead_strip	_rcar_du_plane_setup_format_gen2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_du_plane_setup_format_gen2
_rcar_du_plane_setup_format_gen2:       ; @rcar_du_plane_setup_format_gen2
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PnDDCR2_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PnDDCR2_CODE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_rcar_du_plane_setup_mode
	ldr	x8, [x21, #16]
	ldr	w9, [x8]
	cmp	w9, #2
	b.ne	LBB0_4
; %bb.1:
	ldr	w9, [x21]
	cmp	w9, w19
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _PnDDCR2_DIVY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PnDDCR2_DIVY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w22, w8, w22
	b	LBB0_4
LBB0_3:
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _DRM_FORMAT_NV21@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_FORMAT_NV21@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh9:
	adrp	x9, _PnDDCR2_NV21@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PnDDCR2_NV21@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	csel	w9, w9, wzr, eq
Lloh12:
	adrp	x10, _DRM_FORMAT_NV12@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DRM_FORMAT_NV12@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ccmp	x8, x10, #4, ne
Lloh15:
	adrp	x8, _PnDDCR2_Y420@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PnDDCR2_Y420@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	csel	w8, w8, wzr, eq
	orr	w8, w8, w22
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _PnDDCR2_DIVU@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PnDDCR2_DIVU@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w22, w8, w9
LBB0_4:
Lloh21:
	adrp	x8, _PnDDCR2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PnDDCR2@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_rcar_du_plane_write
	ldp	x9, x8, [x21, #8]
	ldr	w8, [x8, #16]
Lloh24:
	adrp	x10, _PnDDCR4_CODE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PnDDCR4_CODE@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh27:
	adrp	x10, _RCAR_DU_PLANE_MEMORY@GOTPAGE
Lloh28:
	ldr	x10, [x10, _RCAR_DU_PLANE_MEMORY@GOTPAGEOFF]
Lloh29:
	adrp	x11, _PnDDCR4_VSPS@GOTPAGE
Lloh30:
	ldr	x11, [x11, _PnDDCR4_VSPS@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
Lloh32:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, wzr, w11, eq
Lloh33:
	adrp	x10, _PnDDCR4@GOTPAGE
Lloh34:
	ldr	x10, [x10, _PnDDCR4@GOTPAGEOFF]
	orr	w3, w8, w9
Lloh35:
	ldr	w2, [x10]
	mov	x0, 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
	b	_rcar_du_plane_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PnDDCR2_CODE,4,2               ; @PnDDCR2_CODE
	.comm	_DRM_FORMAT_NV12,8,3            ; @DRM_FORMAT_NV12
	.comm	_DRM_FORMAT_NV21,8,3            ; @DRM_FORMAT_NV21
	.comm	_PnDDCR2_Y420,4,2               ; @PnDDCR2_Y420
	.comm	_PnDDCR2_NV21,4,2               ; @PnDDCR2_NV21
	.comm	_PnDDCR2_DIVU,4,2               ; @PnDDCR2_DIVU
	.comm	_PnDDCR2_DIVY,4,2               ; @PnDDCR2_DIVY
	.comm	_PnDDCR2,4,2                    ; @PnDDCR2
	.comm	_PnDDCR4_CODE,4,2               ; @PnDDCR4_CODE
	.comm	_RCAR_DU_PLANE_MEMORY,8,3       ; @RCAR_DU_PLANE_MEMORY
	.comm	_PnDDCR4_VSPS,4,2               ; @PnDDCR4_VSPS
	.comm	_PnDDCR4,4,2                    ; @PnDDCR4
	.no_dead_strip	_rcar_du_plane_setup_format_gen2
.subsections_via_symbols
