	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l_str2int
_l_str2int:                             ## @l_str2int
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)
	movsbl	(%rdi), %edi
	callq	_cast_uchar
	movl	%eax, %edi
	callq	_lisspace
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_cast_uchar
	movl	%eax, %edi
	callq	_lisspace
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_isneg
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax
	movb	(%rax), %cl
	cmpb	$48, %cl
	jne	LBB0_9
## %bb.4:
	movb	1(%rax), %dl
	orb	$32, %dl
	cmpb	$120, %dl
	jne	LBB0_9
## %bb.5:
	leaq	2(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movsbl	2(%rax), %edi
	callq	_cast_uchar
	movl	%eax, %edi
	callq	_lisxdigit
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %ebx
	shll	$4, %ebx
	movq	-48(%rbp), %rax
	movsbl	(%rax), %edi
	callq	_luaO_hexavalue
	movl	%eax, %r15d
	addl	%ebx, %r15d
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movsbl	1(%rax), %edi
	callq	_cast_uchar
	movl	%eax, %edi
	callq	_lisxdigit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movb	$1, %r12b
	jmp	LBB0_17
LBB0_9:
	movsbl	%cl, %edi
	callq	_cast_uchar
	movl	%eax, %edi
	callq	_lisdigit
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%r14, %rbx
	xorl	%r12d, %r12d
	movq	_MAXBY10@GOTPCREL(%rip), %r13
	movq	_MAXLASTD@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	leal	(%r15,%r15,4), %edx
	leal	(%rcx,%rdx,2), %r15d
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movsbl	1(%rax), %edi
	callq	_cast_uchar
	movl	%eax, %edi
	callq	_lisdigit
	testq	%rax, %rax
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movsbl	(%rax), %ecx
	addl	$-48, %ecx
	cmpl	(%r13), %r15d
	jl	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	jg	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r14), %edx
	addl	-52(%rbp), %edx                 ## 4-byte Folded Reload
	cmpl	%edx, %ecx
	jle	LBB0_11
	jmp	LBB0_25
LBB0_15:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_16:
	movb	$1, %r12b
	movq	%rbx, %r14
LBB0_17:
	movq	-48(%rbp), %rax
	movsbl	(%rax), %edi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	callq	_cast_uchar
	movl	%eax, %edi
	callq	_lisspace
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movsbl	1(%rax), %edi
	jmp	LBB0_18
LBB0_20:
	testb	%r12b, %r12b
	je	LBB0_23
## %bb.21:
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_24
LBB0_23:
	xorl	%r12d, %r12d
	jmp	LBB0_25
LBB0_24:
	movl	%r15d, %edi
	negl	%edi
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	cmovel	%r15d, %edi
	callq	_l_castU2S
	movl	%eax, (%r14)
	movq	-48(%rbp), %r12
LBB0_25:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXBY10,4,2                    ## @MAXBY10
	.comm	_MAXLASTD,4,2                   ## @MAXLASTD
	.no_dead_strip	_l_str2int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l_str2int
_l_str2int:                             ; @l_str2int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	str	x0, [sp, #8]
	ldrsb	w0, [x0]
	bl	_cast_uchar
	bl	_lisspace
	cbz	x0, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, #1]!
	bl	_cast_uchar
	bl	_lisspace
	cbnz	x0, LBB0_1
; %bb.2:
	str	x20, [sp, #8]
LBB0_3:
	add	x0, sp, #8
	bl	_isneg
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	cmp	w9, #48
	b.ne	LBB0_9
; %bb.4:
	ldrb	w10, [x8, #1]
	orr	w10, w10, #0x20
	cmp	w10, #120
	b.ne	LBB0_9
; %bb.5:
	add	x9, x8, #2
	str	x9, [sp, #8]
	ldrsb	w0, [x8, #2]
	bl	_cast_uchar
	bl	_lisxdigit
	cbz	x0, LBB0_15
; %bb.6:
	mov	w21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldrsb	w0, [x8]
	bl	_luaO_hexavalue
	add	w21, w0, w21, lsl #4
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	ldrsb	w0, [x8, #1]
	bl	_cast_uchar
	bl	_lisxdigit
	cbnz	x0, LBB0_7
LBB0_8:
	mov	w22, #1
	b	LBB0_16
LBB0_9:
	sxtb	w0, w9
	bl	_cast_uchar
	bl	_lisdigit
	cbz	x0, LBB0_15
; %bb.10:
	mov	w21, #0
Lloh0:
	adrp	x22, _MAXBY10@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAXBY10@GOTPAGEOFF]
	mov	w23, #10
Lloh2:
	adrp	x24, _MAXLASTD@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAXLASTD@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	madd	w21, w21, w23, w9
	add	x9, x8, #1
	str	x9, [sp, #8]
	ldrsb	w0, [x8, #1]
	bl	_cast_uchar
	bl	_lisdigit
	cbz	x0, LBB0_8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldrsb	w9, [x8]
	sub	w9, w9, #48
	ldr	w10, [x22]
	cmp	w21, w10
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	b.gt	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w10, [x24]
	add	w10, w10, w20
	cmp	w9, w10
	b.le	LBB0_11
	b	LBB0_21
LBB0_15:
	mov	w22, #0
	mov	w21, #0
LBB0_16:
	ldr	x8, [sp, #8]
	ldrsb	w0, [x8]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	bl	_cast_uchar
	bl	_lisspace
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	ldrsb	w0, [x8, #1]
	b	LBB0_17
LBB0_19:
	cbz	w22, LBB0_21
; %bb.20:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_23
LBB0_21:
	mov	x0, #0
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_23:
	cmp	w20, #0
	cneg	w0, w21, ne
	bl	_l_castU2S
	str	w0, [x19]
	ldr	x0, [sp, #8]
	b	LBB0_22
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXBY10,4,2                    ; @MAXBY10
	.comm	_MAXLASTD,4,2                   ; @MAXLASTD
	.no_dead_strip	_l_str2int
.subsections_via_symbols
