	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis16260_write_raw
_adis16260_write_raw:                   ## @adis16260_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	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_iio_priv
	movq	%rax, %r14
	cmpq	$128, %rbx
	je	LBB0_8
## %bb.1:
	cmpq	$129, %rbx
	je	LBB0_6
## %bb.2:
	cmpq	$130, %rbx
	jne	LBB0_12
## %bb.3:
	leal	-2048(%r15), %eax
	cmpl	$-4097, %eax                    ## imm = 0xEFFF
	jbe	LBB0_12
## %bb.4:
	movq	_adis16260_addresses@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	jmp	LBB0_5
LBB0_8:
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	(%r14), %rdi
	callq	_spi_get_device_id
	cmpl	$0, (%rax)
	movl	$2048, %ecx                     ## imm = 0x800
	movl	$256, %eax                      ## imm = 0x100
	cmovel	%ecx, %eax
	xorl	%edx, %edx
	idivl	%r15d
	movq	_ADIS16260_SMPL_PRD_DIV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%esi, %esi
	testl	%eax, %eax
	setg	%sil
	movl	%eax, %edx
	subl	%esi, %edx
	cmpl	%ecx, %eax
	cmovgl	%ecx, %edx
	cmpl	$10, %edx
	jl	LBB0_9
## %bb.10:
	movq	_ADIS16260_SPI_SLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	cmpl	$4096, %r15d                    ## imm = 0x1000
	jb	LBB0_7
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_9:
	movq	_ADIS16260_SPI_FAST@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_ADIS16260_SMPL_PRD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adis_write_reg_8
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_adis16260_addresses@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	4(%rax), %esi
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_adis_write_reg_16              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_adis16260_addresses,8,3        ## @adis16260_addresses
	.comm	_ADIS16260_SMPL_PRD_DIV_MASK,4,2 ## @ADIS16260_SMPL_PRD_DIV_MASK
	.comm	_ADIS16260_SPI_SLOW,4,2         ## @ADIS16260_SPI_SLOW
	.comm	_ADIS16260_SPI_FAST,4,2         ## @ADIS16260_SPI_FAST
	.comm	_ADIS16260_SMPL_PRD,4,2         ## @ADIS16260_SMPL_PRD
	.no_dead_strip	_adis16260_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis16260_write_raw
_adis16260_write_raw:                   ; @adis16260_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	x23, x4
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	cmp	x23, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x23, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	x23, #130
	b.ne	LBB0_7
; %bb.3:
	sub	w8, w20, #2048
	mov	w9, #-4097
	cmp	w8, w9
	b.ls	LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _adis16260_addresses@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adis16260_addresses@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8]
	b	LBB0_10
LBB0_5:
	mov	x0, x21
	bl	_mutex_lock
	ldr	x0, [x19]
	bl	_spi_get_device_id
	ldr	w8, [x0]
	mov	w9, #256
	mov	w10, #2048
	cmp	w8, #0
	csel	w8, w10, w9, eq
	sdiv	w8, w8, w20
Lloh3:
	adrp	x9, _ADIS16260_SMPL_PRD_DIV_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADIS16260_SMPL_PRD_DIV_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	cset	w10, gt
	sub	w10, w8, w10
	cmp	w8, w9
	csel	w2, w9, w10, gt
Lloh6:
	adrp	x8, _ADIS16260_SPI_SLOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADIS16260_SPI_SLOW@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ADIS16260_SPI_FAST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADIS16260_SPI_FAST@GOTPAGEOFF]
	cmp	w2, #9
	csel	x8, x8, x9, gt
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
Lloh10:
	adrp	x8, _ADIS16260_SMPL_PRD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADIS16260_SMPL_PRD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_adis_write_reg_8
	mov	x19, x0
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_8
LBB0_6:
	cmp	w20, #1, lsl #12                ; =4096
	b.lo	LBB0_9
LBB0_7:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
Lloh16:
	adrp	x8, _adis16260_addresses@GOTPAGE
Lloh17:
	ldr	x8, [x8, _adis16260_addresses@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8, #4]
LBB0_10:
	mov	x0, x19
	mov	x2, x20
	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
	b	_adis_write_reg_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_adis16260_addresses,8,3        ; @adis16260_addresses
	.comm	_ADIS16260_SMPL_PRD_DIV_MASK,4,2 ; @ADIS16260_SMPL_PRD_DIV_MASK
	.comm	_ADIS16260_SPI_SLOW,4,2         ; @ADIS16260_SPI_SLOW
	.comm	_ADIS16260_SPI_FAST,4,2         ; @ADIS16260_SPI_FAST
	.comm	_ADIS16260_SMPL_PRD,4,2         ; @ADIS16260_SMPL_PRD
	.no_dead_strip	_adis16260_write_raw
.subsections_via_symbols
