	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf4350_sync_config
_adf4350_sync_config:                   ## @adf4350_sync_config
	.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
	movq	_ADF4350_REG5@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ADF4350_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %ebx
	jl	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	movslq	%ebx, %r12
	leaq	24(%rdi), %r15
	incq	%r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%ebx, %edi
	callq	_cpu_to_be32
	movl	%eax, 24(%r14)
	movq	16(%r14), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_spi_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	movl	$1, %eax
	cmovel	%eax, %r13d
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movl	-4(%rcx,%r12,4), %edx
	movl	%edx, -4(%rax,%r12,4)
	movq	16(%r14), %rdi
	movl	-4(%rcx,%r12,4), %ecx
	orl	%ebx, %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	movq	_ADF4350_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rax
	decq	%r12
	decl	%ebx
	cmpq	%rax, %r12
	jle	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	8(%r14), %rdx
	movl	-4(%rdx,%r12,4), %edi
	cmpl	%edi, -4(%rax,%r12,4)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ecx, %ebx
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_5
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADF4350_REG5,4,2               ## @ADF4350_REG5
	.comm	_ADF4350_REG0,4,2               ## @ADF4350_REG0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%d] 0x%X\n"

	.no_dead_strip	_adf4350_sync_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf4350_sync_config
_adf4350_sync_config:                   ; @adf4350_sync_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _ADF4350_REG5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADF4350_REG5@GOTPAGEOFF]
Lloh2:
	ldrsw	x20, [x8]
Lloh3:
	adrp	x23, _ADF4350_REG0@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ADF4350_REG0@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w20, w8
	b.ge	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	mov	w24, #0
	add	x21, x0, #24
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x20, w8, sxtw
	sub	x20, x20, #1
	b.le	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x25, x20, #2
	ldp	x9, x10, [x19]
	ldr	w11, [x9, x25]
	ldr	w9, [x10, x25]
	cmp	w11, w9
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, w8
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	orr	w0, w9, w20
	bl	_cpu_to_be32
	str	w0, [x19, #24]
	ldr	x0, [x19, #16]
	mov	x1, x21
	mov	w2, #4
	bl	_spi_write
	tbnz	w0, #31, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w20, #0xfffffffe
	cmp	w8, #128
	csinc	w24, w24, wzr, ne
	ldp	x9, x8, [x19]
	ldr	w10, [x8, x25]
	str	w10, [x9, x25]
	ldr	x0, [x19, #16]
	ldr	w8, [x8, x25]
	orr	w3, w8, w20
	mov	x1, x22
	mov	x2, x20
	bl	_dev_dbg
	ldr	w8, [x23]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ADF4350_REG5,4,2               ; @ADF4350_REG5
	.comm	_ADF4350_REG0,4,2               ; @ADF4350_REG0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%d] 0x%X\n"

	.no_dead_strip	_adf4350_sync_config
.subsections_via_symbols
