	.file	"extr_ext_attr.c_ext2fs_free_ext_attr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ext2fs_free_ext_attr
	.type	ext2fs_free_ext_attr, @function
ext2fs_free_ext_attr:
.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, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rsp], 0
	test	rdx, rdx
	je	.L19
.L2:
	mov	rsi, r14
	mov	rdi, r13
	call	ext2fs_file_acl_block@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, QWORD PTR 8[r13]
	cmp	QWORD PTR [rdi], rax
	jle	.L4
.L5:
	mov	r12, QWORD PTR EXT2_ET_BAD_EA_BLOCK_NUM[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L4:
	.cfi_restore_state
	call	ext2fs_blocks_count@PLT
	cmp	rax, r12
	jle	.L5
	lea	r15, 16[rsp]
	mov	edi, DWORD PTR 0[r13]
	mov	rsi, r15
	call	ext2fs_get_mem@PLT
	test	rax, rax
	jne	.L10
	mov	rdx, QWORD PTR 16[rsp]
	mov	ecx, ebp
	mov	rsi, r12
	mov	rdi, r13
	call	ext2fs_read_ext_attr3@PLT
	test	rax, rax
	jne	.L12
	mov	rbx, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR EXT2_EXT_ATTR_MAGIC[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L7
	mov	r12, QWORD PTR EXT2_ET_BAD_EA_HEADER[rip]
.L6:
	mov	rdi, r15
	call	ext2fs_free_mem@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	lea	r14, 12[rsp]
	mov	ecx, 4
	mov	rdx, r14
	call	ext2fs_read_inode_full@PLT
	mov	r12, rax
	test	rax, rax
	je	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	sub	QWORD PTR 8[rbx], 1
	mov	ecx, ebp
	mov	rdx, rbx
	mov	rsi, r12
	mov	rdi, r13
	call	ext2fs_write_ext_attr3@PLT
	test	rax, rax
	jne	.L12
	xor	edx, edx
	mov	rsi, r14
	mov	rdi, r13
	call	ext2fs_file_acl_block_set@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L21
.L8:
	mov	edx, 1
	mov	rsi, r14
	mov	rdi, r13
	call	ext2fs_iblk_sub_blocks@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L6
	lea	rax, 12[rsp]
	cmp	r14, rax
	jne	.L6
	mov	ecx, 4
	mov	rdx, r14
	mov	esi, ebp
	mov	rdi, r13
	call	ext2fs_write_inode_full@PLT
	mov	r12, rax
	jmp	.L6
.L21:
	mov	edx, -1
	mov	rsi, r12
	mov	rdi, r13
	call	ext2fs_block_alloc_stats2@PLT
	jmp	.L8
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ext2fs_free_ext_attr, .-ext2fs_free_ext_attr
	.comm	EXT2_EXT_ATTR_MAGIC,8,8
	.comm	EXT2_ET_BAD_EA_HEADER,8,8
	.comm	EXT2_ET_BAD_EA_BLOCK_NUM,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_ext_attr.c_ext2fs_free_ext_attr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ext2fs_free_ext_attr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext2fs_free_ext_attr, %function
ext2fs_free_ext_attr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L21
	sub	sp, sp, #16
	subs	r5, r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r0
	mov	r7, r1
	str	ip, [sp, #4]
	beq	.L18
.L2:
	mov	r1, r5
	mov	r0, r6
	bl	ext2fs_file_acl_block
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, [r6, #4]
	ldr	r3, [r0]
	cmp	r3, r4
	ble	.L4
.L5:
	ldr	r3, .L21+4
	ldr	r4, [r3]
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	bl	ext2fs_blocks_count
	cmp	r0, r4
	ble	.L5
	ldr	r0, [r6]
	add	r1, sp, #4
	bl	ext2fs_get_mem
	cmp	r0, #0
	movne	r4, r0
	bne	.L1
	mov	r1, r4
	mov	r3, r7
	mov	r0, r6
	ldr	r2, [sp, #4]
	bl	ext2fs_read_ext_attr3
	cmp	r0, #0
	movne	r4, r0
	bne	.L6
	ldr	r8, [sp, #4]
	ldr	r3, .L21+8
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L7
	ldr	r3, .L21+12
	ldr	r4, [r3]
.L6:
	add	r0, sp, #4
	bl	ext2fs_free_mem
	b	.L1
.L18:
	mov	r3, #4
	add	r2, sp, #8
	bl	ext2fs_read_inode_full
	subs	r4, r0, #0
	bne	.L1
	add	r5, sp, #8
	b	.L2
.L7:
	ldr	r2, [r8, #4]
	mov	r1, r4
	sub	r2, r2, #1
	str	r2, [r8, #4]
	mov	r3, r7
	mov	r2, r8
	mov	r0, r6
	bl	ext2fs_write_ext_attr3
	subs	r2, r0, #0
	movne	r4, r2
	bne	.L6
	mov	r1, r5
	mov	r0, r6
	bl	ext2fs_file_acl_block_set
	ldr	r3, [r8, #4]
	cmp	r3, #0
	beq	.L20
.L8:
	mov	r2, #1
	mov	r1, r5
	mov	r0, r6
	bl	ext2fs_iblk_sub_blocks
	subs	r4, r0, #0
	bne	.L6
	add	r3, sp, #8
	cmp	r5, r3
	bne	.L6
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	mov	r3, #4
	bl	ext2fs_write_inode_full
	mov	r4, r0
	b	.L6
.L20:
	mov	r1, r4
	mvn	r2, #0
	mov	r0, r6
	bl	ext2fs_block_alloc_stats2
	b	.L8
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	EXT2_ET_BAD_EA_BLOCK_NUM
	.word	EXT2_EXT_ATTR_MAGIC
	.word	EXT2_ET_BAD_EA_HEADER
	.size	ext2fs_free_ext_attr, .-ext2fs_free_ext_attr
	.comm	EXT2_EXT_ATTR_MAGIC,4,4
	.comm	EXT2_ET_BAD_EA_HEADER,4,4
	.comm	EXT2_ET_BAD_EA_BLOCK_NUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
