	.file	"extr_ak8974.c_ak8974_fill_buffer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"error triggering measure\n"
.LC1:
	.string	"error getting measures\n"
	.text
	.p2align 4
	.type	ak8974_fill_buffer, @function
ak8974_fill_buffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	iio_priv@PLT
	mov	rbx, rax
	mov	rdi, QWORD PTR [rax]
	lea	r12, 8[rbx]
	call	pm_runtime_get_sync@PLT
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	rdi, rbx
	call	ak8974_trigmeas@PLT
	test	eax, eax
	jne	.L8
	mov	r13, rsp
	mov	rdi, rbx
	mov	rsi, r13
	call	ak8974_getresult@PLT
	test	eax, eax
	jne	.L9
	mov	rdi, rbp
	call	iio_get_time_ns@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, eax
	call	iio_push_to_buffers_with_timestamp@PLT
.L3:
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	rdi, QWORD PTR [rbx]
	call	pm_runtime_mark_last_busy@PLT
	mov	rdi, QWORD PTR [rbx]
	call	pm_runtime_put_autosuspend@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L3
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ak8974_fill_buffer, .-ak8974_fill_buffer
	.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_ak8974.c_ak8974_fill_buffer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error triggering measure\012\000"
	.align	2
.LC1:
	.ascii	"error getting measures\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ak8974_fill_buffer, %function
ak8974_fill_buffer:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	sub	sp, sp, #40
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r6, r0
	bl	iio_priv
	mov	r5, r0
	mov	r4, r0
	ldr	r0, [r5], #4
	bl	pm_runtime_get_sync
	mov	r0, r5
	bl	mutex_lock
	mov	r0, r4
	bl	ak8974_trigmeas
	cmp	r0, #0
	bne	.L8
	mov	r0, r4
	add	r1, sp, #4
	bl	ak8974_getresult
	cmp	r0, #0
	bne	.L9
	mov	r0, r6
	bl	iio_get_time_ns
	add	r1, sp, #4
	mov	r2, r0
	mov	r0, r6
	bl	iio_push_to_buffers_with_timestamp
.L3:
	mov	r0, r5
	bl	mutex_unlock
	ldr	r0, [r4]
	bl	pm_runtime_mark_last_busy
	ldr	r0, [r4]
	bl	pm_runtime_put_autosuspend
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r1, .L11+4
	ldr	r0, [r4]
	bl	dev_err
	b	.L3
.L8:
	ldr	r1, .L11+8
	ldr	r0, [r4]
	bl	dev_err
	b	.L3
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	ak8974_fill_buffer, .-ak8974_fill_buffer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
