	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function range_l
_range_l:                               ## @range_l
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_lua_gettop
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_newcharset
	movq	%rax, %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.1:
	movl	$1, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r13), %eax
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movl	%eax, %r13d
	je	LBB0_5
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	-56(%rbp), %rdx
	callq	_luaL_checklstring
	movq	%rax, %r12
	xorl	%esi, %esi
	cmpq	$2, -56(%rbp)
	sete	%sil
	movq	%r15, %rdi
	movl	%r13d, %edx
	leaq	L_.str(%rip), %rcx
	callq	_luaL_argcheck
	movsbl	(%r12), %r14d
	cmpb	1(%r12), %r14b
	jg	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%rbx), %edi
	movl	%r14d, %esi
	callq	_setchar
	leal	1(%r14), %eax
	movsbl	1(%r12), %ecx
	cmpl	%ecx, %r14d
	movl	%eax, %r14d
	jl	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_correctset
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"range must have two characters"

	.no_dead_strip	_range_l
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function range_l
_range_l:                               ; @range_l
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_lua_gettop
	mov	x20, x0
	mov	x0, x19
	bl	_newcharset
	mov	x21, x0
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w22, #1
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w22, #1
	cmp	w22, w20
	mov	x22, x8
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x22
	bl	_luaL_checklstring
	mov	x24, x0
	ldr	x8, [sp, #8]
	cmp	x8, #2
	cset	w1, eq
	mov	x0, x19
	mov	x2, x22
	mov	x3, x23
	bl	_luaL_argcheck
	ldrsb	w25, [x24]
	ldrsb	w8, [x24, #1]
	cmp	w25, w8
	b.gt	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21, #4]
	mov	x1, x25
	bl	_setchar
	add	w8, w25, #1
	ldrsb	w9, [x24, #1]
	cmp	w25, w9
	mov	x25, x8
	b.lt	LBB0_4
	b	LBB0_2
LBB0_5:
	mov	x0, x21
	bl	_correctset
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"range must have two characters"

	.no_dead_strip	_range_l
.subsections_via_symbols
