	.file	"extr_localedef.c_copy_category.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s/%s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"source locale data unavailable: %s"
	.section	.rodata.str1.1
.LC2:
	.string	"/usr/lib/locale/%s/%s"
.LC3:
	.string	"Copying category %s from %s: "
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"unable to copy locale data: %s"
	.section	.rodata.str1.1
.LC5:
	.string	"done."
	.text
	.p2align 4
	.globl	copy_category
	.type	copy_category, @function
copy_category:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PATH_MAX[rip]
	mov	rcx, rsp
	mov	rbx, rsp
	mov	r14, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L23:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L23
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L24
.L4:
	xor	eax, eax
	mov	r13, rsp
	call	category_name@PLT
	mov	esi, r14d
	mov	rdi, rsp
	mov	rcx, r12
	mov	r8, rax
	lea	rdx, .LC0[rip]
	call	snprintf@PLT
	mov	esi, DWORD PTR R_OK[rip]
	mov	rdi, rsp
	call	access@PLT
	test	eax, eax
	jne	.L25
.L5:
	cmp	DWORD PTR verbose[rip], 1
	jle	.L9
	xor	eax, eax
	call	category_name@PLT
	lea	rdi, .LC3[rip]
	mov	rdx, r12
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
.L9:
	mov	eax, DWORD PTR bsd[rip]
	test	eax, eax
	je	.L26
.L10:
	xor	eax, eax
	call	category_file@PLT
	mov	rdi, r13
	mov	esi, eax
	call	link@PLT
	test	rax, rax
	jne	.L27
	cmp	DWORD PTR verbose[rip], 1
	jle	.L7
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L7:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, rbx
	jne	.L28
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	esi, 47
	mov	rdi, rsp
	call	strchr@PLT
	test	rax, rax
	je	.L6
.L8:
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L26:
	xor	eax, eax
	call	category_file@PLT
	mov	edi, eax
	call	dirname@PLT
	mov	esi, 493
	mov	edi, eax
	call	mkdir@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdx, rax
	call	fprintf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	call	category_name@PLT
	mov	esi, r14d
	mov	rdi, rsp
	mov	rcx, r12
	mov	r8, rax
	lea	rdx, .LC2[rip]
	call	snprintf@PLT
	mov	esi, DWORD PTR R_OK[rip]
	mov	rdi, rsp
	call	access@PLT
	test	eax, eax
	je	.L5
	jmp	.L8
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	copy_category, .-copy_category
	.comm	verbose,4,4
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	errno,4,4
	.comm	bsd,4,4
	.comm	R_OK,4,4
	.comm	PATH_MAX,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_copy_category.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s/%s\000"
	.align	2
.LC1:
	.ascii	"source locale data unavailable: %s\000"
	.align	2
.LC2:
	.ascii	"/usr/lib/locale/%s/%s\000"
	.align	2
.LC3:
	.ascii	"Copying category %s from %s: \000"
	.align	2
.LC4:
	.ascii	"unable to copy locale data: %s\000"
	.align	2
.LC5:
	.ascii	"done.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	copy_category
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_category, %function
copy_category:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #20
	ldr	r3, .L23
	mov	r7, sp
	ldr	r6, [r3]
	mov	r4, r0
	add	r3, r6, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L23+4
	add	r5, sp, #8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	category_name
	ldr	r8, .L23+8
	mov	r3, r4
	mov	r1, r6
	ldr	r2, .L23+12
	str	r0, [sp]
	mov	r0, r5
	bl	snprintf
	mov	r0, r5
	ldr	r1, [r8]
	bl	access
	cmp	r0, #0
	bne	.L17
.L2:
	ldr	r6, .L23+16
	ldr	r3, [r6]
	cmp	r3, #1
	bgt	.L18
	ldr	r3, .L23+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
.L7:
	bl	category_file
	mov	r1, r0
	mov	r0, r5
	bl	link
	cmp	r0, #0
	bne	.L20
	ldr	r3, [r6]
	cmp	r3, #1
	bgt	.L21
.L4:
	ldr	r3, .L23+4
	mov	sp, r7
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L18:
	bl	category_name
	mov	r2, r4
	mov	r1, r0
	ldr	r0, .L23+24
	bl	printf
	ldr	r3, .L23+28
	ldr	r0, [r3]
	bl	fflush
	ldr	r3, .L23+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
.L19:
	bl	category_file
	bl	dirname
	ldr	r1, .L23+32
	bl	mkdir
	b	.L7
.L21:
	ldr	r0, .L23+36
	bl	puts
	b	.L4
.L17:
	mov	r1, #47
	mov	r0, r5
	bl	strchr
	cmp	r0, #0
	beq	.L3
.L5:
	ldr	r3, .L23+40
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L23+44
	bl	fprintf
	b	.L4
.L20:
	ldr	r3, .L23+48
	ldr	r2, .L23+40
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L23+52
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	b	.L4
.L3:
	bl	category_name
	mov	r1, r6
	mov	r3, r4
	ldr	r2, .L23+56
	str	r0, [sp]
	mov	r0, r5
	bl	snprintf
	mov	r0, r5
	ldr	r1, [r8]
	bl	access
	cmp	r0, #0
	beq	.L2
	b	.L5
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	PATH_MAX
	.word	.LC6
	.word	R_OK
	.word	.LC0
	.word	verbose
	.word	bsd
	.word	.LC3
	.word	stdout
	.word	493
	.word	.LC5
	.word	stderr
	.word	.LC1
	.word	errno
	.word	.LC4
	.word	.LC2
	.size	copy_category, .-copy_category
	.comm	verbose,4,4
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	errno,4,4
	.comm	bsd,4,4
	.comm	R_OK,4,4
	.comm	PATH_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
