	.file	"extr_faulty.c_add_sector.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	add_sector, @function
add_sector:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR [rdi]
	test	ecx, ecx
	jle	.L2
	mov	r9, QWORD PTR 8[rdi]
	xor	eax, eax
	lea	r10d, -1[rcx]
	cmp	QWORD PTR [r9+rax*8], rsi
	je	.L19
.L3:
	mov	r8, QWORD PTR 16[rdi]
	cmp	DWORD PTR [r8+rax*4], 131
	cmove	ecx, eax
.L8:
	lea	r8, 1[rax]
	cmp	r10, rax
	je	.L2
	mov	rax, r8
	cmp	QWORD PTR [r9+rax*8], rsi
	jne	.L3
.L19:
	cmp	edx, 130
	je	.L4
	jg	.L5
	cmp	edx, 128
	je	.L6
	cmp	edx, 129
	jne	.L8
	mov	rdx, QWORD PTR 16[rdi]
	lea	rax, [rdx+rax*4]
	cmp	DWORD PTR [rax], 128
	je	.L20
	mov	DWORD PTR [rax], 129
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	edx, 131
	jne	.L8
	mov	rdx, QWORD PTR 16[rdi]
	mov	DWORD PTR [rdx+rax*4], 131
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR 16[rdi]
	lea	rdx, [rdx+rax*4]
	mov	eax, DWORD PTR [rdx]
	sub	eax, 129
	cmp	eax, 1
	jbe	.L17
	mov	DWORD PTR [rdx], 128
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR 16[rdi]
	lea	rdx, [rdx+rax*4]
	mov	eax, DWORD PTR [rdx]
	add	eax, -128
	cmp	eax, 1
	jbe	.L17
	mov	DWORD PTR [rdx], 130
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR AllPersist[rip]
	mov	DWORD PTR [rdx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdx, QWORD PTR AllPersist[rip]
	mov	DWORD PTR [rax], edx
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	DWORD PTR MaxFault[rip], ecx
	jle	.L1
	mov	r8, QWORD PTR 8[rdi]
	movsx	rax, ecx
	mov	QWORD PTR [r8+rax*8], rsi
	mov	rsi, QWORD PTR 16[rdi]
	mov	DWORD PTR [rsi+rax*4], edx
	cmp	DWORD PTR [rdi], ecx
	je	.L21
.L1:
	ret
.L21:
	add	ecx, 1
	mov	DWORD PTR [rdi], ecx
	ret
	.cfi_endproc
.LFE0:
	.size	add_sector, .-add_sector
	.comm	MaxFault,4,4
	.comm	AllPersist,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_faulty.c_add_sector.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_sector, %function
add_sector:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, [r0]
	subs	r5, r6, #0
	ble	.L2
	mov	r3, #0
	ldr	ip, [r0, #4]
	sub	lr, r2, #128
	sub	ip, ip, #4
.L14:
	ldr	r4, [ip, #4]!
	lsl	r7, r3, #2
	cmp	r4, r1
	beq	.L22
	ldr	r4, [r0, #8]
	ldr	r4, [r4, r3, lsl #2]
	cmp	r4, #131
	moveq	r5, r3
.L4:
	add	r3, r3, #1
	cmp	r6, r3
	bne	.L14
.L2:
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r3, r5
	pople	{r4, r5, r6, r7, pc}
	ldr	r3, [r0, #8]
	ldr	ip, [r0, #4]
	str	r1, [ip, r5, lsl #2]
	str	r2, [r3, r5, lsl #2]
	ldr	r3, [r0]
	cmp	r3, r5
	addeq	r5, r5, #1
	streq	r5, [r0]
	pop	{r4, r5, r6, r7, pc}
.L22:
	cmp	lr, #3
	ldrls	pc, [pc, lr, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L5:
	mov	r2, #131
	ldr	r3, [r0, #8]
	str	r2, [r3, r7]
	pop	{r4, r5, r6, r7, pc}
.L7:
	ldr	r2, [r0, #8]
	ldr	r3, [r2, r7]
	sub	r3, r3, #128
	cmp	r3, #1
	bls	.L20
	mov	r3, #130
	str	r3, [r2, r7]
	pop	{r4, r5, r6, r7, pc}
.L8:
	ldr	r3, [r0, #8]
	ldr	r2, [r3, r7]
	cmp	r2, #128
	movne	r2, #129
	ldreq	r2, .L23+4
	ldreq	r2, [r2]
	str	r2, [r3, r7]
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r2, [r0, #8]
	ldr	r3, [r2, r7]
	sub	r3, r3, #129
	cmp	r3, #1
	bls	.L20
	mov	r3, #128
	str	r3, [r2, r7]
	pop	{r4, r5, r6, r7, pc}
.L20:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	str	r3, [r2, r7]
	pop	{r4, r5, r6, r7, pc}
.L24:
	.align	2
.L23:
	.word	MaxFault
	.word	AllPersist
	.size	add_sector, .-add_sector
	.comm	MaxFault,4,4
	.comm	AllPersist,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
