	.file	"extr_bios.c_ReadBlockTable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ReadBlockTable, @function
ReadBlockTable:
.LFB0:
	.cfi_startproc
	endbr64
	imul	edx, ecx
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	eax, 69[rdi+rdx*2]
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR [rsi], eax
	mov	esi, ecx
	mov	DWORD PTR [r9], 0
	mov	DWORD PTR 24[rsp], edi
	mov	edi, DWORD PTR [r15]
	mov	DWORD PTR 28[rsp], ecx
	call	CalcSaveSize@PLT
	mov	DWORD PTR [r12], eax
	lea	edi, 0[0+rax*4]
	call	malloc@PLT
	mov	QWORD PTR 16[rsp], rax
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jle	.L3
	mov	r13, rax
	lea	eax, -1[rbx+rbx]
	xor	r14d, r14d
	mov	DWORD PTR 12[rsp], eax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR [r15]
	call	MappedMemoryReadByte@PLT
	mov	ebx, eax
	mov	eax, DWORD PTR [r15]
	sal	ebx, 8
	lea	edi, 2[rax]
	call	MappedMemoryReadByte@PLT
	mov	edx, DWORD PTR [r15]
	or	ebx, eax
	lea	eax, 4[rdx]
	add	edx, 3
	mov	DWORD PTR [r15], eax
	test	DWORD PTR 12[rsp], edx
	jne	.L4
	movsx	rax, DWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 28[rsp]
	imul	ecx, DWORD PTR [rsi+rax*4]
	mov	esi, DWORD PTR 24[rsp]
	lea	eax, 9[rsi+rcx*2]
	mov	DWORD PTR [r15], eax
	add	DWORD PTR 0[rbp], 1
.L4:
	mov	DWORD PTR 0[r13], ebx
	add	r14d, 1
	add	r13, 4
	cmp	DWORD PTR [r12], r14d
	jg	.L5
.L3:
	add	DWORD PTR [r15], 4
.L1:
	mov	rax, QWORD PTR 16[rsp]
	add	rsp, 40
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	ReadBlockTable, .-ReadBlockTable
	.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_bios.c_ReadBlockTable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReadBlockTable, %function
ReadBlockTable:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, #0
	mul	r2, r3, r2
	sub	sp, sp, #12
	ldr	fp, [sp, #52]
	add	r2, r0, r2, lsl #1
	add	r2, r2, #69
	str	r2, [r1]
	str	r10, [fp]
	str	r0, [sp, #4]
	mov	r4, r1
	ldr	r0, [r1]
	mov	r1, r3
	mov	r8, r3
	ldr	r5, [sp, #48]
	bl	CalcSaveSize
	str	r0, [r5]
	lsl	r0, r0, #2
	bl	malloc
	subs	r9, r0, #0
	str	r9, [sp]
	beq	.L1
	ldr	r3, [r5]
	ldr	r2, [r4]
	cmp	r3, r10
	ble	.L3
	lsl	r6, r8, #1
	sub	r6, r6, #1
.L5:
	mov	r0, r2
	bl	MappedMemoryReadByte
	ldr	r2, [r4]
	mov	r7, r0
	add	r0, r2, #2
	bl	MappedMemoryReadByte
	ldr	r2, [r4]
	add	r10, r10, #1
	add	ip, r2, #3
	tst	ip, r6
	add	r2, r2, #4
	orr	r0, r0, r7, lsl #8
	str	r2, [r4]
	bne	.L4
	ldr	r2, [fp]
	ldr	r3, [sp]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [sp, #4]
	mul	r2, r8, r2
	add	r2, r3, r2, lsl #1
	add	r2, r2, #9
	str	r2, [r4]
	ldr	r2, [fp]
	add	r2, r2, #1
	str	r2, [fp]
	ldr	r2, [r4]
.L4:
	ldr	r1, [r5]
	str	r0, [r9], #4
	cmp	r1, r10
	bgt	.L5
.L3:
	add	r2, r2, #4
	str	r2, [r4]
.L1:
	ldr	r0, [sp]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	ReadBlockTable, .-ReadBlockTable
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
