	.file	"extr_misc.c_test_strerror_s.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Expected strerror_s to return EINVAL, got %d\n"
	.align 8
.LC1:
	.string	"Expected errno to be EINVAL, got %d\n"
	.align 8
.LC2:
	.string	"Expected output buffer to be untouched\n"
	.align 8
.LC3:
	.string	"Expected strerror_s to return 0, got %d\n"
	.align 8
.LC4:
	.string	"Expected output buffer to be null terminated\n"
	.align 8
.LC5:
	.string	"Expected output buffer to be truncated\n"
	.text
	.p2align 4
	.type	test_strerror_s, @function
test_strerror_s:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	edx, edx
	xor	esi, esi
	xor	edi, edi
	sub	rsp, 272
	.cfi_def_cfa_offset 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 264[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR EBADF[rip]
	mov	rbp, rsp
	mov	DWORD PTR errno[rip], eax
	call	pstrerror_s@PLT
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], eax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	edx, eax
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR errno[rip]
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], edx
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	eax, DWORD PTR EBADF[rip]
	xor	edx, edx
	xor	edi, edi
	mov	esi, 256
	mov	DWORD PTR errno[rip], eax
	call	pstrerror_s@PLT
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], eax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	edx, eax
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR errno[rip]
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], edx
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	edx, 256
	mov	esi, 88
	mov	rdi, rbp
	call	memset@PLT
	mov	eax, DWORD PTR EBADF[rip]
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	mov	DWORD PTR errno[rip], eax
	call	pstrerror_s@PLT
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], eax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	edx, eax
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR errno[rip]
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], edx
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	xor	edi, edi
	cmp	BYTE PTR [rsp], 88
	lea	rsi, .LC2[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, 256
	mov	esi, 88
	mov	rdi, rbp
	call	memset@PLT
	xor	edx, edx
	mov	esi, 1
	mov	rdi, rbp
	call	pstrerror_s@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, rbp
	call	strlen@PLT
	xor	edi, edi
	lea	rsi, .LC4[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, 256
	mov	esi, 88
	mov	rdi, rbp
	call	memset@PLT
	xor	edx, edx
	mov	esi, 2
	mov	rdi, rbp
	call	pstrerror_s@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, rbp
	call	strlen@PLT
	xor	edi, edi
	lea	rsi, .LC5[rip]
	cmp	eax, 1
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, 256
	mov	esi, 88
	mov	rdi, rbp
	call	memset@PLT
	xor	edx, edx
	mov	esi, 256
	mov	rdi, rbp
	call	pstrerror_s@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, 256
	mov	esi, 88
	mov	rdi, rbp
	call	memset@PLT
	mov	edx, -1
	mov	esi, 256
	mov	rdi, rbp
	call	pstrerror_s@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR 264[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 272
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_strerror_s, .-test_strerror_s
	.comm	errno,4,4
	.comm	EINVAL,4,4
	.comm	EBADF,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_misc.c_test_strerror_s.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Expected strerror_s to return EINVAL, got %d\012\000"
	.align	2
.LC1:
	.ascii	"Expected errno to be EINVAL, got %d\012\000"
	.align	2
.LC2:
	.ascii	"Expected output buffer to be untouched\012\000"
	.align	2
.LC3:
	.ascii	"Expected strerror_s to return 0, got %d\012\000"
	.align	2
.LC4:
	.ascii	"Expected output buffer to be null terminated\012\000"
	.align	2
.LC5:
	.ascii	"Expected output buffer to be truncated\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_strerror_s, %function
test_strerror_s:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r4, r5, r6, lr}
	ldr	r6, .L6
	ldr	ip, .L6+4
	ldr	r5, .L6+8
	ldr	r3, [r6]
	sub	sp, sp, #264
	mov	r1, r2
	mov	r0, r2
	ldr	ip, [ip]
	str	ip, [sp, #260]
	mov	ip,#0
	str	r3, [r5]
	bl	pstrerror_s
	mov	r2, r0
	ldr	r4, .L6+12
	ldr	r1, .L6+16
	ldr	r0, [r4]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5]
	ldr	r0, [r4]
	ldr	r1, .L6+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #0
	ldr	r3, [r6]
	mov	r0, r2
	mov	r1, #256
	str	r3, [r5]
	bl	pstrerror_s
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L6+16
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5]
	ldr	r0, [r4]
	ldr	r1, .L6+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #256
	mov	r1, #88
	add	r0, sp, #4
	bl	memset
	mov	r2, #0
	ldr	r3, [r6]
	mov	r1, r2
	add	r0, sp, #4
	str	r3, [r5]
	bl	pstrerror_s
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L6+16
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5]
	ldr	r0, [r4]
	ldr	r1, .L6+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldrb	r0, [sp, #4]	@ zero_extendqisi2
	ldr	r1, .L6+24
	sub	r0, r0, #88
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #256
	mov	r1, #88
	add	r0, sp, #4
	bl	memset
	mov	r2, #0
	mov	r1, #1
	add	r0, sp, #4
	bl	pstrerror_s
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L6+28
	lsr	r0, r0, #5
	bl	ok
	ldrb	r0, [sp, #4]	@ zero_extendqisi2
	ldr	r1, .L6+32
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #256
	mov	r1, #88
	add	r0, sp, #4
	bl	memset
	mov	r2, #0
	mov	r1, #2
	add	r0, sp, #4
	bl	pstrerror_s
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L6+28
	lsr	r0, r0, #5
	bl	ok
	add	r0, sp, #4
	bl	strlen
	sub	r0, r0, #1
	clz	r0, r0
	ldr	r1, .L6+36
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #256
	mov	r1, #88
	add	r0, sp, #4
	bl	memset
	mov	r2, #0
	mov	r1, #256
	add	r0, sp, #4
	bl	pstrerror_s
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L6+28
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #256
	mov	r1, #88
	add	r0, sp, #4
	bl	memset
	mvn	r2, #0
	mov	r1, #256
	add	r0, sp, #4
	bl	pstrerror_s
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L6+28
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L6+4
	ldr	r2, [r3]
	ldr	r3, [sp, #260]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #264
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	EBADF
	.word	.LC6
	.word	errno
	.word	EINVAL
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	test_strerror_s, .-test_strerror_s
	.comm	errno,4,4
	.comm	EINVAL,4,4
	.comm	EBADF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
