	.file	"extr_dir.c_gfs2_dir_read_leaf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Number of entries corrupt in dir leaf %llu, entries2 (%u) != g.offset (%u)\n"
	.text
	.p2align 4
	.type	gfs2_dir_read_leaf, @function
gfs2_dir_read_leaf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 136
	.cfi_def_cfa_offset 192
	mov	QWORD PTR 32[rsp], rsi
	lea	r14, 88[rsp]
	mov	QWORD PTR 24[rsp], rdi
	mov	QWORD PTR 40[rsp], rdx
	mov	DWORD PTR 72[rsp], ecx
	mov	QWORD PTR 48[rsp], r8
	mov	QWORD PTR 16[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	call	GFS2_I@PLT
	mov	rdi, rbx
	xor	ebx, ebx
	mov	r13, rax
	call	GFS2_SB@PLT
	mov	rsi, QWORD PTR 192[rsp]
	mov	QWORD PTR 56[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 0[rbp]
	call	be16_to_cpu@PLT
	mov	edi, DWORD PTR 8[rbp]
	add	r15d, eax
	lea	eax, 1[rbx]
	mov	DWORD PTR 8[rsp], eax
	call	be64_to_cpu@PLT
	mov	rdi, QWORD PTR 88[rsp]
	mov	QWORD PTR [rsp], rax
	call	brelse@PLT
	mov	rsi, QWORD PTR [rsp]
	test	rsi, rsi
	je	.L26
	mov	ebx, DWORD PTR 8[rsp]
.L4:
	mov	rdx, r14
	mov	rdi, r13
	call	get_leaf@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 88[rsp]
	mov	rbp, QWORD PTR 16[rax]
	test	ebx, ebx
	jne	.L3
	mov	rdi, QWORD PTR 16[rbp]
	call	be16_to_cpu@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	DWORD PTR [rcx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	mov	r12d, r15d
.L6:
	test	ebx, ebx
	je	.L13
	mov	rcx, QWORD PTR 16[rsp]
	lea	eax, -1[rbx]
	mov	rbp, rcx
	lea	rbx, 8[rcx+rax*8]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 0[rbp]
	add	rbp, 8
	call	brelse@PLT
	cmp	rbx, rbp
	jne	.L12
.L13:
	mov	rdi, QWORD PTR 16[rsp]
	call	gfs2_free_sort_buffer@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L26:
	.cfi_restore_state
	test	r15d, r15d
	je	.L1
	lea	edi, 100[r15+rbx]
	mov	r12d, DWORD PTR ENOMEM[rip]
	sal	edi, 3
	call	gfs2_alloc_sort_buffer@PLT
	neg	r12d
	mov	QWORD PTR 16[rsp], rax
	test	rax, rax
	je	.L1
	mov	ebp, DWORD PTR 8[rsp]
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR 76[rsp], r15d
	xor	ebx, ebx
	mov	DWORD PTR 96[rsp], 0
	mov	r12, QWORD PTR 192[rsp]
	lea	rax, [rax+rbp*8]
	xor	ebp, ebp
	mov	QWORD PTR 64[rsp], rax
	mov	QWORD PTR 104[rsp], rax
	lea	rax, 96[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L30:
	call	be16_to_cpu@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	xor	r8d, r8d
	add	ebp, eax
	mov	rax, QWORD PTR 88[rsp]
	mov	ecx, DWORD PTR gfs2_dirent_gather[rip]
	mov	edx, DWORD PTR 8[rax]
	mov	rsi, QWORD PTR 16[rax]
	call	gfs2_dirent_scan@PLT
	mov	rdi, rax
	mov	QWORD PTR [rsp], rax
	call	PTR_ERR@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r15d, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L23
	mov	r8d, DWORD PTR 96[rsp]
	mov	rax, QWORD PTR 88[rsp]
	cmp	r8d, ebp
	jne	.L28
	mov	rcx, QWORD PTR 16[rsp]
	movsx	rdx, ebx
	add	ebx, 1
	mov	QWORD PTR [rcx+rdx*8], rax
.L9:
	test	r12, r12
	je	.L29
.L10:
	mov	rdx, r14
	mov	rsi, r12
	mov	rdi, r13
	call	get_leaf@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR 88[rsp]
	mov	r15, QWORD PTR 16[rax]
	mov	edi, DWORD PTR 8[r15]
	call	be64_to_cpu@PLT
	mov	rdi, QWORD PTR [r15]
	mov	r12, rax
	test	rdi, rdi
	jne	.L30
	mov	rdi, QWORD PTR 88[rsp]
	call	brelse@PLT
	jmp	.L9
.L29:
	mov	r15d, DWORD PTR 76[rsp]
	xor	edi, edi
	cmp	ebp, r15d
	setne	dil
	call	BUG_ON@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 200
	mov	r9d, r15d
	mov	rdi, r13
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 208
	mov	r8, QWORD PTR 80[rsp]
	mov	ecx, DWORD PTR 88[rsp]
	mov	rdx, QWORD PTR 56[rsp]
	mov	rsi, QWORD PTR 48[rsp]
	call	do_filldir_main@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 200
	pop	rdx
	.cfi_def_cfa_offset 192
	jmp	.L6
.L28:
	mov	rdx, QWORD PTR [rax]
	mov	rdi, QWORD PTR 56[rsp]
	mov	ecx, ebp
	lea	rsi, .LC0[rip]
	call	fs_warn@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L6
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gfs2_dir_read_leaf, .-gfs2_dir_read_leaf
	.comm	gfs2_dirent_gather,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,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_dir.c_gfs2_dir_read_leaf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Number of entries corrupt in dir leaf %llu, entries"
	.ascii	"2 (%u) != g.offset (%u)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfs2_dir_read_leaf, %function
gfs2_dir_read_leaf:
	@ args = 12, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #60
	str	r3, [sp, #24]
	ldr	r3, .L31
	str	r1, [sp, #16]
	str	r2, [sp, #20]
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r3, [sp, #96]
	mov	r9, r0
	ldr	r7, [sp, #104]
	str	r3, [sp, #28]
	ldr	r10, [sp, #100]
	bl	GFS2_I
	mov	r6, r0
	mov	r0, r9
	mov	r8, #0
	bl	GFS2_SB
	mov	r4, r7
	mov	r5, r8
	str	r0, [sp, #32]
	b	.L4
.L3:
	ldr	r0, [r4]
	bl	be16_to_cpu
	mov	r3, r0
	ldr	r0, [r4, #4]
	add	r5, r5, r3
	bl	be64_to_cpu
	mov	r4, r0
	ldr	r0, [sp, #40]
	bl	brelse
	cmp	r4, #0
	add	r3, r8, #1
	beq	.L26
	mov	r8, r3
.L4:
	mov	r1, r4
	mov	r0, r6
	add	r2, sp, #40
	bl	get_leaf
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [sp, #40]
	cmp	r8, #0
	ldr	r4, [r3, #8]
	bne	.L3
	ldr	r0, [r4, #8]
	bl	be16_to_cpu
	str	r0, [r10]
	b	.L3
.L28:
	ldr	r2, [r2]
	ldr	r0, [sp, #32]
	str	r3, [sp, #4]
	ldr	r1, .L31+4
	asr	r3, r2, #31
	str	r10, [sp]
	bl	fs_warn
	ldr	r3, .L31+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L6:
	cmp	r8, #0
	subne	r5, fp, #4
	addne	r8, r5, r8, lsl #2
	beq	.L13
.L12:
	ldr	r0, [r5, #4]!
	bl	brelse
	cmp	r8, r5
	bne	.L12
.L13:
	mov	r0, fp
	bl	gfs2_free_sort_buffer
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	cmp	r5, #0
	str	r3, [sp, #36]
	beq	.L1
	add	r0, r8, r5
	ldr	r2, .L31+12
	add	r0, r0, #100
	lsl	r0, r0, #2
	ldr	r8, [r2]
	bl	gfs2_alloc_sort_buffer
	subs	fp, r0, #0
	ldr	r3, [sp, #36]
	rsbeq	r4, r8, #0
	beq	.L1
	add	r3, fp, r3, lsl #2
	mov	r8, r4
	mov	r10, r4
	str	r3, [sp, #36]
	str	r3, [sp, #48]
	str	r4, [sp, #44]
	b	.L10
.L30:
	mov	r0, r3
	bl	be16_to_cpu
	mov	ip, r0
	ldr	r1, [sp, #40]
	ldr	r3, .L31+16
	add	r0, sp, #44
	ldr	r2, [r1, #4]
	ldr	r3, [r3]
	ldr	r1, [r1, #8]
	str	r0, [sp, #4]
	str	r4, [sp]
	mov	r0, r9
	add	r10, r10, ip
	bl	gfs2_dirent_scan
	mov	r4, r0
	bl	PTR_ERR
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	IS_ERR
	cmp	r0, #0
	bne	.L6
	ldr	r3, [sp, #44]
	ldr	r2, [sp, #40]
	cmp	r3, r10
	bne	.L28
	str	r2, [fp, r8, lsl #2]
	add	r8, r8, #1
.L9:
	cmp	r7, #0
	beq	.L29
.L10:
	mov	r1, r7
	mov	r0, r6
	add	r2, sp, #40
	bl	get_leaf
	subs	r4, r0, #0
	bne	.L6
	ldr	r3, [sp, #40]
	ldr	r7, [r3, #8]
	ldr	r0, [r7, #4]
	bl	be64_to_cpu
	ldr	r3, [r7]
	mov	r7, r0
	cmp	r3, #0
	bne	.L30
	ldr	r0, [sp, #40]
	bl	brelse
	b	.L9
.L29:
	subs	r0, r10, r5
	movne	r0, #1
	bl	BUG_ON
	ldr	r3, [sp, #28]
	str	r5, [sp, #4]
	str	r3, [sp, #8]
	ldr	r3, [sp, #36]
	add	r1, sp, #16
	str	r3, [sp]
	mov	r0, r6
	ldm	r1, {r1, r2, r3}
	bl	do_filldir_main
	mov	r4, r0
	b	.L6
.L27:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC1
	.word	.LC0
	.word	EIO
	.word	ENOMEM
	.word	gfs2_dirent_gather
	.size	gfs2_dir_read_leaf, .-gfs2_dir_read_leaf
	.comm	gfs2_dirent_gather,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
