	.file	"extr_ldblib.c_hookf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"lS"
	.text
	.p2align 4
	.type	hookf, @function
hookf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	lea	rsi, KEY_HOOK[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	lua_pushlightuserdata@PLT
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	mov	rdi, rbp
	call	lua_rawget@PLT
	mov	rsi, rbp
	mov	rdi, rbp
	call	lua_pushlightuserdata@PLT
	mov	esi, -2
	mov	rdi, rbp
	call	lua_rawget@PLT
	mov	esi, -1
	mov	rdi, rbp
	call	lua_isfunction@PLT
	test	rax, rax
	jne	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movsx	rdx, DWORD PTR 8[r12]
	lea	rax, hooknames.1954[rip]
	mov	rdi, rbp
	mov	rsi, QWORD PTR [rax+rdx*8]
	call	lua_pushstring@PLT
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	test	esi, esi
	js	.L3
	call	lua_pushinteger@PLT
.L4:
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	lua_getinfo@PLT
	mov	edi, eax
	call	lua_assert@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	edx, edx
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	esi, 2
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	lua_call@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	lua_pushnil@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	hookf, .-hookf
	.section	.rodata.str1.1
.LC1:
	.string	"call"
.LC2:
	.string	"return"
.LC3:
	.string	"line"
.LC4:
	.string	"count"
.LC5:
	.string	"tail return"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	hooknames.1954, @object
	.size	hooknames.1954, 40
hooknames.1954:
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.comm	LUA_REGISTRYINDEX,4,4
	.comm	KEY_HOOK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ldblib.c_hookf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lS\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hookf, %function
hookf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r1, .L7
	bl	lua_pushlightuserdata
	ldr	r3, .L7+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	lua_rawget
	mov	r1, r4
	mov	r0, r4
	bl	lua_pushlightuserdata
	mvn	r1, #1
	mov	r0, r4
	bl	lua_rawget
	mov	r0, r4
	mvn	r1, #0
	bl	lua_isfunction
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L7+8
	ldr	r2, [r5, #4]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	bl	lua_pushstring
	ldr	r1, [r5]
	mov	r0, r4
	cmp	r1, #0
	blt	.L3
	bl	lua_pushinteger
.L4:
	mov	r2, r5
	ldr	r1, .L7+12
	mov	r0, r4
	bl	lua_getinfo
	bl	lua_assert
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r2, #0
	mov	r1, #2
	b	lua_call
.L3:
	bl	lua_pushnil
	b	.L4
.L8:
	.align	2
.L7:
	.word	KEY_HOOK
	.word	LUA_REGISTRYINDEX
	.word	.LANCHOR0
	.word	.LC0
	.size	hookf, .-hookf
	.section	.rodata.str1.4
	.align	2
.LC1:
	.ascii	"call\000"
	.align	2
.LC2:
	.ascii	"return\000"
	.align	2
.LC3:
	.ascii	"line\000"
	.align	2
.LC4:
	.ascii	"count\000"
	.align	2
.LC5:
	.ascii	"tail return\000"
	.comm	LUA_REGISTRYINDEX,4,4
	.comm	KEY_HOOK,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	hooknames.4238, %object
	.size	hooknames.4238, 20
hooknames.4238:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
