	.file	"extr_lj_vmevent.c_lj_vmevent_call.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"?"
.LC1:
	.string	"VM handler failed: "
	.text
	.p2align 4
	.globl	lj_vmevent_call
	.type	lj_vmevent_call, @function
lj_vmevent_call:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	G@PLT
	mov	rbx, rax
	mov	rdi, rax
	mov	r13, QWORD PTR [rax]
	call	hook_save@PLT
	mov	QWORD PTR [rbx], 0
	mov	rdi, rbx
	mov	r12, rax
	call	hook_vmevent@PLT
	mov	esi, r14d
	mov	rdi, rbp
	call	restorestack@PLT
	xor	ecx, ecx
	mov	rdi, rbp
	mov	edx, 1
	mov	esi, eax
	call	lj_vm_pcall@PLT
	mov	edi, eax
	call	LJ_UNLIKELY@PLT
	test	rax, rax
	jne	.L12
.L2:
	mov	rsi, r12
	mov	rdi, rbx
	call	hook_restore@PLT
	mov	rax, QWORD PTR VMEVENT_NOCACHE[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L1
	mov	QWORD PTR [rbx], r13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	sub	DWORD PTR 0[rbp], 1
	mov	esi, DWORD PTR stderr[rip]
	lea	rdi, .LC1[rip]
	call	fputs@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r14d, DWORD PTR stderr[rip]
	call	tvisstr@PLT
	lea	rdi, .LC0[rip]
	test	rax, rax
	jne	.L13
.L3:
	mov	esi, r14d
	call	fputs@PLT
	mov	esi, DWORD PTR stderr[rip]
	mov	edi, 10
	call	fputc@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 0[rbp]
	call	strVdata@PLT
	mov	rdi, rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	lj_vmevent_call, .-lj_vmevent_call
	.comm	stderr,4,4
	.comm	VMEVENT_NOCACHE,8,8
	.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_lj_vmevent.c_lj_vmevent_call.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"?\000"
	.align	2
.LC1:
	.ascii	"VM handler failed: \000"
	.text
	.align	2
	.global	lj_vmevent_call
	.syntax unified
	.arm
	.fpu softvfp
	.type	lj_vmevent_call, %function
lj_vmevent_call:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	mov	r5, r0
	bl	G
	mov	r8, #0
	mov	r4, r0
	ldr	r9, [r0]
	bl	hook_save
	str	r8, [r4]
	mov	r6, r0
	mov	r0, r4
	bl	hook_vmevent
	mov	r1, r7
	mov	r0, r5
	bl	restorestack
	mov	r3, r8
	mov	r1, r0
	mov	r2, #1
	mov	r0, r5
	bl	lj_vm_pcall
	bl	LJ_UNLIKELY
	cmp	r0, r8
	bne	.L11
.L2:
	mov	r1, r6
	mov	r0, r4
	bl	hook_restore
	ldr	r3, .L13
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	strne	r9, [r4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r3, [r5]
	ldr	r7, .L13+4
	sub	r3, r3, #1
	str	r3, [r5]
	ldr	r1, [r7]
	ldr	r0, .L13+8
	bl	fputs
	ldr	r0, [r5]
	bl	tvisstr
	cmp	r0, r8
	ldreq	r0, .L13+12
	bne	.L12
.L3:
	ldr	r1, [r7]
	bl	fputs
	ldr	r1, [r7]
	mov	r0, #10
	bl	fputc
	b	.L2
.L12:
	ldr	r0, [r5]
	bl	strVdata
	b	.L3
.L14:
	.align	2
.L13:
	.word	VMEVENT_NOCACHE
	.word	stderr
	.word	.LC1
	.word	.LC0
	.size	lj_vmevent_call, .-lj_vmevent_call
	.comm	stderr,4,4
	.comm	VMEVENT_NOCACHE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
