	.file	"extr_compat.c_strerror_r.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unknown error %d"
	.text
	.p2align 4
	.globl	strerror_r
	.type	strerror_r, @function
strerror_r:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ecx, edi
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_offset 12, -32
	mov	r12, rsi
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR ERRSTR_LEN[rip]
	mov	rdi, rsp
	mov	rsi, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L17
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L18
.L4:
	test	r12, r12
	je	.L11
	test	r13, r13
	je	.L11
	sub	esi, 1
	xor	eax, eax
	lea	rdx, .LC0[rip]
	mov	rdi, rsp
	movsx	rsi, esi
	call	snprintf@PLT
	test	rax, rax
	js	.L19
	xor	eax, eax
	mov	rdx, rsp
	mov	rsi, r13
	mov	rdi, r12
	call	snprintf@PLT
	test	rax, rax
	mov	eax, 0
	cmovs	eax, DWORD PTR EINVAL[rip]
.L7:
.L1:
	mov	rcx, QWORD PTR -24[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L20
	lea	rsp, -16[rbp]
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR ERANGE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR EINVAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	strerror_r, .-strerror_r
	.comm	ERRSTR_LEN,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,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_compat.c_strerror_r.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unknown error %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	strerror_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	strerror_r, %function
strerror_r:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	clz	r3, r2
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	cmp	r1, #0
	lsr	r3, r3, #5
	movne	r6, r3
	moveq	r6, #1
	ldr	r3, .L9
	cmp	r6, #0
	ldr	lr, [r3]
	ldr	r3, .L9+4
	add	ip, lr, #7
	bic	ip, ip, #7
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	sp, sp, ip
	beq	.L2
	ldr	r3, .L9+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L2:
.L3:
	mov	r4, r1
	mov	r5, r2
	mov	r3, r0
	sub	r1, lr, #1
	ldr	r2, .L9+12
	mov	r0, sp
	bl	snprintf
	mov	r2, sp
	mov	r1, r5
	mov	r0, r4
	bl	snprintf
	cmp	r0, #0
	ldrlt	r3, .L9+16
	movge	r0, r6
	ldrlt	r0, [r3]
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	ERRSTR_LEN
	.word	.LC1
	.word	ERANGE
	.word	.LC0
	.word	EINVAL
	.size	strerror_r, .-strerror_r
	.comm	ERRSTR_LEN,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
