	.file	"340827.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: aggit <path/to/repo>\n"
.LC1:
	.string	"cd "
.LC2:
	.string	" && git diff HEAD^"
.LC3:
	.string	"r"
.LC4:
	.string	"%s"
.LC5:
	.string	"add: %d\n"
.LC6:
	.string	"remove: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 576
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -564[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	jmp	.L9
.L2:
	mov	DWORD PTR -560[rbp], 0
	mov	DWORD PTR -556[rbp], 0
	lea	rax, .LC1[rip]
	mov	QWORD PTR -552[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -544[rbp], rax
	mov	rdx, QWORD PTR -552[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rdx, QWORD PTR -544[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L5
	lea	rax, -272[rbp]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L7:
	movzx	eax, BYTE PTR -528[rbp]
	cmp	al, 43
	jne	.L6
	add	DWORD PTR -560[rbp], 1
	jmp	.L5
.L6:
	movzx	eax, BYTE PTR -528[rbp]
	cmp	al, 45
	jne	.L5
	add	DWORD PTR -556[rbp], 1
.L5:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	eax, DWORD PTR -560[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -556[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L9:
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-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	"340827.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: aggit <path/to/repo>\012\000"
	.align	2
.LC1:
	.ascii	"cd \000"
	.align	2
.LC2:
	.ascii	" && git diff HEAD^\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC5:
	.ascii	"add: %d\012\000"
	.align	2
.LC6:
	.ascii	"remove: %d\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-544]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L10+8
	bl	fwrite
	mov	r3, #1
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	b	.L9
.L2:
	mov	r3, #0
	str	r3, [fp, #-540]
	mov	r3, #0
	str	r3, [fp, #-536]
	ldr	r3, .L10+12
	str	r3, [fp, #-532]
	ldr	r3, .L10+16
	str	r3, [fp, #-528]
	sub	r3, fp, #264
	ldr	r1, [fp, #-532]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-548]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #264
	ldr	r1, [fp, #-528]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #264
	ldr	r1, .L10+20
	mov	r0, r3
	bl	popen
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #264
	mov	r2, r3
	ldr	r1, .L10+24
	mov	r0, #1
	bl	err
.L7:
	ldrb	r3, [fp, #-520]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L6
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
	b	.L5
.L6:
	ldrb	r3, [fp, #-520]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L5
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L5:
	sub	r3, fp, #520
	ldr	r2, [fp, #-524]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, [fp, #-524]
	bl	pclose
	ldr	r1, [fp, #-540]
	ldr	r0, .L10+28
	bl	printf
	ldr	r1, [fp, #-536]
	ldr	r0, .L10+32
	bl	printf
	mov	r0, #0
	bl	exit
.L9:
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC7
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
