	.file	"extr_sja1105_static_config.c_sja1105_static_config_get_length.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sja1105_static_config_get_length
	.type	sja1105_static_config_get_length, @function
sja1105_static_config_get_length:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR BLK_IDX_MAX[rip]
	mov	esi, DWORD PTR SJA1105_SIZE_DEVICE_ID[rip]
	test	r8d, r8d
	je	.L5
	mov	r9, QWORD PTR [rdi]
	xor	ecx, ecx
	mov	edi, 1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, ecx
	sal	rax, 4
	add	rax, r9
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	cmp	edx, 1
	sbb	edi, -1
	imul	edx, DWORD PTR [rax]
	add	ecx, 1
	add	esi, edx
	cmp	ecx, r8d
	jb	.L4
.L2:
	mov	eax, DWORD PTR SJA1105_SIZE_TABLE_HEADER[rip]
	add	eax, 4
	imul	edi, eax
	lea	eax, -4[rsi+rdi]
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, 1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	sja1105_static_config_get_length, .-sja1105_static_config_get_length
	.comm	SJA1105_SIZE_TABLE_HEADER,4,4
	.comm	SJA1105_SIZE_DEVICE_ID,4,4
	.comm	BLK_IDX_MAX,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_sja1105_static_config.c_sja1105_static_config_get_length.c"
	.text
	.align	2
	.global	sja1105_static_config_get_length
	.syntax unified
	.arm
	.fpu softvfp
	.type	sja1105_static_config_get_length, %function
sja1105_static_config_get_length:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L12
	push	{r4, r5, lr}
	ldr	lr, [r2]
	ldr	r3, .L12+4
	cmp	lr, #0
	ldr	r1, [r3]
	beq	.L5
	mov	r3, #0
	mov	r4, #1
	ldr	r0, [r0]
	add	r5, r0, #4
.L4:
	ldr	r2, [r0, r3, lsl #3]
	ldr	ip, [r5, r3, lsl #3]
	cmp	r2, #0
	ldr	ip, [ip]
	add	r3, r3, #1
	addne	r4, r4, #1
	cmp	r3, lr
	mla	r1, ip, r2, r1
	bcc	.L4
.L2:
	ldr	r3, .L12+8
	sub	r1, r1, #4
	ldr	r0, [r3]
	add	r0, r0, #4
	mla	r0, r4, r0, r1
	pop	{r4, r5, pc}
.L5:
	mov	r4, #1
	b	.L2
.L13:
	.align	2
.L12:
	.word	BLK_IDX_MAX
	.word	SJA1105_SIZE_DEVICE_ID
	.word	SJA1105_SIZE_TABLE_HEADER
	.size	sja1105_static_config_get_length, .-sja1105_static_config_get_length
	.comm	SJA1105_SIZE_TABLE_HEADER,4,4
	.comm	SJA1105_SIZE_DEVICE_ID,4,4
	.comm	BLK_IDX_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
