	.file	"extr_lj_cparse.c_cp_decl_constinit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cp_decl_constinit, @function
cp_decl_constinit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	mov	esi, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	ctype_get@PLT
	mov	rbx, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR [rbx]
	call	ctype_cid@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, eax
	mov	ebp, eax
	call	ctype_get@PLT
	mov	rbx, rax
.L2:
	mov	edi, DWORD PTR [rbx]
	call	ctype_isattrib@PLT
	test	rax, rax
	jne	.L3
	mov	r14d, DWORD PTR [rbx]
	mov	ebx, DWORD PTR 4[rbx]
	mov	edi, r14d
	call	ctype_isinteger@PLT
	test	eax, eax
	je	.L4
	test	DWORD PTR CTF_CONST[rip], r14d
	je	.L4
	cmp	ebx, 4
	jle	.L5
.L4:
	mov	esi, DWORD PTR LJ_ERR_FFI_INVTYPE[rip]
	mov	rdi, r13
	call	cp_err@PLT
.L5:
	mov	rdi, r13
	mov	esi, 61
	call	cp_check@PLT
	xor	edx, edx
	mov	rdi, r13
	lea	rsi, 4[rsp]
	call	cp_expr_sub@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	rsi, r12
	call	lj_ctype_new@PLT
	mov	esi, DWORD PTR CTF_CONST[rip]
	mov	edi, DWORD PTR CT_CONSTVAL[rip]
	mov	r14, QWORD PTR [r12]
	mov	r13d, eax
	or	esi, ebp
	call	CTINFO@PLT
	mov	ecx, 4
	mov	rdx, QWORD PTR [r12]
	mov	DWORD PTR [r14], eax
	sub	ecx, ebx
	mov	eax, DWORD PTR 4[rsp]
	sal	ecx, 3
	sal	eax, cl
	sar	eax, cl
	mov	DWORD PTR 4[rdx], eax
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cp_decl_constinit, .-cp_decl_constinit
	.comm	LJ_ERR_FFI_INVTYPE,4,4
	.comm	CT_CONSTVAL,4,4
	.comm	CTF_UNSIGNED,4,4
	.comm	CTF_CONST,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_lj_cparse.c_cp_decl_constinit.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cp_decl_constinit, %function
cp_decl_constinit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L16
	sub	sp, sp, #12
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [r0]
	mov	r1, r2
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	ctype_get
	mov	r4, r0
	b	.L2
.L3:
	ldr	r0, [r4]
	bl	ctype_cid
	mov	r5, r0
	ldr	r0, [r6]
	mov	r1, r5
	bl	ctype_get
	mov	r4, r0
.L2:
	ldr	r0, [r4]
	bl	ctype_isattrib
	cmp	r0, #0
	bne	.L3
	ldr	r8, [r4]
	ldr	r4, [r4, #4]
	mov	r0, r8
	bl	ctype_isinteger
	cmp	r0, #0
	ldr	r9, .L16+4
	beq	.L4
	ldr	r3, [r9]
	tst	r8, r3
	moveq	r3, #1
	movne	r3, #0
	cmp	r4, #4
	orrgt	r3, r3, #1
	cmp	r3, #0
	beq	.L5
.L4:
	ldr	r3, .L16+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	cp_err
.L5:
	mov	r1, #61
	mov	r0, r6
	bl	cp_check
	mov	r2, #0
	mov	r1, sp
	mov	r0, r6
	bl	cp_expr_sub
	mov	r1, r7
	ldr	r0, [r6]
	bl	lj_ctype_new
	mov	r3, r0
	ldr	r2, .L16+12
	ldr	r1, [r9]
	ldr	r0, [r2]
	orr	r1, r5, r1
	ldr	r6, [r7]
	mov	r5, r3
	bl	CTINFO
	ldr	r2, [sp]
	rsb	r3, r4, #4
	lsl	r3, r3, #3
	ldr	r1, [r7]
	lsl	r2, r2, r3
	asr	r3, r2, r3
	str	r0, [r6]
	str	r3, [r1, #4]
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	CTF_CONST
	.word	LJ_ERR_FFI_INVTYPE
	.word	CT_CONSTVAL
	.size	cp_decl_constinit, .-cp_decl_constinit
	.comm	LJ_ERR_FFI_INVTYPE,4,4
	.comm	CT_CONSTVAL,4,4
	.comm	CTF_UNSIGNED,4,4
	.comm	CTF_CONST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
