	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csiphy_routing_cfg_3630
_csiphy_routing_cfg_3630:               ## @csiphy_routing_cfg_3630
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	cmpl	$128, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$130, %ebx
	jne	LBB0_7
## %bb.4:
	movq	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CSI1_RX_SEL_PHY2@GOTPCREL(%rip), %rcx
	movl	-28(%rbp), %eax
	orl	(%rcx), %eax
	movq	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY2_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_8
LBB0_1:
	movq	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY1_SHIFT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY2_SHIFT@GOTPCREL(%rip), %rax
LBB0_6:
	movq	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_DPHY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movl	-28(%rbp), %eax
	jmp	LBB0_12
LBB0_7:
	movq	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CSI1_RX_SEL_PHY2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movq	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY1_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	$-2, %ebx
                                        ## implicit-def: $edx
	cmpl	$130, %ebx
	jne	LBB0_12
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	movq	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_STROBE@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_10:
	movq	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_CLOCK@GOTPCREL(%rip), %rdx
LBB0_11:
	movl	(%rdx), %edx
LBB0_12:
	movq	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	shll	%cl, %esi
	notl	%esi
	andl	%eax, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%esi, %edx
	movl	%edx, -28(%rbp)
	movq	(%r15), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_regmap_write
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CSI1_RX_SEL_PHY2,4,2 ## @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CSI1_RX_SEL_PHY2
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY1_SHIFT,4,2 ## @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY1_SHIFT
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_DPHY,4,2 ## @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_DPHY
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY2_SHIFT,4,2 ## @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY2_SHIFT
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_STROBE,4,2 ## @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_STROBE
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_CLOCK,4,2 ## @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_CLOCK
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_MASK,4,2 ## @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_MASK
	.no_dead_strip	_csiphy_routing_cfg_3630
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csiphy_routing_cfg_3630
_csiphy_routing_cfg_3630:               ; @csiphy_routing_cfg_3630
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldp	w1, w0, [x8]
	add	x2, sp, #12
	bl	_regmap_read
Lloh0:
	adrp	x9, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY1_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY1_SHIFT@GOTPAGEOFF]
	cmp	w21, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w21, #129
	b.eq	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CSI1_RX_SEL_PHY2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CSI1_RX_SEL_PHY2@GOTPAGEOFF]
	cmp	w21, #130
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
Lloh4:
	adrp	x9, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY2_SHIFT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY2_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x9, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY2_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY2_SHIFT@GOTPAGEOFF]
LBB0_5:
Lloh9:
	adrp	x8, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_DPHY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_DPHY@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x8]
	ldr	w9, [x9]
	ldr	w8, [sp, #12]
	b	LBB0_11
LBB0_6:
	ldr	w8, [x8]
	ldr	w10, [sp, #12]
	bic	w8, w10, w8
	ldr	w9, [x9]
	and	w11, w21, #0xfffffffe
                                        ; implicit-def: $w10
	cmp	w11, #130
	b.ne	LBB0_11
LBB0_7:
	cbz	w20, LBB0_9
; %bb.8:
Lloh12:
	adrp	x10, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_STROBE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_STROBE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x10, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_CLOCK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_CLOCK@GOTPAGEOFF]
LBB0_10:
	ldr	w10, [x10]
LBB0_11:
Lloh16:
	adrp	x11, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_MASK@GOTPAGE
Lloh17:
	ldr	x11, [x11, _OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	lsl	w11, w11, w9
	bic	w8, w8, w11
	lsl	w9, w10, w9
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	x8, [x19]
	ldp	w1, w0, [x8]
	bl	_regmap_write
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CSI1_RX_SEL_PHY2,4,2 ; @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CSI1_RX_SEL_PHY2
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY1_SHIFT,4,2 ; @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY1_SHIFT
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_DPHY,4,2 ; @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_DPHY
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY2_SHIFT,4,2 ; @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY2_SHIFT
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_STROBE,4,2 ; @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_STROBE
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_CLOCK,4,2 ; @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_CLOCK
	.comm	_OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_MASK,4,2 ; @OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_MASK
	.no_dead_strip	_csiphy_routing_cfg_3630
.subsections_via_symbols
