	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_du_crtc_atomic_enable
_rcar_du_crtc_atomic_enable:            ## @rcar_du_crtc_atomic_enable
	.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	%rdi, %r14
	callq	_to_rcar_crtc
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_to_rcar_crtc_state
	movq	%rax, %r15
	movq	8(%rbx), %r12
	movq	%rbx, %rdi
	callq	_rcar_du_crtc_get
	movq	8(%r12), %rax
	movl	(%rax), %r13d
	movq	(%rbx), %rdi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_3
## %bb.1:
	movl	(%r15), %r15d
	movq	_RCAR_DU_OUTPUT_DPAD0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_BIT
	cmpl	%eax, %r15d
	jne	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movq	_RCAR_DU_OUTPUT_LVDS0@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rdx
	addq	(%rcx), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	(%r14), %rcx
	movl	(%rax), %edi
	imull	$1000, (%rcx), %esi             ## imm = 0x3E8
	callq	_rcar_lvds_clk_enable
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcar_du_crtc_start             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_DU_OUTPUT_DPAD0,8,3       ## @RCAR_DU_OUTPUT_DPAD0
	.comm	_RCAR_DU_OUTPUT_LVDS0,8,3       ## @RCAR_DU_OUTPUT_LVDS0
	.no_dead_strip	_rcar_du_crtc_atomic_enable
.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_atomic_enable
_rcar_du_crtc_atomic_enable:            ; @rcar_du_crtc_atomic_enable
	.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	x20, x0
	bl	_to_rcar_crtc
	mov	x19, x0
	ldr	x0, [x20]
	bl	_to_rcar_crtc_state
	mov	x21, x0
	ldr	x22, [x19, #8]
	mov	x0, x19
	bl	_rcar_du_crtc_get
	ldr	x8, [x22, #8]
	ldr	w23, [x8]
	ldr	x0, [x19]
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_3
; %bb.1:
	ldr	w21, [x21]
Lloh0:
	adrp	x8, _RCAR_DU_OUTPUT_DPAD0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCAR_DU_OUTPUT_DPAD0@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_BIT
	cmp	w21, w0
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _RCAR_DU_OUTPUT_LVDS0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RCAR_DU_OUTPUT_LVDS0@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh5:
	ldr	x8, [x8]
	ldr	x10, [x19]
	add	x8, x10, x8
	ldr	x8, [x9, x8, lsl #3]
	ldr	x9, [x20]
	ldr	w0, [x8]
	ldr	w8, [x9]
	mov	w9, #1000
	mul	w1, w8, w9
	bl	_rcar_lvds_clk_enable
LBB0_3:
	mov	x0, x19
	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_crtc_start
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_DU_OUTPUT_DPAD0,8,3       ; @RCAR_DU_OUTPUT_DPAD0
	.comm	_RCAR_DU_OUTPUT_LVDS0,8,3       ; @RCAR_DU_OUTPUT_LVDS0
	.no_dead_strip	_rcar_du_crtc_atomic_enable
.subsections_via_symbols
