	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5380_write_raw
_ad5380_write_raw:                      ## @ad5380_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, %r13
	movl	%edx, %r15d
	movq	%rsi, %r14
	movb	(%rsi), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	callq	_iio_priv
	leaq	-128(%r13), %rcx
	cmpq	$2, %rcx
	jae	LBB0_1
## %bb.5:
	testl	%r15d, %r15d
	js	LBB0_9
## %bb.6:
	cmpl	%r15d, %ebx
	jbe	LBB0_9
## %bb.7:
	movl	(%rax), %r12d
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ad5380_info_to_reg
	movb	4(%r14), %cl
	shll	%cl, %r15d
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	jmp	LBB0_8
LBB0_1:
	cmpq	$130, %r13
	jne	LBB0_9
## %bb.2:
	movb	(%r14), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, %r12d
	shrl	$31, %r12d
	addl	%edx, %r12d
	sarl	%r12d
	addl	%r15d, %r12d
	cmpl	%ebx, %r12d
	jae	LBB0_9
## %bb.3:
	testl	%r12d, %r12d
	js	LBB0_9
## %bb.4:
	movl	(%rax), %r15d
	movl	8(%r14), %edi
	callq	_AD5380_REG_OFFSET
	movb	4(%r14), %cl
	shll	%cl, %r12d
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad5380_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5380_write_raw
_ad5380_write_raw:                      ; @ad5380_write_raw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x4
	mov	x20, x2
	mov	x19, x1
	ldr	w8, [x1]
	mov	w9, #1
	lsl	w22, w9, w8
	bl	_iio_priv
	sub	x8, x21, #128
	cmp	x8, #2
	b.hs	LBB0_4
; %bb.1:
	tbnz	w20, #31, LBB0_9
; %bb.2:
	cmp	w22, w20
	b.ls	LBB0_9
; %bb.3:
	ldr	w22, [x0]
	mov	x0, x19
	mov	x1, x21
	bl	_ad5380_info_to_reg
	mov	x1, x0
	ldr	w8, [x19, #4]
	lsl	w2, w20, w8
	mov	x0, x22
	b	LBB0_8
LBB0_4:
	cmp	x21, #130
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w21, w20, w8, asr #1
	cmp	w21, w22
	b.hs	LBB0_9
; %bb.6:
	tbnz	w21, #31, LBB0_9
; %bb.7:
	ldr	w20, [x0]
	ldr	w0, [x19, #8]
	bl	_AD5380_REG_OFFSET
	mov	x1, x0
	ldr	w8, [x19, #4]
	lsl	w2, w21, w8
	mov	x0, x20
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_write
LBB0_9:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad5380_write_raw
.subsections_via_symbols
