	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis16480_get_freq
_adis16480_get_freq:                    ## @adis16480_get_freq
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_iio_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_ADIS16480_CLK_PPS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.2:
	movq	_ADIS16495_REG_SYNC_SCALE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ADIS16480_REG_DEC_RATE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	leaq	12(%rbx), %rdi
	leaq	-36(%rbp), %rdx
	callq	_adis_read_reg_16
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movq	(%rbx), %rdx
	movl	8(%rbx), %eax
	movl	-36(%rbp), %ecx
	cmpq	(%r12), %rdx
	jne	LBB0_6
## %bb.5:
	imull	%eax, %ecx
	jmp	LBB0_7
LBB0_6:
	incl	%ecx
	cltd
	idivl	%ecx
	movl	%eax, %ecx
LBB0_7:
	movl	%ecx, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	movl	%eax, (%r15)
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	subl	%eax, %ecx
	imull	$1000, %ecx, %eax               ## imm = 0x3E8
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADIS16480_CLK_PPS,8,3          ## @ADIS16480_CLK_PPS
	.comm	_ADIS16495_REG_SYNC_SCALE,4,2   ## @ADIS16495_REG_SYNC_SCALE
	.comm	_ADIS16480_REG_DEC_RATE,4,2     ## @ADIS16480_REG_DEC_RATE
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_adis16480_get_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis16480_get_freq
_adis16480_get_freq:                    ; @adis16480_get_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	bl	_iio_priv
	mov	x21, x0
	ldr	x8, [x0], #12
Lloh0:
	adrp	x22, _ADIS16480_CLK_PPS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ADIS16480_CLK_PPS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ADIS16495_REG_SYNC_SCALE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADIS16495_REG_SYNC_SCALE@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh4:
	adrp	x11, _ADIS16480_REG_DEC_RATE@GOTPAGE
Lloh5:
	ldr	x11, [x11, _ADIS16480_REG_DEC_RATE@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_adis_read_reg_16
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	w10, [x21, #8]
	ldr	w11, [sp, #12]
	cmp	x8, x9
	add	w8, w11, #1
	sdiv	w8, w10, w8
	mul	w9, w11, w10
	csel	w8, w8, w9, ne
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #38
	str	w9, [x20]
	mov	w10, #1000
	msub	w8, w9, w10, w8
	mul	w8, w8, w10
	str	w8, [x19]
Lloh6:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADIS16480_CLK_PPS,8,3          ; @ADIS16480_CLK_PPS
	.comm	_ADIS16495_REG_SYNC_SCALE,4,2   ; @ADIS16495_REG_SYNC_SCALE
	.comm	_ADIS16480_REG_DEC_RATE,4,2     ; @ADIS16480_REG_DEC_RATE
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_adis16480_get_freq
.subsections_via_symbols
