	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcar_du_set_dpad0_vsp1_routing ## -- Begin function rcar_du_set_dpad0_vsp1_routing
	.p2align	4, 0x90
_rcar_du_set_dpad0_vsp1_routing:        ## @rcar_du_set_dpad0_vsp1_routing
	.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	24(%rdi), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	cmpl	$2, %ecx
	je	LBB0_3
## %bb.2:
	movl	16(%rbx), %edi
	movl	$2, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %r14d
	decl	%r14d
LBB0_3:
	movq	(%rbx), %r15
	movq	8(%rbx), %r12
	leal	(%r14,%r14), %ebx
	movl	(%r15,%rbx,4), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	leaq	(%r12,%rax,4), %rdi
	callq	_rcar_du_group_setup_defr8
	movl	(%r15,%rbx,4), %edi
	callq	_clk_disable_unprepare
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcar_du_set_dpad0_vsp1_routing ; -- Begin function rcar_du_set_dpad0_vsp1_routing
	.p2align	2
_rcar_du_set_dpad0_vsp1_routing:        ; @rcar_du_set_dpad0_vsp1_routing
	.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
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	b.ne	LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #16]
	mov	w1, #2
	bl	_DIV_ROUND_UP
	sub	w20, w0, #1
LBB0_4:
	ldp	x19, x22, [x19]
	lsl	w21, w20, #1
	ldr	w0, [x19, w21, uxtw #2]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_7
; %bb.5:
	add	x0, x22, w20, uxtw #2
	bl	_rcar_du_group_setup_defr8
	ldr	w0, [x19, x21, lsl #2]
	bl	_clk_disable_unprepare
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
.subsections_via_symbols
