	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccp2_if_configure
_ccp2_if_configure:                     ## @ccp2_if_configure
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$32, %rdi
	callq	_to_isp_pipeline
	movq	%rax, %r14
	movl	$0, -36(%rbp)
	movq	%rbx, %rdi
	callq	_ccp2_pwr_cfg
	movq	_CCP2_PAD_SINK@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	shlq	$2, %rdi
	addq	24(%rbx), %rdi
	callq	_media_entity_remote_pad
	movl	(%rax), %edi
	callq	_media_entity_to_v4l2_subdev
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_v4l2_subdev_to_bus_cfg
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ccp2_phyif_config
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	8(%r14), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	callq	_ccp2_vp_config
	movq	_g_skip_top_lines@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_v4l2_subdev_call
	movq	16(%rbx), %rax
	movq	(%r12), %rcx
	movl	-36(%rbp), %edx
	movl	%edx, 12(%rbx)
	movl	(%r14), %edx
	movl	%edx, 8(%rbx)
	movl	4(%rax,%rcx,8), %edx
	movl	%edx, 4(%rbx)
	movl	(%rax,%rcx,8), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_ccp2_lcx_config
	xorl	%eax, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCP2_PAD_SINK,8,3              ## @CCP2_PAD_SINK
	.comm	_g_skip_top_lines,4,2           ## @g_skip_top_lines
	.no_dead_strip	_ccp2_if_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccp2_if_configure
_ccp2_if_configure:                     ; @ccp2_if_configure
	.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	x19, x0
	add	x0, x0, #32
	bl	_to_isp_pipeline
	mov	x21, x0
	str	wzr, [sp, #12]
	mov	x0, x19
	bl	_ccp2_pwr_cfg
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x22, _CCP2_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CCP2_PAD_SINK@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x8, x9, lsl #2
	bl	_media_entity_remote_pad
	ldr	w0, [x0]
	bl	_media_entity_to_v4l2_subdev
	mov	x20, x0
	ldr	w0, [x21]
	bl	_v4l2_subdev_to_bus_cfg
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ccp2_phyif_config
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	add	x1, x8, #1
	mov	x0, x19
	bl	_ccp2_vp_config
Lloh2:
	adrp	x8, _g_skip_top_lines@GOTPAGE
Lloh3:
	ldr	x8, [x8, _g_skip_top_lines@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x20
	bl	_v4l2_subdev_call
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	ldr	w10, [sp, #12]
	ldr	w11, [x21]
	stp	w11, w10, [x19, #8]
	ldr	d0, [x8, x9, lsl #3]
	str	d0, [x19]
	mov	x0, x19
	mov	x1, x19
	bl	_ccp2_lcx_config
	mov	w0, #0
LBB0_2:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CCP2_PAD_SINK,8,3              ; @CCP2_PAD_SINK
	.comm	_g_skip_top_lines,4,2           ; @g_skip_top_lines
	.no_dead_strip	_ccp2_if_configure
.subsections_via_symbols
