	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccp2_phyif_config
_ccp2_phyif_config:                     ## @ccp2_phyif_config
	.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
	callq	_to_isp_device
	movq	%rax, %r14
	movq	_OMAP3_ISP_IOMEM_CCP2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_ISPCCP2_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rax, %rdi
	callq	_isp_reg_readl
	movl	%eax, %ebx
	movq	_ISPCCP2_CTRL_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_ISPCCP2_CTRL_PHY_SEL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISPCCP2_CTRL_PHY_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r15), %rcx
	movl	%ebx, %edi
	callq	_BIT_SET
	movq	_ISPCCP2_CTRL_IO_OUT_SEL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISPCCP2_CTRL_IO_OUT_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r15), %rcx
	movl	%ebx, %edi
	callq	_BIT_SET
	movq	_ISPCCP2_CTRL_INV_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISPCCP2_CTRL_INV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%r15), %rcx
	movl	%ebx, %edi
	callq	_BIT_SET
	movq	_ISPCCP2_CTRL_VP_CLK_POL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISPCCP2_CTRL_VP_CLK_POL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r15), %rcx
	movl	%ebx, %edi
	callq	_BIT_SET
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_isp_reg_writel
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_isp_reg_readl
	xorl	%ebx, %ebx
	movq	_ISPCCP2_CTRL_MODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.1:
	movq	8(%r15), %rax
	movq	_ISP_CCP2_MODE_CCP2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_3:
	movq	(%r15), %rax
	movq	_ISP_CCP2_PHY_DATA_STROBE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_CTRL_PHY_SEL_SHIFT,4,2 ## @ISPCCP2_CTRL_PHY_SEL_SHIFT
	.comm	_ISPCCP2_CTRL_PHY_SEL_MASK,4,2  ## @ISPCCP2_CTRL_PHY_SEL_MASK
	.comm	_ISPCCP2_CTRL_IO_OUT_SEL_SHIFT,4,2 ## @ISPCCP2_CTRL_IO_OUT_SEL_SHIFT
	.comm	_ISPCCP2_CTRL_IO_OUT_SEL_MASK,4,2 ## @ISPCCP2_CTRL_IO_OUT_SEL_MASK
	.comm	_ISPCCP2_CTRL_INV_SHIFT,4,2     ## @ISPCCP2_CTRL_INV_SHIFT
	.comm	_ISPCCP2_CTRL_INV_MASK,4,2      ## @ISPCCP2_CTRL_INV_MASK
	.comm	_ISPCCP2_CTRL_VP_CLK_POL_SHIFT,4,2 ## @ISPCCP2_CTRL_VP_CLK_POL_SHIFT
	.comm	_ISPCCP2_CTRL_VP_CLK_POL_MASK,4,2 ## @ISPCCP2_CTRL_VP_CLK_POL_MASK
	.comm	_ISP_CCP2_MODE_CCP2,8,3         ## @ISP_CCP2_MODE_CCP2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OMAP3 CCP2 bus not available\n"

	.comm	_ISP_CCP2_PHY_DATA_STROBE,8,3   ## @ISP_CCP2_PHY_DATA_STROBE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ccp2_phyif_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccp2_phyif_config
_ccp2_phyif_config:                     ; @ccp2_phyif_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_to_isp_device
	mov	x20, x0
Lloh0:
	adrp	x22, _OMAP3_ISP_IOMEM_CCP2@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OMAP3_ISP_IOMEM_CCP2@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _ISPCCP2_CTRL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ISPCCP2_CTRL@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_isp_reg_readl
Lloh4:
	adrp	x24, _ISPCCP2_CTRL_MODE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ISPCCP2_CTRL_MODE@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh6:
	adrp	x9, _ISPCCP2_CTRL_PHY_SEL_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ISPCCP2_CTRL_PHY_SEL_SHIFT@GOTPAGEOFF]
	orr	w21, w8, w0
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x8, _ISPCCP2_CTRL_PHY_SEL_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISPCCP2_CTRL_PHY_SEL_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	x3, [x19]
	mov	x0, x21
	bl	_BIT_SET
Lloh12:
	adrp	x8, _ISPCCP2_CTRL_IO_OUT_SEL_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ISPCCP2_CTRL_IO_OUT_SEL_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _ISPCCP2_CTRL_IO_OUT_SEL_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ISPCCP2_CTRL_IO_OUT_SEL_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	ldr	x3, [x19, #8]
	mov	x0, x21
	bl	_BIT_SET
Lloh18:
	adrp	x8, _ISPCCP2_CTRL_INV_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ISPCCP2_CTRL_INV_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _ISPCCP2_CTRL_INV_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ISPCCP2_CTRL_INV_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	x3, [x19, #16]
	mov	x0, x21
	bl	_BIT_SET
Lloh24:
	adrp	x8, _ISPCCP2_CTRL_VP_CLK_POL_SHIFT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ISPCCP2_CTRL_VP_CLK_POL_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _ISPCCP2_CTRL_VP_CLK_POL_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ISPCCP2_CTRL_VP_CLK_POL_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	ldr	x3, [x19, #24]
	mov	x0, x21
	bl	_BIT_SET
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_isp_reg_writel
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_isp_reg_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
Lloh30:
	adrp	x9, _ISP_CCP2_MODE_CCP2@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ISP_CCP2_MODE_CCP2@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_3:
	ldr	x8, [x19]
Lloh35:
	adrp	x9, _ISP_CCP2_PHY_DATA_STROBE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ISP_CCP2_PHY_DATA_STROBE@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh38:
	adrp	x8, _EIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.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_CTRL_PHY_SEL_SHIFT,4,2 ; @ISPCCP2_CTRL_PHY_SEL_SHIFT
	.comm	_ISPCCP2_CTRL_PHY_SEL_MASK,4,2  ; @ISPCCP2_CTRL_PHY_SEL_MASK
	.comm	_ISPCCP2_CTRL_IO_OUT_SEL_SHIFT,4,2 ; @ISPCCP2_CTRL_IO_OUT_SEL_SHIFT
	.comm	_ISPCCP2_CTRL_IO_OUT_SEL_MASK,4,2 ; @ISPCCP2_CTRL_IO_OUT_SEL_MASK
	.comm	_ISPCCP2_CTRL_INV_SHIFT,4,2     ; @ISPCCP2_CTRL_INV_SHIFT
	.comm	_ISPCCP2_CTRL_INV_MASK,4,2      ; @ISPCCP2_CTRL_INV_MASK
	.comm	_ISPCCP2_CTRL_VP_CLK_POL_SHIFT,4,2 ; @ISPCCP2_CTRL_VP_CLK_POL_SHIFT
	.comm	_ISPCCP2_CTRL_VP_CLK_POL_MASK,4,2 ; @ISPCCP2_CTRL_VP_CLK_POL_MASK
	.comm	_ISP_CCP2_MODE_CCP2,8,3         ; @ISP_CCP2_MODE_CCP2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OMAP3 CCP2 bus not available\n"

	.comm	_ISP_CCP2_PHY_DATA_STROBE,8,3   ; @ISP_CCP2_PHY_DATA_STROBE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ccp2_phyif_config
.subsections_via_symbols
