	.file	"extr_3627.c_validate_args.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[-] The shellcode number is invalid\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"[-] The target is invalid\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"[-] The imail version is invalid\n"
	.section	.rodata.str1.1
.LC3:
	.string	"[-] The port is invalid\n"
	.text
	.p2align 4
	.globl	validate_args
	.type	validate_args, @function
validate_args:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	r9, QWORD PTR shellcodes[rip]
	cmp	QWORD PTR [r9], 0
	je	.L2
	xor	eax, eax
	xor	r8d, r8d
	mov	r10d, 1
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	esi, eax
	cmove	r8d, r10d
	add	rax, 1
	cmp	QWORD PTR [r9+rax*8], 0
	jne	.L4
	test	r8d, r8d
	je	.L2
	mov	r9, QWORD PTR targets[rip]
	xor	eax, eax
	xor	esi, esi
	cmp	QWORD PTR [r9], 0
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	edx, eax
	cmove	esi, r8d
	add	rax, 1
	cmp	QWORD PTR [r9+rax*8], 0
	jne	.L5
	test	esi, esi
	je	.L6
	mov	rdx, QWORD PTR imailfix[rip]
	xor	eax, eax
	xor	r8d, r8d
	cmp	QWORD PTR [rdx], 0
	je	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	ecx, eax
	cmove	r8d, esi
	add	rax, 1
	cmp	QWORD PTR [rdx+rax*8], 0
	jne	.L9
	test	r8d, r8d
	je	.L10
	test	edi, edi
	jle	.L31
.L1:
	mov	eax, r8d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	r8d, -1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	eax, r8d
	ret
.L31:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	call	printf@PLT
	mov	r8d, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, .LC1[rip]
	call	printf@PLT
	mov	r8d, -1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	printf@PLT
	mov	r8d, -1
	add	rsp, 8
	.cfi_def_cfa_offset 8
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	validate_args, .-validate_args
	.comm	targets,8,8
	.comm	shellcodes,8,8
	.comm	imailfix,8,8
	.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_3627.c_validate_args.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[-] The shellcode number is invalid\012\000"
	.align	2
.LC1:
	.ascii	"[-] The target is invalid\012\000"
	.align	2
.LC2:
	.ascii	"[-] The imail version is invalid\012\000"
	.align	2
.LC3:
	.ascii	"[-] The port is invalid\012\000"
	.text
	.align	2
	.global	validate_args
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate_args, %function
validate_args:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L29
	push	{r4, r5, r6, lr}
	ldr	r5, [ip]
	mov	r6, r0
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L2
	mov	lr, #0
	mov	r4, lr
.L4:
	ldr	ip, [r5, #4]!
	cmp	r1, r4
	moveq	lr, #1
	cmp	ip, #0
	add	r4, r4, #1
	bne	.L4
	cmp	lr, #0
	beq	.L2
	ldr	r1, .L29+4
	ldr	r4, [r1]
	ldr	r1, [r4]
	cmp	r1, #0
	movne	r1, ip
	beq	.L6
.L9:
	ldr	r0, [r4, #4]!
	cmp	r2, r1
	moveq	ip, lr
	cmp	r0, #0
	add	r1, r1, #1
	bne	.L9
	cmp	ip, #0
	beq	.L6
	ldr	r2, .L29+8
	ldr	r1, [r2]
	ldr	r2, [r1]
	cmp	r2, #0
	movne	r2, r0
	beq	.L11
.L13:
	ldr	lr, [r1, #4]!
	cmp	r3, r2
	moveq	r0, ip
	cmp	lr, #0
	add	r2, r2, #1
	bne	.L13
	cmp	r0, #0
	beq	.L11
	cmp	r6, #0
	popgt	{r4, r5, r6, pc}
	ldr	r0, .L29+12
	bl	printf
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, .L29+16
	bl	printf
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r0, .L29+20
	bl	printf
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r0, .L29+24
	bl	printf
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L30:
	.align	2
.L29:
	.word	shellcodes
	.word	targets
	.word	imailfix
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	validate_args, .-validate_args
	.comm	targets,4,4
	.comm	shellcodes,4,4
	.comm	imailfix,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
