	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccp2_pwr_cfg
_ccp2_pwr_cfg:                          ## @ccp2_pwr_cfg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_to_isp_device
	movq	_ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SMART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rdx
	movq	_ISP_REVISION_15_0@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	cmpq	(%rdi), %rdx
	jne	LBB0_3
## %bb.1:
	xorl	%esi, %esi
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.2:
	movq	_ISPCCP2_SYSCONFIG_AUTO_IDLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_3:
	orl	%ecx, %esi
	movq	_OMAP3_ISP_IOMEM_CCP2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ISPCCP2_SYSCONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	popq	%rbp
	jmp	_isp_reg_writel                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SMART,4,2 ## @ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SMART
	.comm	_ISP_REVISION_15_0,8,3          ## @ISP_REVISION_15_0
	.comm	_ISPCCP2_SYSCONFIG_AUTO_IDLE,4,2 ## @ISPCCP2_SYSCONFIG_AUTO_IDLE
	.comm	_OMAP3_ISP_IOMEM_CCP2,4,2       ## @OMAP3_ISP_IOMEM_CCP2
	.comm	_ISPCCP2_SYSCONFIG,4,2          ## @ISPCCP2_SYSCONFIG
	.no_dead_strip	_ccp2_pwr_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccp2_pwr_cfg
_ccp2_pwr_cfg:                          ; @ccp2_pwr_cfg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_to_isp_device
Lloh0:
	adrp	x8, _ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SMART@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SMART@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _ISP_REVISION_15_0@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ISP_REVISION_15_0@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x0, #8]
Lloh6:
	adrp	x10, _ISPCCP2_SYSCONFIG_AUTO_IDLE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ISPCCP2_SYSCONFIG_AUTO_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
	orr	w1, w9, w8
Lloh9:
	adrp	x8, _OMAP3_ISP_IOMEM_CCP2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMAP3_ISP_IOMEM_CCP2@GOTPAGEOFF]
Lloh11:
	adrp	x9, _ISPCCP2_SYSCONFIG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ISPCCP2_SYSCONFIG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	ldr	w3, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_isp_reg_writel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SMART,4,2 ; @ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SMART
	.comm	_ISP_REVISION_15_0,8,3          ; @ISP_REVISION_15_0
	.comm	_ISPCCP2_SYSCONFIG_AUTO_IDLE,4,2 ; @ISPCCP2_SYSCONFIG_AUTO_IDLE
	.comm	_OMAP3_ISP_IOMEM_CCP2,4,2       ; @OMAP3_ISP_IOMEM_CCP2
	.comm	_ISPCCP2_SYSCONFIG,4,2          ; @ISPCCP2_SYSCONFIG
	.no_dead_strip	_ccp2_pwr_cfg
.subsections_via_symbols
