	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7791_write_raw
_ad7791_write_raw:                      ## @ad7791_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rdi, %r12
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	cmpq	$128, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.2:
	movq	_ad7791_sample_freq_avail@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	(%rdi,%rbx,8), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r12d, 4(%rax)
	jne	LBB0_6
LBB0_7:
	movq	%r15, %r12
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jne	LBB0_9
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_9:
	movq	_AD7791_FILTER_RATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	(%r12), %ecx
	orl	%ebx, %ecx
	movl	%ecx, (%r12)
	addq	$4, %r12
	movq	_AD7791_REG_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_ad_sd_write_reg
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_iio_device_release_direct_mode
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ad7791_sample_freq_avail,8,3   ## @ad7791_sample_freq_avail
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AD7791_FILTER_RATE_MASK,4,2    ## @AD7791_FILTER_RATE_MASK
	.comm	_AD7791_REG_FILTER,4,2          ## @AD7791_REG_FILTER
	.no_dead_strip	_ad7791_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7791_write_raw
_ad7791_write_raw:                      ; @ad7791_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	x21, x3
	mov	x22, x2
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x19
	bl	_iio_device_claim_direct_mode
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.1:
	cmp	x24, #128
	b.ne	LBB0_9
; %bb.2:
Lloh0:
	adrp	x23, _ad7791_sample_freq_avail@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ad7791_sample_freq_avail@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x24, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	x8, [x0, x24, lsl #3]
	ldr	w9, [x8]
	cmp	w9, w22
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8, #4]
	cmp	w8, w21
	b.ne	LBB0_4
	b	LBB0_8
LBB0_7:
	mov	w24, #0
LBB0_8:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.ne	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _AD7791_FILTER_RATE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AD7791_FILTER_RATE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	orr	w3, w8, w24
	str	w3, [x20], #4
Lloh8:
	adrp	x8, _AD7791_REG_FILTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AD7791_REG_FILTER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #4
	bl	_ad_sd_write_reg
	mov	w23, #0
LBB0_11:
	mov	x0, x19
	bl	_iio_device_release_direct_mode
LBB0_12:
	mov	x0, x23
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ad7791_sample_freq_avail,8,3   ; @ad7791_sample_freq_avail
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AD7791_FILTER_RATE_MASK,4,2    ; @AD7791_FILTER_RATE_MASK
	.comm	_AD7791_REG_FILTER,4,2          ; @AD7791_REG_FILTER
	.no_dead_strip	_ad7791_write_raw
.subsections_via_symbols
