	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx78xx_xtal_clk_sel
_anx78xx_xtal_clk_sel:                  ## @anx78xx_xtal_clk_sel
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_I2C_IDX_TX_P2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_ANALOG_DEBUG2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SP_XTAL_FRQ@GOTPCREL(%rip), %rax
	movq	_SP_FORCE_SW_OFF_BYPASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_SP_XTAL_FRQ_27M@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	(%rbx), %rax
	movq	_I2C_IDX_TX_P0@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_DP_AUX_CH_CTRL3_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XTAL_CLK@GOTPCREL(%rip), %r14
	movq	_SP_WAIT_COUNTER_7_0_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r14), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_DP_AUX_CH_CTRL4_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	(%r14), %rax
	imulq	$1717986919, %rax, %rdx         ## imm = 0x66666667
                                        ## kill: def $eax killed $eax killed $rax
	shrl	$2, %eax
	andl	$16320, %eax                    ## imm = 0x3FC0
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$34, %rdx
	addl	%ecx, %edx
	orl	%eax, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_I2C_GEN_10US_TIMER0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r14), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_I2C_GEN_10US_TIMER1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r14), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_AUX_MISC_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	(%r14), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$34, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edx
	decl	%edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	(%rbx), %rax
	movq	_I2C_IDX_RX_P0@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_HDMI_US_TIMER_CTRL_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	(%r12), %esi
	movq	_SP_MS_TIMER_MARGIN_10_8_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-36(%rbp), %eax
	movslq	(%r14), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$34, %rcx
	addl	%edx, %ecx
	leal	-16(,%rcx,4), %edx
	andl	$-8, %edx
	orl	%eax, %edx
	callq	_regmap_write
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_IDX_TX_P2,8,3              ## @I2C_IDX_TX_P2
	.comm	_SP_ANALOG_DEBUG2_REG,4,2       ## @SP_ANALOG_DEBUG2_REG
	.comm	_SP_XTAL_FRQ,4,2                ## @SP_XTAL_FRQ
	.comm	_SP_FORCE_SW_OFF_BYPASS,4,2     ## @SP_FORCE_SW_OFF_BYPASS
	.comm	_SP_XTAL_FRQ_27M,4,2            ## @SP_XTAL_FRQ_27M
	.comm	_I2C_IDX_TX_P0,8,3              ## @I2C_IDX_TX_P0
	.comm	_SP_DP_AUX_CH_CTRL3_REG,4,2     ## @SP_DP_AUX_CH_CTRL3_REG
	.comm	_XTAL_CLK,4,2                   ## @XTAL_CLK
	.comm	_SP_WAIT_COUNTER_7_0_MASK,4,2   ## @SP_WAIT_COUNTER_7_0_MASK
	.comm	_SP_DP_AUX_CH_CTRL4_REG,4,2     ## @SP_DP_AUX_CH_CTRL4_REG
	.comm	_SP_I2C_GEN_10US_TIMER0_REG,4,2 ## @SP_I2C_GEN_10US_TIMER0_REG
	.comm	_SP_I2C_GEN_10US_TIMER1_REG,4,2 ## @SP_I2C_GEN_10US_TIMER1_REG
	.comm	_SP_AUX_MISC_CTRL_REG,4,2       ## @SP_AUX_MISC_CTRL_REG
	.comm	_I2C_IDX_RX_P0,8,3              ## @I2C_IDX_RX_P0
	.comm	_SP_HDMI_US_TIMER_CTRL_REG,4,2  ## @SP_HDMI_US_TIMER_CTRL_REG
	.comm	_SP_MS_TIMER_MARGIN_10_8_MASK,4,2 ## @SP_MS_TIMER_MARGIN_10_8_MASK
	.no_dead_strip	_anx78xx_xtal_clk_sel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx78xx_xtal_clk_sel
_anx78xx_xtal_clk_sel:                  ; @anx78xx_xtal_clk_sel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _I2C_IDX_TX_P2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_IDX_TX_P2@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x9, x8, lsl #2]
Lloh3:
	adrp	x8, _SP_ANALOG_DEBUG2_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SP_ANALOG_DEBUG2_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SP_XTAL_FRQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SP_XTAL_FRQ@GOTPAGEOFF]
Lloh8:
	adrp	x9, _SP_FORCE_SW_OFF_BYPASS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SP_FORCE_SW_OFF_BYPASS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh12:
	adrp	x8, _SP_XTAL_FRQ_27M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SP_XTAL_FRQ_27M@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x19]
Lloh15:
	adrp	x21, _I2C_IDX_TX_P0@GOTPAGE
Lloh16:
	ldr	x21, [x21, _I2C_IDX_TX_P0@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh17:
	adrp	x8, _SP_DP_AUX_CH_CTRL3_REG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SP_DP_AUX_CH_CTRL3_REG@GOTPAGEOFF]
Lloh19:
	adrp	x20, _XTAL_CLK@GOTPAGE
Lloh20:
	ldr	x20, [x20, _XTAL_CLK@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w8, [x20]
Lloh22:
	adrp	x9, _SP_WAIT_COUNTER_7_0_MASK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SP_WAIT_COUNTER_7_0_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	and	w2, w9, w8
	bl	_regmap_write
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh25:
	adrp	x8, _SP_DP_AUX_CH_CTRL4_REG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SP_DP_AUX_CH_CTRL4_REG@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldrsw	x8, [x20]
	ubfx	x9, x8, #2, #30
	and	w9, w9, #0x3fc0
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x8, x8, x10
	lsr	x10, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w10
	orr	w2, w9, w8
	bl	_regmap_write
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh28:
	adrp	x8, _SP_I2C_GEN_10US_TIMER0_REG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SP_I2C_GEN_10US_TIMER0_REG@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldrb	w2, [x20]
	bl	_regmap_write
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh31:
	adrp	x8, _SP_I2C_GEN_10US_TIMER1_REG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SP_I2C_GEN_10US_TIMER1_REG@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldrb	w2, [x20, #1]
	bl	_regmap_write
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh34:
	adrp	x8, _SP_AUX_MISC_CTRL_REG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SP_AUX_MISC_CTRL_REG@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldrsw	x8, [x20]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	sub	w2, w8, #1
	bl	_regmap_write
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x8, [x19]
Lloh37:
	adrp	x21, _I2C_IDX_RX_P0@GOTPAGE
Lloh38:
	ldr	x21, [x21, _I2C_IDX_RX_P0@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh39:
	adrp	x22, _SP_HDMI_US_TIMER_CTRL_REG@GOTPAGE
Lloh40:
	ldr	x22, [x22, _SP_HDMI_US_TIMER_CTRL_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x22]
	ldr	w8, [sp, #12]
Lloh41:
	adrp	x9, _SP_MS_TIMER_MARGIN_10_8_MASK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _SP_MS_TIMER_MARGIN_10_8_MASK@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldrsw	x9, [x20]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	lsr	x9, x9, #34
	add	w9, w9, w10
	lsl	w9, w9, #2
	sub	w9, w9, #16
	and	w9, w9, #0xfffffff8
	orr	w2, w9, w8
	bl	_regmap_write
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_IDX_TX_P2,8,3              ; @I2C_IDX_TX_P2
	.comm	_SP_ANALOG_DEBUG2_REG,4,2       ; @SP_ANALOG_DEBUG2_REG
	.comm	_SP_XTAL_FRQ,4,2                ; @SP_XTAL_FRQ
	.comm	_SP_FORCE_SW_OFF_BYPASS,4,2     ; @SP_FORCE_SW_OFF_BYPASS
	.comm	_SP_XTAL_FRQ_27M,4,2            ; @SP_XTAL_FRQ_27M
	.comm	_I2C_IDX_TX_P0,8,3              ; @I2C_IDX_TX_P0
	.comm	_SP_DP_AUX_CH_CTRL3_REG,4,2     ; @SP_DP_AUX_CH_CTRL3_REG
	.comm	_XTAL_CLK,4,2                   ; @XTAL_CLK
	.comm	_SP_WAIT_COUNTER_7_0_MASK,4,2   ; @SP_WAIT_COUNTER_7_0_MASK
	.comm	_SP_DP_AUX_CH_CTRL4_REG,4,2     ; @SP_DP_AUX_CH_CTRL4_REG
	.comm	_SP_I2C_GEN_10US_TIMER0_REG,4,2 ; @SP_I2C_GEN_10US_TIMER0_REG
	.comm	_SP_I2C_GEN_10US_TIMER1_REG,4,2 ; @SP_I2C_GEN_10US_TIMER1_REG
	.comm	_SP_AUX_MISC_CTRL_REG,4,2       ; @SP_AUX_MISC_CTRL_REG
	.comm	_I2C_IDX_RX_P0,8,3              ; @I2C_IDX_RX_P0
	.comm	_SP_HDMI_US_TIMER_CTRL_REG,4,2  ; @SP_HDMI_US_TIMER_CTRL_REG
	.comm	_SP_MS_TIMER_MARGIN_10_8_MASK,4,2 ; @SP_MS_TIMER_MARGIN_10_8_MASK
	.no_dead_strip	_anx78xx_xtal_clk_sel
.subsections_via_symbols
