	.file	"885249.c"
	.intel_syntax noprefix
	.text
	.type	move, @function
move:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rename@PLT
	test	eax, eax
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 18
	jne	.L3
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jns	.L4
	mov	eax, -1
	jmp	.L9
.L4:
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -168[rbp], eax
	cmp	DWORD PTR -168[rbp], 0
	jns	.L6
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L9
.L6:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	jns	.L7
	mov	eax, DWORD PTR -168[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L9
.L7:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	esi, DWORD PTR -172[rbp]
	mov	eax, DWORD PTR -168[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	edi, eax
	call	sendfile@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR -168[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -164[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	unlink@PLT
.L8:
	mov	eax, DWORD PTR -164[rbp]
	jmp	.L9
.L3:
	mov	eax, -1
	jmp	.L9
.L2:
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	move, .-move
	.section	.rodata
.LC0:
	.string	"r"
	.align 8
.LC1:
	.string	"git config core.commentChar 2>/dev/null"
	.text
	.type	comment_char, @function
comment_char:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	movzx	eax, BYTE PTR commentChar.2[rip]
	test	al, al
	jne	.L12
	mov	BYTE PTR commentChar.2[rip], 35
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	popen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L13
	movzx	eax, BYTE PTR commentChar.2[rip]
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	je	.L15
	cmp	DWORD PTR -16[rbp], 10
	je	.L15
	mov	eax, DWORD PTR -16[rbp]
	mov	BYTE PTR commentChar.2[rip], al
.L15:
	cmp	DWORD PTR -16[rbp], -1
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L12
	mov	BYTE PTR commentChar.2[rip], 35
.L12:
	movzx	eax, BYTE PTR commentChar.2[rip]
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comment_char, .-comment_char
	.section	.rodata
	.align 8
.LC2:
	.string	"^(pick|fixup|squash) ([[:xdigit:]]+) "
.LC3:
	.string	"the_stack_data/885249.c"
.LC4:
	.string	"match[2].rm_so != -1"
.LC5:
	.string	"%.*s {{{\n"
.LC6:
	.string	"git show %.*s"
.LC7:
	.string	" %c %s"
.LC8:
	.string	" %c }}}\n"
	.text
	.type	insert_diffs, @function
insert_diffs:
.LFB8:
	.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, 200
	.cfi_offset 3, -24
	mov	QWORD PTR -200[rbp], rdi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -185[rbp], 0
	mov	DWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	lea	rax, -112[rbp]
	mov	edx, 1
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	regcomp@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 0
	jne	.L46
	mov	BYTE PTR -185[rbp], 1
.L41:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR -200[rbp]
	lea	rcx, -168[rbp]
	lea	rax, -176[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -136[rbp], rax
	cmp	QWORD PTR -136[rbp], 0
	jns	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	neg	eax
	mov	DWORD PTR -184[rbp], eax
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jmp	.L18
.L19:
	mov	rsi, QWORD PTR -176[rbp]
	lea	rdx, -48[rbp]
	lea	rax, -112[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 3
	mov	rdi, rax
	call	regexec@PLT
	test	eax, eax
	jne	.L22
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, -1
	jne	.L23
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 169
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L23:
	mov	rdx, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -136[rbp]
	sub	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L24
	sub	QWORD PTR -136[rbp], 1
.L24:
	mov	rdx, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR -208[rbp]
	mov	rcx, rdx
	mov	edx, esi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jns	.L25
	mov	DWORD PTR -184[rbp], -1
	jmp	.L18
.L25:
	mov	rdx, QWORD PTR -176[rbp]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -32[rbp]
	sub	eax, esi
	mov	edx, eax
	lea	rax, -160[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	test	eax, eax
	jns	.L27
	mov	DWORD PTR -184[rbp], -12
	jmp	.L18
.L27:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -160[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L28
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L29
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	neg	eax
	jmp	.L30
.L29:
	mov	eax, -12
.L30:
	mov	DWORD PTR -184[rbp], eax
.L28:
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -184[rbp], 0
	jne	.L47
	mov	QWORD PTR -152[rbp], 0
.L36:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR -120[rbp]
	lea	rcx, -144[rbp]
	lea	rax, -152[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	test	rax, rax
	jns	.L32
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	neg	eax
	mov	DWORD PTR -184[rbp], eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L48
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	pclose@PLT
	jmp	.L18
.L32:
	mov	rbx, QWORD PTR -152[rbp]
	call	comment_char
	movsx	edx, al
	mov	rax, QWORD PTR -208[rbp]
	mov	rcx, rbx
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jns	.L36
	mov	DWORD PTR -184[rbp], -1
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	pclose@PLT
	jmp	.L18
.L48:
	nop
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], -1
	jne	.L37
	mov	DWORD PTR -184[rbp], -1
	jmp	.L18
.L37:
	mov	eax, DWORD PTR -180[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	je	.L38
	mov	eax, DWORD PTR -180[rbp]
	sar	eax, 8
	and	eax, 255
	mov	DWORD PTR -184[rbp], eax
	jmp	.L18
.L38:
	call	comment_char
	movsx	edx, al
	mov	rax, QWORD PTR -208[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jns	.L41
	mov	DWORD PTR -184[rbp], -1
	jmp	.L18
.L22:
	mov	rdx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	rcx, QWORD PTR -208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	cmp	QWORD PTR -128[rbp], rax
	je	.L41
	mov	DWORD PTR -184[rbp], -1
	jmp	.L18
.L46:
	nop
	jmp	.L18
.L47:
	nop
.L18:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	BYTE PTR -185[rbp], 0
	je	.L42
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	regfree@PLT
.L42:
	mov	eax, DWORD PTR -184[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	insert_diffs, .-insert_diffs
	.type	strip_comments, @function
strip_comments:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	BYTE PTR -10[rbp], 32
	call	comment_char
	mov	BYTE PTR -9[rbp], al
.L55:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR -72[rbp]
	lea	rcx, -40[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jns	.L50
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	neg	eax
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jmp	.L52
.L50:
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L58
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	cmp	QWORD PTR -24[rbp], rax
	je	.L55
	mov	DWORD PTR -52[rbp], -1
	jmp	.L52
.L58:
	nop
	jmp	.L55
.L52:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	strip_comments, .-strip_comments
	.section	.rodata
.LC9:
	.string	"usage: %s rebase-file\n"
.LC10:
	.string	"failed to open file"
.LC11:
	.string	"TMPDIR"
.LC12:
	.string	"/tmp"
.LC13:
	.string	"%s/tmp.XXXXXX"
	.align 8
.LC14:
	.string	"failed to create temporary path\n"
.LC15:
	.string	"failed to open temporary file"
.LC16:
	.string	"w"
.LC17:
	.string	"out != NULL"
.LC18:
	.string	"failed to insert diffs: %s\n"
	.align 8
.LC19:
	.string	"failed to overwrite original input\n"
	.align 8
.LC20:
	.string	"vim '+set foldmethod=marker' '+set foldlevel=0' '%s'"
	.align 8
.LC21:
	.string	"failed to construct Vim command\n"
.LC22:
	.string	"executing Vim failed\n"
.LC23:
	.string	"failed to strip comments: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -84[rbp], 2
	je	.L60
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L82
.L60:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L62
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L82
.L62:
	lea	rdi, .LC11[rip]
	call	getenv@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L63
	lea	rax, .LC12[rip]
	mov	QWORD PTR -32[rbp], rax
.L63:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	test	eax, eax
	jns	.L64
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L82
.L64:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	mkstemp@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jns	.L65
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L82
.L65:
	mov	eax, DWORD PTR -76[rbp]
	lea	rsi, .LC16[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L66
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 319
	lea	rsi, .LC3[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L66:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	insert_diffs
	mov	DWORD PTR -72[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -72[rbp], 0
	je	.L67
	mov	eax, DWORD PTR -72[rbp]
	neg	eax
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	unlink@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L82
.L67:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	move
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jns	.L68
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	unlink@PLT
.L68:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -68[rbp], 0
	jns	.L69
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L82
.L69:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -40[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	test	eax, eax
	jns	.L70
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L82
.L70:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -64[rbp], -1
	jne	.L72
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L82
.L72:
	mov	eax, DWORD PTR -64[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	je	.L73
	mov	eax, DWORD PTR -64[rbp]
	sar	eax, 8
	movzx	eax, al
	jmp	.L82
.L73:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L84
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L82
.L84:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	test	eax, eax
	jns	.L76
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L82
.L76:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	mkstemp@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L77
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L82
.L77:
	mov	eax, DWORD PTR -60[rbp]
	lea	rsi, .LC16[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L78
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 388
	lea	rsi, .LC3[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L78:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strip_comments
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -56[rbp], 0
	je	.L79
	mov	eax, DWORD PTR -56[rbp]
	neg	eax
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	unlink@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L82
.L79:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	move
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L80
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	unlink@PLT
.L80:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -52[rbp], 0
	jns	.L81
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L82
.L81:
	mov	eax, 0
.L82:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.local	commentChar.2
	.comm	commentChar.2,1,1
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 13
__PRETTY_FUNCTION__.1:
	.string	"insert_diffs"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"885249.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	move, %function
move:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	rename
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #18
	bne	.L3
	mov	r1, #0
	ldr	r0, [fp, #-120]
	bl	open
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L4
	mvn	r3, #0
	b	.L9
.L4:
	mov	r2, #420
	ldr	r1, .L11+4
	ldr	r0, [fp, #-124]
	bl	open
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L6
	ldr	r0, [fp, #-112]
	bl	close
	mvn	r3, #0
	b	.L9
.L6:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, [fp, #-108]
	bl	close
	ldr	r0, [fp, #-112]
	bl	close
	mvn	r3, #0
	b	.L9
.L7:
	ldr	r3, [fp, #-56]
	mov	r2, #0
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-108]
	bl	sendfile
	str	r0, [fp, #-104]
	ldr	r0, [fp, #-108]
	bl	close
	ldr	r0, [fp, #-112]
	bl	close
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L8
	ldr	r0, [fp, #-120]
	bl	unlink
.L8:
	ldr	r3, [fp, #-104]
	b	.L9
.L3:
	mvn	r3, #0
	b	.L9
.L2:
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	577
	.size	move, .-move
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"git config core.commentChar 2>/dev/null\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	comment_char, %function
comment_char:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L18
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L18
	mov	r2, #35
	strb	r2, [r3]
	ldr	r1, .L18+4
	ldr	r0, .L18+8
	bl	popen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L18
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L16
.L15:
	ldr	r0, [fp, #-16]
	bl	getc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L17
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L17
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, .L18
	strb	r2, [r3]
.L17:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L15
	ldr	r0, [fp, #-16]
	bl	pclose
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L18
	mov	r2, #35
	strb	r2, [r3]
.L14:
	ldr	r3, .L18
	ldrb	r3, [r3]	@ zero_extendqisi2
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	commentChar.6752
	.word	.LC1
	.word	.LC2
	.size	comment_char, .-comment_char
	.section	.rodata
	.align	2
.LC3:
	.ascii	"^(pick|fixup|squash) ([[:xdigit:]]+) \000"
	.align	2
.LC4:
	.ascii	"the_stack_data/885249.c\000"
	.align	2
.LC5:
	.ascii	"match[2].rm_so != -1\000"
	.align	2
.LC6:
	.ascii	"%.*s {{{\012\000"
	.align	2
.LC7:
	.ascii	"git show %.*s\000"
	.align	2
.LC8:
	.ascii	" %c %s\000"
	.align	2
.LC9:
	.ascii	" %c }}}\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_diffs, %function
insert_diffs:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-105]
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-104]
	sub	r3, fp, #64
	mov	r2, #1
	ldr	r1, .L53+4
	mov	r0, r3
	bl	regcomp
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L50
	mov	r3, #1
	strb	r3, [fp, #-105]
.L45:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r1, fp, #100
	sub	r3, fp, #104
	ldr	r2, [fp, #-112]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bge	.L23
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-84]
	ldr	r0, [fp, #-112]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	b	.L22
.L23:
	ldr	r1, [fp, #-104]
	sub	r3, fp, #32
	sub	r0, fp, #64
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #3
	bl	regexec
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L27
	ldr	r3, .L53+8
	mov	r2, #169
	ldr	r1, .L53+12
	ldr	r0, .L53+16
	bl	__assert_fail
.L27:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-80]
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L28
	ldr	r3, [fp, #-80]
	sub	r3, r3, #1
	str	r3, [fp, #-80]
.L28:
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-80]
	ldr	r1, .L53+20
	ldr	r0, [fp, #-116]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L29
	mvn	r3, #0
	str	r3, [fp, #-84]
	b	.L22
.L29:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r2, r2, r3
	ldr	r3, [fp, #-104]
	ldr	r1, [fp, #-16]
	add	r3, r3, r1
	sub	r0, fp, #96
	ldr	r1, .L53+24
	bl	asprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L31
	mvn	r3, #11
	str	r3, [fp, #-84]
	b	.L22
.L31:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-96]
	ldr	r1, .L53+28
	mov	r0, r3
	bl	popen
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L32
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L33
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L34
.L33:
	mvn	r3, #11
.L34:
	str	r3, [fp, #-84]
.L32:
	ldr	r3, [fp, #-96]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L51
	mov	r3, #0
	str	r3, [fp, #-92]
.L40:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r1, fp, #88
	sub	r3, fp, #92
	ldr	r2, [fp, #-72]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmp	r3, #0
	bge	.L36
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-84]
	ldr	r0, [fp, #-72]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-72]
	bl	pclose
	b	.L22
.L36:
	bl	comment_char
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-92]
	ldr	r1, .L53+32
	ldr	r0, [fp, #-116]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L40
	mvn	r3, #0
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-72]
	bl	pclose
	b	.L22
.L52:
	nop
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-72]
	bl	pclose
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmn	r3, #1
	bne	.L41
	mvn	r3, #0
	str	r3, [fp, #-84]
	b	.L22
.L41:
	ldr	r3, [fp, #-68]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-68]
	asr	r3, r3, #8
	and	r3, r3, #255
	str	r3, [fp, #-84]
	b	.L22
.L42:
	bl	comment_char
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L53+36
	ldr	r0, [fp, #-116]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L45
	mvn	r3, #0
	str	r3, [fp, #-84]
	b	.L22
.L26:
	ldr	r0, [fp, #-104]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-116]
	mov	r1, #1
	bl	fwrite
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	beq	.L45
	mvn	r3, #0
	str	r3, [fp, #-84]
	b	.L22
.L50:
	nop
	b	.L22
.L51:
	nop
.L22:
	ldr	r3, [fp, #-104]
	mov	r0, r3
	bl	free
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L46
	sub	r3, fp, #64
	mov	r0, r3
	bl	regfree
.L46:
	ldr	r3, [fp, #-84]
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC10
	.word	.LC3
	.word	__PRETTY_FUNCTION__.6771
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC1
	.word	.LC8
	.word	.LC9
	.size	insert_diffs, .-insert_diffs
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strip_comments, %function
strip_comments:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #32
	strb	r3, [fp, #-12]
	bl	comment_char
	mov	r3, r0
	strb	r3, [fp, #-11]
.L61:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r1, fp, #28
	sub	r3, fp, #32
	ldr	r2, [fp, #-40]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L56
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	b	.L58
.L56:
	ldr	r3, [fp, #-32]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	ldr	r0, [fp, #-32]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	mov	r1, #1
	bl	fwrite
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L61
	mvn	r3, #0
	str	r3, [fp, #-24]
	b	.L58
.L64:
	nop
	b	.L61
.L58:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-24]
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC11
	.size	strip_comments, .-strip_comments
	.section	.rodata
	.align	2
.LC12:
	.ascii	"usage: %s rebase-file\012\000"
	.align	2
.LC13:
	.ascii	"failed to open file\000"
	.align	2
.LC14:
	.ascii	"TMPDIR\000"
	.align	2
.LC15:
	.ascii	"/tmp\000"
	.align	2
.LC16:
	.ascii	"%s/tmp.XXXXXX\000"
	.align	2
.LC17:
	.ascii	"failed to create temporary path\012\000"
	.align	2
.LC18:
	.ascii	"failed to open temporary file\000"
	.align	2
.LC19:
	.ascii	"w\000"
	.align	2
.LC20:
	.ascii	"out != NULL\000"
	.align	2
.LC21:
	.ascii	"failed to insert diffs: %s\012\000"
	.align	2
.LC22:
	.ascii	"failed to overwrite original input\012\000"
	.align	2
.LC23:
	.ascii	"vim '+set foldmethod=marker' '+set foldlevel=0' '%s"
	.ascii	"'\000"
	.align	2
.LC24:
	.ascii	"failed to construct Vim command\012\000"
	.align	2
.LC25:
	.ascii	"executing Vim failed\012\000"
	.align	2
.LC26:
	.ascii	"failed to strip comments: %s\012\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L93
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-72]
	cmp	r3, #2
	beq	.L68
	ldr	r3, .L93+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L93+8
	bl	fprintf
	mov	r3, #1
	b	.L90
.L68:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L93+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L70
	ldr	r0, .L93+16
	bl	perror
	mov	r3, #1
	b	.L90
.L70:
	ldr	r0, .L93+20
	bl	getenv
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L71
	ldr	r3, .L93+24
	str	r3, [fp, #-56]
.L71:
	sub	r3, fp, #64
	ldr	r2, [fp, #-56]
	ldr	r1, .L93+28
	mov	r0, r3
	bl	asprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L72
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L93+32
	bl	fwrite
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L90
.L72:
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	mkstemp
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L73
	ldr	r0, .L93+36
	bl	perror
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L90
.L73:
	ldr	r1, .L93+40
	ldr	r0, [fp, #-48]
	bl	fdopen
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L74
	ldr	r3, .L93+44
	ldr	r2, .L93+48
	ldr	r1, .L93+52
	ldr	r0, .L93+56
	bl	__assert_fail
.L74:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-52]
	bl	insert_diffs
	str	r0, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	fclose
	ldr	r0, [fp, #-52]
	bl	fclose
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L75
	ldr	r3, .L93+4
	ldr	r4, [r3]
	ldr	r3, [fp, #-40]
	rsb	r3, r3, #0
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L93+60
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	unlink
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	free
	mov	r3, #1
	b	.L90
.L75:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	move
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L76
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	unlink
.L76:
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L77
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L93+64
	bl	fwrite
	mov	r3, #1
	b	.L90
.L77:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #60
	ldr	r1, .L93+68
	mov	r0, r3
	bl	asprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L78
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L93+72
	bl	fwrite
	mov	r3, #1
	b	.L90
.L78:
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	system
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L80
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L93+76
	bl	fwrite
	mov	r3, #1
	b	.L90
.L80:
	ldr	r3, [fp, #-32]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-32]
	asr	r3, r3, #8
	and	r3, r3, #255
	b	.L90
.L81:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L93+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L92
	ldr	r0, .L93+16
	bl	perror
	mov	r3, #1
	b	.L90
.L92:
	sub	r3, fp, #64
	ldr	r2, [fp, #-56]
	ldr	r1, .L93+28
	mov	r0, r3
	bl	asprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L84
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L93+32
	bl	fwrite
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L90
.L84:
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	mkstemp
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L85
	ldr	r0, .L93+36
	bl	perror
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L90
.L85:
	ldr	r1, .L93+40
	ldr	r0, [fp, #-28]
	bl	fdopen
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L86
	ldr	r3, .L93+44
	mov	r2, #388
	ldr	r1, .L93+52
	ldr	r0, .L93+56
	bl	__assert_fail
.L86:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-52]
	bl	strip_comments
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-44]
	bl	fclose
	ldr	r0, [fp, #-52]
	bl	fclose
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L87
	ldr	r3, .L93+4
	ldr	r4, [r3]
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #0
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L93+80
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	unlink
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	free
	mov	r3, #1
	b	.L90
.L87:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	move
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L88
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	unlink
.L88:
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L89
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L93+64
	bl	fwrite
	mov	r3, #1
	b	.L90
.L89:
	mov	r3, #0
.L90:
	ldr	r2, .L93
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L91
	bl	__stack_chk_fail
.L91:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L94:
	.align	2
.L93:
	.word	.LC27
	.word	stderr
	.word	.LC12
	.word	.LC1
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	__PRETTY_FUNCTION__.6804
	.word	319
	.word	.LC4
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	main, .-main
	.local	commentChar.6752
	.comm	commentChar.6752,1,1
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6771, %object
	.size	__PRETTY_FUNCTION__.6771, 13
__PRETTY_FUNCTION__.6771:
	.ascii	"insert_diffs\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6804, %object
	.size	__PRETTY_FUNCTION__.6804, 5
__PRETTY_FUNCTION__.6804:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
