	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf4350_read
_adf4350_read:                          ## @adf4350_read
	.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	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_iio_priv
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_mutex_lock
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	movq	32(%r13), %rax
	movq	_ADF4350_REG2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ADF4350_REG2_POWER_DOWN_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%r15d, %r15d
	testl	%edx, (%rax,%rcx,4)
	setne	%r15b
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_11:
	movq	24(%r13), %r15
	jmp	LBB0_13
LBB0_8:
	movl	40(%r13), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.10:
	callq	_clk_get_rate
	movq	%rax, %r15
	movq	%rax, 16(%r13)
	jmp	LBB0_13
LBB0_3:
	movslq	(%r13), %rax
	movslq	4(%r13), %rsi
	imulq	%rsi, %rax
	movslq	8(%r13), %rcx
	addq	%rax, %rcx
	movslq	64(%r13), %r15
	imulq	%rcx, %r15
	movb	12(%r13), %cl
	shll	%cl, %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_do_div
	movq	56(%r13), %rax
	movl	(%rax), %edi
	callq	_gpio_is_valid
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	56(%r13), %rax
	movl	(%rax), %edi
	callq	_gpio_get_value
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	48(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.7:
	negl	%ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	16(%r13), %r15
LBB0_13:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLL un-locked\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ADF4350_REG2,8,3               ## @ADF4350_REG2
	.comm	_ADF4350_REG2_POWER_DOWN_EN,4,2 ## @ADF4350_REG2_POWER_DOWN_EN
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%llu\n"

	.no_dead_strip	_adf4350_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf4350_read
_adf4350_read:                          ; @adf4350_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	bl	_iio_priv
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_lock
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x22, #32]
Lloh2:
	adrp	x9, _ADF4350_REG2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADF4350_REG2@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh5:
	adrp	x9, _ADF4350_REG2_POWER_DOWN_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADF4350_REG2_POWER_DOWN_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w21, ne
	b	LBB0_13
LBB0_3:
	mov	x21, #0
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	x21, [x22, #24]
	b	LBB0_13
LBB0_5:
	ldr	w0, [x22, #40]
	cbz	w0, LBB0_12
; %bb.6:
	bl	_clk_get_rate
	mov	x21, x0
	str	x0, [x22, #16]
	b	LBB0_13
LBB0_7:
	ldpsw	x8, x9, [x22]
	ldp	w10, w11, [x22, #8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	madd	x8, x9, x8, x10
	ldrsw	x10, [x22, #64]
	mul	x21, x8, x10
	lsl	w1, w9, w11
	mov	x0, x21
	bl	_do_div
	ldr	x8, [x22, #56]
	ldr	w0, [x8]
	bl	_gpio_is_valid
	cbz	w0, LBB0_13
; %bb.8:
	ldr	x8, [x22, #56]
	ldr	w0, [x8]
	bl	_gpio_get_value
	cbnz	w0, LBB0_13
; %bb.9:
	ldr	x0, [x22, #48]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_10:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_mutex_unlock
	cmp	w22, #0
	b.le	LBB0_14
; %bb.11:
	neg	w0, w22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x21, [x22, #16]
LBB0_13:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_14:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sprintf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL un-locked\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ADF4350_REG2,8,3               ; @ADF4350_REG2
	.comm	_ADF4350_REG2_POWER_DOWN_EN,4,2 ; @ADF4350_REG2_POWER_DOWN_EN
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%llu\n"

	.no_dead_strip	_adf4350_read
.subsections_via_symbols
