	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis16400_write_raw
_adis16400_write_raw:                   ## @adis16400_write_raw
	.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
	movq	%r8, %rbx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r12
	cmpq	$128, %rbx
	je	LBB0_4
## %bb.1:
	cmpq	$129, %rbx
	je	LBB0_7
## %bb.2:
	cmpq	$130, %rbx
	jne	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_mutex_lock
	addq	$16, %r12
	movq	_adis16400_addresses@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_adis_write_reg_16
	jmp	LBB0_9
LBB0_4:
	imull	$1000, %r15d, %eax              ## imm = 0x3E8
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	imulq	$274877907, %rcx, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rbx
	addl	%ecx, %ebx
	addl	%eax, %ebx
	jle	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%r12), %rax
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	*8(%rax)
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	%r15d, (%r12)
	movq	8(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	imull	$1000, %r15d, %eax              ## imm = 0x3E8
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	imulq	$274877907, %rcx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdx
	addl	%ecx, %edx
	addl	%eax, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_adis16400_set_filter
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adis16400_addresses,8,3        ## @adis16400_addresses
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_adis16400_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis16400_write_raw
_adis16400_write_raw:                   ; @adis16400_write_raw
	.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	x24, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x21, x0
	cmp	x24, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x24, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	x24, #130
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_mutex_lock
	add	x0, x21, #16
Lloh0:
	adrp	x8, _adis16400_addresses@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adis16400_addresses@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x23]
	ldr	w1, [x8, x9, lsl #2]
	mov	x2, x20
	bl	_adis_write_reg_16
	b	LBB0_9
LBB0_4:
	mov	w8, #1000
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w22, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	madd	w20, w20, w8, w9
	cmp	w20, #0
	b.le	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_7:
	mov	x0, x19
	bl	_mutex_lock
	str	w20, [x21]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.8:
	mov	w8, #1000
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w22, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	madd	w2, w20, w8, w9
	mov	x0, x19
	mov	x1, x21
	bl	_adis16400_set_filter
LBB0_9:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x21
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_adis16400_addresses,8,3        ; @adis16400_addresses
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_adis16400_write_raw
.subsections_via_symbols
