	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcar_du_group_set_routing      ## -- Begin function rcar_du_group_set_routing
	.p2align	4, 0x90
_rcar_du_group_set_routing:             ## @rcar_du_group_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	_DORCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_rcar_du_group_read
	movq	_DORCR_PG2T@GOTPCREL(%rip), %rdx
	movq	_DORCR_DK2S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_DORCR_PG2D_MASK@GOTPCREL(%rip), %rdx
	movl	(%rbx), %esi
	addl	%esi, %esi
	cmpl	%esi, (%r15)
	jne	LBB0_1
## %bb.2:
	movq	_DORCR_PG2D_DS1@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	jmp	LBB0_3
LBB0_1:
	movq	_DORCR_PG2D_DS2@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%ecx, %esi
LBB0_3:
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	orl	%esi, %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rcar_du_group_write
	movq	%rbx, %rdi
	callq	_rcar_du_group_set_dpad_levels
	movq	8(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcar_du_set_dpad0_vsp1_routing ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DORCR,4,2                      ## @DORCR
	.comm	_DORCR_PG2T,4,2                 ## @DORCR_PG2T
	.comm	_DORCR_DK2S,4,2                 ## @DORCR_DK2S
	.comm	_DORCR_PG2D_MASK,4,2            ## @DORCR_PG2D_MASK
	.comm	_DORCR_PG2D_DS1,4,2             ## @DORCR_PG2D_DS1
	.comm	_DORCR_PG2D_DS2,4,2             ## @DORCR_PG2D_DS2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcar_du_group_set_routing      ; -- Begin function rcar_du_group_set_routing
	.p2align	2
_rcar_du_group_set_routing:             ; @rcar_du_group_set_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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x21, _DORCR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DORCR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_rcar_du_group_read
Lloh2:
	adrp	x8, _DORCR_PG2T@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DORCR_PG2T@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DORCR_DK2S@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DORCR_DK2S@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _DORCR_PG2D_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DORCR_PG2D_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x20]
Lloh11:
	adrp	x11, _DORCR_PG2D_DS1@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DORCR_PG2D_DS1@GOTPAGEOFF]
	ldr	w12, [x19]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	adrp	x13, _DORCR_PG2D_DS2@GOTPAGE
Lloh15:
	ldr	x13, [x13, _DORCR_PG2D_DS2@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x13]
	orr	w13, w13, w8
	cmp	w10, w12, lsl #1
	csel	w10, w11, w13, eq
	orr	w8, w8, w9
	bic	w8, w0, w8
	orr	w2, w10, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rcar_du_group_write
	mov	x0, x19
	bl	_rcar_du_group_set_dpad_levels
	ldr	x0, [x19, #8]
	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_set_dpad0_vsp1_routing
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DORCR,4,2                      ; @DORCR
	.comm	_DORCR_PG2T,4,2                 ; @DORCR_PG2T
	.comm	_DORCR_DK2S,4,2                 ; @DORCR_DK2S
	.comm	_DORCR_PG2D_MASK,4,2            ; @DORCR_PG2D_MASK
	.comm	_DORCR_PG2D_DS1,4,2             ; @DORCR_PG2D_DS1
	.comm	_DORCR_PG2D_DS2,4,2             ; @DORCR_PG2D_DS2
.subsections_via_symbols
