	.file	"extr_balloc.c_sysv_free_block.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"sysv_free_block: trying to free block not in datazone\n"
	.align 8
.LC1:
	.string	"sysv_free_block: flc_count > flc_size\n"
	.align 8
.LC2:
	.string	"sysv_free_block: getblk() failed\n"
	.text
	.p2align 4
	.globl	sysv_free_block
	.type	sysv_free_block, @function
sysv_free_block:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	SYSV_SB@PLT
	mov	esi, r13d
	mov	rdi, rax
	mov	r14, QWORD PTR 40[rax]
	mov	rbp, rax
	call	fs32_to_cpu@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR FSTYPE_AFS[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L1
	cmp	DWORD PTR 8[rbp], ebx
	ja	.L3
	cmp	DWORD PTR 12[rbp], ebx
	ja	.L4
.L3:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rdi, .LC0[rip]
	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
	jmp	printk@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	r15, 20[rbp]
	mov	rdi, r15
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 32[rbp]
	mov	rdi, rbp
	mov	rsi, QWORD PTR [rax]
	call	fs16_to_cpu@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR 16[rbp]
	cmp	eax, ecx
	jb	.L12
	test	ecx, ecx
	je	.L6
	cmp	eax, ecx
	je	.L6
	mov	eax, ecx
	lea	esi, 1[rcx]
	sal	rax, 2
.L7:
	mov	rdx, QWORD PTR 40[rbp]
	mov	rbx, QWORD PTR 32[rbp]
	mov	rdi, rbp
	mov	DWORD PTR [rdx+rax], r13d
	call	cpu_to_fs16@PLT
	mov	esi, DWORD PTR 24[rbp]
	mov	rdi, rbp
	mov	edx, 1
	mov	QWORD PTR [rbx], rax
	call	fs32_add@PLT
	mov	rdi, r12
	call	dirty_sb@PLT
.L10:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	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
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 24
	.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
.L6:
	.cfi_restore_state
	add	ebx, DWORD PTR 48[rbp]
	mov	rdi, r12
	mov	DWORD PTR 4[rsp], ecx
	mov	esi, ebx
	call	sb_getblk@PLT
	mov	ecx, DWORD PTR 4[rsp]
	test	rax, rax
	mov	rbx, rax
	je	.L13
	mov	edx, DWORD PTR [r12]
	mov	rdi, QWORD PTR [rax]
	xor	esi, esi
	mov	DWORD PTR 4[rsp], ecx
	call	memset@PLT
	mov	ecx, DWORD PTR 4[rsp]
	mov	rdx, QWORD PTR [rbx]
	mov	rdi, rbp
	mov	esi, ecx
	mov	QWORD PTR 8[rsp], rdx
	call	cpu_to_fs16@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, rbx
	mov	rdi, r12
	mov	QWORD PTR [rdx], rax
	call	get_chunk@PLT
	mov	ecx, DWORD PTR 4[rsp]
	mov	rsi, r14
	mov	edi, eax
	lea	edx, 0[0+rcx*4]
	call	memcpy@PLT
	mov	rdi, rbx
	call	mark_buffer_dirty@PLT
	mov	rdi, rbx
	call	set_buffer_uptodate@PLT
	mov	rdi, rbx
	call	brelse@PLT
	mov	esi, 1
	xor	eax, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC1[rip]
	call	printk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC2[rip]
	call	printk@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	sysv_free_block, .-sysv_free_block
	.comm	FSTYPE_AFS,8,8
	.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_balloc.c_sysv_free_block.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sysv_free_block: trying to free block not in datazo"
	.ascii	"ne\012\000"
	.align	2
.LC1:
	.ascii	"sysv_free_block: flc_count > flc_size\012\000"
	.align	2
.LC2:
	.ascii	"sysv_free_block: getblk() failed\012\000"
	.text
	.align	2
	.global	sysv_free_block
	.syntax unified
	.arm
	.fpu softvfp
	.type	sysv_free_block, %function
sysv_free_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	r6, r1
	mov	r7, r0
	bl	SYSV_SB
	mov	r4, r0
	mov	r1, r6
	ldr	r9, [r0, #28]
	bl	fs32_to_cpu
	ldr	r3, .L13
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, [r4, #4]
	mov	r5, r0
	cmp	r3, r0
	bhi	.L3
	ldr	r3, [r4, #8]
	cmp	r3, r0
	bhi	.L4
.L3:
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, .L13+4
	b	printk
.L4:
	add	r10, r4, #16
	mov	r0, r10
	bl	mutex_lock
	ldr	r3, [r4, #24]
	mov	r0, r4
	ldr	r1, [r3]
	bl	fs16_to_cpu
	ldr	r3, [r4, #12]
	mov	r8, r0
	cmp	r3, r0
	bcc	.L11
	cmp	r3, r0
	cmpne	r0, #0
	lslne	r3, r0, #2
	addne	r1, r0, #1
	bne	.L7
	ldr	r1, [r4, #32]
	mov	r0, r7
	add	r1, r5, r1
	bl	sb_getblk
	subs	r5, r0, #0
	beq	.L12
	ldr	r2, [r7]
	mov	r1, #0
	ldr	r0, [r5]
	bl	memset
	mov	r1, r8
	mov	r0, r4
	ldr	fp, [r5]
	bl	cpu_to_fs16
	mov	r1, r5
	str	r0, [fp]
	mov	r0, r7
	bl	get_chunk
	mov	r1, r9
	lsl	r2, r8, #2
	bl	memcpy
	mov	r0, r5
	bl	mark_buffer_dirty
	mov	r0, r5
	bl	set_buffer_uptodate
	mov	r0, r5
	bl	brelse
	mov	r1, #1
	mov	r3, #0
.L7:
	ldr	r2, [r4, #28]
	mov	r0, r4
	str	r6, [r2, r3]
	ldr	r5, [r4, #24]
	bl	cpu_to_fs16
	ldr	r1, [r4, #20]
	str	r0, [r5]
	mov	r2, #1
	mov	r0, r4
	bl	fs32_add
	mov	r0, r7
	bl	dirty_sb
	mov	r0, r10
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mutex_unlock
.L11:
	ldr	r0, .L13+8
	bl	printk
	mov	r0, r10
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mutex_unlock
.L12:
	ldr	r0, .L13+12
	bl	printk
	mov	r0, r10
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mutex_unlock
.L14:
	.align	2
.L13:
	.word	FSTYPE_AFS
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	sysv_free_block, .-sysv_free_block
	.comm	FSTYPE_AFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
