	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_ccp2_init             ## -- Begin function omap3isp_ccp2_init
	.p2align	4, 0x90
_omap3isp_ccp2_init:                    ## @omap3isp_ccp2_init
	.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
	leaq	24(%rdi), %r14
	addq	$40, %rdi
	callq	_init_waitqueue_head
	movq	(%rbx), %rax
	movq	_ISP_REVISION_2_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_devm_regulator_get
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	32(%rbx), %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %r15
	movl	16(%rbx), %edi
	addl	(%r15), %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	subl	(%r15), %eax
	jmp	LBB0_11
LBB0_6:
	movq	_ISP_REVISION_15_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	addq	$8, %rbx
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movq	$0, 32(%rbx)
LBB0_5:
	addq	$12, %rbx
LBB0_8:
	movq	%rbx, (%r14)
LBB0_9:
	movq	%r14, %rdi
	callq	_ccp2_init_entities
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_ccp2_reset
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISP_REVISION_2_0,8,3           ## @ISP_REVISION_2_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vdds_csib"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"Can't get regulator vdds_csib, deferring probing\n"

L_.str.2:                               ## @.str.2
	.asciz	"Could not get regulator vdds_csib\n"

	.comm	_ISP_REVISION_15_0,8,3          ## @ISP_REVISION_15_0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_ccp2_init             ; -- Begin function omap3isp_ccp2_init
	.p2align	2
_omap3isp_ccp2_init:                    ; @omap3isp_ccp2_init
	.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	x20, x0
	add	x0, x0, #40
	bl	_init_waitqueue_head
	mov	x19, x20
	ldr	x8, [x19], #24
Lloh0:
	adrp	x9, _ISP_REVISION_2_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISP_REVISION_2_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x20, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_regulator_get
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	mov	x8, x0
Lloh5:
	adrp	x21, _EPROBE_DEFER@GOTPAGE
Lloh6:
	ldr	x21, [x21, _EPROBE_DEFER@GOTPAGEOFF]
	ldr	w9, [x21]
	ldr	w0, [x20, #16]
	cmn	w8, w9
	b.ne	LBB0_6
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x21]
	neg	w0, w8
	b	LBB0_11
LBB0_4:
Lloh9:
	adrp	x9, _ISP_REVISION_15_0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISP_REVISION_15_0@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	add	x8, x20, #8
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	str	xzr, [x20, #32]
LBB0_7:
	add	x8, x20, #12
LBB0_8:
	str	x8, [x19]
LBB0_9:
	mov	x0, x19
	bl	_ccp2_init_entities
	tbnz	w0, #31, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_ccp2_reset
	mov	w0, #0
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ISP_REVISION_2_0,8,3           ; @ISP_REVISION_2_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vdds_csib"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"Can't get regulator vdds_csib, deferring probing\n"

l_.str.2:                               ; @.str.2
	.asciz	"Could not get regulator vdds_csib\n"

	.comm	_ISP_REVISION_15_0,8,3          ; @ISP_REVISION_15_0
.subsections_via_symbols
