	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_du_crtc_setup
_rcar_du_crtc_setup:                    ## @rcar_du_crtc_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_DOOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_DOOR_RGB
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_rcar_du_crtc_write
	movq	_BPOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_BPOR_RGB
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_rcar_du_crtc_write
	movq	%rbx, %rdi
	callq	_rcar_du_crtc_set_display_timing
	movl	12(%rbx), %edi
	callq	_rcar_du_group_set_routing
	movl	12(%rbx), %edi
	testb	$1, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_DS1PR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DS2PR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rcar_du_group_write
	movl	8(%rbx), %edi
	movq	_RCAR_DU_FEATURE_VSP1_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rcar_du_has
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_rcar_du_vsp_enable
LBB0_5:
	addq	$4, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_crtc_vblank_on             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DOOR,4,2                       ## @DOOR
	.comm	_BPOR,4,2                       ## @BPOR
	.comm	_DS2PR,4,2                      ## @DS2PR
	.comm	_DS1PR,4,2                      ## @DS1PR
	.comm	_RCAR_DU_FEATURE_VSP1_SOURCE,4,2 ## @RCAR_DU_FEATURE_VSP1_SOURCE
	.no_dead_strip	_rcar_du_crtc_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_du_crtc_setup
_rcar_du_crtc_setup:                    ; @rcar_du_crtc_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _DOOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOOR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_DOOR_RGB
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rcar_du_crtc_write
Lloh3:
	adrp	x8, _BPOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BPOR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_BPOR_RGB
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rcar_du_crtc_write
	mov	x0, x19
	bl	_rcar_du_crtc_set_display_timing
	ldr	w0, [x19, #12]
	bl	_rcar_du_group_set_routing
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x8, _DS2PR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DS2PR@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh8:
	adrp	x10, _DS1PR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DS1PR@GOTPAGEOFF]
	tst	w9, #0x1
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	mov	w2, #0
	bl	_rcar_du_group_write
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x8, _RCAR_DU_FEATURE_VSP1_SOURCE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RCAR_DU_FEATURE_VSP1_SOURCE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_rcar_du_has
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rcar_du_vsp_enable
LBB0_2:
	add	x0, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_crtc_vblank_on
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DOOR,4,2                       ; @DOOR
	.comm	_BPOR,4,2                       ; @BPOR
	.comm	_DS2PR,4,2                      ; @DS2PR
	.comm	_DS1PR,4,2                      ; @DS1PR
	.comm	_RCAR_DU_FEATURE_VSP1_SOURCE,4,2 ; @RCAR_DU_FEATURE_VSP1_SOURCE
	.no_dead_strip	_rcar_du_crtc_setup
.subsections_via_symbols
