	.file	"extr_string.c_test__strlwr_s.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Expected _strlwr_s to return EINVAL, got %d\n"
	.align 8
.LC1:
	.string	"Expected errno to be EINVAL, got %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"GoRrIsTeR"
	.section	.rodata
.LC3:
	.string	""
	.string	"oRrIsTeR"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Expected the output buffer to be \"\\0oRrIsTeR\"\n"
	.align 8
.LC5:
	.string	"Expected _strlwr_s to return 0, got %d\n"
	.section	.rodata.str1.1
.LC6:
	.string	"gorrister"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Expected the output buffer to be \"gorrister\", got \"%s\"\n"
	.section	.rodata
.LC8:
	.string	"GoRrIsTeR"
	.string	"ELLEN"
.LC9:
	.string	"gorrister"
	.string	"ELLEN"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.string	"Expected the output buffer to be \"gorrister\\0ELLEN\", got \"%s\"\n"
	.text
	.p2align 4
	.type	test__strlwr_s, @function
test__strlwr_s:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	xor	edi, edi
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR EBADF[rip]
	mov	r12, rsp
	mov	QWORD PTR errno[rip], rax
	call	p_strlwr_s@PLT
	xor	edi, edi
	cmp	QWORD PTR EINVAL[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdx, QWORD PTR errno[rip]
	xor	edi, edi
	cmp	QWORD PTR EINVAL[rip], rdx
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR EBADF[rip]
	xor	edi, edi
	mov	esi, 20
	mov	QWORD PTR errno[rip], rax
	call	p_strlwr_s@PLT
	xor	edi, edi
	cmp	QWORD PTR EINVAL[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdx, QWORD PTR errno[rip]
	xor	edi, edi
	cmp	QWORD PTR EINVAL[rip], rdx
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR EBADF[rip]
	xor	esi, esi
	mov	rdi, r12
	mov	QWORD PTR errno[rip], rax
	call	p_strlwr_s@PLT
	xor	edi, edi
	cmp	QWORD PTR EINVAL[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdx, QWORD PTR errno[rip]
	xor	edi, edi
	cmp	QWORD PTR EINVAL[rip], rdx
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	strcpy@PLT
	mov	rax, QWORD PTR EBADF[rip]
	mov	esi, 5
	mov	rdi, r12
	mov	QWORD PTR errno[rip], rax
	call	p_strlwr_s@PLT
	xor	edi, edi
	cmp	QWORD PTR EINVAL[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdx, QWORD PTR errno[rip]
	xor	edi, edi
	cmp	QWORD PTR EINVAL[rip], rdx
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	edx, 10
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	call	memcmp@PLT
	xor	edi, edi
	lea	rsi, .LC4[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	strcpy@PLT
	mov	rax, QWORD PTR EBADF[rip]
	mov	esi, 9
	mov	rdi, r12
	mov	QWORD PTR errno[rip], rax
	call	p_strlwr_s@PLT
	xor	edi, edi
	cmp	QWORD PTR EINVAL[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	mov	rdx, QWORD PTR errno[rip]
	xor	edi, edi
	cmp	QWORD PTR EINVAL[rip], rdx
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	edx, 10
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	call	memcmp@PLT
	xor	edi, edi
	lea	rsi, .LC4[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	strcpy@PLT
	mov	esi, 10
	mov	rdi, r12
	call	p_strlwr_s@PLT
	xor	edi, edi
	lea	rsi, .LC5[rip]
	test	rax, rax
	mov	rdx, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	movabs	rax, 7310594991858020199
	cmp	QWORD PTR [rsp], rax
	je	.L7
.L2:
	mov	edi, 1
.L3:
	xor	edi, 1
	mov	rdx, r12
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	ok@PLT
	mov	edx, 16
	lea	rsi, .LC8[rip]
	mov	rdi, r12
	call	memcpy@PLT
	mov	esi, 20
	mov	rdi, r12
	call	p_strlwr_s@PLT
	xor	edi, edi
	lea	rsi, .LC5[rip]
	test	rax, rax
	mov	rdx, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, 16
	lea	rsi, .LC9[rip]
	mov	rdi, r12
	call	memcmp@PLT
	xor	edi, edi
	mov	rdx, r12
	lea	rsi, .LC10[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	edi, edi
	cmp	WORD PTR 8[rsp], 114
	jne	.L2
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test__strlwr_s, .-test__strlwr_s
	.comm	errno,8,8
	.comm	EINVAL,8,8
	.comm	EBADF,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_string.c_test__strlwr_s.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Expected _strlwr_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	"GoRrIsTeR\000"
	.align	2
.LC3:
	.ascii	"Expected the output buffer to be \"\\0oRrIsTeR\"\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"Expected _strlwr_s to return 0, got %d\012\000"
	.align	2
.LC5:
	.ascii	"gorrister\000"
	.align	2
.LC6:
	.ascii	"Expected the output buffer to be \"gorrister\", got"
	.ascii	" \"%s\"\012\000"
	.align	2
.LC9:
	.ascii	"Expected the output buffer to be \"gorrister\\0ELLE"
	.ascii	"N\", got \"%s\"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test__strlwr_s, %function
test__strlwr_s:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, #0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r9, .L8
	ldr	r6, .L8+4
	ldr	r3, [r9]
	ldr	r2, .L8+8
	sub	sp, sp, #28
	mov	r0, r1
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	str	r3, [r6]
	bl	p_strlwr_s
	mov	r2, r0
	ldr	r5, .L8+12
	ldr	r1, .L8+16
	ldr	r0, [r5]
	mov	r4, sp
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r6]
	ldr	r0, [r5]
	ldr	r1, .L8+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, [r9]
	mov	r1, #20
	mov	r0, #0
	str	r3, [r6]
	bl	p_strlwr_s
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L8+16
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r6]
	ldr	r0, [r5]
	ldr	r1, .L8+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, [r9]
	mov	r1, #0
	mov	r0, r4
	str	r3, [r6]
	bl	p_strlwr_s
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L8+16
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r6]
	ldr	r0, [r5]
	mov	r8, r4
	sub	r0, r0, r2
	clz	r0, r0
	ldr	r7, .L8+24
	ldr	r1, .L8+20
	lsr	r0, r0, #5
	bl	ok
	ldm	r7, {r0, r1, r2}
	stmia	r8!, {r0, r1}
	ldr	r3, [r9]
	mov	r1, #5
	strh	r2, [r8]	@ movhi
	mov	r0, r4
	str	r3, [r6]
	bl	p_strlwr_s
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L8+16
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r6]
	ldr	r0, [r5]
	ldr	r1, .L8+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldrb	r0, [sp]	@ zero_extendqisi2
	ldr	r1, .L8+28
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldm	r7, {r0, r1, r2}
	mov	r3, r4
	ldr	ip, [r9]
	stmia	r3!, {r0, r1}
	mov	r1, #9
	strh	r2, [r8]	@ movhi
	mov	r0, r4
	str	ip, [r6]
	bl	p_strlwr_s
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L8+16
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r6]
	ldr	r0, [r5]
	ldr	r1, .L8+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldrb	r0, [sp]	@ zero_extendqisi2
	ldr	r1, .L8+28
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldm	r7, {r0, r1, r2}
	mov	r3, r4
	stmia	r3!, {r0, r1}
	mov	r1, #10
	strh	r2, [r8]	@ movhi
	mov	r0, r4
	bl	p_strlwr_s
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L8+32
	lsr	r0, r0, #5
	bl	ok
	ldr	r1, .L8+36
	mov	r0, r4
	bl	strcmp
	clz	r0, r0
	ldr	r5, .L8+40
	mov	r2, r4
	ldr	r1, .L8+44
	lsr	r0, r0, #5
	bl	ok
	ldm	r5, {r0, r1, r2, r3}
	stm	r4, {r0, r1, r2, r3}
	mov	r1, #20
	mov	r0, r4
	bl	p_strlwr_s
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L8+32
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #16
	add	r1, r5, #16
	mov	r0, r4
	bl	memcmp
	clz	r0, r0
	mov	r2, r4
	ldr	r1, .L8+48
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L8+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	EBADF
	.word	errno
	.word	.LC10
	.word	EINVAL
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LANCHOR0
	.word	.LC6
	.word	.LC9
	.size	test__strlwr_s, .-test__strlwr_s
	.comm	errno,4,4
	.comm	EINVAL,4,4
	.comm	EBADF,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC7:
	.ascii	"GoRrIsTeR\000ELLEN\000"
.LC8:
	.ascii	"gorrister\000ELLEN\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
