	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_sar_adc_set_averaging
_meson_sar_adc_set_averaging:           ## @meson_sar_adc_set_averaging
	.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
	movl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	callq	_iio_priv
	movq	%rax, %rbx
	movl	(%r14), %r14d
	movl	%r14d, %edi
	callq	_MESON_SAR_ADC_AVG_CNTL_NUM_SAMPLES_SHIFT
	movl	%eax, %ecx
	shll	%cl, %r12d
	movl	(%rbx), %r13d
	movq	_MESON_SAR_ADC_AVG_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_MESON_SAR_ADC_AVG_CNTL_NUM_SAMPLES_MASK
	movl	%r13d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
	callq	_regmap_update_bits
	movl	%r14d, %edi
	callq	_MESON_SAR_ADC_AVG_CNTL_AVG_MODE_SHIFT
	movl	%eax, %ecx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	shll	%cl, %r13d
	movl	(%rbx), %r15d
	movq	_MESON_SAR_ADC_AVG_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	callq	_MESON_SAR_ADC_AVG_CNTL_AVG_MODE_MASK
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	%r13d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MESON_SAR_ADC_AVG_CNTL,4,2     ## @MESON_SAR_ADC_AVG_CNTL
	.no_dead_strip	_meson_sar_adc_set_averaging
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_sar_adc_set_averaging
_meson_sar_adc_set_averaging:           ; @meson_sar_adc_set_averaging
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_iio_priv
	mov	x22, x0
	ldr	w21, [x21]
	mov	x0, x21
	bl	_MESON_SAR_ADC_AVG_CNTL_NUM_SAMPLES_SHIFT
	lsl	w19, w19, w0
	ldr	w23, [x22]
Lloh0:
	adrp	x25, _MESON_SAR_ADC_AVG_CNTL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MESON_SAR_ADC_AVG_CNTL@GOTPAGEOFF]
	ldr	w24, [x25]
	mov	x0, x21
	bl	_MESON_SAR_ADC_AVG_CNTL_NUM_SAMPLES_MASK
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	mov	x3, x19
	bl	_regmap_update_bits
	mov	x0, x21
	bl	_MESON_SAR_ADC_AVG_CNTL_AVG_MODE_SHIFT
	lsl	w19, w20, w0
	ldr	w20, [x22]
	ldr	w22, [x25]
	mov	x0, x21
	bl	_MESON_SAR_ADC_AVG_CNTL_AVG_MODE_MASK
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	mov	x3, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MESON_SAR_ADC_AVG_CNTL,4,2     ; @MESON_SAR_ADC_AVG_CNTL
	.no_dead_strip	_meson_sar_adc_set_averaging
.subsections_via_symbols
