	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaZ_lookahead                 ## -- Begin function luaZ_lookahead
	.p2align	4, 0x90
_luaZ_lookahead:                        ## @luaZ_lookahead
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_luaZ_fill
	movq	_EOZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	incq	(%rbx)
	movq	8(%rbx), %rax
	addq	$-4, %rax
	movq	%rax, 8(%rbx)
LBB0_4:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_char2int                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EOZ,8,3                        ## @EOZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaZ_lookahead                 ; -- Begin function luaZ_lookahead
	.p2align	2
_luaZ_lookahead:                        ; @luaZ_lookahead
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_luaZ_fill
Lloh0:
	adrp	x8, _EOZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldp	x8, x9, [x19]
	add	x10, x8, #1
	sub	x8, x9, #4
	stp	x10, x8, [x19]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_char2int
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EOZ,8,3                        ; @EOZ
.subsections_via_symbols
