	.file	"extr_arizona-core.c_arizona_poll_reg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed polling reg 0x%x: %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Polling reg 0x%x timed out: %x\n"
	.text
	.p2align 4
	.type	arizona_poll_reg, @function
arizona_poll_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	imul	esi, DWORD PTR USEC_PER_MSEC[rip]
	mov	DWORD PTR 12[rsp], r8d
	lea	r15, 20[rsp]
	mov	r12d, esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	ktime_get@PLT
	mov	esi, r12d
	mov	edi, eax
	call	ktime_add_us@PLT
	mov	DWORD PTR 20[rsp], 0
	mov	r14d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, r14d
	call	arizona_poll_reg_delay@PLT
	test	rax, rax
	je	.L10
.L3:
	mov	edi, DWORD PTR 4[rbx]
	mov	rdx, r15
	mov	esi, r13d
	call	regmap_read@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR 20[rsp]
	and	eax, ebp
	cmp	eax, DWORD PTR 12[rsp]
	jne	.L11
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	test	r12d, r12d
	jne	.L13
	mov	ecx, DWORD PTR 20[rsp]
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	ecx, r12d
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	arizona_poll_reg, .-arizona_poll_reg
	.comm	USEC_PER_MSEC,4,4
	.comm	ETIMEDOUT,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_arizona-core.c_arizona_poll_reg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed polling reg 0x%x: %d\012\000"
	.align	2
.LC1:
	.ascii	"Polling reg 0x%x timed out: %x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arizona_poll_reg, %function
arizona_poll_reg:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r1
	mov	r6, r3
	ldr	r3, .L14
	sub	sp, sp, #12
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	ldr	r8, [sp, #40]
	bl	ktime_get
	ldr	r3, .L14+4
	ldr	r1, [r3]
	mul	r1, r7, r1
	bl	ktime_add_us
	mov	r3, #0
	mov	r7, r0
	str	r3, [sp]
	b	.L3
.L11:
	mov	r0, r7
	bl	arizona_poll_reg_delay
	cmp	r0, #0
	beq	.L10
.L3:
	mov	r1, r5
	mov	r2, sp
	ldr	r0, [r4, #4]
	bl	regmap_read
	ldr	r1, [sp]
	mov	r9, r0
	and	r1, r1, r6
	cmp	r1, r8
	bne	.L11
	mov	r9, #0
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	cmp	r9, #0
	mov	r2, r5
	ldr	r0, [r4]
	bne	.L13
	ldr	r3, [sp]
	ldr	r1, .L14+8
	bl	dev_err
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r9, r0, #0
	b	.L1
.L13:
	mov	r3, r9
	ldr	r1, .L14+16
	bl	dev_err
	b	.L1
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	USEC_PER_MSEC
	.word	.LC1
	.word	ETIMEDOUT
	.word	.LC0
	.size	arizona_poll_reg, .-arizona_poll_reg
	.comm	USEC_PER_MSEC,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
