	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgs8gxx_get_afc_phase
_lgs8gxx_get_afc_phase:                 ## @lgs8gxx_get_afc_phase
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_LGS8GXX_PROD_LGS8G75@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$35, %eax
	movl	$72, %ebx
	cmovel	%eax, %ebx
	leaq	-28(%rbp), %r15
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_lgs8gxx_read_reg
	leal	-1(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_lgs8gxx_read_reg
	leal	-2(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_lgs8gxx_read_reg
	addl	$-3, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_lgs8gxx_read_reg
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LGS8GXX_PROD_LGS8G75,8,3       ## @LGS8GXX_PROD_LGS8G75
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AFC = %u kHz\n"

	.no_dead_strip	_lgs8gxx_get_afc_phase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgs8gxx_get_afc_phase
_lgs8gxx_get_afc_phase:                 ; @lgs8gxx_get_afc_phase
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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]
Lloh0:
	adrp	x9, _LGS8GXX_PROD_LGS8G75@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LGS8GXX_PROD_LGS8G75@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #72
	mov	w9, #35
	csel	w20, w9, w8, eq
	add	x2, sp, #12
	mov	x1, x20
	bl	_lgs8gxx_read_reg
	sub	w1, w20, #1
	add	x2, sp, #12
	mov	x0, x19
	bl	_lgs8gxx_read_reg
	sub	w1, w20, #2
	add	x2, sp, #12
	mov	x0, x19
	bl	_lgs8gxx_read_reg
	sub	w1, w20, #3
	add	x2, sp, #12
	mov	x0, x19
	bl	_lgs8gxx_read_reg
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LGS8GXX_PROD_LGS8G75,8,3       ; @LGS8GXX_PROD_LGS8G75
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AFC = %u kHz\n"

	.no_dead_strip	_lgs8gxx_get_afc_phase
.subsections_via_symbols
