	.file	"extr_rofi.c_rofi_collect_modi_destroy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rofi_collect_modi_destroy, @function
rofi_collect_modi_destroy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR num_available_modi[rip]
	mov	r8, QWORD PTR available_modi[rip]
	test	eax, eax
	je	.L2
	xor	ebp, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR [rdi], 0
	mov	rdi, r8
	call	g_module_close@PLT
	mov	r8, QWORD PTR available_modi[rip]
	lea	rdi, [r8+rbx]
	cmp	QWORD PTR [rdi], 0
	jne	.L3
	add	ebp, 1
	cmp	DWORD PTR num_available_modi[rip], ebp
	jbe	.L2
.L5:
	mov	ebx, ebp
	sal	rbx, 3
	lea	rdi, [r8+rbx]
	mov	rax, QWORD PTR [rdi]
	mov	r8, QWORD PTR [rax]
	test	r8, r8
	jne	.L12
.L3:
	call	mode_free@PLT
	add	ebp, 1
	cmp	DWORD PTR num_available_modi[rip], ebp
	mov	r8, QWORD PTR available_modi[rip]
	ja	.L5
.L2:
	mov	rdi, r8
	call	g_free@PLT
	mov	QWORD PTR available_modi[rip], 0
	mov	DWORD PTR num_available_modi[rip], 0
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rofi_collect_modi_destroy, .-rofi_collect_modi_destroy
	.comm	num_available_modi,4,4
	.comm	available_modi,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_rofi.c_rofi_collect_modi_destroy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rofi_collect_modi_destroy, %function
rofi_collect_modi_destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L19
	ldr	r5, .L19+4
	ldr	r2, [r8]
	ldr	r3, [r5]
	cmp	r2, #0
	beq	.L2
	mov	r4, #0
	mov	r6, r4
	b	.L5
.L18:
	mov	r0, r2
	str	r6, [r3, r4, lsl #2]
	bl	g_module_close
	ldr	r3, [r5]
	ldr	r2, [r3, r4, lsl #2]
	add	r0, r3, r7
	cmp	r2, #0
	bne	.L3
	ldr	r2, [r8]
	add	r4, r4, #1
	cmp	r2, r4
	bls	.L2
.L5:
	ldr	r2, [r3, r4, lsl #2]
	lsl	r7, r4, #2
	ldr	r2, [r2]
	add	r0, r3, r4, lsl #2
	cmp	r2, #0
	bne	.L18
.L3:
	bl	mode_free
	ldr	r2, [r8]
	add	r4, r4, #1
	cmp	r2, r4
	ldr	r3, [r5]
	bhi	.L5
.L2:
	mov	r0, r3
	bl	g_free
	mov	r3, #0
	str	r3, [r5]
	str	r3, [r8]
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	.align	2
.L19:
	.word	num_available_modi
	.word	available_modi
	.size	rofi_collect_modi_destroy, .-rofi_collect_modi_destroy
	.comm	num_available_modi,4,4
	.comm	available_modi,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
