	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nau7802_write_raw
_nau7802_write_raw:                     ## @nau7802_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r12d
	movl	%edx, %r15d
	callq	_iio_priv
	movq	%rax, %r14
	cmpq	$128, %rbx
	je	LBB0_6
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_11
## %bb.2:
	movq	_nau7802_sample_freq_avail@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpl	%r15d, (%rdi,%rbx,4)
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_11
LBB0_6:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	cmpl	%r12d, (%rdi,%rbx,4)
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %r15
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	%ebx, 8(%r14)
	movl	$0, 20(%r14)
	movl	16(%r14), %r14d
	movq	_NAU7802_REG_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_NAU7802_CTRL2_CRS
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	jmp	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nau7802_set_gain               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nau7802_sample_freq_avail,8,3  ## @nau7802_sample_freq_avail
	.comm	_NAU7802_REG_CTRL2,4,2          ## @NAU7802_REG_CTRL2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nau7802_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nau7802_write_raw
_nau7802_write_raw:                     ; @nau7802_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	x22, x4
	mov	x21, x3
	mov	x20, x2
	bl	_iio_priv
	mov	x19, x0
	cmp	x22, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	x22, #129
	b.ne	LBB0_10
; %bb.2:
Lloh0:
	adrp	x22, _nau7802_sample_freq_avail@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nau7802_sample_freq_avail@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	w8, [x0, x21, lsl #2]
	cmp	w8, w20
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_4
	b	LBB0_10
LBB0_6:
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	ldr	w8, [x0, x20, lsl #2]
	cmp	w8, w21
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.lt	LBB0_8
LBB0_10:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
LBB0_12:
	add	x20, x19, #12
	mov	x0, x20
	bl	_mutex_lock
	str	w21, [x19, #8]
	str	wzr, [x19, #20]
	ldr	w19, [x19, #16]
Lloh5:
	adrp	x8, _NAU7802_REG_CTRL2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NAU7802_REG_CTRL2@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_NAU7802_CTRL2_CRS
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_i2c_smbus_write_byte_data
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_11
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	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	_nau7802_set_gain
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_nau7802_sample_freq_avail,8,3  ; @nau7802_sample_freq_avail
	.comm	_NAU7802_REG_CTRL2,4,2          ; @NAU7802_REG_CTRL2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nau7802_write_raw
.subsections_via_symbols
