	.file	"extr_lgs8gxx.c_lgs8gxx_get_afc_phase.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AFC = %u kHz\n"
	.text
	.p2align 4
	.type	lgs8gxx_get_afc_phase, @function
lgs8gxx_get_afc_phase:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, 35
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rcx, QWORD PTR LGS8GXX_PROD_LGS8G75[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	lea	r13, 4[rsp]
	cmp	QWORD PTR [rax], rcx
	mov	eax, 72
	cmovne	ebp, eax
	xor	ebx, ebx
	lea	r14d, -4[rbp]
.L3:
	mov	esi, ebp
	mov	rdx, r13
	mov	rdi, r12
	sub	ebp, 1
	call	lgs8gxx_read_reg@PLT
	sal	ebx, 8
	or	ebx, DWORD PTR 4[rsp]
	cmp	r14d, ebp
	jne	.L3
	mov	rax, QWORD PTR [r12]
	mov	ecx, 32
	lea	rdi, .LC0[rip]
	mov	esi, DWORD PTR 8[rax]
	imul	esi, ebx
	sar	esi, cl
	call	dprintk@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lgs8gxx_get_afc_phase, .-lgs8gxx_get_afc_phase
	.comm	LGS8GXX_PROD_LGS8G75,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lgs8gxx.c_lgs8gxx_get_afc_phase.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"AFC = %u kHz\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lgs8gxx_get_afc_phase, %function
lgs8gxx_get_afc_phase:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, [r0]
	ldr	r3, .L10
	ldr	r4, [r2]
	ldr	r3, [r3]
	ldr	r2, .L10+4
	cmp	r4, r3
	moveq	r4, #35
	movne	r4, #72
	sub	sp, sp, #12
	mov	r6, r0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r5, #0
	sub	r7, r4, #4
.L3:
	mov	r1, r4
	mov	r2, sp
	mov	r0, r6
	bl	lgs8gxx_read_reg
	sub	r4, r4, #1
	ldr	r3, [sp]
	cmp	r7, r4
	orr	r5, r3, r5, lsl #8
	bne	.L3
	mov	r1, #32
	ldr	r3, [r6]
	ldr	r0, .L10+8
	ldr	r3, [r3, #4]
	mul	r5, r3, r5
	asr	r1, r5, r1
	bl	dprintk
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	LGS8GXX_PROD_LGS8G75
	.word	.LC1
	.word	.LC0
	.size	lgs8gxx_get_afc_phase, .-lgs8gxx_get_afc_phase
	.comm	LGS8GXX_PROD_LGS8G75,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
