	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function afe440x_store_register
_afe440x_store_register:                ## @afe440x_store_register
	.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	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rbx
	callq	_dev_to_iio_dev
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_afe440x_attr
	movq	%rax, %r12
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	$100000, %esi                   ## imm = 0x186A0
	callq	_iio_str_to_fixpoint
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.5:
	movq	16(%r12), %rcx
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %edi
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rcx,%rsi,8)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%edi, 4(%rcx,%rsi,8)
	jne	LBB0_8
## %bb.3:
	cmpl	%eax, %esi
	jne	LBB0_4
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	xorl	%esi, %esi
	cmpl	%eax, %esi
	je	LBB0_9
LBB0_4:
	movq	(%r15), %rax
	movq	8(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_regmap_field_write
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	%r14d, %eax
LBB0_10:
	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	_afe440x_store_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function afe440x_store_register
_afe440x_store_register:                ; @afe440x_store_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	bl	_dev_to_iio_dev
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x21
	bl	_to_afe440x_attr
	mov	x21, x0
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x22
	mov	w1, #34464
	movk	w1, #1, lsl #16
	bl	_iio_str_to_fixpoint
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x1, #0
	ldr	x11, [x21, #16]
	ldp	w10, w9, [sp, #8]
	add	x11, x11, #4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x1, #1
	add	x11, x11, #8
	cmp	x8, x1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x11, #-4]
	cmp	w12, w9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x11]
	cmp	w12, w10
	b.ne	LBB0_3
; %bb.6:
	cmp	w1, w8
	b.ne	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	mov	w1, #0
	cmp	w1, w8
	b.eq	LBB0_7
LBB0_9:
	ldr	x8, [x20]
	ldr	x9, [x21, #8]
	ldr	w0, [x8, x9, lsl #2]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_regmap_field_write
	cmp	w0, #0
	csel	w0, w19, w0, eq
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_afe440x_store_register
.subsections_via_symbols
