	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function str_upper
_str_upper:                             ## @str_upper
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdx
	movl	$1, %esi
	callq	_luaL_checklstring
	movq	%rax, %r15
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_luaL_buffinit
	cmpq	$0, -40(%rbp)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-28(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15,%rbx), %edi
	callq	_uchar
	movl	%eax, %edi
	callq	_toupper
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_luaL_addchar
	incq	%rbx
	cmpq	-40(%rbp), %rbx
	jb	LBB0_2
LBB0_3:
	leaq	-28(%rbp), %rdi
	callq	_luaL_pushresult
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_str_upper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str_upper
_str_upper:                             ; @str_upper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	add	x2, sp, #8
	mov	w1, #1
	bl	_luaL_checklstring
	mov	x19, x0
	add	x1, sp, #4
	mov	x0, x20
	bl	_luaL_buffinit
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x19, x20]
	bl	_uchar
	bl	_toupper
	mov	x1, x0
	add	x0, sp, #4
	bl	_luaL_addchar
	add	x20, x20, #1
	ldr	x8, [sp, #8]
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	add	x0, sp, #4
	bl	_luaL_pushresult
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_str_upper
.subsections_via_symbols
