	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_camera_activate
_pxa_camera_activate:                   ## @pxa_camera_activate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_CICR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rdi), %rsi
	movl	$1023, %edi                     ## imm = 0x3FF
	callq	___raw_writel
	movl	(%rbx), %eax
	movq	_PXA_CAMERA_PCLK_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_CICR4_PCLK_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movq	_PXA_CAMERA_MCLK_EN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	andl	%eax, %edi
	je	LBB0_4
## %bb.3:
	movq	_CICR4_MCLK_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_4:
	movq	_PXA_CAMERA_PCP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_6
## %bb.5:
	movq	_CICR4_PCP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	%ecx, %edi
	movq	_PXA_CAMERA_HSP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_8
## %bb.7:
	movq	_CICR4_HSP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	orl	%ecx, %edx
	orl	%edx, %edi
	movq	_PXA_CAMERA_VSP@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_10
## %bb.9:
	movq	_CICR4_VSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	orl	4(%rbx), %edi
	orl	%eax, %edi
	movq	_CICR4@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	___raw_writel
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.12:
	movl	8(%rbx), %esi
	jmp	LBB0_13
LBB0_11:
	movl	$13000000, %esi                 ## imm = 0xC65D40
LBB0_13:
	movq	%rbx, %rdi
	callq	_recalculate_fifo_timeout
	movl	12(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clk_prepare_enable             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CICR0,8,3                      ## @CICR0
	.comm	_PXA_CAMERA_PCLK_EN,4,2         ## @PXA_CAMERA_PCLK_EN
	.comm	_CICR4_PCLK_EN,4,2              ## @CICR4_PCLK_EN
	.comm	_PXA_CAMERA_MCLK_EN,4,2         ## @PXA_CAMERA_MCLK_EN
	.comm	_CICR4_MCLK_EN,4,2              ## @CICR4_MCLK_EN
	.comm	_PXA_CAMERA_PCP,4,2             ## @PXA_CAMERA_PCP
	.comm	_CICR4_PCP,4,2                  ## @CICR4_PCP
	.comm	_PXA_CAMERA_HSP,4,2             ## @PXA_CAMERA_HSP
	.comm	_CICR4_HSP,4,2                  ## @CICR4_HSP
	.comm	_PXA_CAMERA_VSP,4,2             ## @PXA_CAMERA_VSP
	.comm	_CICR4_VSP,4,2                  ## @CICR4_VSP
	.comm	_CICR4,8,3                      ## @CICR4
	.no_dead_strip	_pxa_camera_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa_camera_activate
_pxa_camera_activate:                   ; @pxa_camera_activate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _CICR0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CICR0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1023
	bl	___raw_writel
Lloh3:
	adrp	x8, _PXA_CAMERA_PCLK_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PXA_CAMERA_PCLK_EN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CICR4_PCLK_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CICR4_PCLK_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	ldp	w10, w11, [x19]
	tst	w8, w10
	csel	w8, wzr, w9, eq
Lloh9:
	adrp	x20, _PXA_CAMERA_MCLK_EN@GOTPAGE
Lloh10:
	ldr	x20, [x20, _PXA_CAMERA_MCLK_EN@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w10
Lloh11:
	adrp	x9, _CICR4_MCLK_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CICR4_MCLK_EN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _PXA_CAMERA_PCP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PXA_CAMERA_PCP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w10
Lloh17:
	adrp	x9, _CICR4_PCP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CICR4_PCP@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _PXA_CAMERA_HSP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PXA_CAMERA_HSP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w10
Lloh23:
	adrp	x9, _CICR4_HSP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CICR4_HSP@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _PXA_CAMERA_VSP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PXA_CAMERA_VSP@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w10
Lloh29:
	adrp	x9, _CICR4_VSP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CICR4_VSP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w8, w11
	orr	w0, w8, w9
	ldr	x8, [x19, #16]
Lloh32:
	adrp	x9, _CICR4@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CICR4@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	___raw_writel
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x19, #8]
	b	LBB0_3
LBB0_2:
	mov	w1, #23872
	movk	w1, #198, lsl #16
LBB0_3:
	mov	x0, x19
	bl	_recalculate_fifo_timeout
	ldr	w0, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_prepare_enable
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CICR0,8,3                      ; @CICR0
	.comm	_PXA_CAMERA_PCLK_EN,4,2         ; @PXA_CAMERA_PCLK_EN
	.comm	_CICR4_PCLK_EN,4,2              ; @CICR4_PCLK_EN
	.comm	_PXA_CAMERA_MCLK_EN,4,2         ; @PXA_CAMERA_MCLK_EN
	.comm	_CICR4_MCLK_EN,4,2              ; @CICR4_MCLK_EN
	.comm	_PXA_CAMERA_PCP,4,2             ; @PXA_CAMERA_PCP
	.comm	_CICR4_PCP,4,2                  ; @CICR4_PCP
	.comm	_PXA_CAMERA_HSP,4,2             ; @PXA_CAMERA_HSP
	.comm	_CICR4_HSP,4,2                  ; @CICR4_HSP
	.comm	_PXA_CAMERA_VSP,4,2             ; @PXA_CAMERA_VSP
	.comm	_CICR4_VSP,4,2                  ; @CICR4_VSP
	.comm	_CICR4,8,3                      ; @CICR4
	.no_dead_strip	_pxa_camera_activate
.subsections_via_symbols
