	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_ccdc_close
_vpfe_ccdc_close:                       ## @vpfe_ccdc_close
	.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, %r14
	movq	%rdi, %r12
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movq	_VPFE_PCR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_pcr_enable
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_pcr_enable
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_pcr_enable
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_pcr_enable
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_pcr_enable
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_pcr_enable
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_pcr_enable
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_pcr_enable
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_pcr_enable
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_pcr_enable
LBB0_11:
	movq	%r12, %rdi
	callq	_vpfe_ccdc_restore_defaults
	movl	$10, %ebx
	movq	_VPFE_DMA_CNTL@GOTPCREL(%rip), %r15
	movq	_VPFE_DMA_CNTL_OVERFLOW@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_vpfe_reg_read
	testl	%eax, (%r13)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_vpfe_reg_write
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	decl	%ebx
	jne	LBB0_12
LBB0_14:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vpfe_config_enable
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPFE_PCR,4,2                   ## @VPFE_PCR
	.comm	_VPFE_DMA_CNTL,4,2              ## @VPFE_DMA_CNTL
	.comm	_VPFE_DMA_CNTL_OVERFLOW,4,2     ## @VPFE_DMA_CNTL_OVERFLOW
	.no_dead_strip	_vpfe_ccdc_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_ccdc_close
_vpfe_ccdc_close:                       ; @vpfe_ccdc_close
	.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
	mov	x20, x0
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
Lloh0:
	adrp	x21, _VPFE_PCR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VPFE_PCR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vpfe_reg_read
	cbz	w0, LBB0_11
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_pcr_enable
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vpfe_reg_read
	cbz	w0, LBB0_11
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_pcr_enable
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vpfe_reg_read
	cbz	w0, LBB0_11
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_pcr_enable
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vpfe_reg_read
	cbz	w0, LBB0_11
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_pcr_enable
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vpfe_reg_read
	cbz	w0, LBB0_11
; %bb.5:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_pcr_enable
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vpfe_reg_read
	cbz	w0, LBB0_11
; %bb.6:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_pcr_enable
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vpfe_reg_read
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_pcr_enable
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vpfe_reg_read
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_pcr_enable
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vpfe_reg_read
	cbz	w0, LBB0_11
; %bb.9:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_pcr_enable
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vpfe_reg_read
	cbz	w0, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_pcr_enable
LBB0_11:
	mov	x0, x20
	bl	_vpfe_ccdc_restore_defaults
	mov	w21, #10
Lloh2:
	adrp	x22, _VPFE_DMA_CNTL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _VPFE_DMA_CNTL@GOTPAGEOFF]
Lloh4:
	adrp	x23, _VPFE_DMA_CNTL_OVERFLOW@GOTPAGE
Lloh5:
	ldr	x23, [x23, _VPFE_DMA_CNTL_OVERFLOW@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_vpfe_reg_read
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x20
	bl	_vpfe_reg_write
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	subs	w21, w21, #1
	b.ne	LBB0_12
LBB0_14:
	mov	x0, x20
	mov	w1, #0
	bl	_vpfe_config_enable
	mov	x0, x19
	bl	_pm_runtime_put_sync
	mov	w0, #0
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_VPFE_PCR,4,2                   ; @VPFE_PCR
	.comm	_VPFE_DMA_CNTL,4,2              ; @VPFE_DMA_CNTL
	.comm	_VPFE_DMA_CNTL_OVERFLOW,4,2     ; @VPFE_DMA_CNTL_OVERFLOW
	.no_dead_strip	_vpfe_ccdc_close
.subsections_via_symbols
