	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis16334_set_freq
_adis16334_set_freq:                    ## @adis16334_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	cmpl	$819199, %esi                   ## imm = 0xC7FFF
	ja	LBB0_2
## %bb.1:
	movl	$819200, %eax                   ## imm = 0xC8000
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %edi
	callq	_ilog2
LBB0_2:
	cmpl	$49, %eax
	movl	$49, %edx
	cmovbl	%eax, %edx
	movq	_ADIS16334_RATE_DIV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_ADIS16334_RATE_INT_CLK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ADIS16400_SMPL_PRD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_adis_write_reg_16              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADIS16334_RATE_DIV_SHIFT,4,2   ## @ADIS16334_RATE_DIV_SHIFT
	.comm	_ADIS16334_RATE_INT_CLK,4,2     ## @ADIS16334_RATE_INT_CLK
	.comm	_ADIS16400_SMPL_PRD,4,2         ## @ADIS16400_SMPL_PRD
	.no_dead_strip	_adis16334_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis16334_set_freq
_adis16334_set_freq:                    ; @adis16334_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, x0
	cmp	w1, #200, lsl #12               ; =819200
	b.hs	LBB0_2
; %bb.1:
	mov	w8, #32768
	movk	w8, #12, lsl #16
	udiv	w0, w8, w1
	bl	_ilog2
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	mov	w8, #49
	cmp	w0, #49
	csel	w8, w0, w8, lo
Lloh0:
	adrp	x9, _ADIS16334_RATE_DIV_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADIS16334_RATE_DIV_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh3:
	adrp	x9, _ADIS16334_RATE_INT_CLK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADIS16334_RATE_INT_CLK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh6:
	adrp	x8, _ADIS16400_SMPL_PRD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADIS16400_SMPL_PRD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_adis_write_reg_16
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADIS16334_RATE_DIV_SHIFT,4,2   ; @ADIS16334_RATE_DIV_SHIFT
	.comm	_ADIS16334_RATE_INT_CLK,4,2     ; @ADIS16334_RATE_INT_CLK
	.comm	_ADIS16400_SMPL_PRD,4,2         ; @ADIS16400_SMPL_PRD
	.no_dead_strip	_adis16334_set_freq
.subsections_via_symbols
