	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7124_set_channel_odr
_ad7124_set_channel_odr:                ## @ad7124_set_channel_odr
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_clk_get_rate
	movl	%eax, %r15d
	shll	$5, %ebx
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_DIV_ROUND_CLOSEST
	cmpl	$2047, %eax                     ## imm = 0x7FF
	movl	$2047, %ecx                     ## imm = 0x7FF
	cmovbl	%eax, %ecx
	testl	%eax, %eax
	movl	$1, %ebx
	cmovnel	%ecx, %ebx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_AD7124_FILTER
	movl	%eax, %r13d
	movq	_AD7124_FILTER_FS_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_AD7124_FILTER_FS
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	$3, %r8d
	callq	_ad7124_spi_write_mask
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	shll	$5, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_DIV_ROUND_CLOSEST
	movq	(%r12), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7124_FILTER_FS_MSK,4,2       ## @AD7124_FILTER_FS_MSK
	.no_dead_strip	_ad7124_set_channel_odr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7124_set_channel_odr
_ad7124_set_channel_odr:                ; @ad7124_set_channel_odr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_clk_get_rate
	mov	x21, x0
	lsl	w1, w22, #5
	bl	_DIV_ROUND_CLOSEST
	mov	w8, #2047
	cmp	w0, #2047
	csel	w8, w0, w8, lo
	cmp	w0, #0
	csinc	w22, w8, wzr, ne
	mov	x0, x19
	bl	_AD7124_FILTER
	mov	x23, x0
Lloh0:
	adrp	x8, _AD7124_FILTER_FS_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD7124_FILTER_FS_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_AD7124_FILTER_FS
	mov	x3, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	mov	w4, #3
	bl	_ad7124_spi_write_mask
	tbnz	w0, #31, LBB0_2
; %bb.1:
	lsl	w1, w22, #5
	mov	x0, x21
	bl	_DIV_ROUND_CLOSEST
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20]
	str	x8, [x9, w19, uxtw #3]
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7124_FILTER_FS_MSK,4,2       ; @AD7124_FILTER_FS_MSK
	.no_dead_strip	_ad7124_set_channel_odr
.subsections_via_symbols
