	.file	"extr_dir.c_leaf_dealloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	leaf_dealloc, @function
leaf_dealloc:
.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
	mov	r12, rcx
	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	ebx, edx
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 16[rsp], r8
	mov	DWORD PTR 28[rsp], esi
	mov	DWORD PTR 40[rsp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	GFS2_SB@PLT
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	gfs2_rindex_update@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L34
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L35
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L34:
	.cfi_restore_state
	lea	r15, 64[rsp]
	sal	ebx, 3
	mov	edx, 16
	xor	esi, esi
	mov	rdi, r15
	mov	DWORD PTR 44[rsp], ebx
	call	memset@PLT
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	edi, ebx
	or	esi, DWORD PTR __GFP_NOWARN[rip]
	call	kzalloc@PLT
	mov	QWORD PTR 32[rsp], rax
	test	rax, rax
	je	.L36
.L3:
	mov	edx, DWORD PTR NO_GID_QUOTA_CHANGE[rip]
	mov	esi, DWORD PTR NO_UID_QUOTA_CHANGE[rip]
	mov	rdi, rbp
	call	gfs2_quota_hold@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 48[rsp], rax
	test	r12, r12
	je	.L21
	lea	rax, 48[rsp]
	mov	r14, r12
	xor	r13d, r13d
	mov	QWORD PTR [rsp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, r14
	mov	rdi, rbp
	call	get_leaf@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR 48[rsp]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	be64_to_cpu@PLT
	mov	rdi, QWORD PTR 48[rsp]
	mov	rbx, rax
	call	brelse@PLT
.L18:
	mov	rdx, r14
	mov	rsi, r15
	mov	rdi, rbp
	add	r13d, 1
	call	gfs2_rlist_add@PLT
	test	rbx, rbx
	je	.L5
	mov	r14, rbx
.L8:
	cmp	r14, r12
	jne	.L37
	mov	rax, QWORD PTR 48[rsp]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	be64_to_cpu@PLT
	mov	rbx, rax
	jmp	.L18
.L16:
	lea	rsi, 56[rsp]
	mov	rdi, rbp
	call	gfs2_meta_inode_buffer@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L14
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, QWORD PTR 56[rsp]
	mov	DWORD PTR [rsp], eax
	call	gfs2_trans_add_meta@PLT
	mov	eax, DWORD PTR 40[rsp]
	mov	r8d, DWORD PTR [rsp]
	test	eax, eax
	je	.L17
	mov	eax, DWORD PTR S_IFREG[rip]
	mov	DWORD PTR 0[rbp], eax
.L17:
	mov	rax, QWORD PTR 56[rsp]
	mov	rdi, rbp
	mov	DWORD PTR [rsp], r8d
	mov	rsi, QWORD PTR [rax]
	call	gfs2_dinode_out@PLT
	mov	rdi, QWORD PTR 56[rsp]
	call	brelse@PLT
	mov	r8d, DWORD PTR [rsp]
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR 8[rsp]
	mov	DWORD PTR [rsp], r8d
	call	gfs2_trans_end@PLT
	mov	r8d, DWORD PTR [rsp]
.L11:
	mov	rsi, QWORD PTR 72[rsp]
	mov	edi, DWORD PTR 64[rsp]
	mov	DWORD PTR [rsp], r8d
	call	gfs2_glock_dq_m@PLT
	mov	r8d, DWORD PTR [rsp]
.L7:
	mov	rdi, r15
	mov	DWORD PTR [rsp], r8d
	call	gfs2_rlist_free@PLT
	mov	rdi, rbp
	call	gfs2_quota_unhold@PLT
	mov	r8d, DWORD PTR [rsp]
.L4:
	mov	rdi, QWORD PTR 32[rsp]
	mov	DWORD PTR [rsp], r8d
	call	kvfree@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edx, DWORD PTR PAGE_KERNEL[rip]
	mov	edi, DWORD PTR 44[rsp]
	mov	esi, DWORD PTR GFP_NOFS[rip]
	or	esi, DWORD PTR __GFP_NOWARN[rip]
	or	esi, DWORD PTR __GFP_ZERO[rip]
	call	__vmalloc@PLT
	mov	QWORD PTR 32[rsp], rax
	test	rax, rax
	jne	.L3
	mov	r8d, DWORD PTR ENOMEM[rip]
	neg	r8d
	jmp	.L1
.L21:
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r15
	call	gfs2_rlist_alloc@PLT
	mov	edi, DWORD PTR 64[rsp]
	test	edi, edi
	je	.L23
	xor	edx, edx
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 72[rsp]
	mov	ecx, edx
	mov	DWORD PTR [rsp], edx
	mov	edi, DWORD PTR [rax+rcx*4]
	call	gfs2_glock2rgrp@PLT
	mov	edx, DWORD PTR [rsp]
	mov	edi, DWORD PTR 64[rsp]
	add	ebx, DWORD PTR [rax]
	add	edx, 1
	cmp	edi, edx
	ja	.L10
.L9:
	mov	rsi, QWORD PTR 72[rsp]
	call	gfs2_glock_nq_m@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L7
	mov	r14, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 44[rsp]
	mov	esi, DWORD PTR [r14]
	call	DIV_ROUND_UP@PLT
	mov	edx, r13d
	mov	rdi, r14
	lea	rsi, 1[rbx+rax]
	add	rsi, QWORD PTR RES_DINODE[rip]
	add	rsi, QWORD PTR RES_STATFS[rip]
	add	rsi, QWORD PTR RES_QUOTA[rip]
	call	gfs2_trans_begin@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 48[rsp], rax
	test	r12, r12
	je	.L12
	mov	r13, r12
	lea	r14, 48[rsp]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	get_leaf@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR 48[rsp]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	be64_to_cpu@PLT
	mov	rdi, QWORD PTR 48[rsp]
	mov	rbx, rax
	call	brelse@PLT
.L19:
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, 1
	mov	rsi, r13
	call	gfs2_blk2rgrpd@PLT
	mov	rdi, rbp
	mov	ecx, 1
	mov	rdx, r13
	mov	rsi, rax
	call	gfs2_free_meta@PLT
	mov	esi, -1
	mov	rdi, rbp
	call	gfs2_add_inode_blocks@PLT
	test	rbx, rbx
	je	.L12
	mov	r13, rbx
.L15:
	cmp	r12, r13
	jne	.L38
	mov	rax, QWORD PTR 48[rsp]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	be64_to_cpu@PLT
	mov	rbx, rax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR 28[rsp]
	mov	ebx, DWORD PTR 44[rsp]
	mov	rdi, rbp
	mov	rsi, QWORD PTR 32[rsp]
	sal	edx, 3
	mov	ecx, ebx
	call	gfs2_dir_write_data@PLT
	mov	r8d, eax
	cmp	eax, ebx
	je	.L16
	test	eax, eax
	js	.L14
	mov	r8d, DWORD PTR EIO[rip]
	neg	r8d
	jmp	.L14
.L23:
	xor	ebx, ebx
	jmp	.L9
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	leaf_dealloc, .-leaf_dealloc
	.comm	__GFP_ZERO,4,4
	.comm	__GFP_NOWARN,4,4
	.comm	S_IFREG,4,4
	.comm	RES_STATFS,8,8
	.comm	RES_QUOTA,8,8
	.comm	RES_DINODE,8,8
	.comm	PAGE_KERNEL,4,4
	.comm	NO_UID_QUOTA_CHANGE,4,4
	.comm	NO_GID_QUOTA_CHANGE,4,4
	.comm	GFP_NOFS,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_leaf_dealloc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaf_dealloc, %function
leaf_dealloc:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	sub	sp, sp, #44
	ldr	r3, .L39
	str	r1, [sp, #8]
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	r3, [sp, #80]
	mov	r7, r2
	str	r3, [sp, #4]
	mov	r4, r0
	bl	GFS2_SB
	mov	r8, r0
	bl	gfs2_rindex_update
	subs	fp, r0, #0
	beq	.L34
.L1:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	mov	r0, fp
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	ldr	r10, .L39+4
	ldr	r6, .L39+8
	ldr	r1, [r10]
	ldr	r2, [r6]
	lsl	r7, r7, #2
	mov	r0, r7
	orr	r1, r1, r2
	str	fp, [sp, #28]
	str	fp, [sp, #32]
	bl	kzalloc
	subs	r3, r0, #0
	str	r3, [sp, #12]
	beq	.L36
.L3:
	ldr	r3, .L39+12
	ldr	r2, .L39+16
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	gfs2_quota_hold
	subs	fp, r0, #0
	bne	.L4
	ldr	r3, [sp, #4]
	cmp	r5, #0
	str	r3, [sp, #20]
	beq	.L21
	mov	r6, fp
	mov	r9, r5
	b	.L8
.L37:
	mov	r1, r9
	mov	r0, r4
	add	r2, sp, #20
	bl	get_leaf
	subs	fp, r0, #0
	bne	.L7
	ldr	r3, [sp, #20]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	be64_to_cpu
	mov	r10, r0
	ldr	r0, [sp, #20]
	bl	brelse
.L18:
	mov	r2, r9
	mov	r0, r4
	add	r1, sp, #28
	bl	gfs2_rlist_add
	cmp	r10, #0
	add	r6, r6, #1
	beq	.L5
	mov	r9, r10
.L8:
	cmp	r9, r5
	bne	.L37
	ldr	r3, [sp, #20]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	be64_to_cpu
	mov	r10, r0
	b	.L18
.L12:
	ldr	r3, [sp, #8]
	mov	r0, r4
	lsl	r2, r3, #2
	ldr	r1, [sp, #12]
	mov	r3, r7
	bl	gfs2_dir_write_data
	cmp	r0, r7
	mov	fp, r0
	beq	.L16
	cmp	r0, #0
	ldrge	r3, .L39+20
	ldrge	r3, [r3]
	rsbge	fp, r3, #0
.L14:
	mov	r0, r8
	bl	gfs2_trans_end
.L11:
	ldr	r1, [sp, #32]
	ldr	r0, [sp, #28]
	bl	gfs2_glock_dq_m
.L7:
	add	r0, sp, #28
	bl	gfs2_rlist_free
	mov	r0, r4
	bl	gfs2_quota_unhold
.L4:
	ldr	r0, [sp, #12]
	bl	kvfree
	b	.L1
.L36:
	ldr	r2, .L39+24
	ldr	r0, [r6]
	ldr	r3, [r10]
	ldr	r1, [r2]
	ldr	r2, .L39+28
	orr	r3, r3, r0
	orr	r1, r3, r1
	mov	r0, r7
	ldr	r2, [r2]
	bl	__vmalloc
	subs	r3, r0, #0
	str	r3, [sp, #12]
	bne	.L3
	ldr	r3, .L39+32
	ldr	r0, [r3]
	rsb	fp, r0, #0
	b	.L1
.L21:
	mov	r6, r5
.L5:
	add	r0, sp, #28
	bl	gfs2_rlist_alloc
	ldr	r2, [sp, #28]
	cmp	r2, #0
	beq	.L23
	mov	fp, #0
	mov	r10, fp
.L10:
	ldr	r2, [sp, #32]
	ldr	r0, [r2, fp, lsl #2]
	bl	gfs2_glock2rgrp
	ldr	r2, [sp, #28]
	ldr	r1, [r0]
	add	fp, fp, #1
	cmp	r2, fp
	add	r10, r10, r1
	bhi	.L10
.L9:
	mov	r0, r2
	ldr	r1, [sp, #32]
	bl	gfs2_glock_nq_m
	subs	fp, r0, #0
	bne	.L7
	ldr	r1, [r8]
	mov	r0, r7
	bl	DIV_ROUND_UP
	ldr	r2, .L39+36
	ldr	r3, .L39+40
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L39+44
	add	r3, r3, r1
	ldr	r1, [r2]
	add	r3, r3, #1
	add	r3, r3, r1
	add	r10, r3, r10
	add	r1, r10, r0
	mov	r2, r6
	mov	r0, r8
	bl	gfs2_trans_begin
	subs	fp, r0, #0
	bne	.L11
	ldr	r3, [sp, #4]
	cmp	r5, #0
	str	r3, [sp, #20]
	beq	.L12
	mov	r10, r5
	b	.L15
.L38:
	mov	r1, r10
	mov	r0, r4
	add	r2, sp, #20
	bl	get_leaf
	subs	fp, r0, #0
	bne	.L14
	ldr	r3, [sp, #20]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	be64_to_cpu
	mov	r6, r0
	ldr	r0, [sp, #20]
	bl	brelse
.L19:
	mov	r2, #1
	mov	r1, r10
	mov	r0, r8
	bl	gfs2_blk2rgrpd
	mov	r2, r10
	mov	r1, r0
	mov	r3, #1
	mov	r0, r4
	bl	gfs2_free_meta
	mvn	r1, #0
	mov	r0, r4
	bl	gfs2_add_inode_blocks
	cmp	r6, #0
	beq	.L12
	mov	r10, r6
.L15:
	cmp	r5, r10
	bne	.L38
	ldr	r3, [sp, #20]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	be64_to_cpu
	mov	r6, r0
	b	.L19
.L23:
	mov	r10, r2
	b	.L9
.L16:
	mov	r0, r4
	add	r1, sp, #24
	bl	gfs2_meta_inode_buffer
	subs	fp, r0, #0
	bne	.L14
	ldr	r1, [sp, #24]
	ldr	r0, [r4, #4]
	bl	gfs2_trans_add_meta
	ldr	r3, [sp, #84]
	mov	r0, r4
	cmp	r3, #0
	ldrne	r2, .L39+48
	ldrne	r2, [r2]
	strne	r2, [r4]
	ldr	r2, [sp, #24]
	ldr	r1, [r2]
	bl	gfs2_dinode_out
	ldr	r0, [sp, #24]
	bl	brelse
	b	.L14
.L35:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	GFP_NOFS
	.word	__GFP_NOWARN
	.word	NO_UID_QUOTA_CHANGE
	.word	NO_GID_QUOTA_CHANGE
	.word	EIO
	.word	__GFP_ZERO
	.word	PAGE_KERNEL
	.word	ENOMEM
	.word	RES_STATFS
	.word	RES_DINODE
	.word	RES_QUOTA
	.word	S_IFREG
	.size	leaf_dealloc, .-leaf_dealloc
	.comm	__GFP_ZERO,4,4
	.comm	__GFP_NOWARN,4,4
	.comm	S_IFREG,4,4
	.comm	RES_STATFS,4,4
	.comm	RES_QUOTA,4,4
	.comm	RES_DINODE,4,4
	.comm	PAGE_KERNEL,4,4
	.comm	NO_UID_QUOTA_CHANGE,4,4
	.comm	NO_GID_QUOTA_CHANGE,4,4
	.comm	GFP_NOFS,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
