	.file	"extr_zcp.c_zcp_parse_table_args.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"too few arguments"
.LC1:
	.string	"unreachable code"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"arg %d wrong type (is '%s', expected '%s')"
	.align 8
.LC3:
	.string	"kwarg '%s' wrong type (is '%s', expected '%s')"
	.section	.rodata.str1.1
.LC4:
	.string	"too many positional arguments"
.LC5:
	.string	"invalid kwarg '%s'"
.LC6:
	.string	"kwarg keys must be strings"
	.text
	.p2align 4
	.type	zcp_parse_table_args, @function
zcp_parse_table_args:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR 8[rdx], 0
	mov	QWORD PTR 8[rsp], rsi
	je	.L2
	mov	rbp, rdx
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rsp], eax
	cmp	esi, eax
	je	.L4
	mov	rdi, r14
	call	lua_typename@PLT
	mov	r8d, DWORD PTR 4[rsp]
	mov	rdi, r14
	mov	r15d, eax
	mov	esi, r8d
	call	lua_typename@PLT
	push	r15
	.cfi_def_cfa_offset 88
	mov	rcx, r13
	mov	r9d, ebx
	push	rax
	.cfi_def_cfa_offset 96
	mov	rsi, QWORD PTR 24[rsp]
	lea	r8, .LC2[rip]
	mov	rdx, r12
	mov	rdi, r14
	xor	eax, eax
	call	zcp_args_error@PLT
	lea	rdi, .LC1[rip]
	call	panic@PLT
	pop	rcx
	.cfi_def_cfa_offset 88
	pop	rsi
	.cfi_def_cfa_offset 80
.L4:
	mov	esi, ebx
	mov	rdi, r14
	add	rbp, 16
	call	lua_pushinteger@PLT
	mov	rdi, r14
	call	lua_pushnil@PLT
	mov	esi, 1
	mov	rdi, r14
	call	lua_settable@PLT
	cmp	QWORD PTR 8[rbp], 0
	je	.L2
.L5:
	add	ebx, 1
	mov	rdi, r14
	mov	esi, ebx
	call	lua_pushinteger@PLT
	mov	esi, 1
	mov	rdi, r14
	call	lua_gettable@PLT
	mov	esi, -1
	mov	rdi, r14
	call	lua_type@PLT
	cmp	DWORD PTR LUA_TNIL[rip], eax
	jne	.L3
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r14
	mov	rcx, r13
	mov	rdx, r12
	lea	r8, .LC0[rip]
	xor	eax, eax
	call	zcp_args_error@PLT
	lea	rdi, .LC1[rip]
	call	panic@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdx, QWORD PTR 8[r13]
	test	rdx, rdx
	je	.L6
	mov	rbx, r13
	lea	rbp, .LC3[rip]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, 1
	mov	rdi, r14
	call	lua_getfield@PLT
	mov	esi, -1
	mov	rdi, r14
	call	lua_type@PLT
	cmp	DWORD PTR LUA_TNIL[rip], eax
	mov	r15d, eax
	je	.L7
	mov	esi, DWORD PTR [rbx]
	cmp	esi, eax
	je	.L7
	mov	rdi, r14
	call	lua_typename@PLT
	mov	esi, r15d
	mov	rdi, r14
	mov	DWORD PTR 4[rsp], eax
	call	lua_typename@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	r9, QWORD PTR 8[rbx]
	mov	r8, rbp
	mov	rcx, r13
	mov	rdi, r14
	push	rdx
	.cfi_def_cfa_offset 88
	mov	rdx, r12
	push	rax
	.cfi_def_cfa_offset 96
	mov	rsi, QWORD PTR 24[rsp]
	xor	eax, eax
	call	zcp_args_error@PLT
	lea	rdi, .LC1[rip]
	call	panic@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
.L7:
	mov	rdi, r14
	add	rbx, 16
	call	lua_pushnil@PLT
	mov	rdx, QWORD PTR -8[rbx]
	mov	esi, 1
	mov	rdi, r14
	call	lua_setfield@PLT
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	jne	.L8
.L6:
	mov	rdi, r14
	call	lua_pushnil@PLT
	mov	esi, 1
	mov	rdi, r14
	call	lua_next@PLT
	test	rax, rax
	jne	.L27
.L9:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	mov	esi, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	lua_remove@PLT
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	esi, -2
	mov	rdi, r14
	call	lua_isnumber@PLT
	test	rax, rax
	je	.L10
	mov	esi, -2
	mov	rdi, r14
	call	lua_tointeger@PLT
	lea	r8, .LC4[rip]
	test	rax, rax
	jle	.L10
.L25:
	mov	rsi, QWORD PTR 8[rsp]
	mov	rcx, r13
	mov	rdx, r12
	mov	rdi, r14
	xor	eax, eax
	call	zcp_args_error@PLT
.L11:
	lea	rdi, .LC1[rip]
	call	panic@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, -2
	mov	rdi, r14
	call	lua_isstring@PLT
	test	rax, rax
	je	.L12
	mov	rdi, r14
	mov	esi, -2
	call	lua_tostring@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rcx, r13
	mov	rdx, r12
	mov	r9d, eax
	lea	r8, .LC5[rip]
	mov	rdi, r14
	xor	eax, eax
	call	zcp_args_error@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	lea	r8, .LC6[rip]
	jmp	.L25
	.cfi_endproc
.LFE0:
	.size	zcp_parse_table_args, .-zcp_parse_table_args
	.comm	LUA_TNIL,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_zcp.c_zcp_parse_table_args.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"too few arguments\000"
	.align	2
.LC1:
	.ascii	"unreachable code\000"
	.align	2
.LC2:
	.ascii	"arg %d wrong type (is '%s', expected '%s')\000"
	.align	2
.LC3:
	.ascii	"kwarg '%s' wrong type (is '%s', expected '%s')\000"
	.align	2
.LC4:
	.ascii	"too many positional arguments\000"
	.align	2
.LC5:
	.ascii	"invalid kwarg '%s'\000"
	.align	2
.LC6:
	.ascii	"kwarg keys must be strings\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zcp_parse_table_args, %function
zcp_parse_table_args:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r2
	ldr	r2, [r2, #4]
	mov	r4, r0
	cmp	r2, #0
	mov	r10, r1
	mov	r9, r3
	sub	sp, sp, #28
	beq	.L2
	mov	r5, #0
	ldr	r7, .L31
	ldr	fp, .L31+4
	add	r6, r8, #8
	b	.L5
.L3:
	ldr	r3, [r6, #-8]
	cmp	r3, r0
	beq	.L4
	mov	r1, r0
	mov	r0, r4
	bl	lua_typename
	mov	r3, r0
	ldr	r1, [r6, #-8]
	mov	r0, r4
	str	r3, [sp, #20]
	bl	lua_typename
	ldr	r3, [sp, #20]
	str	r0, [sp, #12]
	str	r3, [sp, #8]
	ldr	r3, .L31+8
	mov	r2, r8
	str	r3, [sp]
	mov	r1, r10
	mov	r3, r9
	mov	r0, r4
	str	r5, [sp, #4]
	bl	zcp_args_error
	mov	r0, fp
	bl	panic
.L4:
	mov	r1, r5
	mov	r0, r4
	bl	lua_pushinteger
	mov	r0, r4
	bl	lua_pushnil
	add	r6, r6, #8
	mov	r1, #1
	mov	r0, r4
	bl	lua_settable
	ldr	r3, [r6, #-4]
	cmp	r3, #0
	beq	.L2
.L5:
	add	r5, r5, #1
	mov	r1, r5
	mov	r0, r4
	bl	lua_pushinteger
	mov	r1, #1
	mov	r0, r4
	bl	lua_gettable
	mvn	r1, #0
	mov	r0, r4
	bl	lua_type
	ldr	r3, [r7]
	cmp	r3, r0
	bne	.L3
	ldr	r3, .L31+12
	mov	r2, r8
	str	r3, [sp]
	mov	r1, r10
	mov	r3, r9
	mov	r0, r4
	bl	zcp_args_error
	mov	r0, fp
	bl	panic
	b	.L4
.L2:
	ldr	r2, [r9, #4]
	cmp	r2, #0
	beq	.L6
	ldr	r7, .L31
	ldr	r6, .L31+4
	add	r5, r9, #8
.L8:
	mov	r1, #1
	mov	r0, r4
	bl	lua_getfield
	mvn	r1, #0
	mov	r0, r4
	bl	lua_type
	ldr	r3, [r7]
	cmp	r3, r0
	beq	.L7
	ldr	r3, [r5, #-8]
	cmp	r3, r0
	beq	.L7
	ldr	r3, [r5, #-4]
	mov	r1, r0
	mov	r0, r4
	str	r3, [sp, #20]
	bl	lua_typename
	ldr	r1, [r5, #-8]
	mov	fp, r0
	mov	r0, r4
	bl	lua_typename
	ldr	r3, [sp, #20]
	str	r0, [sp, #12]
	str	r3, [sp, #4]
	ldr	r3, .L31+16
	mov	r2, r8
	str	r3, [sp]
	mov	r1, r10
	mov	r3, r9
	mov	r0, r4
	str	fp, [sp, #8]
	bl	zcp_args_error
	mov	r0, r6
	bl	panic
.L7:
	mov	r0, r4
	bl	lua_pushnil
	add	r5, r5, #8
	ldr	r2, [r5, #-12]
	mov	r1, #1
	mov	r0, r4
	bl	lua_setfield
	ldr	r2, [r5, #-4]
	cmp	r2, #0
	bne	.L8
.L6:
	mov	r0, r4
	bl	lua_pushnil
	mov	r1, #1
	mov	r0, r4
	bl	lua_next
	cmp	r0, #0
	bne	.L30
.L9:
	mov	r0, r4
	mov	r1, #1
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	lua_remove
.L30:
	mvn	r1, #1
	mov	r0, r4
	bl	lua_isnumber
	cmp	r0, #0
	beq	.L10
	mvn	r1, #1
	mov	r0, r4
	bl	lua_tointeger
	cmp	r0, #0
	ble	.L10
	ldr	r0, .L31+20
.L28:
	str	r0, [sp]
	mov	r3, r9
	mov	r2, r8
	mov	r1, r10
	mov	r0, r4
	bl	zcp_args_error
.L11:
	ldr	r0, .L31+4
	bl	panic
	b	.L9
.L10:
	mvn	r1, #1
	mov	r0, r4
	bl	lua_isstring
	cmp	r0, #0
	beq	.L12
	mvn	r1, #1
	mov	r0, r4
	bl	lua_tostring
	ldr	ip, .L31+24
	str	r0, [sp, #4]
	mov	r3, r9
	mov	r2, r8
	mov	r1, r10
	mov	r0, r4
	str	ip, [sp]
	bl	zcp_args_error
	b	.L11
.L12:
	ldr	r0, .L31+28
	b	.L28
.L32:
	.align	2
.L31:
	.word	LUA_TNIL
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	zcp_parse_table_args, .-zcp_parse_table_args
	.comm	LUA_TNIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
