	.file	"extr_dir_edit.c_afs_dir_scan_block.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.text
	.p2align 4
	.type	afs_dir_scan_block, @function
afs_dir_scan_block:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	lea	rdi, .LC0[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	_enter@PLT
	mov	rcx, QWORD PTR [r15]
	mov	r12d, DWORD PTR AFS_DIR_RESV_BLOCKS0[rip]
	mov	ebp, DWORD PTR 8[rcx]
	mov	eax, DWORD PTR 16[rcx]
	sal	ebp, 8
	sal	eax, 16
	or	ebp, eax
	mov	eax, DWORD PTR [rcx]
	or	eax, ebp
	mov	rbp, QWORD PTR 24[rcx]
	sal	ebp, 24
	or	ebp, eax
	test	ebx, ebx
	cmovne	r12d, DWORD PTR AFS_DIR_RESV_BLOCKS[rip]
	cmp	r12d, DWORD PTR AFS_DIR_SLOTS_PER_BLOCK[rip]
	jl	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	add	r12d, 1
	cmp	DWORD PTR AFS_DIR_SLOTS_PER_BLOCK[rip], r12d
	jle	.L4
.L3:
	bt	ebp, r12d
	jnc	.L6
	mov	rdx, QWORD PTR [r15]
	movsx	rax, r12d
	lea	r14, [rdx+rax*8]
	cmp	DWORD PTR [r14], 1
	jne	.L6
	mov	edi, DWORD PTR 4[r14]
	call	strlen@PLT
	mov	ebx, eax
	cmp	DWORD PTR 0[r13], eax
	je	.L7
.L9:
	mov	esi, DWORD PTR AFS_DIR_DIRENT_SIZE[rip]
	lea	edi, 17[rbx]
	call	round_up@PLT
	cdq
	idiv	DWORD PTR AFS_DIR_DIRENT_SIZE[rip]
	lea	r12d, -1[r12+rax]
	add	r12d, 1
	cmp	DWORD PTR AFS_DIR_SLOTS_PER_BLOCK[rip], r12d
	jg	.L3
.L4:
	mov	r12d, -1
.L1:
	add	rsp, 8
	.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
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[r13]
	mov	edi, DWORD PTR 4[r14]
	mov	edx, eax
	call	memcmp@PLT
	test	rax, rax
	jne	.L9
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	afs_dir_scan_block, .-afs_dir_scan_block
	.comm	AFS_DIR_SLOTS_PER_BLOCK,4,4
	.comm	AFS_DIR_RESV_BLOCKS0,4,4
	.comm	AFS_DIR_RESV_BLOCKS,4,4
	.comm	AFS_DIR_DIRENT_SIZE,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_edit.c_afs_dir_scan_block.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	afs_dir_scan_block, %function
afs_dir_scan_block:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	mov	r4, r2
	ldr	r0, .L20
	mov	r9, r1
	bl	_enter
	ldr	r3, [r10]
	cmp	r4, #0
	ldmib	r3, {r1, r6}
	ldr	r2, [r3]
	lsl	r6, r6, #16
	ldr	r3, [r3, #12]
	orr	r6, r6, r1, lsl #8
	orr	r6, r6, r2
	orr	r6, r6, r3, lsl #24
	bne	.L2
	ldr	r3, .L20+4
	ldr	r4, [r3]
.L5:
	ldr	r7, .L20+8
	ldr	r3, [r7]
	cmp	r4, r3
	bge	.L4
	ldr	r8, .L20+12
	b	.L3
.L6:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L4
.L3:
	asr	r3, r6, r4
	tst	r3, #1
	beq	.L6
	ldr	r3, [r10]
	ldr	r2, [r3, r4, lsl #3]
	add	r5, r3, r4, lsl #3
	cmp	r2, #1
	bne	.L6
	ldr	r0, [r5, #4]
	bl	strlen
	ldr	r3, [r9]
	mov	fp, r0
	cmp	r3, r0
	beq	.L7
.L9:
	ldr	r1, [r8]
	add	r0, fp, #17
	bl	round_up
	ldr	r1, [r8]
	bl	__aeabi_idiv
	sub	r0, r0, #1
	ldr	r3, [r7]
	add	r4, r4, r0
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L4:
	mvn	r4, #0
.L1:
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r2, fp
	ldr	r0, [r5, #4]
	ldr	r1, [r9, #4]
	bl	memcmp
	cmp	r0, #0
	bne	.L9
	b	.L1
.L2:
	ldr	r3, .L20+16
	ldr	r4, [r3]
	b	.L5
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	AFS_DIR_RESV_BLOCKS0
	.word	AFS_DIR_SLOTS_PER_BLOCK
	.word	AFS_DIR_DIRENT_SIZE
	.word	AFS_DIR_RESV_BLOCKS
	.size	afs_dir_scan_block, .-afs_dir_scan_block
	.comm	AFS_DIR_SLOTS_PER_BLOCK,4,4
	.comm	AFS_DIR_RESV_BLOCKS0,4,4
	.comm	AFS_DIR_RESV_BLOCKS,4,4
	.comm	AFS_DIR_DIRENT_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
