	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function str_dump
_str_dump:                              ## @str_dump
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$2, %esi
	callq	_lua_toboolean
	movl	%eax, %r15d
	movq	_LUA_TFUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_luaL_checktype
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_settop
	leaq	-36(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_luaL_buffinit
	movq	_writer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_lua_dump
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_luaL_error
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_2:
	leaq	-36(%rbp), %rdi
	callq	_luaL_pushresult
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_TFUNCTION,4,2              ## @LUA_TFUNCTION
	.comm	_writer,4,2                     ## @writer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to dump given function"

	.no_dead_strip	_str_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str_dump
_str_dump:                              ; @str_dump
	.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	x19, x0
	mov	w1, #2
	bl	_lua_toboolean
	mov	x20, x0
Lloh0:
	adrp	x8, _LUA_TFUNCTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_TFUNCTION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_luaL_checktype
	mov	x0, x19
	mov	w1, #1
	bl	_lua_settop
	add	x1, sp, #12
	mov	x0, x19
	bl	_luaL_buffinit
Lloh3:
	adrp	x8, _writer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _writer@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x20
	bl	_lua_dump
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_luaL_error
	b	LBB0_3
LBB0_2:
	add	x0, sp, #12
	bl	_luaL_pushresult
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_TFUNCTION,4,2              ; @LUA_TFUNCTION
	.comm	_writer,4,2                     ; @writer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to dump given function"

	.no_dead_strip	_str_dump
.subsections_via_symbols
