	.file	"extr_wl.c_prot_queue_add.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"added PEB %d EC %d to the protection queue"
	.text
	.p2align 4
	.type	prot_queue_add, @function
prot_queue_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, DWORD PTR UBI_PROT_QUEUE_LEN[rip]
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, DWORD PTR [rdi]
	sub	ebx, 1
	js	.L7
.L2:
	xor	edi, edi
	cmp	eax, ebx
	setg	dil
.L3:
	call	ubi_assert@PLT
	mov	rax, QWORD PTR 8[r12]
	movsx	rbx, ebx
	lea	rdi, 8[rbp]
	lea	rsi, [rax+rbx*4]
	call	list_add_tail@PLT
	mov	esi, DWORD PTR 4[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	mov	edx, DWORD PTR 0[rbp]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	dbg_wl@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	ebx, eax
	sub	ebx, 1
	jns	.L2
	xor	edi, edi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	prot_queue_add, .-prot_queue_add
	.comm	UBI_PROT_QUEUE_LEN,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_wl.c_prot_queue_add.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"added PEB %d EC %d to the protection queue\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prot_queue_add, %function
prot_queue_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	ldr	r3, .L8
	subs	r5, r5, #1
	mov	r6, r0
	mov	r4, r1
	ldr	r0, [r3]
	bmi	.L7
.L2:
	cmp	r0, r5
	movle	r0, #0
	movgt	r0, #1
.L3:
	bl	ubi_assert
	ldr	r1, [r6, #4]
	add	r0, r4, #8
	add	r1, r1, r5, lsl #2
	bl	list_add_tail
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	ldr	r0, .L8+4
	pop	{r4, r5, r6, lr}
	b	dbg_wl
.L7:
	subs	r5, r0, #1
	movmi	r0, #0
	bmi	.L3
	b	.L2
.L9:
	.align	2
.L8:
	.word	UBI_PROT_QUEUE_LEN
	.word	.LC0
	.size	prot_queue_add, .-prot_queue_add
	.comm	UBI_PROT_QUEUE_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
