	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaU_undump                    ## -- Begin function luaU_undump
	.p2align	4, 0x90
_luaU_undump:                           ## @luaU_undump
	.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
	movb	(%rdx), %al
	cmpb	$64, %al
	je	LBB0_2
## %bb.1:
	cmpb	$61, %al
	jne	LBB0_4
LBB0_2:
	incq	%rdx
	jmp	LBB0_3
LBB0_4:
	movq	_LUA_SIGNATURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_3
## %bb.5:
	leaq	L_.str(%rip), %rax
	movq	%rax, -48(%rbp)
	jmp	LBB0_6
LBB0_3:
	movq	%rdx, -48(%rbp)
LBB0_6:
	movq	%r14, -32(%rbp)
	movq	%rsi, -40(%rbp)
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_checkHeader
	movq	%r15, %rdi
	callq	_LoadByte
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_luaF_newLclosure
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_setclLvalue
	movq	%r14, %rdi
	callq	_luaD_inctop
	movq	%r14, %rdi
	callq	_luaF_newproto
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_LoadFunction
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_lua_assert
	movq	_buff@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movq	%r14, %rdi
	callq	_luai_verifycode
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_SIGNATURE,8,3              ## @LUA_SIGNATURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"binary string"

	.comm	_buff,4,2                       ## @buff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaU_undump                    ; -- Begin function luaU_undump
	.p2align	2
_luaU_undump:                           ; @luaU_undump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldrb	w8, [x2]
	cmp	w8, #64
	b.eq	LBB0_2
; %bb.1:
	cmp	w8, #61
	b.ne	LBB0_3
LBB0_2:
	add	x8, x2, #1
	str	x8, [sp, #8]
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x9, _LUA_SIGNATURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LUA_SIGNATURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
	b	LBB0_6
LBB0_5:
	str	x2, [sp, #8]
LBB0_6:
	stp	x1, x19, [sp, #16]
	add	x0, sp, #8
	bl	_checkHeader
	add	x0, sp, #8
	bl	_LoadByte
	mov	x1, x0
	mov	x0, x19
	bl	_luaF_newLclosure
	mov	x20, x0
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, x20
	bl	_setclLvalue
	mov	x0, x19
	bl	_luaD_inctop
	mov	x0, x19
	bl	_luaF_newproto
	mov	x1, x0
	str	x0, [x20, #8]
	add	x0, sp, #8
	mov	x2, #0
	bl	_LoadFunction
	ldp	x8, x9, [x20]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_lua_assert
Lloh5:
	adrp	x8, _buff@GOTPAGE
Lloh6:
	ldr	x8, [x8, _buff@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	mov	x0, x19
	bl	_luai_verifycode
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_SIGNATURE,8,3              ; @LUA_SIGNATURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"binary string"

	.comm	_buff,4,2                       ; @buff
.subsections_via_symbols
