	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf4350_write
_adf4350_write:                         ## @adf4350_write
	.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	%r8, %r14
	movq	%rcx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_iio_priv
	movq	%rax, %r15
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoull
	testl	%eax, %eax
	jne	LBB0_22
## %bb.1:
	movq	%r12, %rdi
	callq	_mutex_lock
	addl	$-128, %r13d
	cmpl	$3, %r13d
	ja	LBB0_6
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_16:
	cmpq	$0, -48(%rbp)
	movq	_ADF4350_REG2_POWER_DOWN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_18
## %bb.17:
	movq	24(%r15), %rcx
	movq	_ADF4350_REG2@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_19
LBB0_14:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.15:
	movq	%rax, 16(%r15)
	jmp	LBB0_20
LBB0_5:
	movq	-48(%rbp), %rsi
	movq	_ADF4350_MAX_FREQ_REFIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	ja	LBB0_6
## %bb.9:
	movl	32(%r15), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.10:
	callq	_clk_round_rate
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.11:
	movl	32(%r15), %edi
	movq	%rax, %rsi
	callq	_clk_set_rate
	testl	%eax, %eax
	js	LBB0_23
## %bb.12:
	movq	-48(%rbp), %rsi
LBB0_13:
	movq	%rsi, (%r15)
	movq	8(%r15), %rsi
	jmp	LBB0_4
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	-48(%rbp), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_adf4350_set_freq
	movl	%eax, %ebx
LBB0_7:
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.8:
	movl	%ebx, %r14d
	jmp	LBB0_21
LBB0_18:
	notl	%eax
	movq	24(%r15), %rcx
	movq	_ADF4350_REG2@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	andl	%eax, (%rcx,%rdx,4)
LBB0_19:
	movq	%r15, %rdi
	callq	_adf4350_sync_config
LBB0_20:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_21:
	movl	%r14d, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %r14d
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_14
	.long	L0_0_set_5
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_ADF4350_MAX_FREQ_REFIN,8,3     ## @ADF4350_MAX_FREQ_REFIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADF4350_REG2_POWER_DOWN_EN,4,2 ## @ADF4350_REG2_POWER_DOWN_EN
	.comm	_ADF4350_REG2,8,3               ## @ADF4350_REG2
	.no_dead_strip	_adf4350_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf4350_write
_adf4350_write:                         ; @adf4350_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x23, x3
	mov	x22, x1
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtoull
	cbnz	w0, LBB0_22
; %bb.1:
	mov	x0, x20
	bl	_mutex_lock
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	x9, [sp, #8]
Lloh2:
	adrp	x8, _ADF4350_REG2_POWER_DOWN_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADF4350_REG2_POWER_DOWN_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	x9, LBB0_18
; %bb.4:
	ldr	x9, [x21, #24]
Lloh5:
	adrp	x10, _ADF4350_REG2@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ADF4350_REG2@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	b	LBB0_19
LBB0_5:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_13
; %bb.6:
	str	x8, [x21, #16]
	b	LBB0_20
LBB0_7:
	ldr	x1, [sp, #8]
Lloh8:
	adrp	x8, _ADF4350_MAX_FREQ_REFIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADF4350_MAX_FREQ_REFIN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x1, x8
	b.hi	LBB0_13
; %bb.8:
	ldr	w0, [x21, #32]
	cbz	w0, LBB0_12
; %bb.9:
	bl	_clk_round_rate
	ldr	x8, [sp, #8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.10:
	mov	x1, x0
	ldr	w0, [x21, #32]
	bl	_clk_set_rate
	tbnz	w0, #31, LBB0_23
; %bb.11:
	ldr	x1, [sp, #8]
LBB0_12:
	str	x1, [x21]
	ldr	x1, [x21, #8]
	b	LBB0_15
LBB0_13:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_14:
	ldr	x1, [sp, #8]
LBB0_15:
	mov	x0, x21
	bl	_adf4350_set_freq
	mov	x21, x0
LBB0_16:
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w21, LBB0_21
; %bb.17:
	mov	w19, w21
	b	LBB0_21
LBB0_18:
	ldr	x9, [x21, #24]
Lloh14:
	adrp	x10, _ADF4350_REG2@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ADF4350_REG2@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
LBB0_19:
	str	w8, [x9, x10]
	mov	x0, x21
	bl	_adf4350_sync_config
LBB0_20:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_21:
	mov	x0, x19
LBB0_22:
	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
	add	sp, sp, #80
	ret
LBB0_23:
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	w19, w22
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
                                        ; -- End function
	.comm	_ADF4350_MAX_FREQ_REFIN,8,3     ; @ADF4350_MAX_FREQ_REFIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADF4350_REG2_POWER_DOWN_EN,4,2 ; @ADF4350_REG2_POWER_DOWN_EN
	.comm	_ADF4350_REG2,8,3               ; @ADF4350_REG2
	.no_dead_strip	_adf4350_write
.subsections_via_symbols
