	.file	"extr_ak8974.c_ak8974_await_drdy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"timeout waiting for DRDY IRQ\n"
.LC1:
	.string	"timeout waiting for DRDY\n"
	.text
	.p2align 4
	.type	ak8974_await_drdy, @function
ak8974_await_drdy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, 2
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 16[rdi], 0
	lea	r12, 4[rsp]
	jne	.L13
.L2:
	mov	edi, DWORD PTR AK8974_MEASTIME[rip]
	call	msleep@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR AK8974_STATUS[rip]
	mov	rdx, r12
	call	regmap_read@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR AK8974_STATUS_DRDY[rip], eax
	jne	.L5
	cmp	ebp, 1
	jne	.L8
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ebp, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, 1000
	call	msecs_to_jiffies@PLT
	lea	rdi, 12[rbx]
	lea	rsi, 1[rax]
	call	wait_for_completion_timeout@PLT
	test	eax, eax
	je	.L3
.L5:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	neg	eax
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ak8974_await_drdy, .-ak8974_await_drdy
	.comm	ETIMEDOUT,4,4
	.comm	AK8974_STATUS_DRDY,4,4
	.comm	AK8974_STATUS,4,4
	.comm	AK8974_MEASTIME,4,4
	.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_await_drdy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"timeout waiting for DRDY IRQ\012\000"
	.align	2
.LC1:
	.ascii	"timeout waiting for DRDY\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_await_drdy, %function
ak8974_await_drdy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0, #12]
	ldr	r2, .L13
	sub	sp, sp, #8
	cmp	r3, #0
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	bne	.L11
	mov	r5, #2
	ldr	r7, .L13+4
	ldr	r6, .L13+8
	ldr	r8, .L13+12
.L2:
	ldr	r0, [r7]
	bl	msleep
	mov	r2, sp
	ldr	r1, [r6]
	ldr	r0, [r4, #4]
	bl	regmap_read
	cmp	r0, #0
	blt	.L1
	ldr	r2, [sp]
	ldr	r3, [r8]
	tst	r2, r3
	bne	.L5
	cmp	r5, #1
	bne	.L8
	ldr	r0, [r4]
	ldr	r1, .L13+16
	bl	dev_err
	ldr	r3, .L13+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r5, #1
	b	.L2
.L11:
	mov	r0, #1000
	bl	msecs_to_jiffies
	mov	r1, r0
	add	r0, r4, #8
	add	r1, r1, #1
	bl	wait_for_completion_timeout
	cmp	r0, #0
	beq	.L3
.L5:
	mov	r0, #0
	b	.L1
.L3:
	ldr	r0, [r4]
	ldr	r1, .L13+24
	bl	dev_err
	ldr	r3, .L13+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	AK8974_MEASTIME
	.word	AK8974_STATUS
	.word	AK8974_STATUS_DRDY
	.word	.LC1
	.word	ETIMEDOUT
	.word	.LC0
	.size	ak8974_await_drdy, .-ak8974_await_drdy
	.comm	ETIMEDOUT,4,4
	.comm	AK8974_STATUS_DRDY,4,4
	.comm	AK8974_STATUS,4,4
	.comm	AK8974_MEASTIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
