	.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
_rcar_du_plane_setup_format:            ## @rcar_du_plane_setup_format
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	(%r13), %rax
	cmpl	$2, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_rcar_du_plane_setup_format_gen2
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_rcar_du_plane_setup_format_gen3
LBB0_3:
	movq	_PnDSXR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_drm_rect_width
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_rcar_du_plane_write
	movq	_PnDSYR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_drm_rect_height
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_rcar_du_plane_write
	movq	_PnDPXR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rcar_du_plane_write
	movq	_PnDPYR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rcar_du_plane_write
	movq	(%r13), %rax
	cmpl	$2, (%rax)
	jg	LBB0_4
## %bb.5:
	movq	_PnWASPR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_rcar_du_plane_write
	movq	_PnWAMWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4095, %ecx                     ## imm = 0xFFF
	callq	_rcar_du_plane_write
	movq	_PnBTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_rcar_du_plane_write
	movq	_PnMLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcar_du_plane_write            ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PnDSXR,4,2                     ## @PnDSXR
	.comm	_PnDSYR,4,2                     ## @PnDSYR
	.comm	_PnDPXR,4,2                     ## @PnDPXR
	.comm	_PnDPYR,4,2                     ## @PnDPYR
	.comm	_PnWASPR,4,2                    ## @PnWASPR
	.comm	_PnWAMWR,4,2                    ## @PnWAMWR
	.comm	_PnBTR,4,2                      ## @PnBTR
	.comm	_PnMLR,4,2                      ## @PnMLR
	.no_dead_strip	_rcar_du_plane_setup_format
.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
_rcar_du_plane_setup_format:            ; @rcar_du_plane_setup_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0]
	ldr	x8, [x23]
	ldr	w8, [x8]
	cmp	w8, #2
	b.gt	LBB0_2
; %bb.1:
	bl	_rcar_du_plane_setup_format_gen2
	b	LBB0_3
LBB0_2:
	bl	_rcar_du_plane_setup_format_gen3
LBB0_3:
Lloh0:
	adrp	x8, _PnDSXR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PnDSXR@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_drm_rect_width
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_rcar_du_plane_write
Lloh3:
	adrp	x8, _PnDSYR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PnDSYR@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_drm_rect_height
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_rcar_du_plane_write
Lloh6:
	adrp	x8, _PnDPXR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PnDPXR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_rcar_du_plane_write
Lloh9:
	adrp	x8, _PnDPYR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PnDPYR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w3, [x21, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_rcar_du_plane_write
	ldr	x8, [x23]
	ldr	w8, [x8]
	cmp	w8, #2
	b.gt	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _PnWASPR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PnWASPR@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_rcar_du_plane_write
Lloh15:
	adrp	x8, _PnWAMWR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PnWAMWR@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4095
	bl	_rcar_du_plane_write
Lloh18:
	adrp	x8, _PnBTR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PnBTR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_rcar_du_plane_write
Lloh21:
	adrp	x8, _PnMLR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PnMLR@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rcar_du_plane_write
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PnDSXR,4,2                     ; @PnDSXR
	.comm	_PnDSYR,4,2                     ; @PnDSYR
	.comm	_PnDPXR,4,2                     ; @PnDPXR
	.comm	_PnDPYR,4,2                     ; @PnDPYR
	.comm	_PnWASPR,4,2                    ; @PnWASPR
	.comm	_PnWAMWR,4,2                    ; @PnWAMWR
	.comm	_PnBTR,4,2                      ; @PnBTR
	.comm	_PnMLR,4,2                      ; @PnMLR
	.no_dead_strip	_rcar_du_plane_setup_format
.subsections_via_symbols
