	.file	"extr_cmd.c_get_arg_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_arg_type, @function
get_arg_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movsx	rbp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	esi, ebp
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	is_vararg@PLT
	test	rax, rax
	jne	.L13
	cmp	DWORD PTR MP_CMD_DEF_MAX_ARGS[rip], ebp
	jle	.L3
	mov	rax, QWORD PTR [rbx]
	lea	r8, [rax+rbp*8]
	test	r8, r8
	je	.L3
	cmp	QWORD PTR [r8], 0
	je	.L3
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r8
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	r8d, r8d
	mov	rax, r8
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR MP_CMD_DEF_MAX_ARGS[rip]
	mov	edi, ebp
	lea	esi, -1[rax]
	call	MPMIN@PLT
	test	eax, eax
	js	.L3
	mov	rdx, QWORD PTR [rbx]
	cdqe
	lea	rax, [rdx+rax*8]
	sub	rdx, 8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	sub	rax, 8
	cmp	rax, rdx
	je	.L3
.L5:
	cmp	QWORD PTR [rax], 0
	mov	r8, rax
	je	.L14
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r8
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_arg_type, .-get_arg_type
	.comm	MP_CMD_DEF_MAX_ARGS,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_cmd.c_get_arg_type.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_arg_type, %function
get_arg_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	bl	is_vararg
	cmp	r0, #0
	ldr	r3, .L13
	bne	.L12
	ldr	r3, [r3]
	cmp	r3, r4
	ble	.L3
	ldr	r3, [r5]
	adds	r0, r3, r4, lsl #2
	beq	.L3
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r1, [r3]
	mov	r0, r4
	sub	r1, r1, #1
	bl	MPMIN
	subs	r3, r0, #0
	blt	.L3
	ldr	r2, [r5]
	add	r2, r2, r3, lsl #2
.L5:
	ldr	r1, [r2]
	mov	r0, r2
	cmp	r1, #0
	sub	r3, r3, #1
	sub	r2, r2, #4
	popne	{r4, r5, r6, pc}
	cmn	r3, #1
	bne	.L5
	b	.L3
.L14:
	.align	2
.L13:
	.word	MP_CMD_DEF_MAX_ARGS
	.size	get_arg_type, .-get_arg_type
	.comm	MP_CMD_DEF_MAX_ARGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
