	.file	"extr_lj_crecord.c_crec_call_args.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	crec_call_args, @function
crec_call_args:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdx
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 88
	mov	QWORD PTR -112[rbp], rcx
	mov	QWORD PTR -80[rbp], rdi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR CCI_NARGS_MAX[rip]
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L44:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L44
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L45
.L4:
	lea	rax, 7[rsp]
	mov	rcx, rax
	and	rax, -8
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	shr	rcx, 3
	mov	QWORD PTR -120[rbp], rcx
	mov	r13, QWORD PTR 8[rax]
	test	r13, r13
	jne	.L7
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L46:
	mov	r13, QWORD PTR 8[r12]
	test	r13, r13
	je	.L5
.L7:
	mov	rdi, r14
	mov	rsi, r13
	call	ctype_get@PLT
	mov	edi, DWORD PTR [rax]
	mov	r12, rax
	call	ctype_isattrib@PLT
	test	eax, eax
	jne	.L46
.L6:
	mov	rax, QWORD PTR -120[rbp]
	mov	r12, QWORD PTR TREF_NIL[rip]
	mov	QWORD PTR 0[0+rax*8], r12
	mov	rax, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 8[rcx], 0
	lea	r15, 4[rax]
	je	.L1
	mov	QWORD PTR -88[rbp], r13
	xor	ebx, ebx
	mov	r13, rcx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L52:
	mov	eax, DWORD PTR 4[r12]
	cmp	eax, 3
	jg	.L17
	mov	edx, DWORD PTR [r12]
	test	DWORD PTR CTF_UNSIGNED[rip], edx
	je	.L18
	cmp	eax, 1
	mov	edx, DWORD PTR IRT_U8[rip]
	mov	esi, DWORD PTR IRT_INT[rip]
	mov	rdi, r8
	cmovne	edx, DWORD PTR IRT_U16[rip]
	xor	ecx, ecx
	call	emitconv@PLT
	mov	r8, rax
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR -96[rbp]
	add	r15, 4
	mov	QWORD PTR [rax+rbx*8], r8
	mov	eax, ebx
	add	rbx, 1
	add	eax, 1
	cmp	QWORD PTR 8[r13+rbx*8], 0
	je	.L47
.L23:
	cmp	DWORD PTR CCI_NARGS_MAX[rip], ebx
	mov	DWORD PTR -72[rbp], ebx
	mov	DWORD PTR -100[rbp], ebx
	jle	.L48
	cmp	QWORD PTR -88[rbp], 0
	jne	.L49
.L10:
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR CTF_VARARG[rip], eax
	je	.L50
.L12:
	mov	rsi, r15
	mov	rdi, r14
	call	lj_ccall_ctid_vararg@PLT
	mov	rsi, rax
.L11:
	mov	rdi, r14
	call	ctype_raw@PLT
	mov	edi, DWORD PTR [rax]
	mov	r12, rax
	call	ctype_isnum@PLT
	test	rax, rax
	je	.L51
.L14:
	mov	rcx, QWORD PTR 8[r13+rbx*8]
	mov	rdi, QWORD PTR -80[rbp]
	mov	r8, r15
	xor	edx, edx
	mov	rsi, r12
	call	crec_ct_tv@PLT
	mov	edi, DWORD PTR [r12]
	mov	QWORD PTR -72[rbp], rax
	call	ctype_isinteger_or_bool@PLT
	mov	r8, QWORD PTR -72[rbp]
	test	rax, rax
	jne	.L52
	cmp	QWORD PTR LJ_SOFTFP[rip], 0
	je	.L17
	mov	edi, DWORD PTR [r12]
	mov	QWORD PTR -72[rbp], r8
	call	ctype_isfp@PLT
	mov	r8, QWORD PTR -72[rbp]
	test	rax, rax
	je	.L17
	cmp	DWORD PTR 4[r12], 4
	jle	.L17
	mov	rdi, QWORD PTR -80[rbp]
	call	lj_needsplit@PLT
	mov	r8, QWORD PTR -72[rbp]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	mov	esi, DWORD PTR LJ_TRERR_NYICALL[rip]
	mov	rdi, QWORD PTR -80[rbp]
	call	lj_trace_err@PLT
	cmp	QWORD PTR -88[rbp], 0
	je	.L10
.L49:
	mov	rsi, QWORD PTR -88[rbp]
	mov	rdi, r14
	call	ctype_get@PLT
	mov	r12, rax
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [r12]
	mov	QWORD PTR -88[rbp], rax
	call	ctype_isfield@PLT
	mov	edi, eax
	call	lua_assert@PLT
	mov	edi, DWORD PTR [r12]
	call	ctype_cid@PLT
	mov	rsi, rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L51:
	mov	edi, DWORD PTR [r12]
	call	ctype_isptr@PLT
	test	rax, rax
	jne	.L14
	mov	edi, DWORD PTR [r12]
	call	ctype_isenum@PLT
	test	rax, rax
	jne	.L14
	mov	esi, DWORD PTR LJ_TRERR_NYICALL[rip]
	mov	rdi, QWORD PTR -80[rbp]
	call	lj_trace_err@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L50:
	mov	esi, DWORD PTR LJ_TRERR_NYICALL[rip]
	mov	rdi, QWORD PTR -80[rbp]
	call	lj_trace_err@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, DWORD PTR IRT_I8[rip]
	cmp	eax, 1
	mov	ecx, DWORD PTR IRCONV_SEXT[rip]
	mov	rdi, r8
	cmovne	edx, DWORD PTR IRT_I16[rip]
	mov	esi, DWORD PTR IRT_INT[rip]
	call	emitconv@PLT
	mov	r8, rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L47:
	mov	rcx, QWORD PTR -120[rbp]
	mov	r12, QWORD PTR 0[0+rcx*8]
	cmp	eax, 1
	jle	.L1
	mov	r13d, DWORD PTR -100[rbp]
	mov	r14, QWORD PTR -96[rbp]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR IRT_NIL[rip]
	mov	edi, DWORD PTR IR_CARG[rip]
	mov	r15, QWORD PTR 8[r14+rbx*8]
	add	rbx, 1
	call	IRT@PLT
	mov	rsi, r12
	mov	edi, eax
	mov	rdx, r15
	call	emitir@PLT
	mov	r12, rax
	cmp	r13d, ebx
	jg	.L24
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L53
	lea	rsp, -40[rbp]
	mov	rax, r12
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	r13d, r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L45:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	crec_call_args, .-crec_call_args
	.comm	TREF_NIL,8,8
	.comm	LJ_TRERR_NYICALL,4,4
	.comm	LJ_SOFTFP,8,8
	.comm	IR_CARG,4,4
	.comm	IRT_U8,4,4
	.comm	IRT_U64,4,4
	.comm	IRT_U16,4,4
	.comm	IRT_NIL,4,4
	.comm	IRT_INT,4,4
	.comm	IRT_I8,4,4
	.comm	IRT_I64,4,4
	.comm	IRT_I16,4,4
	.comm	IRCONV_SEXT,4,4
	.comm	CTF_VARARG,4,4
	.comm	CTF_UNSIGNED,4,4
	.comm	CTCC_THISCALL,8,8
	.comm	CTCC_FASTCALL,8,8
	.comm	CCI_NARGS_MAX,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_crecord.c_crec_call_args.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	crec_call_args, %function
crec_call_args:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	str	r3, [fp, #-56]
	ldr	r5, [r3, #8]
	ldr	r3, .L54
	cmp	r5, #0
	ldr	r3, [r3]
	mov	r10, r0
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L54+4
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	add	r3, sp, #8
	mov	r9, r2
	str	r3, [fp, #-60]
	bne	.L2
	b	.L4
.L46:
	ldr	r5, [r6, #8]
	cmp	r5, #0
	beq	.L4
.L2:
	mov	r1, r5
	mov	r0, r9
	bl	ctype_get
	mov	r6, r0
	ldr	r0, [r0]
	bl	ctype_isattrib
	cmp	r0, #0
	bne	.L46
.L3:
	ldr	r8, [r10]
	ldr	r3, .L54+8
	ldr	r2, [r8, #4]
	ldr	r6, [r4]
	ldr	r3, [r3]
	cmp	r2, #0
	ldr	r2, [fp, #-60]
	add	r6, r6, #4
	add	r8, r8, #4
	str	r3, [r2]
	beq	.L1
	sub	r3, r2, #4
	mov	r7, #0
	str	r3, [fp, #-48]
	str	r5, [fp, #-52]
	b	.L20
.L52:
	ldr	r2, [r4, #4]
	cmp	r2, #3
	bgt	.L14
	ldr	r3, .L54+12
	ldr	ip, [r4]
	ldr	r0, [r3]
	ldr	r3, .L54+16
	tst	ip, r0
	ldr	r1, [r3]
	beq	.L15
	cmp	r2, #1
	ldreq	r2, .L54+20
	ldrne	r2, .L54+24
	mov	r0, r5
	mov	r3, #0
	ldr	r2, [r2]
	bl	emitconv
	mov	r5, r0
.L14:
	ldr	r3, [fp, #-48]
	ldr	r4, [r8, #4]!
	str	r5, [r3, #4]!
	cmp	r4, #0
	str	r3, [fp, #-48]
	add	r6, r6, #4
	add	r3, r7, #1
	beq	.L47
	mov	r7, r3
.L20:
	ldr	r3, .L54
	ldr	r3, [r3]
	cmp	r3, r7
	ble	.L48
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L49
.L7:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, .L54+28
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L50
.L9:
	mov	r1, r6
	mov	r0, r9
	bl	lj_ccall_ctid_vararg
	mov	r1, r0
.L8:
	mov	r0, r9
	bl	ctype_raw
	mov	r4, r0
	ldr	r0, [r0]
	bl	ctype_isnum
	cmp	r0, #0
	beq	.L51
.L11:
	ldr	r3, [r8]
	mov	r2, #0
	mov	r1, r4
	mov	r0, r10
	str	r6, [sp]
	bl	crec_ct_tv
	mov	r5, r0
	ldr	r0, [r4]
	bl	ctype_isinteger_or_bool
	cmp	r0, #0
	bne	.L52
	ldr	r3, .L54+32
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L14
	ldr	r0, [r4]
	bl	ctype_isfp
	cmp	r0, #0
	beq	.L14
	ldr	r2, [r4, #4]
	cmp	r2, #4
	ble	.L14
	mov	r0, r10
	bl	lj_needsplit
	b	.L14
.L48:
	ldr	r3, .L54+36
	mov	r0, r10
	ldr	r1, [r3]
	bl	lj_trace_err
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L7
.L49:
	mov	r1, r3
	mov	r0, r9
	bl	ctype_get
	mov	r4, r0
	ldr	r3, [r4, #8]
	ldr	r0, [r0]
	str	r3, [fp, #-52]
	bl	ctype_isfield
	bl	lua_assert
	ldr	r0, [r4]
	bl	ctype_cid
	mov	r1, r0
	b	.L8
.L51:
	ldr	r0, [r4]
	bl	ctype_isptr
	cmp	r0, #0
	bne	.L11
	ldr	r0, [r4]
	bl	ctype_isenum
	cmp	r0, #0
	bne	.L11
	ldr	r3, .L54+36
	mov	r0, r10
	ldr	r1, [r3]
	bl	lj_trace_err
	b	.L11
.L50:
	ldr	r3, .L54+36
	mov	r0, r10
	ldr	r1, [r3]
	bl	lj_trace_err
	b	.L9
.L15:
	cmp	r2, #1
	ldreq	r2, .L54+40
	ldrne	r2, .L54+44
	ldr	r3, .L54+48
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r3, [r3]
	bl	emitconv
	mov	r5, r0
	b	.L14
.L47:
	ldr	r5, [fp, #-60]
	cmp	r3, #1
	ldr	r3, [r5]
	beq	.L1
	mov	r9, r3
	ldr	r8, .L54+52
	ldr	r6, .L54+56
.L21:
	ldr	r1, [r8]
	ldr	r0, [r6]
	bl	IRT
	mov	r1, r9
	ldr	r2, [r5, #4]!
	bl	emitir
	add	r4, r4, #1
	cmp	r7, r4
	mov	r9, r0
	bgt	.L21
	mov	r3, r0
.L1:
	ldr	r2, .L54+4
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L53
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r5, #0
	b	.L3
.L53:
	bl	__stack_chk_fail
.L55:
	.align	2
.L54:
	.word	CCI_NARGS_MAX
	.word	.LC0
	.word	TREF_NIL
	.word	CTF_UNSIGNED
	.word	IRT_INT
	.word	IRT_U8
	.word	IRT_U16
	.word	CTF_VARARG
	.word	LJ_SOFTFP
	.word	LJ_TRERR_NYICALL
	.word	IRT_I8
	.word	IRT_I16
	.word	IRCONV_SEXT
	.word	IRT_NIL
	.word	IR_CARG
	.size	crec_call_args, .-crec_call_args
	.comm	TREF_NIL,4,4
	.comm	LJ_TRERR_NYICALL,4,4
	.comm	LJ_SOFTFP,4,4
	.comm	IR_CARG,4,4
	.comm	IRT_U8,4,4
	.comm	IRT_U64,4,4
	.comm	IRT_U16,4,4
	.comm	IRT_NIL,4,4
	.comm	IRT_INT,4,4
	.comm	IRT_I8,4,4
	.comm	IRT_I64,4,4
	.comm	IRT_I16,4,4
	.comm	IRCONV_SEXT,4,4
	.comm	CTF_VARARG,4,4
	.comm	CTF_UNSIGNED,4,4
	.comm	CTCC_THISCALL,4,4
	.comm	CTCC_FASTCALL,4,4
	.comm	CCI_NARGS_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
