	.file	"extr_localedef.c_close_category.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"done.\n"
	.text
	.p2align 4
	.globl	close_category
	.type	close_category, @function
close_category:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	fileno@PLT
	mov	esi, 420
	mov	edi, eax
	call	fchmod@PLT
	test	rax, rax
	js	.L7
.L2:
	mov	rdi, rbp
	call	fclose@PLT
	test	rax, rax
	js	.L8
.L3:
	cmp	QWORD PTR verbose[rip], 0
	jne	.L9
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR stdout[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	fflush@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	eax, eax
	call	category_file@PLT
	mov	edi, eax
	call	unlink@PLT
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	errf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbp
	call	fclose@PLT
	xor	eax, eax
	call	category_file@PLT
	mov	edi, eax
	call	unlink@PLT
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	errf@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	close_category, .-close_category
	.comm	verbose,8,8
	.comm	stdout,4,4
	.comm	errno,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_localedef.c_close_category.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"done.\012\000"
	.text
	.align	2
	.global	close_category
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_category, %function
close_category:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	fileno
	mov	r1, #420
	bl	fchmod
	cmp	r0, #0
	blt	.L7
.L2:
	mov	r0, r4
	bl	fclose
	cmp	r0, #0
	blt	.L8
.L3:
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #0
	popeq	{r4, pc}
	ldr	r4, .L9+4
	ldr	r1, .L9+8
	ldr	r0, [r4]
	bl	fprintf
	ldr	r0, [r4]
	pop	{r4, lr}
	b	fflush
.L8:
	bl	category_file
	bl	unlink
	ldr	r3, .L9+12
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L9+16
	bl	errf
	b	.L3
.L7:
	mov	r0, r4
	bl	fclose
	bl	category_file
	bl	unlink
	ldr	r3, .L9+12
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L9+16
	bl	errf
	b	.L2
.L10:
	.align	2
.L9:
	.word	verbose
	.word	stdout
	.word	.LC1
	.word	errno
	.word	.LC0
	.size	close_category, .-close_category
	.comm	verbose,4,4
	.comm	stdout,4,4
	.comm	errno,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
