	.file	"extr_lstrlib.c_str_upper.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	str_upper, @function
str_upper:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 1
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdx, 16[rsp]
	lea	rbp, 12[rsp]
	call	luaL_checklstring@PLT
	mov	rsi, rbp
	mov	rdi, r13
	mov	r12, rax
	call	luaL_buffinit@PLT
	cmp	QWORD PTR 16[rsp], 0
	je	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movsx	edi, BYTE PTR [r12+rbx]
	add	rbx, 1
	call	uchar@PLT
	mov	edi, eax
	call	toupper@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	luaL_addchar@PLT
	cmp	QWORD PTR 16[rsp], rbx
	ja	.L3
.L2:
	mov	rdi, rbp
	call	luaL_pushresult@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	str_upper, .-str_upper
	.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_lstrlib.c_str_upper.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_upper, %function
str_upper:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #16
	mov	r1, #1
	add	r2, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	bl	luaL_checklstring
	add	r1, sp, #8
	mov	r6, r0
	mov	r0, r4
	bl	luaL_buffinit
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L2
	sub	r5, r6, #1
.L3:
	mov	r4, r5
	ldrb	r0, [r5, #1]!	@ zero_extendqisi2
	bl	uchar
	bl	toupper
	mov	r1, r0
	add	r0, sp, #8
	bl	luaL_addchar
	add	r4, r4, #2
	ldr	r3, [sp, #4]
	sub	r4, r4, r6
	cmp	r3, r4
	bhi	.L3
.L2:
	add	r0, sp, #8
	bl	luaL_pushresult
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, #1
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	str_upper, .-str_upper
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
