	.file	"extr_brotli.c_CloseFiles.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fclose failed [%s]: %s\n"
	.text
	.p2align 4
	.type	CloseFiles, @function
CloseFiles:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, QWORD PTR BROTLI_TRUE[rip]
	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	eax, DWORD PTR 48[rdi]
	mov	rbx, rdi
	test	eax, eax
	jne	.L2
	mov	rdi, QWORD PTR [rdi]
	test	rdi, rdi
	je	.L2
	test	rsi, rsi
	je	.L52
	call	fclose@PLT
	test	rax, rax
	jne	.L53
.L12:
	test	rbp, rbp
	je	.L2
	test	r12, r12
	je	.L2
	cmp	QWORD PTR 40[rbx], 0
	jne	.L54
.L5:
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	je	.L10
	call	fclose@PLT
	test	rax, rax
	je	.L10
.L15:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	r12, rax
	call	PrintablePath@PLT
	mov	edi, DWORD PTR stderr[rip]
	mov	rcx, r12
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	call	fprintf@PLT
	mov	r12, QWORD PTR BROTLI_FALSE[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	test	rbp, rbp
	jne	.L10
.L8:
	mov	rax, r12
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR [rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	je	.L6
	call	fclose@PLT
	test	rax, rax
	je	.L6
.L16:
	test	r12, r12
	jne	.L15
	mov	r12, QWORD PTR BROTLI_FALSE[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	QWORD PTR 24[rbx], 0
	je	.L8
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	je	.L8
	call	unlink@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L52:
	mov	r8, QWORD PTR 32[rbx]
	test	r8, r8
	jne	.L55
.L4:
	call	fclose@PLT
	test	rax, rax
	je	.L56
.L13:
	mov	r12, QWORD PTR BROTLI_FALSE[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L54:
	mov	rsi, QWORD PTR 32[rbx]
	mov	rdi, QWORD PTR 16[rbx]
	call	CopyStat@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L53:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rdi, QWORD PTR 32[rbx]
	mov	r12, rax
	call	PrintablePath@PLT
	mov	edi, DWORD PTR stderr[rip]
	mov	rcx, r12
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	call	fprintf@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L56:
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	je	.L8
	call	fclose@PLT
	test	rax, rax
	je	.L8
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L55:
	mov	rdi, r8
	call	unlink@PLT
	mov	rdi, QWORD PTR [rbx]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	CloseFiles, .-CloseFiles
	.comm	stderr,4,4
	.comm	errno,4,4
	.comm	BROTLI_TRUE,8,8
	.comm	BROTLI_FALSE,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_brotli.c_CloseFiles.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fclose failed [%s]: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CloseFiles, %function
CloseFiles:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #24]
	ldr	r3, .L60
	cmp	r2, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r6, [r3]
	bne	.L2
	ldr	r0, [r0]
	cmp	r0, #0
	beq	.L2
	cmp	r1, #0
	beq	.L55
	bl	fclose
	cmp	r0, #0
	bne	.L56
.L12:
	cmp	r5, #0
	cmpne	r6, #0
	beq	.L2
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L57
.L5:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L10
	bl	fclose
	cmp	r0, #0
	beq	.L10
.L15:
	ldr	r3, .L60+4
	ldr	r0, [r4, #8]
	ldr	r7, [r3]
	bl	PrintablePath
	ldr	r3, .L60+8
	mov	r6, r0
	ldr	r0, [r3]
	bl	strerror
	mov	r2, r6
	mov	r3, r0
	ldr	r1, .L60+12
	mov	r0, r7
	bl	fprintf
	ldr	r3, .L60+16
	ldr	r6, [r3]
.L6:
	cmp	r5, #0
	bne	.L10
.L8:
	mov	r3, #0
	mov	r0, r6
	str	r3, [r4, #4]
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L6
	bl	fclose
	cmp	r0, #0
	beq	.L6
.L16:
	cmp	r6, #0
	bne	.L15
	ldr	r3, .L60+16
	ldr	r6, [r3]
	b	.L6
.L10:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L8
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L8
	bl	unlink
	b	.L8
.L55:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L58
.L4:
	bl	fclose
	cmp	r0, #0
	beq	.L59
.L13:
	ldr	r3, .L60+16
	ldr	r6, [r3]
	b	.L12
.L57:
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #8]
	bl	CopyStat
	b	.L5
.L56:
	ldr	r3, .L60+4
	ldr	r0, [r4, #16]
	ldr	r7, [r3]
	bl	PrintablePath
	ldr	r3, .L60+8
	mov	r6, r0
	ldr	r0, [r3]
	bl	strerror
	mov	r2, r6
	mov	r3, r0
	ldr	r1, .L60+12
	mov	r0, r7
	bl	fprintf
	b	.L13
.L59:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L8
	bl	fclose
	cmp	r0, #0
	beq	.L8
	b	.L16
.L58:
	mov	r0, r3
	bl	unlink
	ldr	r0, [r4]
	b	.L4
.L61:
	.align	2
.L60:
	.word	BROTLI_TRUE
	.word	stderr
	.word	errno
	.word	.LC0
	.word	BROTLI_FALSE
	.size	CloseFiles, .-CloseFiles
	.comm	stderr,4,4
	.comm	errno,4,4
	.comm	BROTLI_TRUE,4,4
	.comm	BROTLI_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
