	.file	"extr_control.c_i2400m_tlv_buffer_walk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"HW BUG? tlv_buf %p [%zu bytes], tlv @%zu: short header\n"
	.align 8
.LC1:
	.string	"HW BUG? tlv_buf %p [%zu bytes], tlv type 0x%04x @%zu: short data (%zu bytes vs %zu needed)\n"
	.text
	.p2align 4
	.type	i2400m_tlv_buffer_walk, @function
i2400m_tlv_buffer_walk:
.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
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	lea	r15, [r12+r14]
	mov	r13, r12
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	i2400m_dev@PLT
	mov	rbp, rax
	test	rbx, rbx
	je	.L2
	mov	edi, DWORD PTR [rbx]
	call	le16_to_cpu@PLT
	cdqe
	lea	r13, 8[rbx+rax]
.L2:
	cmp	r13, r15
	je	.L8
	ja	.L13
	mov	rbx, r13
	mov	r15, r14
	sub	rbx, r12
	sub	r15, rbx
	cmp	r15, 7
	jbe	.L14
	mov	edi, DWORD PTR 4[r13]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	DWORD PTR 12[rsp], eax
	call	le16_to_cpu@PLT
	cdqe
	add	rax, 8
	cmp	rax, r15
	ja	.L15
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L14:
	.cfi_restore_state
	mov	r8d, ebx
	mov	rcx, r14
	mov	rdx, r12
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	push	rax
	.cfi_def_cfa_offset 88
	mov	rdx, r12
	mov	r9, rbx
	mov	rcx, r14
	push	r15
	.cfi_def_cfa_offset 96
	mov	r8d, DWORD PTR 28[rsp]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	mov	rdi, rbp
	call	dev_err@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, 1
	xor	r13d, r13d
	call	WARN_ON@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
.L3:
	endbr64
.L6:
	endbr64
	xor	r13d, r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	i2400m_tlv_buffer_walk, .-i2400m_tlv_buffer_walk
	.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_control.c_i2400m_tlv_buffer_walk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"HW BUG? tlv_buf %p [%zu bytes], tlv @%zu: short hea"
	.ascii	"der\012\000"
	.align	2
.LC1:
	.ascii	"HW BUG? tlv_buf %p [%zu bytes], tlv type 0x%04x @%z"
	.ascii	"u: short data (%zu bytes vs %zu needed)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2400m_tlv_buffer_walk, %function
i2400m_tlv_buffer_walk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r3
	sub	sp, sp, #16
	mov	r5, r1
	mov	r6, r2
	bl	i2400m_dev
	cmp	r4, #0
	mov	r7, r0
	moveq	r4, r5
	add	r8, r5, r6
	beq	.L2
	ldr	r0, [r4]
	bl	le16_to_cpu
	add	r0, r0, #8
	add	r4, r4, r0
.L2:
	cmp	r4, r8
	beq	.L8
	bhi	.L11
	sub	r10, r4, r5
	sub	r8, r6, r10
	cmp	r8, #7
	bls	.L12
	ldr	r0, [r4, #4]
	bl	le16_to_cpu
	mov	r9, r0
	ldr	r0, [r4]
	bl	le16_to_cpu
	add	r3, r0, #8
	cmp	r3, r8
	bhi	.L13
.L1:
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r3, r6
	mov	r2, r5
	mov	r0, r7
	ldr	r1, .L14
	str	r10, [sp]
	bl	dev_err
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	str	r3, [sp, #12]
	mov	r2, r5
	mov	r3, r6
	mov	r0, r7
	stm	sp, {r9, r10}
	ldr	r1, .L14+4
	str	r8, [sp, #8]
	bl	dev_err
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r0, #1
	bl	WARN_ON
	mov	r4, #0
	b	.L1
.L8:
.L3:
.L6:
	mov	r4, #0
	b	.L1
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	.LC1
	.size	i2400m_tlv_buffer_walk, .-i2400m_tlv_buffer_walk
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
