	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx1_camera_activate
_mx1_camera_activate:                   ## @mx1_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_CSICR1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	8(%r14), %edi
	callq	_clk_enable
	movq	_CSICR1@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	movl	%r15d, %edi
	callq	___raw_writel
	movq	_CSICR1_MCLKEN@GOTPCREL(%rip), %rax
	movq	_CSICR1_FCC@GOTPCREL(%rip), %rcx
	movq	_CSICR1_GCLK_MODE@GOTPCREL(%rip), %rdx
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
	orl	(%rdx), %r15d
	movq	%r14, %rdi
	callq	_mclk_get_divisor
	movl	%eax, %edi
	callq	_CSICR1_MCLKDIV
	movl	%eax, %ebx
	movl	$2, %edi
	callq	_CSICR1_RXFF_LEVEL
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___raw_writel                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CSICR1_EN,4,2                  ## @CSICR1_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Activate device\n"

	.comm	_CSICR1,8,3                     ## @CSICR1
	.comm	_CSICR1_MCLKEN,4,2              ## @CSICR1_MCLKEN
	.comm	_CSICR1_FCC,4,2                 ## @CSICR1_FCC
	.comm	_CSICR1_GCLK_MODE,4,2           ## @CSICR1_GCLK_MODE
	.no_dead_strip	_mx1_camera_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mx1_camera_activate
_mx1_camera_activate:                   ; @mx1_camera_activate
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _CSICR1_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSICR1_EN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #8]
	bl	_clk_enable
	ldr	x8, [x19]
Lloh5:
	adrp	x22, _CSICR1@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CSICR1@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x20
	bl	___raw_writel
Lloh7:
	adrp	x8, _CSICR1_MCLKEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CSICR1_MCLKEN@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
Lloh10:
	adrp	x8, _CSICR1_FCC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CSICR1_FCC@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
Lloh13:
	adrp	x8, _CSICR1_GCLK_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CSICR1_GCLK_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w25, [x8]
	mov	x0, x19
	bl	_mclk_get_divisor
	bl	_CSICR1_MCLKDIV
	mov	x21, x0
	mov	w0, #2
	bl	_CSICR1_RXFF_LEVEL
	orr	w8, w23, w20
	orr	w8, w8, w24
	orr	w8, w8, w25
	orr	w8, w8, w21
	orr	w0, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	___raw_writel
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CSICR1_EN,4,2                  ; @CSICR1_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Activate device\n"

	.comm	_CSICR1,8,3                     ; @CSICR1
	.comm	_CSICR1_MCLKEN,4,2              ; @CSICR1_MCLKEN
	.comm	_CSICR1_FCC,4,2                 ; @CSICR1_FCC
	.comm	_CSICR1_GCLK_MODE,4,2           ; @CSICR1_GCLK_MODE
	.no_dead_strip	_mx1_camera_activate
.subsections_via_symbols
