	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccp2_reset
_ccp2_reset:                            ## @ccp2_reset
	.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
	callq	_to_isp_device
	movq	%rax, %r15
	movq	_OMAP3_ISP_IOMEM_CCP2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_ISPCCP2_SYSCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISPCCP2_SYSCONFIG_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_isp_reg_set
	movl	$12, %ebx
	movq	_ISPCCP2_SYSSTATUS@GOTPCREL(%rip), %r12
	movq	_ISPCCP2_SYSSTATUS_RESET_DONE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_isp_reg_readl
	testl	%eax, (%r13)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_4:
	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_SYSCONFIG,4,2          ## @ISPCCP2_SYSCONFIG
	.comm	_ISPCCP2_SYSCONFIG_SOFT_RESET,4,2 ## @ISPCCP2_SYSCONFIG_SOFT_RESET
	.comm	_ISPCCP2_SYSSTATUS,4,2          ## @ISPCCP2_SYSSTATUS
	.comm	_ISPCCP2_SYSSTATUS_RESET_DONE,4,2 ## @ISPCCP2_SYSSTATUS_RESET_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"omap3_isp: timeout waiting for ccp2 reset\n"

	.no_dead_strip	_ccp2_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccp2_reset
_ccp2_reset:                            ; @ccp2_reset
	.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
	bl	_to_isp_device
	mov	x19, x0
Lloh0:
	adrp	x20, _OMAP3_ISP_IOMEM_CCP2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OMAP3_ISP_IOMEM_CCP2@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _ISPCCP2_SYSCONFIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISPCCP2_SYSCONFIG@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _ISPCCP2_SYSCONFIG_SOFT_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ISPCCP2_SYSCONFIG_SOFT_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	_isp_reg_set
	mov	w21, #12
Lloh8:
	adrp	x22, _ISPCCP2_SYSSTATUS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ISPCCP2_SYSSTATUS@GOTPAGEOFF]
Lloh10:
	adrp	x23, _ISPCCP2_SYSSTATUS_RESET_DONE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _ISPCCP2_SYSSTATUS_RESET_DONE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_isp_reg_readl
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w21, w21, #1
	b.ne	LBB0_1
; %bb.3:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_warn
LBB0_4:
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP3_ISP_IOMEM_CCP2,4,2       ; @OMAP3_ISP_IOMEM_CCP2
	.comm	_ISPCCP2_SYSCONFIG,4,2          ; @ISPCCP2_SYSCONFIG
	.comm	_ISPCCP2_SYSCONFIG_SOFT_RESET,4,2 ; @ISPCCP2_SYSCONFIG_SOFT_RESET
	.comm	_ISPCCP2_SYSSTATUS,4,2          ; @ISPCCP2_SYSSTATUS
	.comm	_ISPCCP2_SYSSTATUS_RESET_DONE,4,2 ; @ISPCCP2_SYSSTATUS_RESET_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"omap3_isp: timeout waiting for ccp2 reset\n"

	.no_dead_strip	_ccp2_reset
.subsections_via_symbols
