	# this is autogenerated!
main:

	li	$v0, 65
	sb	$v0, buf_1 + 0
	li	$v0, 66
	sb	$v0, buf_1 + 1
	li	$v0, 67
	sb	$v0, buf_1 + 2
	li	$v0, 68
	sb	$v0, buf_1 + 3
	li	$v0, 69
	sb	$v0, buf_1 + 4
	li	$v0, 70
	sb	$v0, buf_1 + 5

	# fd_0 = open("data.txt", 1);
	# printf("%s", "open(\"data.txt\", 1) ==> ")
	li	$v0, 4
	la	$a0, string_1
	syscall
	li	$v0, 13
	la	$a0, string_0
	li	$a1, 1
	syscall
	move	$s0, $v0
	# print open() result
	move	$a0, $s0
	li	$v0, 1
	syscall
	# printf("%s", "\n")
	li	$v0, 4
	la	$a0, string_2
	syscall
	# write(fd_0, buf_1, 5);
	# printf("%s", "write(")
	li	$v0, 4
	la	$a0, string_3
	syscall
	move	$a0, $s0
	li	$v0, 1
	syscall
	# printf("%s", ", buf_1, 5) ==> ")
	li	$v0, 4
	la	$a0, string_4
	syscall
	li	$v0, 15
	move	$a0, $s0
	la	$a1, buf_1
	li	$a2, 5
	syscall
	# print write() result
	move	$a0, $v0
	li	$v0, 1
	syscall
	# printf("%s", "\n")
	li	$v0, 4
	la	$a0, string_2
	syscall
	# write(fd_0, buf_1, 5);
	# printf("%s", "write(")
	li	$v0, 4
	la	$a0, string_3
	syscall
	move	$a0, $s0
	li	$v0, 1
	syscall
	# printf("%s", ", buf_1, 5) ==> ")
	li	$v0, 4
	la	$a0, string_4
	syscall
	li	$v0, 15
	move	$a0, $s0
	la	$a1, buf_1
	li	$a2, 5
	syscall
	# print write() result
	move	$a0, $v0
	li	$v0, 1
	syscall
	# printf("%s", "\n")
	li	$v0, 4
	la	$a0, string_2
	syscall
	# write(fd_0, buf_1, 6);
	# printf("%s", "write(")
	li	$v0, 4
	la	$a0, string_3
	syscall
	move	$a0, $s0
	li	$v0, 1
	syscall
	# printf("%s", ", buf_1, 6) ==> ")
	li	$v0, 4
	la	$a0, string_5
	syscall
	li	$v0, 15
	move	$a0, $s0
	la	$a1, buf_1
	li	$a2, 6
	syscall
	# print write() result
	move	$a0, $v0
	li	$v0, 1
	syscall
	# printf("%s", "\n")
	li	$v0, 4
	la	$a0, string_2
	syscall
	# write(fd_0, buf_1, 7);
	# printf("%s", "write(")
	li	$v0, 4
	la	$a0, string_3
	syscall
	move	$a0, $s0
	li	$v0, 1
	syscall
	# printf("%s", ", buf_1, 7) ==> ")
	li	$v0, 4
	la	$a0, string_6
	syscall
	li	$v0, 15
	move	$a0, $s0
	la	$a1, buf_1
	li	$a2, 7
	syscall
	# print write() result
	move	$a0, $v0
	li	$v0, 1
	syscall
	# printf("%s", "\n")
	li	$v0, 4
	la	$a0, string_2
	syscall
	li	$v0, 10
	syscall

.data
string_0:
	.asciiz	"data.txt"
string_1:
	.asciiz	"open(\"data.txt\", 1) ==> "
string_2:
	.asciiz	"\n"
string_3:
	.asciiz	"write("
string_4:
	.asciiz	", buf_1, 5) ==> "
string_5:
	.asciiz	", buf_1, 6) ==> "
string_6:
	.asciiz	", buf_1, 7) ==> "
buf_1:
	.byte 42:6
