	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccp2_if_enable
_ccp2_if_enable:                        ## @ccp2_if_enable
	.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	%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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_to_isp_device
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_3
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_CCP2_LCx_CHANS_NUM@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_OMAP3_ISP_IOMEM_CCP2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	%ebx, %edi
	callq	_ISPCCP2_LCx_CTRL
	testq	%r15, %r15
	movq	_ISPCCP2_LCx_CTRL_CHAN_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %r8d
	movl	$0, %edx
	cmovel	%edx, %r8d
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_isp_reg_clr_set
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_6
LBB0_7:
	movq	_ISPCCP2_CTRL_MODE@GOTPCREL(%rip), %rax
	movq	_ISPCCP2_CTRL_IF_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%r12d, %r12d
	testq	%r15, %r15
	movq	_OMAP3_ISP_IOMEM_CCP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISPCCP2_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, %r8d
	cmovel	%r12d, %r8d
	movq	%r13, %rdi
	callq	_isp_reg_clr_set
	testq	%r15, %r15
	jne	LBB0_10
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_regulator_disable
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCP2_LCx_CHANS_NUM,4,2         ## @CCP2_LCx_CHANS_NUM
	.comm	_OMAP3_ISP_IOMEM_CCP2,4,2       ## @OMAP3_ISP_IOMEM_CCP2
	.comm	_ISPCCP2_LCx_CTRL_CHAN_EN,4,2   ## @ISPCCP2_LCx_CTRL_CHAN_EN
	.comm	_ISPCCP2_CTRL,4,2               ## @ISPCCP2_CTRL
	.comm	_ISPCCP2_CTRL_MODE,4,2          ## @ISPCCP2_CTRL_MODE
	.comm	_ISPCCP2_CTRL_IF_EN,4,2         ## @ISPCCP2_CTRL_IF_EN
	.no_dead_strip	_ccp2_if_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccp2_if_enable
_ccp2_if_enable:                        ; @ccp2_if_enable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	bl	_to_isp_device
	mov	x21, x0
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x0, [x19]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_9
LBB0_3:
Lloh0:
	adrp	x24, _CCP2_LCx_CHANS_NUM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CCP2_LCx_CHANS_NUM@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _OMAP3_ISP_IOMEM_CCP2@GOTPAGE
Lloh3:
	ldr	x25, [x25, _OMAP3_ISP_IOMEM_CCP2@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w22, #0
Lloh4:
	adrp	x26, _ISPCCP2_LCx_CTRL_CHAN_EN@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ISPCCP2_LCx_CTRL_CHAN_EN@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x25]
	mov	x0, x22
	bl	_ISPCCP2_LCx_CTRL
	mov	x2, x0
	ldr	w3, [x26]
	cmp	x20, #0
	csel	w4, wzr, w3, eq
	mov	x0, x21
	mov	x1, x23
	bl	_isp_reg_clr_set
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.lt	LBB0_5
LBB0_6:
	ldr	w1, [x25]
Lloh6:
	adrp	x8, _ISPCCP2_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISPCCP2_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _ISPCCP2_CTRL_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISPCCP2_CTRL_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ISPCCP2_CTRL_IF_EN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ISPCCP2_CTRL_IF_EN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w9, w8
	cmp	x20, #0
	csel	w4, wzr, w3, eq
	mov	x0, x21
	bl	_isp_reg_clr_set
	mov	w0, #0
	cbnz	x20, LBB0_9
; %bb.7:
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_regulator_disable
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CCP2_LCx_CHANS_NUM,4,2         ; @CCP2_LCx_CHANS_NUM
	.comm	_OMAP3_ISP_IOMEM_CCP2,4,2       ; @OMAP3_ISP_IOMEM_CCP2
	.comm	_ISPCCP2_LCx_CTRL_CHAN_EN,4,2   ; @ISPCCP2_LCx_CTRL_CHAN_EN
	.comm	_ISPCCP2_CTRL,4,2               ; @ISPCCP2_CTRL
	.comm	_ISPCCP2_CTRL_MODE,4,2          ; @ISPCCP2_CTRL_MODE
	.comm	_ISPCCP2_CTRL_IF_EN,4,2         ; @ISPCCP2_CTRL_IF_EN
	.no_dead_strip	_ccp2_if_enable
.subsections_via_symbols
