	.file	"3821.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"COMSPEC"
.LC1:
	.string	"SystemRoot"
.LC2:
	.string	"\\system32\\cmd.exe"
.LC3:
	.string	" /q"
.LC4:
	.string	"-c"
.LC5:
	.string	" "
.LC6:
	.string	"-p"
.LC7:
	.string	"Command to execute: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 312
	.cfi_offset 3, -24
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	lea	rdx, -272[rbp]
	mov	eax, 0
	mov	ecx, 29
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	rcx, rax
	lea	rax, -288[rbp]
	mov	edx, 254
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -34[rbp], 0
	movzx	eax, BYTE PTR -288[rbp]
	movzx	eax, al
	test	eax, eax
	jne	.L2
	lea	rdi, .LC1[rip]
	call	getenv@PLT
	mov	rcx, rax
	lea	rax, -288[rbp]
	mov	edx, 254
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -34[rbp], 0
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, 254
	sub	rdx, rax
	lea	rax, -288[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncat@PLT
.L2:
	mov	DWORD PTR -296[rbp], 0
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	movzx	eax, BYTE PTR -288[rbp+rax]
	cmp	al, 92
	jne	.L4
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	mov	BYTE PTR -288[rbp+rax], 47
.L4:
	add	DWORD PTR -296[rbp], 1
.L3:
	mov	eax, DWORD PTR -296[rbp]
	movsx	rbx, eax
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L5
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, 254
	sub	rdx, rax
	lea	rax, -288[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strncat@PLT
	cmp	DWORD PTR -308[rbp], 1
	jle	.L6
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	BYTE PTR -288[rbp], 0
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	add	rax, rdx
	movabs	rbx, 3344049370875650607
	movabs	rsi, 2459074442012489829
	mov	QWORD PTR [rax], rbx
	mov	QWORD PTR 8[rax], rsi
	mov	BYTE PTR 16[rax], 0
	mov	DWORD PTR -292[rbp], 2
	jmp	.L7
.L8:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, 254
	sub	rdx, rax
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, 254
	sub	rdx, rax
	lea	rax, -288[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncat@PLT
	add	DWORD PTR -292[rbp], 1
.L7:
	mov	eax, DWORD PTR -292[rbp]
	cmp	eax, DWORD PTR -308[rbp]
	jl	.L8
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 34
.L6:
	cmp	DWORD PTR -308[rbp], 1
	jle	.L9
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"3821.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"COMSPEC\000"
	.align	2
.LC1:
	.ascii	"SystemRoot\000"
	.align	2
.LC2:
	.ascii	"\\system32\\cmd.exe\000"
	.align	2
.LC3:
	.ascii	" /q\000"
	.align	2
.LC4:
	.ascii	"-c\000"
	.align	2
.LC5:
	.ascii	"/bin/sh.exe -c \"\000"
	.align	2
.LC6:
	.ascii	" \000"
	.align	2
.LC7:
	.ascii	"\"\000"
	.align	2
.LC8:
	.ascii	"-p\000"
	.align	2
.LC9:
	.ascii	"Command to execute: %s\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #284
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-272]
	sub	r3, fp, #268
	mov	r2, #251
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L12+4
	bl	getenv
	mov	r1, r0
	sub	r3, fp, #272
	mov	r2, #254
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-18]
	ldrb	r3, [fp, #-272]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L12+8
	bl	getenv
	mov	r1, r0
	sub	r3, fp, #272
	mov	r2, #254
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-18]
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	rsb	r2, r3, #254
	sub	r3, fp, #272
	ldr	r1, .L12+12
	mov	r0, r3
	bl	strncat
.L2:
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L3
.L5:
	sub	r2, fp, #272
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L4
	sub	r2, fp, #272
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	mov	r2, #47
	strb	r2, [r3]
.L4:
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L3:
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-280]
	cmp	r2, r3
	bhi	.L5
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	rsb	r2, r3, #254
	sub	r3, fp, #272
	ldr	r1, .L12+16
	mov	r0, r3
	bl	strncat
	ldr	r3, [fp, #-288]
	cmp	r3, #1
	ble	.L6
	ldr	r3, [fp, #-292]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L12+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	strb	r3, [fp, #-272]
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #272
	add	r3, r3, r2
	ldr	r2, .L12+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #17
	mov	r2, r3
	bl	memcpy
	mov	r3, #2
	str	r3, [fp, #-276]
	b	.L7
.L8:
	ldr	r3, [fp, #-276]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-292]
	add	r3, r2, r3
	ldr	r4, [r3]
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	rsb	r2, r3, #254
	sub	r3, fp, #272
	mov	r1, r4
	mov	r0, r3
	bl	strncat
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	rsb	r2, r3, #254
	sub	r3, fp, #272
	ldr	r1, .L12+28
	mov	r0, r3
	bl	strncat
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L7:
	ldr	r2, [fp, #-276]
	ldr	r3, [fp, #-288]
	cmp	r2, r3
	blt	.L8
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #272
	add	r3, r3, r2
	ldr	r2, .L12+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L6:
	ldr	r3, [fp, #-288]
	cmp	r3, #1
	ble	.L9
	ldr	r3, [fp, #-292]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L12+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L12+40
	bl	printf
.L9:
	sub	r3, fp, #272
	mov	r0, r3
	bl	system
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
