	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hookf
_hookf:                                 ## @hookf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_LUA_REGISTRYINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HOOKKEY@GOTPCREL(%rip), %rdx
	callq	_lua_rawgetp
	movq	%rbx, %rdi
	callq	_lua_pushthread
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_rawget
	movq	_LUA_TFUNCTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movslq	8(%r14), %rax
	leaq	_reltable.hookf(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	movq	%rbx, %rdi
	callq	_lua_pushstring
	movl	(%r14), %esi
	movq	%rbx, %rdi
	testl	%esi, %esi
	js	LBB0_3
## %bb.2:
	callq	_lua_pushinteger
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	callq	_lua_pushnil
LBB0_4:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_lua_getinfo
	movl	%eax, %edi
	callq	_lua_assert
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lua_call                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.hookf
_reltable.hookf:
	.long	L_.str-_reltable.hookf
	.long	L_.str.1-_reltable.hookf
	.long	L_.str.2-_reltable.hookf
	.long	L_.str.3-_reltable.hookf
	.long	L_.str.4-_reltable.hookf

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"call"

L_.str.1:                               ## @.str.1
	.asciz	"return"

L_.str.2:                               ## @.str.2
	.asciz	"line"

L_.str.3:                               ## @.str.3
	.asciz	"count"

L_.str.4:                               ## @.str.4
	.asciz	"tail call"

	.comm	_LUA_REGISTRYINDEX,4,2          ## @LUA_REGISTRYINDEX
	.comm	_HOOKKEY,4,2                    ## @HOOKKEY
	.comm	_LUA_TFUNCTION,8,3              ## @LUA_TFUNCTION
L_.str.5:                               ## @.str.5
	.asciz	"lS"

	.no_dead_strip	_hookf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hookf
_hookf:                                 ; @hookf
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LUA_REGISTRYINDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_REGISTRYINDEX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, _HOOKKEY@GOTPAGE
Lloh4:
	ldr	x2, [x2, _HOOKKEY@GOTPAGEOFF]
	bl	_lua_rawgetp
	mov	x0, x19
	bl	_lua_pushthread
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_rawget
Lloh5:
	adrp	x8, _LUA_TFUNCTION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LUA_TFUNCTION@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	sbfiz	x8, x8, #3, #32
Lloh8:
	adrp	x9, _hookf.hooknames@PAGE
Lloh9:
	add	x9, x9, _hookf.hooknames@PAGEOFF
	ldr	x1, [x9, x8]
	mov	x0, x19
	bl	_lua_pushstring
	ldr	w1, [x20]
	tbnz	w1, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_lua_pushinteger
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	bl	_lua_pushnil
LBB0_5:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_lua_getinfo
	bl	_lua_assert
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lua_call
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @hookf.hooknames
_hookf.hooknames:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"call"

l_.str.1:                               ; @.str.1
	.asciz	"return"

l_.str.2:                               ; @.str.2
	.asciz	"line"

l_.str.3:                               ; @.str.3
	.asciz	"count"

l_.str.4:                               ; @.str.4
	.asciz	"tail call"

	.comm	_LUA_REGISTRYINDEX,4,2          ; @LUA_REGISTRYINDEX
	.comm	_HOOKKEY,4,2                    ; @HOOKKEY
	.comm	_LUA_TFUNCTION,8,3              ; @LUA_TFUNCTION
l_.str.5:                               ; @.str.5
	.asciz	"lS"

	.no_dead_strip	_hookf
.subsections_via_symbols
