	.file	"extr_adf4350.c_adf4350_sync_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[%d] 0x%X\n"
	.text
	.p2align 4
	.type	adf4350_sync_config, @function
adf4350_sync_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	eax, DWORD PTR ADF4350_REG0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, DWORD PTR ADF4350_REG5[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	ebp, eax
	jl	.L2
	movsx	r12, ebp
	mov	rbx, rdi
	xor	r13d, r13d
	mov	r14d, 1
	sal	r12, 2
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	lea	eax, -128[rbp]
	cmp	eax, 1
	cmovbe	r13d, r14d
	or	edi, ebp
	call	cpu_to_be32@PLT
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, 24[rbx]
	mov	edx, 4
	mov	DWORD PTR 24[rbx], eax
	call	spi_write@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 16[rbx]
	mov	edx, ebp
	lea	rsi, .LC0[rip]
	mov	ecx, DWORD PTR [rax+r12]
	mov	rax, QWORD PTR [rbx]
	mov	DWORD PTR [rax+r12], ecx
	or	ecx, ebp
	call	dev_dbg@PLT
	mov	eax, DWORD PTR ADF4350_REG0[rip]
.L4:
	sub	ebp, 1
	sub	r12, 4
	cmp	eax, ebp
	jg	.L2
.L7:
	mov	rdx, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rdx+r12]
	mov	rdx, QWORD PTR [rbx]
	cmp	DWORD PTR [rdx+r12], edi
	jne	.L3
	cmp	ebp, eax
	jne	.L4
	test	r13d, r13d
	je	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
.L1:
	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
	.cfi_endproc
.LFE0:
	.size	adf4350_sync_config, .-adf4350_sync_config
	.comm	ADF4350_REG5,4,4
	.comm	ADF4350_REG0,4,4
	.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_adf4350.c_adf4350_sync_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[%d] 0x%X\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adf4350_sync_config, %function
adf4350_sync_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L14
	ldr	r7, .L14+4
	ldr	r4, [r3]
	ldr	r2, [r7]
	cmp	r4, r2
	blt	.L2
	mov	r5, r0
	mov	r6, #0
	ldr	r9, .L14+8
	add	r8, r0, #12
	b	.L7
.L3:
	cmp	ip, #1
	movls	r6, #1
	bl	cpu_to_be32
	mov	r2, #4
	str	r0, [r5, #12]
	mov	r1, r8
	ldr	r0, [r5, #8]
	bl	spi_write
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldm	r5, {r1, r3}
	ldr	r3, [r3, r10]
	mov	r2, r4
	str	r3, [r1, r10]
	ldr	r0, [r5, #8]
	mov	r1, r9
	orr	r3, r3, r4
	bl	dev_dbg
.L4:
	ldr	r2, [r7]
	sub	r4, r4, #1
	cmp	r2, r4
	bgt	.L2
.L7:
	ldm	r5, {r1, r3}
	ldr	r3, [r3, r4, lsl #2]
	ldr	r1, [r1, r4, lsl #2]
	sub	ip, r4, #128
	cmp	r1, r3
	orr	r0, r3, r4
	lsl	r10, r4, #2
	bne	.L3
	cmp	r4, r2
	bne	.L4
	cmp	r6, #0
	beq	.L4
	b	.L3
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	ADF4350_REG5
	.word	ADF4350_REG0
	.word	.LC0
	.size	adf4350_sync_config, .-adf4350_sync_config
	.comm	ADF4350_REG5,4,4
	.comm	ADF4350_REG0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
