	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis16480_set_filter_freq
_adis16480_set_filter_freq:             ## @adis16480_set_filter_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	callq	_iio_priv
	movq	%rax, %r13
	movq	_ad16480_filter_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %r14d
	movl	4(%rax), %r12d
	leal	2(%r12), %edi
	callq	_BIT
	movl	%eax, %r15d
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_adis_read_reg_16
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	_adis16480_def_filter_freqs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, %ecx
	subl	%ebx, %ecx
	cmpl	%r14d, %ecx
	cmovael	%r14d, %ecx
	movl	%r12d, %edx
	cmovael	%r15d, %edx
	cmpl	%ebx, %eax
	cmovael	%ecx, %r14d
	cmovael	%edx, %r15d
	incq	%r12
	movq	_adis16480_def_filter_freqs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r12
	jb	LBB0_6
	jmp	LBB0_7
LBB0_2:
	notl	%r15d
	andl	-44(%rbp), %r15d
	jmp	LBB0_8
LBB0_4:
	xorl	%r15d, %r15d
LBB0_7:
	movl	$3, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	shll	%cl, %eax
	notl	%eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %r15d
	andl	-44(%rbp), %eax
	orl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	orl	%eax, %r15d
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_8:
	movl	%r15d, -44(%rbp)
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_adis_write_reg_16
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ad16480_filter_data,8,3        ## @ad16480_filter_data
	.comm	_adis16480_def_filter_freqs,4,2 ## @adis16480_def_filter_freqs
	.no_dead_strip	_adis16480_set_filter_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis16480_set_filter_freq
_adis16480_set_filter_freq:             ; @adis16480_set_filter_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	bl	_iio_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _ad16480_filter_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad16480_filter_data@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldp	w20, w23, [x8]
	add	w0, w23, #2
	bl	_BIT
	mov	x22, x0
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_adis_read_reg_16
	tbnz	w0, #31, LBB0_9
; %bb.1:
	cbz	w21, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w24, [x8]
Lloh3:
	adrp	x25, _adis16480_def_filter_freqs@GOTPAGE
Lloh4:
	ldr	x25, [x25, _adis16480_def_filter_freqs@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_6
; %bb.3:
	mov	x27, #0
	mov	w26, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8, x27, lsl #2]
	subs	w9, w8, w21
	cmp	w9, w24
	csel	w9, w9, w24, lo
	csel	w10, w27, w26, lo
	cmp	w8, w21
	csel	w24, w24, w9, lo
	csel	w26, w26, w10, lo
	add	x27, x27, #1
	ldr	w0, [x25]
	bl	_ARRAY_SIZE
	cmp	x27, w0, uxtw
	b.lo	LBB0_4
	b	LBB0_7
LBB0_5:
	ldr	w8, [sp, #12]
	bic	w2, w8, w22
	b	LBB0_8
LBB0_6:
	mov	w26, #0
LBB0_7:
	mov	w8, #3
	lsl	w8, w8, w23
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	lsl	w9, w26, w23
	orr	w9, w9, w22
	orr	w2, w9, w8
LBB0_8:
	str	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_adis_write_reg_16
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ad16480_filter_data,8,3        ; @ad16480_filter_data
	.comm	_adis16480_def_filter_freqs,4,2 ; @adis16480_def_filter_freqs
	.no_dead_strip	_adis16480_set_filter_freq
.subsections_via_symbols
