	.file	"extr_ldblib.c_db_sethook.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"k"
.LC1:
	.string	"__mode"
	.text
	.p2align 4
	.type	db_sethook, @function
db_sethook:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rsi, 4[rsp]
	call	getthread@PLT
	mov	rdi, rbp
	mov	r12, rax
	mov	eax, DWORD PTR 4[rsp]
	lea	esi, 1[rax]
	call	lua_isnoneornil@PLT
	test	rax, rax
	mov	eax, DWORD PTR 4[rsp]
	je	.L2
	lea	esi, 1[rax]
	mov	rdi, rbp
	xor	r14d, r14d
	xor	r15d, r15d
	call	lua_settop@PLT
	xor	r13d, r13d
.L3:
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	lea	rdx, HOOKKEY[rip]
	mov	rdi, rbp
	call	lua_rawgetp@PLT
	cmp	rax, QWORD PTR LUA_TNIL[rip]
	je	.L8
.L4:
	mov	edx, 1
	mov	rsi, r12
	mov	rdi, rbp
	call	checkstack@PLT
	mov	rdi, r12
	call	lua_pushthread@PLT
	mov	edx, 1
	mov	rsi, rbp
	mov	rdi, r12
	call	lua_xmove@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	rdi, rbp
	lea	esi, 1[rax]
	call	lua_pushvalue@PLT
	mov	esi, -3
	mov	rdi, rbp
	call	lua_rawset@PLT
	mov	ecx, r15d
	mov	edx, r13d
	mov	rsi, r14
	mov	rdi, r12
	call	lua_sethook@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	esi, 2[rax]
	mov	rdi, rbp
	call	luaL_checkstring@PLT
	mov	edx, DWORD PTR LUA_TFUNCTION[rip]
	mov	rdi, rbp
	mov	r13, rax
	mov	eax, DWORD PTR 4[rsp]
	lea	esi, 1[rax]
	call	luaL_checktype@PLT
	mov	eax, DWORD PTR 4[rsp]
	xor	edx, edx
	mov	rdi, rbp
	lea	esi, 3[rax]
	call	luaL_optinteger@PLT
	mov	rdi, r13
	mov	r14, QWORD PTR hookf[rip]
	mov	rsi, rax
	mov	r15d, eax
	call	makemask@PLT
	mov	r13d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, 2
	xor	esi, esi
	mov	rdi, rbp
	call	lua_createtable@PLT
	mov	rdi, rbp
	mov	esi, -1
	call	lua_pushvalue@PLT
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	lea	rdx, HOOKKEY[rip]
	mov	rdi, rbp
	call	lua_rawsetp@PLT
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	lua_pushstring@PLT
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	mov	esi, -2
	call	lua_setfield@PLT
	mov	rdi, rbp
	mov	esi, -1
	call	lua_pushvalue@PLT
	mov	esi, -2
	mov	rdi, rbp
	call	lua_setmetatable@PLT
	jmp	.L4
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	db_sethook, .-db_sethook
	.comm	hookf,8,8
	.comm	LUA_TNIL,8,8
	.comm	LUA_TFUNCTION,4,4
	.comm	LUA_REGISTRYINDEX,4,4
	.comm	HOOKKEY,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_db_sethook.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"k\000"
	.align	2
.LC1:
	.ascii	"__mode\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_sethook, %function
db_sethook:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L10
	sub	sp, sp, #12
	mov	r1, sp
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	getthread
	ldr	r1, [sp]
	mov	r5, r0
	add	r1, r1, #1
	mov	r0, r4
	bl	lua_isnoneornil
	subs	r6, r0, #0
	beq	.L2
	mov	r7, #0
	ldr	r1, [sp]
	mov	r0, r4
	add	r1, r1, #1
	bl	lua_settop
	mov	r6, r7
	mov	r8, r7
.L3:
	ldr	r9, .L10+4
	mov	r0, r4
	ldr	r2, .L10+8
	ldr	r1, [r9]
	bl	lua_rawgetp
	ldr	r3, .L10+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L8
.L4:
	mov	r2, #1
	mov	r1, r5
	mov	r0, r4
	bl	checkstack
	mov	r0, r5
	bl	lua_pushthread
	mov	r2, #1
	mov	r1, r4
	mov	r0, r5
	bl	lua_xmove
	ldr	r1, [sp]
	mov	r0, r4
	add	r1, r1, #1
	bl	lua_pushvalue
	mvn	r1, #2
	mov	r0, r4
	bl	lua_rawset
	mov	r3, r6
	mov	r2, r8
	mov	r1, r7
	mov	r0, r5
	bl	lua_sethook
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	ldr	r1, [sp]
	mov	r0, r4
	add	r1, r1, #2
	bl	luaL_checkstring
	ldr	r3, .L10+16
	ldr	r1, [sp]
	ldr	r2, [r3]
	mov	r7, r0
	add	r1, r1, #1
	mov	r0, r4
	bl	luaL_checktype
	ldr	r1, [sp]
	mov	r2, r6
	add	r1, r1, #3
	mov	r0, r4
	bl	luaL_optinteger
	mov	r6, r0
	ldr	r3, .L10+20
	mov	r0, r7
	mov	r1, r6
	ldr	r7, [r3]
	bl	makemask
	mov	r8, r0
	b	.L3
.L8:
	mov	r2, #2
	mov	r1, #0
	mov	r0, r4
	bl	lua_createtable
	mvn	r1, #0
	mov	r0, r4
	bl	lua_pushvalue
	ldr	r1, [r9]
	ldr	r2, .L10+8
	mov	r0, r4
	bl	lua_rawsetp
	mov	r0, r4
	ldr	r1, .L10+24
	bl	lua_pushstring
	ldr	r2, .L10+28
	mvn	r1, #1
	mov	r0, r4
	bl	lua_setfield
	mvn	r1, #0
	mov	r0, r4
	bl	lua_pushvalue
	mvn	r1, #1
	mov	r0, r4
	bl	lua_setmetatable
	b	.L4
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	LUA_REGISTRYINDEX
	.word	HOOKKEY
	.word	LUA_TNIL
	.word	LUA_TFUNCTION
	.word	hookf
	.word	.LC0
	.word	.LC1
	.size	db_sethook, .-db_sethook
	.comm	hookf,4,4
	.comm	LUA_TNIL,4,4
	.comm	LUA_TFUNCTION,4,4
	.comm	LUA_REGISTRYINDEX,4,4
	.comm	HOOKKEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
