	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis16400_set_freq
_adis16400_set_freq:                    ## @adis16400_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
	cmpl	$12800, %esi                    ## imm = 0x3200
	ja	LBB0_2
## %bb.1:
	movq	_ADIS16400_SMPL_PRD_TIME_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movw	$-12685, %ax                    ## imm = 0xCE73
	xorl	%edx, %edx
	divw	%si
                                        ## kill: def $ax killed $ax def $eax
	cmpw	$127, %ax
	movl	$127, %edx
	cmovbl	%eax, %edx
	movzwl	%dx, %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%ecx, %ecx
	movl	$1638404, %eax                  ## imm = 0x190004
	xorl	%edx, %edx
	divl	%esi
	cmpl	$1638404, %esi                  ## imm = 0x190004
	ja	LBB0_6
## %bb.3:
	decl	%eax
LBB0_4:
	orl	%eax, %ecx
	cmpl	$9, %eax
	ja	LBB0_8
LBB0_6:
	movq	_ADIS16400_SMPL_PRD_TIME_BASE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_ADIS16400_SPI_FAST@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ADIS16400_SPI_SLOW@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movq	(%rdi), %rdx
	movl	%eax, (%rdx)
	movq	_ADIS16400_SMPL_PRD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %edx
	popq	%rbp
	jmp	_adis_write_reg_8               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADIS16400_SMPL_PRD_TIME_BASE,4,2 ## @ADIS16400_SMPL_PRD_TIME_BASE
	.comm	_ADIS16400_SPI_SLOW,4,2         ## @ADIS16400_SPI_SLOW
	.comm	_ADIS16400_SPI_FAST,4,2         ## @ADIS16400_SPI_FAST
	.comm	_ADIS16400_SMPL_PRD,4,2         ## @ADIS16400_SMPL_PRD
	.no_dead_strip	_adis16400_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis16400_set_freq
_adis16400_set_freq:                    ; @adis16400_set_freq
	.cfi_startproc
; %bb.0:
	mov	w9, #12800
Lloh0:
	adrp	x8, _ADIS16400_SMPL_PRD_TIME_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADIS16400_SMPL_PRD_TIME_BASE@GOTPAGEOFF]
	cmp	w1, w9
	b.hi	LBB0_2
; %bb.1:
	ldr	w2, [x8]
	and	w9, w1, #0xffff
	mov	w10, #52851
	udiv	w9, w10, w9
	mov	w10, #127
	cmp	w9, #127
	csel	w9, w9, w10, lo
	b	LBB0_4
LBB0_2:
	mov	w2, #0
	mov	w9, #4
	movk	w9, #25, lsl #16
	cmp	w1, w9
	b.hi	LBB0_6
; %bb.3:
	udiv	w9, w9, w1
	sub	w9, w9, #1
LBB0_4:
	orr	w2, w2, w9
	cmp	w9, #9
	b.ls	LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _ADIS16400_SPI_SLOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADIS16400_SPI_SLOW@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _ADIS16400_SPI_SLOW@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ADIS16400_SPI_SLOW@GOTPAGEOFF]
Lloh6:
	adrp	x10, _ADIS16400_SPI_FAST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ADIS16400_SPI_FAST@GOTPAGEOFF]
	tst	w8, w2
	csel	x8, x10, x9, eq
LBB0_7:
	ldr	w8, [x8]
	ldr	x9, [x0]
	str	w8, [x9]
Lloh8:
	adrp	x8, _ADIS16400_SMPL_PRD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADIS16400_SMPL_PRD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	b	_adis_write_reg_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ADIS16400_SMPL_PRD_TIME_BASE,4,2 ; @ADIS16400_SMPL_PRD_TIME_BASE
	.comm	_ADIS16400_SPI_SLOW,4,2         ; @ADIS16400_SPI_SLOW
	.comm	_ADIS16400_SPI_FAST,4,2         ; @ADIS16400_SPI_FAST
	.comm	_ADIS16400_SMPL_PRD,4,2         ; @ADIS16400_SMPL_PRD
	.no_dead_strip	_adis16400_set_freq
.subsections_via_symbols
