	.file	"extr_stm32-adc.c_stm32_adc_update_scan_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stm32_adc_update_scan_mode, @function
stm32_adc_update_scan_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	iio_priv@PLT
	mov	r14, QWORD PTR 8[rbp]
	mov	rbx, rax
	mov	rdi, r14
	call	pm_runtime_get_sync@PLT
	test	eax, eax
	js	.L6
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r13
	call	bitmap_weight@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	call	stm32_adc_conf_scan_seq@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	pm_runtime_mark_last_busy@PLT
	mov	rdi, r14
	call	pm_runtime_put_autosuspend@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, eax
	mov	rdi, r14
	call	pm_runtime_put_noidle@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	stm32_adc_update_scan_mode, .-stm32_adc_update_scan_mode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_stm32-adc.c_stm32_adc_update_scan_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stm32_adc_update_scan_mode, %function
stm32_adc_update_scan_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r6, r1
	bl	iio_priv
	ldr	r8, [r5, #4]
	mov	r7, r0
	mov	r0, r8
	bl	pm_runtime_get_sync
	subs	r4, r0, #0
	blt	.L6
	ldr	r1, [r5]
	mov	r0, r6
	bl	bitmap_weight
	mov	r1, r6
	str	r0, [r7]
	mov	r0, r5
	bl	stm32_adc_conf_scan_seq
	mov	r4, r0
	mov	r0, r8
	bl	pm_runtime_mark_last_busy
	mov	r0, r8
	bl	pm_runtime_put_autosuspend
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r8
	bl	pm_runtime_put_noidle
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
	.size	stm32_adc_update_scan_mode, .-stm32_adc_update_scan_mode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
