	.file	"extr_tlv320aic26.c_aic26_reg_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AIC26 reg read error\n"
	.text
	.p2align 4
	.type	aic26_reg_read, @function
aic26_reg_read:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR AIC26_NUM_REGS[rip], ebx
	jbe	.L8
	mov	r12, QWORD PTR 8[rdi]
	mov	rbp, QWORD PTR [rdi]
	mov	edi, ebx
	call	AIC26_READ_COMMAND_WORD@PLT
	mov	rsi, rsp
	mov	r8d, 2
	movzx	edx, ah
	mov	rdi, QWORD PTR [r12]
	and	eax, 255
	mov	rcx, rsi
	mov	DWORD PTR [rsp], edx
	mov	edx, 2
	mov	DWORD PTR 4[rsp], eax
	call	spi_write_then_read@PLT
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR [rsp]
	sal	eax, 8
	or	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 0[rbp+rbx*4], eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	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	edi, 1
	call	WARN_ON_ONCE@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aic26_reg_read, .-aic26_reg_read
	.comm	EIO,4,4
	.comm	AIC26_NUM_REGS,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_tlv320aic26.c_aic26_reg_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"AIC26 reg read error\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aic26_reg_read, %function
aic26_reg_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r2, .L11
	ldr	r1, .L11+4
	ldr	r2, [r2]
	sub	sp, sp, #24
	cmp	r2, r4
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	bls	.L8
	mov	r3, r0
	mov	r0, r4
	ldr	r5, [r3, #4]
	ldr	r6, [r3]
	bl	AIC26_READ_COMMAND_WORD
	mov	r3, r0
	mov	r2, #2
	asr	r1, r3, #8
	and	ip, r3, #255
	and	r1, r1, #255
	add	r3, sp, #12
	ldr	r0, [r5]
	str	r1, [sp, #12]
	str	r2, [sp]
	mov	r1, r3
	str	ip, [sp, #16]
	bl	spi_write_then_read
	cmp	r0, #0
	bne	.L9
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #16]
	orr	r3, r3, r2, lsl #8
	mov	r0, r3
	str	r3, [r6, r4, lsl #2]
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, #1
	bl	WARN_ON_ONCE
	mov	r0, #0
	b	.L1
.L9:
	ldr	r0, [r5]
	ldr	r1, .L11+8
	bl	dev_err
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	AIC26_NUM_REGS
	.word	.LC1
	.word	.LC0
	.word	EIO
	.size	aic26_reg_read, .-aic26_reg_read
	.comm	EIO,4,4
	.comm	AIC26_NUM_REGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
