	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccp2_mem_enable
_ccp2_mem_enable:                       ## @ccp2_mem_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_to_isp_device
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ccp2_if_enable
LBB0_2:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	movq	_OMAP3_ISP_IOMEM_CCP2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_ISPCCP2_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISPCCP2_CTRL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %r8d
	cmovel	%ebx, %r8d
	movq	%r14, %rdi
	callq	_isp_reg_clr_set
	testq	%r15, %r15
	movl	(%r12), %esi
	movq	_ISPCCP2_LCM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISPCCP2_LCM_CTRL_CHAN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmovnel	%ecx, %ebx
	movq	%r14, %rdi
	movl	%ebx, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_isp_reg_clr_set                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP3_ISP_IOMEM_CCP2,4,2       ## @OMAP3_ISP_IOMEM_CCP2
	.comm	_ISPCCP2_CTRL,4,2               ## @ISPCCP2_CTRL
	.comm	_ISPCCP2_CTRL_MODE,4,2          ## @ISPCCP2_CTRL_MODE
	.comm	_ISPCCP2_LCM_CTRL,4,2           ## @ISPCCP2_LCM_CTRL
	.comm	_ISPCCP2_LCM_CTRL_CHAN_EN,4,2   ## @ISPCCP2_LCM_CTRL_CHAN_EN
	.no_dead_strip	_ccp2_mem_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccp2_mem_enable
_ccp2_mem_enable:                       ; @ccp2_mem_enable
	.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, x1
	mov	x21, x0
	bl	_to_isp_device
	mov	x19, x0
	cbz	x20, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	bl	_ccp2_if_enable
LBB0_2:
Lloh0:
	adrp	x21, _OMAP3_ISP_IOMEM_CCP2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _OMAP3_ISP_IOMEM_CCP2@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _ISPCCP2_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISPCCP2_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _ISPCCP2_CTRL_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ISPCCP2_CTRL_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	cmp	x20, #0
	csel	w4, wzr, w3, eq
	mov	x0, x19
	bl	_isp_reg_clr_set
	cmp	x20, #0
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _ISPCCP2_LCM_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISPCCP2_LCM_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _ISPCCP2_LCM_CTRL_CHAN_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISPCCP2_LCM_CTRL_CHAN_EN@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	csel	w4, wzr, w3, eq
	mov	x0, x19
	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
	b	_isp_reg_clr_set
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP3_ISP_IOMEM_CCP2,4,2       ; @OMAP3_ISP_IOMEM_CCP2
	.comm	_ISPCCP2_CTRL,4,2               ; @ISPCCP2_CTRL
	.comm	_ISPCCP2_CTRL_MODE,4,2          ; @ISPCCP2_CTRL_MODE
	.comm	_ISPCCP2_LCM_CTRL,4,2           ; @ISPCCP2_LCM_CTRL
	.comm	_ISPCCP2_LCM_CTRL_CHAN_EN,4,2   ; @ISPCCP2_LCM_CTRL_CHAN_EN
	.no_dead_strip	_ccp2_mem_enable
.subsections_via_symbols
