	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ispif_select_clk_mux
_ispif_select_clk_mux:                  ## @ispif_select_clk_mux
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_8
## %bb.1:
	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
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	_CSI_RDI_CLK_MUX_SEL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	leal	(%r12,%r12,2), %ecx
	leal	8(,%rcx,4), %r12d
	jmp	LBB0_7
LBB0_5:
	movq	_CSI_RDI_CLK_MUX_SEL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	leal	(%r12,%r12,2), %ecx
	leal	4(,%rcx,4), %r12d
	jmp	LBB0_7
LBB0_3:
	movq	_CSI_RDI_CLK_MUX_SEL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	shll	$2, %r12d
	leal	(%r12,%r12,2), %r12d
	jmp	LBB0_7
LBB0_4:
	movq	_CSI_PIX_CLK_MUX_SEL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	leal	4(,%r12,8), %r12d
	jmp	LBB0_7
LBB0_2:
	movq	_CSI_PIX_CLK_MUX_SEL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	shll	$3, %r12d
LBB0_7:
	movl	$15, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	notl	%edx
	shll	%cl, %ebx
	andl	%eax, %edx
	testl	%r15d, %r15d
	cmovel	%r15d, %ebx
	orl	%edx, %ebx
	movq	(%r13), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_8:
	xorl	%eax, %eax
	jmp	_mb                             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_CSI_PIX_CLK_MUX_SEL,8,3        ## @CSI_PIX_CLK_MUX_SEL
	.comm	_CSI_RDI_CLK_MUX_SEL,8,3        ## @CSI_RDI_CLK_MUX_SEL
	.no_dead_strip	_ispif_select_clk_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ispif_select_clk_mux
_ispif_select_clk_mux:                  ; @ispif_select_clk_mux
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.1:
	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, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x19]
Lloh2:
	adrp	x23, _CSI_RDI_CLK_MUX_SEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CSI_RDI_CLK_MUX_SEL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	w8, #12
	orr	w9, wzr, #0x8
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
Lloh4:
	adrp	x23, _CSI_RDI_CLK_MUX_SEL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CSI_RDI_CLK_MUX_SEL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	w8, #12
	orr	w9, wzr, #0x4
LBB0_4:
	madd	w8, w22, w8, w9
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19]
Lloh6:
	adrp	x23, _CSI_RDI_CLK_MUX_SEL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _CSI_RDI_CLK_MUX_SEL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	add	w8, w22, w22, lsl #1
	lsl	w8, w8, #2
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19]
Lloh8:
	adrp	x23, _CSI_PIX_CLK_MUX_SEL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CSI_PIX_CLK_MUX_SEL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	w8, #4
	bfi	w8, w22, #3, #29
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19]
Lloh10:
	adrp	x23, _CSI_PIX_CLK_MUX_SEL@GOTPAGE
Lloh11:
	ldr	x23, [x23, _CSI_PIX_CLK_MUX_SEL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	lsl	w8, w22, #3
LBB0_8:
	mov	w9, #15
	lsl	w9, w9, w8
	bic	w9, w0, w9
	lsl	w8, w21, w8
	cmp	w20, #0
	csel	w8, wzr, w8, eq
	orr	w0, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel_relaxed
	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
LBB0_9:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	b	_mb
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_CSI_PIX_CLK_MUX_SEL,8,3        ; @CSI_PIX_CLK_MUX_SEL
	.comm	_CSI_RDI_CLK_MUX_SEL,8,3        ; @CSI_RDI_CLK_MUX_SEL
	.no_dead_strip	_ispif_select_clk_mux
.subsections_via_symbols
