	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7124_write_raw
_ad7124_write_raw:                      ## @ad7124_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, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r15
	callq	_iio_priv
	movq	%rax, %r14
	cmpq	$128, %rbx
	je	LBB0_4
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_5
## %bb.2:
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.3:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ad7124_set_channel_odr         ## TAILCALL
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_6
LBB0_5:
	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
LBB0_6:
	movq	(%r14), %rax
	movq	(%r15), %rdx
	shlq	$4, %rdx
	xorl	%esi, %esi
	cmpl	$0, 8(%rax,%rdx)
	setne	%sil
	movl	8(%r15), %ecx
	subl	%esi, %ecx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	imull	$1000000, (%rax,%rdx), %edi     ## imm = 0xF4240
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_DIV_ROUND_CLOSEST
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ad7124_set_channel_gain        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad7124_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7124_write_raw
_ad7124_write_raw:                      ; @ad7124_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	x21, x3
	mov	x22, x2
	mov	x19, x1
	bl	_iio_priv
	mov	x20, x0
	cmp	x23, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x23, #129
	b.ne	LBB0_5
; %bb.2:
	cbnz	w21, LBB0_5
; %bb.3:
	ldr	x1, [x19]
	mov	x0, x20
	mov	x2, x22
	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	_ad7124_set_channel_odr
LBB0_4:
	cbz	w22, LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	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_6:
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8, #8]
	cmp	w9, #0
	cset	w9, ne
	ldr	w10, [x19, #8]
	sub	w9, w10, w9
	mov	w10, #1
	lsl	w1, w10, w9
	ldr	w8, [x8]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w0, w8, w9
	bl	_DIV_ROUND_CLOSEST
	mov	x1, x21
	bl	_DIV_ROUND_CLOSEST
	mov	x2, x0
	ldr	x1, [x19]
	mov	x0, 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	_ad7124_set_channel_gain
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad7124_write_raw
.subsections_via_symbols
