	.file	"extr_xlua.c_call_ret_hook.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"n"
.LC1:
	.string	"return"
.LC2:
	.string	"[?%s]"
.LC3:
	.string	"[C#]"
	.text
	.p2align 4
	.type	call_ret_hook, @function
call_ret_hook:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	lua_gethook@PLT
	test	rax, rax
	jne	.L11
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.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
.L11:
	.cfi_restore_state
	lea	r12, 4[rsp]
	xor	esi, esi
	mov	rdi, rbp
	mov	rdx, r12
	call	lua_getstack@PLT
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	lua_getinfo@PLT
	lea	rsi, hook_index[rip]
	mov	rdi, rbp
	call	lua_pushlightuserdata@PLT
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	mov	rdi, rbp
	call	lua_rawget@PLT
	mov	esi, -1
	mov	rdi, rbp
	call	lua_type@PLT
	cmp	rax, QWORD PTR LUA_TFUNCTION[rip]
	je	.L3
	mov	esi, 1
	mov	rdi, rbp
	call	lua_pop@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	lua_pushliteral@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	call	lua_pushfstring@PLT
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	call	lua_pushliteral@PLT
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	lua_sethook@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, 3
	call	lua_call@PLT
	mov	esi, DWORD PTR hook[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	edx, DWORD PTR LUA_MASKCALL[rip]
	or	edx, DWORD PTR LUA_MASKRET[rip]
	call	lua_sethook@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	call_ret_hook, .-call_ret_hook
	.comm	hook_index,4,4
	.comm	hook,4,4
	.comm	LUA_TFUNCTION,8,8
	.comm	LUA_REGISTRYINDEX,4,4
	.comm	LUA_MASKRET,4,4
	.comm	LUA_MASKCALL,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_xlua.c_call_ret_hook.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"n\000"
	.align	2
.LC1:
	.ascii	"return\000"
	.align	2
.LC2:
	.ascii	"[?%s]\000"
	.align	2
.LC3:
	.ascii	"[C#]\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	call_ret_hook, %function
call_ret_hook:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L13
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	bl	lua_gethook
	cmp	r0, #0
	bne	.L11
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L11:
	mov	r2, sp
	mov	r1, #0
	mov	r0, r4
	bl	lua_getstack
	mov	r2, sp
	ldr	r1, .L13+4
	mov	r0, r4
	bl	lua_getinfo
	ldr	r1, .L13+8
	mov	r0, r4
	bl	lua_pushlightuserdata
	ldr	r3, .L13+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	lua_rawget
	mvn	r1, #0
	mov	r0, r4
	bl	lua_type
	ldr	r3, .L13+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L3
	mov	r0, r4
	mov	r1, #1
	bl	lua_pop
	b	.L1
.L3:
	mov	r0, r4
	ldr	r1, .L13+20
	bl	lua_pushliteral
	ldr	r2, [sp]
	mov	r0, r4
	ldr	r1, .L13+24
	bl	lua_pushfstring
	mov	r0, r4
	ldr	r1, .L13+28
	bl	lua_pushliteral
	mov	r3, #0
	mov	r0, r4
	mov	r2, r3
	mov	r1, r3
	bl	lua_sethook
	mov	r2, #0
	mov	r1, #3
	mov	r0, r4
	bl	lua_call
	ldr	r2, .L13+32
	ldr	r3, .L13+36
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L13+40
	orr	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r3]
	mov	r3, #0
	bl	lua_sethook
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	.LC0
	.word	hook_index
	.word	LUA_REGISTRYINDEX
	.word	LUA_TFUNCTION
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	LUA_MASKCALL
	.word	LUA_MASKRET
	.word	hook
	.size	call_ret_hook, .-call_ret_hook
	.comm	hook_index,4,4
	.comm	hook,4,4
	.comm	LUA_TFUNCTION,4,4
	.comm	LUA_REGISTRYINDEX,4,4
	.comm	LUA_MASKRET,4,4
	.comm	LUA_MASKCALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
