	.file	"extr_lj_mcode.c_lj_mcode_limiterr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lj_mcode_limiterr
	.type	lj_mcode_limiterr, @function
lj_mcode_limiterr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	lj_mcode_abort@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR JIT_P_sizemcode[rip]
	mov	rbx, QWORD PTR LJ_PAGESIZE[rip]
	mov	rax, QWORD PTR [rdx+rax*8]
	sal	rax, 10
	lea	rax, -1[rbx+rax]
	neg	rbx
	and	rbx, rax
	mov	rax, QWORD PTR JIT_P_maxmcode[rip]
	mov	r12, QWORD PTR [rdx+rax*8]
	sal	r12, 10
	cmp	rbx, r13
	jb	.L6
	add	rbx, QWORD PTR 0[rbp]
	cmp	rbx, r12
	ja	.L7
.L3:
	mov	rdi, rbp
	call	mcode_allocarea@PLT
	mov	esi, DWORD PTR LJ_TRERR_MCODELM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	lj_trace_err@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR LJ_TRERR_MCODEOV[rip]
	mov	rdi, rbp
	call	lj_trace_err@PLT
	add	rbx, QWORD PTR 0[rbp]
	cmp	rbx, r12
	jbe	.L3
.L7:
	mov	esi, DWORD PTR LJ_TRERR_MCODEAL[rip]
	mov	rdi, rbp
	call	lj_trace_err@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	lj_mcode_limiterr, .-lj_mcode_limiterr
	.comm	LJ_TRERR_MCODEOV,4,4
	.comm	LJ_TRERR_MCODELM,4,4
	.comm	LJ_TRERR_MCODEAL,4,4
	.comm	LJ_PAGESIZE,8,8
	.comm	JIT_P_sizemcode,8,8
	.comm	JIT_P_maxmcode,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_mcode.c_lj_mcode_limiterr.c"
	.text
	.align	2
	.global	lj_mcode_limiterr
	.syntax unified
	.arm
	.fpu softvfp
	.type	lj_mcode_limiterr, %function
lj_mcode_limiterr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	bl	lj_mcode_abort
	ldr	r1, .L8
	ldr	r3, .L8+4
	ldr	r2, [r5, #4]
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, .L8+8
	ldr	r0, [r2, r0, lsl #2]
	sub	r4, r3, #1
	ldr	r1, [r1]
	add	r4, r4, r0, lsl #10
	rsb	r3, r3, #0
	ldr	r6, [r2, r1, lsl #2]
	and	r4, r4, r3
	cmp	r4, r7
	lsl	r6, r6, #10
	bcc	.L6
	ldr	r3, [r5]
	add	r4, r4, r3
	cmp	r4, r6
	bhi	.L7
.L3:
	mov	r0, r5
	bl	mcode_allocarea
	ldr	r3, .L8+12
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	b	lj_trace_err
.L6:
	ldr	r3, .L8+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	lj_trace_err
	ldr	r3, [r5]
	add	r4, r4, r3
	cmp	r4, r6
	bls	.L3
.L7:
	ldr	r3, .L8+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	lj_trace_err
	b	.L3
.L9:
	.align	2
.L8:
	.word	JIT_P_sizemcode
	.word	LJ_PAGESIZE
	.word	JIT_P_maxmcode
	.word	LJ_TRERR_MCODELM
	.word	LJ_TRERR_MCODEOV
	.word	LJ_TRERR_MCODEAL
	.size	lj_mcode_limiterr, .-lj_mcode_limiterr
	.comm	LJ_TRERR_MCODEOV,4,4
	.comm	LJ_TRERR_MCODELM,4,4
	.comm	LJ_TRERR_MCODEAL,4,4
	.comm	LJ_PAGESIZE,4,4
	.comm	JIT_P_sizemcode,4,4
	.comm	JIT_P_maxmcode,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
