	.file	"extr_ea.c_hpfs_get_ea.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"anode"
.LC1:
	.string	"sectors"
.LC2:
	.string	"out of memory for EA\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"EAs don't end correctly, %s %08x, len %08x"
	.text
	.p2align 4
	.globl	hpfs_get_ea
	.type	hpfs_get_ea, @function
hpfs_get_ea:
.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, rdi
	mov	rdi, rsi
	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
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 344
	.cfi_def_cfa_offset 400
	mov	QWORD PTR 24[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 328[rsp], rax
	xor	eax, eax
	call	fnode_end_ea@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	fnode_ea@PLT
	mov	r13, rax
	cmp	rbx, rax
	ja	.L2
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	call	next_ea@PLT
	mov	r13, rax
	cmp	rbx, rax
	jbe	.L9
.L2:
	mov	edi, DWORD PTR 4[r13]
	mov	rsi, rbp
	call	strcmp@PLT
	mov	rdi, r13
	test	eax, eax
	jne	.L5
	call	ea_indirect@PLT
	test	rax, rax
	jne	.L33
	mov	rdi, r13
	mov	ebp, DWORD PTR GFP_NOFS[rip]
	call	ea_valuelen@PLT
	mov	rcx, QWORD PTR 24[rsp]
	mov	esi, ebp
	lea	edi, 1[rax]
	mov	DWORD PTR [rcx], eax
	call	kmalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L31
	mov	rdi, r13
	call	ea_valuelen@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	ea_data@PLT
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	call	memcpy@PLT
	mov	rdi, r13
	call	ea_valuelen@PLT
	cdqe
	mov	BYTE PTR 0[rbp+rax], 0
.L1:
	mov	rax, QWORD PTR 328[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	add	rsp, 344
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, rbp
	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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r12]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR [r12]
	mov	r15, rax
	call	le32_to_cpu@PLT
	mov	rdi, r12
	mov	rbx, rax
	mov	QWORD PTR 40[rsp], rax
	call	fnode_in_anode@PLT
	mov	DWORD PTR 4[rsp], ebx
	mov	DWORD PTR 36[rsp], eax
	test	ebx, ebx
	je	.L4
	cmp	DWORD PTR 40[rsp], 3
	jbe	.L20
	lea	rax, 52[rsp]
	mov	QWORD PTR 16[rsp], rbp
	xor	ebx, ebx
	mov	ebp, DWORD PTR 36[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	r13d, 4
	lea	r12, 48[rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edx, DWORD PTR 48[rsp]
	mov	rdi, r12
	mov	DWORD PTR 32[rsp], edx
	call	ea_indirect@PLT
	mov	edx, DWORD PTR 32[rsp]
	mov	ecx, r13d
	mov	rsi, r15
	mov	r9, QWORD PTR 8[rsp]
	mov	rdi, r14
	lea	r8d, 9[rdx]
	add	edx, 1
	test	rax, rax
	cmove	r8d, edx
	mov	edx, ebp
	call	hpfs_ea_read@PLT
	test	rax, rax
	jne	.L4
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 52[rsp]
	call	strcmp@PLT
	test	eax, eax
	je	.L35
	mov	r13d, DWORD PTR 48[rsp]
	mov	rdi, r12
	call	ea_valuelen@PLT
	lea	eax, 5[r13+rax]
	add	ebx, eax
	cmp	ebx, DWORD PTR 4[rsp]
	jnb	.L4
	lea	r13d, 4[rbx]
	cmp	r13d, DWORD PTR 4[rsp]
	ja	.L20
.L10:
	mov	r9, r12
	mov	r8d, 4
	mov	ecx, ebx
	mov	edx, ebp
	mov	rsi, r15
	mov	rdi, r14
	call	hpfs_ea_read@PLT
	test	rax, rax
	je	.L36
.L4:
	xor	ebp, ebp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, DWORD PTR 36[rsp]
	mov	r8d, DWORD PTR 40[rsp]
	mov	rcx, r15
	mov	rdi, r14
	lea	rdx, .LC0[rip]
	lea	rsi, .LC3[rip]
	test	eax, eax
	lea	rax, .LC1[rip]
	cmove	rdx, rax
	xor	ebp, ebp
	call	hpfs_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, r13
	call	ea_len@PLT
	mov	rdi, r13
	mov	r12d, eax
	mov	rax, QWORD PTR 24[rsp]
	mov	DWORD PTR [rax], r12d
	call	ea_sec@PLT
	mov	rdi, r13
	mov	r15d, eax
	call	ea_in_anode@PLT
	mov	ecx, r12d
	mov	edx, r15d
	mov	rdi, r14
	mov	esi, eax
	call	get_indirect_ea@PLT
	mov	rbp, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, r12
	call	ea_indirect@PLT
	test	rax, rax
	jne	.L37
	mov	rdi, r12
	mov	ebp, DWORD PTR GFP_NOFS[rip]
	call	ea_valuelen@PLT
	mov	rcx, QWORD PTR 24[rsp]
	mov	esi, ebp
	lea	edi, 1[rax]
	mov	DWORD PTR [rcx], eax
	call	kmalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L31
	mov	rdi, r12
	call	ea_valuelen@PLT
	mov	edx, DWORD PTR 36[rsp]
	mov	r9, rbp
	mov	rsi, r15
	mov	r8d, eax
	mov	eax, DWORD PTR 48[rsp]
	mov	rdi, r14
	lea	ecx, 5[rbx+rax]
	call	hpfs_ea_read@PLT
	test	rax, rax
	je	.L18
	mov	rdi, rbp
	xor	ebp, ebp
	call	kfree@PLT
	jmp	.L1
.L31:
	lea	rdi, .LC2[rip]
	call	pr_err@PLT
	jmp	.L1
.L18:
	mov	rdi, r12
	call	ea_valuelen@PLT
	cdqe
	mov	BYTE PTR 0[rbp+rax], 0
	jmp	.L1
.L37:
	mov	rdi, r12
	call	ea_len@PLT
	mov	rdi, r12
	mov	r13d, eax
	mov	rax, QWORD PTR 24[rsp]
	mov	DWORD PTR [rax], r13d
	call	ea_sec@PLT
	mov	rdi, r12
	mov	r15d, eax
	call	ea_in_anode@PLT
	mov	ecx, r13d
	mov	edx, r15d
	mov	rdi, r14
	mov	esi, eax
	call	get_indirect_ea@PLT
	mov	rbp, rax
	jmp	.L1
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hpfs_get_ea, .-hpfs_get_ea
	.comm	GFP_NOFS,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_ea.c_hpfs_get_ea.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"anode\000"
	.align	2
.LC1:
	.ascii	"sectors\000"
	.align	2
.LC2:
	.ascii	"out of memory for EA\012\000"
	.align	2
.LC3:
	.ascii	"EAs don't end correctly, %s %08x, len %08x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hpfs_get_ea
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpfs_get_ea, %function
hpfs_get_ea:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #292
	str	r3, [sp, #12]
	ldr	r3, .L40
	mov	r7, r0
	mov	r0, r1
	mov	r6, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #284]
	mov	r3,#0
	bl	fnode_end_ea
	mov	r8, r0
	mov	r0, r6
	bl	fnode_ea
	cmp	r8, r0
	movhi	r4, r0
	bhi	.L2
	b	.L9
.L5:
	bl	next_ea
	cmp	r8, r0
	mov	r4, r0
	bls	.L9
.L2:
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	strcmp
	cmp	r0, #0
	mov	r0, r4
	bne	.L5
	bl	ea_indirect
	subs	r6, r0, #0
	mov	r0, r4
	bne	.L35
	bl	ea_valuelen
	ldr	r2, [sp, #12]
	ldr	r3, .L40+4
	str	r0, [r2]
	ldr	r1, [r3]
	add	r0, r0, #1
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L33
	mov	r0, r4
	bl	ea_data
	mov	r7, r0
	mov	r0, r4
	bl	ea_valuelen
	mov	r1, r7
	mov	r2, r0
	mov	r0, r5
	bl	memcpy
	mov	r0, r4
	bl	ea_valuelen
	strb	r6, [r5, r0]
.L1:
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [sp, #284]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	mov	r0, r5
	add	sp, sp, #292
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r0, [r6, #4]
	bl	le32_to_cpu
	mov	r9, r0
	ldr	r0, [r6]
	bl	le32_to_cpu
	mov	r8, r0
	mov	r0, r6
	bl	fnode_in_anode
	cmp	r8, #0
	mov	r10, r0
	beq	.L4
	cmp	r8, #3
	bls	.L20
	mov	r6, #4
	mov	r4, #0
	b	.L10
.L38:
	add	r0, sp, #16
	ldr	fp, [sp, #16]
	bl	ea_indirect
	cmp	r0, #0
	add	r3, fp, #1
	add	r2, sp, #20
	addne	r3, fp, #9
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, r10
	mov	r3, r6
	mov	r1, r9
	mov	r0, r7
	bl	hpfs_ea_read
	cmp	r0, #0
	bne	.L4
	mov	r1, r5
	ldr	r0, [sp, #20]
	bl	strcmp
	cmp	r0, #0
	add	r0, sp, #16
	beq	.L37
	ldr	r6, [sp, #16]
	bl	ea_valuelen
	add	r6, r6, r0
	add	r6, r6, #5
	add	r4, r4, r6
	cmp	r4, r8
	bcs	.L4
	add	r6, r4, #4
	cmp	r6, r8
	bhi	.L20
.L10:
	add	r3, sp, #16
	str	r3, [sp, #4]
	mov	r3, #4
	mov	r2, r10
	str	r3, [sp]
	mov	r1, r9
	mov	r3, r4
	mov	r0, r7
	bl	hpfs_ea_read
	cmp	r0, #0
	beq	.L38
.L4:
	mov	r5, #0
	b	.L1
.L20:
	ldr	r1, .L40+8
	cmp	r10, #0
	ldr	r2, .L40+12
	mov	r3, r9
	movne	r2, r1
	mov	r0, r7
	ldr	r1, .L40+16
	str	r8, [sp]
	bl	hpfs_error
	mov	r5, #0
	b	.L1
.L35:
	bl	ea_in_anode
	mov	r5, r0
	mov	r0, r4
	bl	ea_sec
	mov	r2, r0
	mov	r0, r4
	mov	r4, r2
	bl	ea_len
	mov	r2, r4
	mov	r3, r0
	mov	r1, r5
.L32:
	ldr	r0, [sp, #12]
	str	r3, [r0]
	mov	r0, r7
	bl	get_indirect_ea
	mov	r5, r0
	b	.L1
.L37:
	bl	ea_indirect
	subs	r6, r0, #0
	add	r0, sp, #16
	bne	.L39
	bl	ea_valuelen
	ldr	r2, [sp, #12]
	ldr	r3, .L40+4
	str	r0, [r2]
	ldr	r1, [r3]
	add	r0, r0, #1
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L33
	ldr	r3, [sp, #16]
	add	r0, sp, #16
	add	r3, r3, #5
	add	r4, r3, r4
	bl	ea_valuelen
	mov	r3, r4
	stm	sp, {r0, r5}
	mov	r2, r10
	mov	r1, r9
	mov	r0, r7
	bl	hpfs_ea_read
	subs	r4, r0, #0
	beq	.L18
	mov	r0, r5
	bl	kfree
	mov	r5, r6
	b	.L1
.L33:
	ldr	r0, .L40+20
	bl	pr_err
	b	.L1
.L18:
	add	r0, sp, #16
	bl	ea_valuelen
	strb	r4, [r5, r0]
	b	.L1
.L39:
	bl	ea_in_anode
	mov	r4, r0
	add	r0, sp, #16
	bl	ea_sec
	mov	r5, r0
	add	r0, sp, #16
	bl	ea_len
	mov	r2, r5
	mov	r3, r0
	mov	r1, r4
	b	.L32
.L36:
	bl	__stack_chk_fail
.L41:
	.align	2
.L40:
	.word	.LC4
	.word	GFP_NOFS
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.size	hpfs_get_ea, .-hpfs_get_ea
	.comm	GFP_NOFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
