	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pa12203001_write_raw
_pa12203001_write_raw:                  ## @pa12203001_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, %r15d
	movl	%edx, %r12d
	callq	_iio_priv
	cmpq	$128, %rbx
	jne	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movl	(%rax), %edi
	movq	_PA12203001_REG_CFG0@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%r12d, %r12d
	jne	LBB0_8
## %bb.2:
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movq	_pa12203001_scales@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpl	%r15d, (%rdi,%rbx,4)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_PA12203001_AFSR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	(%r14), %edi
	movl	(%r13), %esi
	movq	_PA12203001_AFSR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PA12203001_REG_CFG0,4,2        ## @PA12203001_REG_CFG0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pa12203001_scales,8,3          ## @pa12203001_scales
	.comm	_PA12203001_AFSR_SHIFT,4,2      ## @PA12203001_AFSR_SHIFT
	.comm	_PA12203001_AFSR_MASK,4,2       ## @PA12203001_AFSR_MASK
	.no_dead_strip	_pa12203001_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pa12203001_write_raw
_pa12203001_write_raw:                  ; @pa12203001_write_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x4
	mov	x20, x3
	mov	x21, x2
	bl	_iio_priv
	cmp	x22, #128
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x22, _PA12203001_REG_CFG0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PA12203001_REG_CFG0@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w21, LBB0_7
; %bb.2:
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh2:
	adrp	x21, _pa12203001_scales@GOTPAGE
Lloh3:
	ldr	x21, [x21, _pa12203001_scales@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x23, lsl #2]
	cmp	w8, w20
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_5
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
Lloh7:
	adrp	x8, _PA12203001_AFSR_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PA12203001_AFSR_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w3, w23, w8
	ldr	w0, [x19]
	ldr	w1, [x22]
Lloh10:
	adrp	x8, _PA12203001_AFSR_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PA12203001_AFSR_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PA12203001_REG_CFG0,4,2        ; @PA12203001_REG_CFG0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pa12203001_scales,8,3          ; @pa12203001_scales
	.comm	_PA12203001_AFSR_SHIFT,4,2      ; @PA12203001_AFSR_SHIFT
	.comm	_PA12203001_AFSR_MASK,4,2       ; @PA12203001_AFSR_MASK
	.no_dead_strip	_pa12203001_write_raw
.subsections_via_symbols
