	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_init_power                ## -- Begin function cx18_init_power
	.p2align	4, 0x90
_cx18_init_power:                       ## @cx18_init_power
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_CX18_PLL_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_cx18_write_reg
	movq	_CX18_ADEC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$131072, %esi                   ## imm = 0x20000
	xorl	%ecx, %ecx
	movl	$131074, %r8d                   ## imm = 0x20002
	callq	_cx18_write_reg_expect
	movq	_CX18_FAST_CLOCK_PLL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	testl	%r14d, %r14d
	sete	%r13b
	leal	13(,%r13,4), %esi
	movl	$3728343, %eax                  ## imm = 0x38E3D7
	movl	$32489271, %ebx                 ## imm = 0x1EFBF37
	cmovel	%eax, %ebx
	movl	$19174015, %eax                 ## imm = 0x124927F
	movl	$3195716, %r12d                 ## imm = 0x30C344
	cmovel	%eax, %r12d
	movq	%r15, %rdi
	callq	_cx18_write_reg
	movq	_CX18_FAST_CLOCK_PLL_FRAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_cx18_write_reg
	movq	_CX18_FAST_CLOCK_PLL_POST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_cx18_write_reg
	movq	_CX18_FAST_CLOCK_PLL_PRESCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_cx18_write_reg
	movq	_CX18_FAST_CLOCK_PLL_ADJUST_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_cx18_write_reg
	movq	_CX18_SLOW_CLOCK_PLL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	$13, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_cx18_write_reg
	movq	_CX18_SLOW_CLOCK_PLL_FRAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_cx18_write_reg
	movq	_CX18_SLOW_CLOCK_PLL_POST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_cx18_write_reg
	movq	_CX18_MPEG_CLOCK_PLL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$15, %esi
	callq	_cx18_write_reg
	movq	_CX18_MPEG_CLOCK_PLL_FRAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$2876158, %esi                  ## imm = 0x2BE2FE
	callq	_cx18_write_reg
	movq	_CX18_MPEG_CLOCK_PLL_POST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_cx18_write_reg
	movq	_CX18_CLOCK_SELECT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	$-65504, %esi                   ## imm = 0xFFFF0020
	movl	$32, %ecx
	movl	$-1, %r8d
	callq	_cx18_write_reg_expect
	movq	_CX18_CLOCK_SELECT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$-65532, %esi                   ## imm = 0xFFFF0004
	movl	$4, %ecx
	movl	$-1, %r8d
	jmp	LBB0_3
LBB0_2:
	movl	$393220, %esi                   ## imm = 0x60004
	movl	$4, %ecx
	movl	$393222, %r8d                   ## imm = 0x60006
	callq	_cx18_write_reg_expect
	movq	_CX18_CLOCK_SELECT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$393222, %esi                   ## imm = 0x60006
	movl	$6, %ecx
	movl	$393222, %r8d                   ## imm = 0x60006
LBB0_3:
	callq	_cx18_write_reg_expect
	movq	_CX18_HALF_CLOCK_SELECT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$-65534, %esi                   ## imm = 0xFFFF0002
	movl	$2, %ecx
	movl	$-1, %r8d
	callq	_cx18_write_reg_expect
	movq	_CX18_HALF_CLOCK_SELECT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$-65276, %esi                   ## imm = 0xFFFF0104
	movl	$260, %ecx                      ## imm = 0x104
	movl	$-1, %r8d
	callq	_cx18_write_reg_expect
	movq	_CX18_CLOCK_ENABLE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$-28634, %esi                   ## imm = 0x9026
	movl	$36902, %ecx                    ## imm = 0x9026
	movl	$-1, %r8d
	callq	_cx18_write_reg_expect
	movq	_CX18_CLOCK_ENABLE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$-52987, %esi                   ## imm = 0xFFFF3105
	movl	$12549, %ecx                    ## imm = 0x3105
	movl	$-1, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx18_write_reg_expect          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CX18_PLL_POWER_DOWN,4,2        ## @CX18_PLL_POWER_DOWN
	.comm	_CX18_ADEC_CONTROL,4,2          ## @CX18_ADEC_CONTROL
	.comm	_CX18_FAST_CLOCK_PLL_INT,4,2    ## @CX18_FAST_CLOCK_PLL_INT
	.comm	_CX18_FAST_CLOCK_PLL_FRAC,4,2   ## @CX18_FAST_CLOCK_PLL_FRAC
	.comm	_CX18_FAST_CLOCK_PLL_POST,4,2   ## @CX18_FAST_CLOCK_PLL_POST
	.comm	_CX18_FAST_CLOCK_PLL_PRESCALE,4,2 ## @CX18_FAST_CLOCK_PLL_PRESCALE
	.comm	_CX18_FAST_CLOCK_PLL_ADJUST_BANDWIDTH,4,2 ## @CX18_FAST_CLOCK_PLL_ADJUST_BANDWIDTH
	.comm	_CX18_SLOW_CLOCK_PLL_INT,4,2    ## @CX18_SLOW_CLOCK_PLL_INT
	.comm	_CX18_SLOW_CLOCK_PLL_FRAC,4,2   ## @CX18_SLOW_CLOCK_PLL_FRAC
	.comm	_CX18_SLOW_CLOCK_PLL_POST,4,2   ## @CX18_SLOW_CLOCK_PLL_POST
	.comm	_CX18_MPEG_CLOCK_PLL_INT,4,2    ## @CX18_MPEG_CLOCK_PLL_INT
	.comm	_CX18_MPEG_CLOCK_PLL_FRAC,4,2   ## @CX18_MPEG_CLOCK_PLL_FRAC
	.comm	_CX18_MPEG_CLOCK_PLL_POST,4,2   ## @CX18_MPEG_CLOCK_PLL_POST
	.comm	_CX18_CLOCK_SELECT1,4,2         ## @CX18_CLOCK_SELECT1
	.comm	_CX18_CLOCK_SELECT2,4,2         ## @CX18_CLOCK_SELECT2
	.comm	_CX18_HALF_CLOCK_SELECT1,4,2    ## @CX18_HALF_CLOCK_SELECT1
	.comm	_CX18_HALF_CLOCK_SELECT2,4,2    ## @CX18_HALF_CLOCK_SELECT2
	.comm	_CX18_CLOCK_ENABLE1,4,2         ## @CX18_CLOCK_ENABLE1
	.comm	_CX18_CLOCK_ENABLE2,4,2         ## @CX18_CLOCK_ENABLE2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_init_power                ; -- Begin function cx18_init_power
	.p2align	2
_cx18_init_power:                       ; @cx18_init_power
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CX18_PLL_POWER_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX18_PLL_POWER_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_cx18_write_reg
Lloh3:
	adrp	x8, _CX18_ADEC_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CX18_ADEC_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #131072
	mov	w3, #0
	mov	w4, #131074
	bl	_cx18_write_reg_expect
	mov	w8, #13
	mov	w9, #17
	cmp	w20, #0
	csel	w1, w9, w8, eq
Lloh6:
	adrp	x8, _CX18_FAST_CLOCK_PLL_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CX18_FAST_CLOCK_PLL_INT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w8, #48951
	movk	w8, #495, lsl #16
	mov	w9, #58327
	movk	w9, #56, lsl #16
	csel	w21, w9, w8, eq
	mov	w8, #12
	cinc	w22, w8, ne
	mov	w8, #49988
	movk	w8, #48, lsl #16
	mov	w9, #37503
	movk	w9, #292, lsl #16
	csel	w23, w9, w8, eq
	mov	x0, x19
	bl	_cx18_write_reg
Lloh9:
	adrp	x8, _CX18_FAST_CLOCK_PLL_FRAC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CX18_FAST_CLOCK_PLL_FRAC@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_cx18_write_reg
Lloh12:
	adrp	x8, _CX18_FAST_CLOCK_PLL_POST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CX18_FAST_CLOCK_PLL_POST@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	bl	_cx18_write_reg
Lloh15:
	adrp	x8, _CX18_FAST_CLOCK_PLL_PRESCALE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CX18_FAST_CLOCK_PLL_PRESCALE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_cx18_write_reg
Lloh18:
	adrp	x8, _CX18_FAST_CLOCK_PLL_ADJUST_BANDWIDTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CX18_FAST_CLOCK_PLL_ADJUST_BANDWIDTH@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_cx18_write_reg
Lloh21:
	adrp	x8, _CX18_SLOW_CLOCK_PLL_INT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CX18_SLOW_CLOCK_PLL_INT@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_cx18_write_reg
Lloh24:
	adrp	x8, _CX18_SLOW_CLOCK_PLL_FRAC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CX18_SLOW_CLOCK_PLL_FRAC@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_cx18_write_reg
Lloh27:
	adrp	x8, _CX18_SLOW_CLOCK_PLL_POST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CX18_SLOW_CLOCK_PLL_POST@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #3
	bl	_cx18_write_reg
Lloh30:
	adrp	x8, _CX18_MPEG_CLOCK_PLL_INT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CX18_MPEG_CLOCK_PLL_INT@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #15
	bl	_cx18_write_reg
Lloh33:
	adrp	x8, _CX18_MPEG_CLOCK_PLL_FRAC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CX18_MPEG_CLOCK_PLL_FRAC@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #58110
	movk	w1, #43, lsl #16
	bl	_cx18_write_reg
Lloh36:
	adrp	x8, _CX18_MPEG_CLOCK_PLL_POST@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CX18_MPEG_CLOCK_PLL_POST@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #8
	bl	_cx18_write_reg
Lloh39:
	adrp	x8, _CX18_CLOCK_SELECT1@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CX18_CLOCK_SELECT1@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	cbz	w20, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #-65504
	mov	w3, #32
	mov	w4, #-1
	bl	_cx18_write_reg_expect
Lloh42:
	adrp	x8, _CX18_CLOCK_SELECT2@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CX18_CLOCK_SELECT2@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-65532
	mov	w3, #4
	mov	w4, #-1
	b	LBB0_3
LBB0_2:
	mov	w8, #393222
	sub	w1, w8, #2
	mov	x0, x19
	mov	w3, #4
	mov	w4, #393222
	bl	_cx18_write_reg_expect
Lloh45:
	adrp	x8, _CX18_CLOCK_SELECT2@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CX18_CLOCK_SELECT2@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #393222
	mov	w3, #6
	mov	w4, #393222
LBB0_3:
	bl	_cx18_write_reg_expect
Lloh48:
	adrp	x8, _CX18_HALF_CLOCK_SELECT1@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CX18_HALF_CLOCK_SELECT1@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-65534
	mov	w3, #2
	mov	w4, #-1
	bl	_cx18_write_reg_expect
Lloh51:
	adrp	x8, _CX18_HALF_CLOCK_SELECT2@GOTPAGE
Lloh52:
	ldr	x8, [x8, _CX18_HALF_CLOCK_SELECT2@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-65276
	mov	w3, #260
	mov	w4, #-1
	bl	_cx18_write_reg_expect
Lloh54:
	adrp	x8, _CX18_CLOCK_ENABLE1@GOTPAGE
Lloh55:
	ldr	x8, [x8, _CX18_CLOCK_ENABLE1@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-28634
	mov	w3, #36902
	mov	w4, #-1
	bl	_cx18_write_reg_expect
Lloh57:
	adrp	x8, _CX18_CLOCK_ENABLE2@GOTPAGE
Lloh58:
	ldr	x8, [x8, _CX18_CLOCK_ENABLE2@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-52987
	mov	w3, #12549
	mov	w4, #-1
	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	_cx18_write_reg_expect
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_CX18_PLL_POWER_DOWN,4,2        ; @CX18_PLL_POWER_DOWN
	.comm	_CX18_ADEC_CONTROL,4,2          ; @CX18_ADEC_CONTROL
	.comm	_CX18_FAST_CLOCK_PLL_INT,4,2    ; @CX18_FAST_CLOCK_PLL_INT
	.comm	_CX18_FAST_CLOCK_PLL_FRAC,4,2   ; @CX18_FAST_CLOCK_PLL_FRAC
	.comm	_CX18_FAST_CLOCK_PLL_POST,4,2   ; @CX18_FAST_CLOCK_PLL_POST
	.comm	_CX18_FAST_CLOCK_PLL_PRESCALE,4,2 ; @CX18_FAST_CLOCK_PLL_PRESCALE
	.comm	_CX18_FAST_CLOCK_PLL_ADJUST_BANDWIDTH,4,2 ; @CX18_FAST_CLOCK_PLL_ADJUST_BANDWIDTH
	.comm	_CX18_SLOW_CLOCK_PLL_INT,4,2    ; @CX18_SLOW_CLOCK_PLL_INT
	.comm	_CX18_SLOW_CLOCK_PLL_FRAC,4,2   ; @CX18_SLOW_CLOCK_PLL_FRAC
	.comm	_CX18_SLOW_CLOCK_PLL_POST,4,2   ; @CX18_SLOW_CLOCK_PLL_POST
	.comm	_CX18_MPEG_CLOCK_PLL_INT,4,2    ; @CX18_MPEG_CLOCK_PLL_INT
	.comm	_CX18_MPEG_CLOCK_PLL_FRAC,4,2   ; @CX18_MPEG_CLOCK_PLL_FRAC
	.comm	_CX18_MPEG_CLOCK_PLL_POST,4,2   ; @CX18_MPEG_CLOCK_PLL_POST
	.comm	_CX18_CLOCK_SELECT1,4,2         ; @CX18_CLOCK_SELECT1
	.comm	_CX18_CLOCK_SELECT2,4,2         ; @CX18_CLOCK_SELECT2
	.comm	_CX18_HALF_CLOCK_SELECT1,4,2    ; @CX18_HALF_CLOCK_SELECT1
	.comm	_CX18_HALF_CLOCK_SELECT2,4,2    ; @CX18_HALF_CLOCK_SELECT2
	.comm	_CX18_CLOCK_ENABLE1,4,2         ; @CX18_CLOCK_ENABLE1
	.comm	_CX18_CLOCK_ENABLE2,4,2         ; @CX18_CLOCK_ENABLE2
.subsections_via_symbols
