	.file	"extr_lj_ccallback.c_callback_checkfunc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	callback_checkfunc, @function
callback_checkfunc:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	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
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rsi]
	call	ctype_isptr@PLT
	test	rax, rax
	je	.L2
	cmp	QWORD PTR LJ_64[rip], 0
	je	.L3
	mov	rax, QWORD PTR CTSIZE_PTR[rip]
	cmp	QWORD PTR 8[r12], rax
	jne	.L2
.L3:
	mov	rdi, rbp
	mov	rsi, r12
	call	ctype_rawchild@PLT
	mov	edi, DWORD PTR [rax]
	mov	r13, rax
	call	ctype_isfunc@PLT
	test	rax, rax
	je	.L2
	mov	rsi, r13
	mov	rdi, rbp
	call	ctype_rawchild@PLT
	mov	rsi, QWORD PTR 16[r13]
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	mov	QWORD PTR 8[rsp], rsi
	call	ctype_isvoid@PLT
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L4
.L6:
	mov	r12d, DWORD PTR 0[r13]
	and	r12d, DWORD PTR CTF_VARARG[rip]
	jne	.L2
	test	rsi, rsi
	jne	.L11
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, QWORD PTR 16[rbx]
	test	rsi, rsi
	je	.L1
.L11:
	mov	rdi, rbp
	call	ctype_get@PLT
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	ctype_isattrib@PLT
	test	eax, eax
	jne	.L8
	mov	edi, DWORD PTR [rbx]
	call	ctype_isfield@PLT
	mov	edi, eax
	call	lua_assert@PLT
	mov	rdi, rbp
	mov	rsi, rbx
	call	ctype_rawchild@PLT
	mov	edi, DWORD PTR [rax]
	mov	r14, rax
	call	ctype_isenum@PLT
	test	rax, rax
	je	.L9
.L10:
	mov	eax, DWORD PTR LUA_MINSTACK[rip]
	add	r12d, 1
	sub	eax, 3
	cmp	eax, r12d
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r13d, r13d
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r13
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR [r14]
	call	ctype_isptr@PLT
	test	rax, rax
	jne	.L10
	mov	edi, DWORD PTR [r14]
	call	ctype_isnum@PLT
	test	rax, rax
	je	.L2
	cmp	QWORD PTR 8[r14], 8
	jle	.L10
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR 8[rsp], rsi
	call	ctype_isenum@PLT
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR [rbx]
	call	ctype_isptr@PLT
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR [rbx]
	call	ctype_isnum@PLT
	test	rax, rax
	je	.L2
	cmp	QWORD PTR 8[rbx], 8
	mov	rsi, QWORD PTR 8[rsp]
	jle	.L6
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	callback_checkfunc, .-callback_checkfunc
	.comm	LUA_MINSTACK,4,4
	.comm	LJ_64,8,8
	.comm	CTSIZE_PTR,8,8
	.comm	CTF_VARARG,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_ccallback.c_callback_checkfunc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	callback_checkfunc, %function
callback_checkfunc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r0
	sub	sp, sp, #12
	ldr	r0, [r1]
	mov	r4, r1
	bl	ctype_isptr
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L34
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L34+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
.L3:
	mov	r1, r4
	mov	r0, r5
	bl	ctype_rawchild
	mov	r7, r0
	ldr	r0, [r0]
	bl	ctype_isfunc
	cmp	r0, #0
	beq	.L2
	mov	r1, r7
	mov	r0, r5
	bl	ctype_rawchild
	ldr	r1, [r7, #8]
	mov	r4, r0
	ldr	r0, [r0]
	str	r1, [sp, #4]
	bl	ctype_isvoid
	cmp	r0, #0
	ldr	r1, [sp, #4]
	beq	.L4
.L6:
	ldr	r3, .L34+8
	ldr	r6, [r7]
	ldr	r3, [r3]
	ands	r6, r6, r3
	bne	.L2
	cmp	r1, #0
	beq	.L1
	ldr	r8, .L34+12
	b	.L11
.L8:
	ldr	r1, [r4, #8]
	cmp	r1, #0
	beq	.L1
.L11:
	mov	r0, r5
	bl	ctype_get
	mov	r4, r0
	ldr	r0, [r0]
	bl	ctype_isattrib
	cmp	r0, #0
	bne	.L8
	ldr	r0, [r4]
	bl	ctype_isfield
	bl	lua_assert
	mov	r1, r4
	mov	r0, r5
	bl	ctype_rawchild
	mov	r9, r0
	ldr	r0, [r0]
	bl	ctype_isenum
	cmp	r0, #0
	add	r6, r6, #1
	beq	.L9
.L10:
	ldr	r3, [r8]
	sub	r3, r3, #3
	cmp	r3, r6
	bgt	.L8
.L2:
	mov	r7, #0
.L1:
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	ldr	r0, [r9]
	bl	ctype_isptr
	cmp	r0, #0
	bne	.L10
	ldr	r0, [r9]
	bl	ctype_isnum
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r9, #4]
	cmp	r3, #8
	ble	.L10
	b	.L2
.L4:
	ldr	r0, [r4]
	str	r1, [sp, #4]
	bl	ctype_isenum
	cmp	r0, #0
	ldr	r1, [sp, #4]
	bne	.L6
	ldr	r0, [r4]
	bl	ctype_isptr
	cmp	r0, #0
	ldr	r1, [sp, #4]
	bne	.L6
	ldr	r0, [r4]
	bl	ctype_isnum
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r4, #4]
	ldr	r1, [sp, #4]
	cmp	r3, #8
	ble	.L6
	b	.L2
.L35:
	.align	2
.L34:
	.word	LJ_64
	.word	CTSIZE_PTR
	.word	CTF_VARARG
	.word	LUA_MINSTACK
	.size	callback_checkfunc, .-callback_checkfunc
	.comm	LUA_MINSTACK,4,4
	.comm	LJ_64,4,4
	.comm	CTSIZE_PTR,4,4
	.comm	CTF_VARARG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
