	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis16460_set_freq
_adis16460_set_freq:                    ## @adis16460_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_iio_priv
	movq	%rax, %rdi
	imull	$1000, %ebx, %eax               ## imm = 0x3E8
	movslq	%r14d, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	jle	LBB0_1
## %bb.2:
	xorl	%esi, %esi
	movl	$2048000, %eax                  ## imm = 0x1F4000
	xorl	%edx, %edx
	divl	%ecx
	cmpl	$2048, %eax                     ## imm = 0x800
	movl	$2048, %edx                     ## imm = 0x800
	cmovll	%eax, %edx
	subl	$1, %edx
	cmovbl	%esi, %edx
	movq	_ADIS16460_REG_DEC_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_adis_write_reg_16              ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADIS16460_REG_DEC_RATE,4,2     ## @ADIS16460_REG_DEC_RATE
	.no_dead_strip	_adis16460_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis16460_set_freq
_adis16460_set_freq:                    ; @adis16460_set_freq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_iio_priv
	mov	w8, #1000
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w19, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	madd	w8, w20, w8, w9
	cmp	w8, #0
	b.le	LBB0_2
; %bb.1:
	mov	w9, #16384
	movk	w9, #31, lsl #16
	udiv	w8, w9, w8
	mov	w9, #2048
	cmp	w8, #2048
	csel	w8, w8, w9, lt
	sub	w9, w8, #1
	cmp	w8, #0
	csel	w2, wzr, w9, eq
Lloh0:
	adrp	x8, _ADIS16460_REG_DEC_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADIS16460_REG_DEC_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_adis_write_reg_16
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADIS16460_REG_DEC_RATE,4,2     ; @ADIS16460_REG_DEC_RATE
	.no_dead_strip	_adis16460_set_freq
.subsections_via_symbols
