	.file	"extr_map.c_hpfs_load_hotfix_map.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"invalid number of hotfixes: %u, used: %u"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"can't load hotfix map"
	.text
	.p2align 4
	.globl	hpfs_load_hotfix_map
	.type	hpfs_load_hotfix_map, @function
hpfs_load_hotfix_map:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r13, rax
	call	le32_to_cpu@PLT
	mov	QWORD PTR 16[rsp], rax
	cmp	r13d, 256
	jg	.L11
	cmp	r13d, eax
	jl	.L11
	mov	edi, DWORD PTR [rbx]
	call	le32_to_cpu@PLT
	xor	ecx, ecx
	mov	rdi, rbp
	mov	rsi, rax
	lea	rax, 36[rsp]
	mov	rdx, rax
	mov	QWORD PTR 24[rsp], rax
	call	hpfs_map_4sectors@PLT
	mov	r12, rax
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR 16[rsp]
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR 12[rsp], r13d
	xor	ebx, ebx
	sub	eax, 1
	mov	QWORD PTR [rsp], rax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbp
	mov	r13d, DWORD PTR [r12+rbx*4]
	lea	r14, 0[0+rbx*8]
	call	hpfs_sb@PLT
	mov	r15, QWORD PTR 16[rax]
	mov	edi, r13d
	call	le32_to_cpu@PLT
	mov	rdi, rbp
	add	r15, r14
	mov	QWORD PTR [r15], rax
	mov	eax, DWORD PTR 12[rsp]
	add	eax, ebx
	mov	r15d, DWORD PTR [r12+rax*4]
	call	hpfs_sb@PLT
	mov	edi, r15d
	add	r14, QWORD PTR 8[rax]
	call	le32_to_cpu@PLT
	mov	QWORD PTR [r14], rax
	mov	rax, rbx
	add	rbx, 1
	cmp	QWORD PTR [rsp], rax
	jne	.L8
.L9:
	mov	rdi, rbp
	call	hpfs_sb@PLT
	mov	ecx, DWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	mov	DWORD PTR [rax], ecx
	call	hpfs_brelse4@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 56
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	ecx, DWORD PTR 16[rsp]
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	xor	eax, eax
	mov	rdi, rbp
	call	hpfs_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	hpfs_error@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hpfs_load_hotfix_map, .-hpfs_load_hotfix_map
	.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_map.c_hpfs_load_hotfix_map.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid number of hotfixes: %u, used: %u\000"
	.align	2
.LC1:
	.ascii	"can't load hotfix map\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hpfs_load_hotfix_map
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpfs_load_hotfix_map, %function
hpfs_load_hotfix_map:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L15
	sub	sp, sp, #12
	mov	r7, r0
	ldr	r0, [r1, #8]
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	le32_to_cpu
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	le32_to_cpu
	cmp	r5, r0
	movge	r6, #0
	movlt	r6, #1
	cmp	r5, #256
	orrgt	r6, r6, #1
	cmp	r6, #0
	mov	fp, r0
	bne	.L13
	ldr	r0, [r4]
	bl	le32_to_cpu
	mov	r3, r6
	mov	r1, r0
	mov	r2, sp
	mov	r0, r7
	bl	hpfs_map_4sectors
	subs	r8, r0, #0
	beq	.L4
	cmp	fp, #0
	beq	.L8
	add	r10, r8, fp, lsl #2
	sub	r5, r5, #-1073741823
	add	r5, r8, r5, lsl #2
	sub	r4, r8, #4
	sub	r10, r10, #4
	rsb	r8, r8, #4
.L7:
	mov	r0, r7
	add	r6, r8, r4
	ldr	r9, [r4, #4]!
	bl	hpfs_sb
	mov	r3, r0
	mov	r0, r9
	ldr	r9, [r3, #8]
	bl	le32_to_cpu
	mov	r3, r0
	mov	r0, r7
	str	r3, [r9, r6]
	ldr	r9, [r5, #4]!
	bl	hpfs_sb
	mov	r3, r0
	mov	r0, r9
	ldr	r9, [r3, #4]
	bl	le32_to_cpu
	cmp	r4, r10
	str	r0, [r9, r6]
	bne	.L7
.L8:
	mov	r0, r7
	bl	hpfs_sb
	mov	r3, r0
	mov	r0, sp
	str	fp, [r3]
	bl	hpfs_brelse4
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r3, r0
	mov	r2, r5
	mov	r0, r7
	ldr	r1, .L15+4
	bl	hpfs_error
	b	.L1
.L4:
	mov	r0, r7
	ldr	r1, .L15+8
	bl	hpfs_error
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	hpfs_load_hotfix_map, .-hpfs_load_hotfix_map
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
