	.file	"extr_text-index.c_close_temp_files.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	close_temp_files
	.type	close_temp_files, @function
close_temp_files:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR temp_binlog_directory[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	edx, edx
	je	.L6
	mov	eax, DWORD PTR passes[rip]
	test	eax, eax
	jle	.L7
	mov	ebp, edi
	mov	r13d, edi
	xor	ebx, ebx
	xor	r14d, r14d
	and	r13d, 1
	and	ebp, 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	DWORD PTR passes[rip], ebx
	jle	.L1
.L5:
	test	r13d, r13d
	je	.L3
	mov	rax, QWORD PTR temp_file[rip]
	mov	r12, rbx
	sal	r12, 4
	mov	rdi, QWORD PTR [rax+r12]
	test	rdi, rdi
	jle	.L3
	call	close@PLT
	add	r14d, 1
	not	rax
	mov	rdi, rax
	shr	rdi, 63
	call	assert@PLT
	mov	rax, QWORD PTR temp_file[rip]
	mov	QWORD PTR [rax+r12], 0
.L3:
	test	ebp, ebp
	je	.L4
	mov	rax, QWORD PTR temp_file[rip]
	mov	r12, rbx
	sal	r12, 4
	mov	rdi, QWORD PTR 8[rax+r12]
	test	rdi, rdi
	je	.L4
	call	unlink@PLT
	add	r14d, 1
	add	rbx, 1
	not	rax
	mov	rdi, rax
	shr	rdi, 63
	call	assert@PLT
	mov	rax, QWORD PTR temp_file[rip]
	mov	rdi, QWORD PTR 8[rax+r12]
	call	free@PLT
	mov	rax, QWORD PTR temp_file[rip]
	cmp	DWORD PTR passes[rip], ebx
	mov	QWORD PTR 8[rax+r12], 0
	jg	.L5
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	r14d, r14d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r14d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	mov	r14d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	close_temp_files, .-close_temp_files
	.comm	temp_file,8,8
	.comm	temp_binlog_directory,4,4
	.comm	passes,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_text-index.c_close_temp_files.c"
	.text
	.align	2
	.global	close_temp_files
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_temp_files, %function
close_temp_files:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	ldr	r7, .L20+4
	mov	r9, #0
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L1
	mov	r4, r9
	mov	r8, r9
	ldr	r6, .L20+8
	and	r10, r0, #1
	and	r5, r0, #2
	b	.L5
.L4:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L1
.L5:
	cmp	r10, #0
	beq	.L3
	ldr	r3, [r6]
	ldr	r0, [r3, r4, lsl #3]
	cmp	r0, #0
	ble	.L3
	bl	close
	mvn	r0, r0
	lsr	r0, r0, #31
	bl	assert
	ldr	r3, [r6]
	add	r9, r9, #1
	str	r8, [r3, r4, lsl #3]
.L3:
	cmp	r5, #0
	beq	.L4
	ldr	r3, [r6]
	lsl	fp, r4, #3
	add	r3, r3, r4, lsl #3
	ldr	r0, [r3, #4]
	cmp	r0, #0
	beq	.L4
	bl	unlink
	mvn	r0, r0
	lsr	r0, r0, #31
	bl	assert
	ldr	r3, [r6]
	add	r4, r4, #1
	add	r3, r3, fp
	ldr	r0, [r3, #4]
	bl	free
	ldr	r3, [r6]
	add	r9, r9, #1
	add	fp, r3, fp
	ldr	r3, [r7]
	str	r8, [fp, #4]
	cmp	r3, r4
	bgt	.L5
.L1:
	mov	r0, r9
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mvn	r9, #0
	b	.L1
.L21:
	.align	2
.L20:
	.word	temp_binlog_directory
	.word	passes
	.word	temp_file
	.size	close_temp_files, .-close_temp_files
	.comm	temp_file,4,4
	.comm	temp_binlog_directory,4,4
	.comm	passes,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
