#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
void *atoi(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fread(struct id3tag *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
int /*<<< orphan*/ fwrite(struct id3tag *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
scalar_t__ strncmp(char *, char *, int);
int /*<<< orphan*/ strncpy(char *, char *, int);
int main(int argc, char *argv[]) {
  struct id3tag {
    char identifier[3];
    char title[30];
    char artist[30];
    char album[30];
    char year[4];
    char comment[28];
    char separator;
    unsigned char tracknumber;
    unsigned char genre;
  };
  char *file_location;
  struct id3tag the_tag;
  int counter;
  FILE *musicfile;
  FILE *write_file;
  if (argc == 1) {
    printf(
        "You entered no filename!\nCorrect usage:\nPROGRAMNAME "
        "FILE_NAME.EXT\n\tDisplay current ID3v1.1 data in a file\nPROGRAMNAME "
        "FILE_NAME.EXT -SWITCH NEW_DATA ...\n\tEither changes the existing "
        "ID3v1.1 data, or creates a new tag with the specified data.\n");
    printf("\nAvailable switches:");
    printf("\n-TITLE \"TITLE_DATA\"\t-\tSets the title to the specified data");
    printf(
        "\n-ARTIST \"ARTIST_DATA\"\t-\tSets the artist to the specified data");
    printf("\n-ALBUM \"ALBUM_DATA\"\t-\tSets the album to the specified data");
    printf("\n-YEAR \"YEAR_DATA\"\t-\tSets the year to the specified data");
    printf("\n-COMMENT \"COMMENT_DATA\"\t-\tSets the comment to the specified "
           "data");
    printf("\n-TRACK \"TRACK_NUMBER\"\t-\tSets the track to the specified "
           "number\n\n");
  } else if (argc == 2) {
    printf("Filename: %s\n", argv[1]);
    musicfile = fopen(argv[1], "rb");
    if (musicfile == NULL)
      printf("You entered an invalid filename! :(\n");
    else {
      fseek(musicfile, -128L, SEEK_END);
      fread(&the_tag, 1, 128, musicfile);
      fclose(musicfile);
      if (strncmp(the_tag.identifier, "TAG", 3) == 0) {
        printf("\nIdentifier: %-3.3s\n", the_tag.identifier);
        printf("Title: %-30.30s\n", the_tag.title);
        printf("Artist: %-30.30s\n", the_tag.artist);
        printf("Album: %-30.30s\n", the_tag.album);
        printf("Year: %-4.4s\n", the_tag.year);
        printf("Comment: %-28.28s\n", the_tag.comment);
        printf("Track number: %d\n", the_tag.tracknumber);
        printf("Genre: %d\n\n", the_tag.genre);
      } else {
        printf("There was no ID3v1.1 tag in the specified file :(\n");
      }
    }
  } else if ((argc % 2) == 1)
    printf("Invalid number of arguments!\n");
  else if ((argc % 2) == 0) {
    printf("Filename: %s\n", argv[1]);
    printf("Current ID3v1.1 data:\n");
    musicfile = fopen(argv[1], "rb");
    if (musicfile == NULL)
      printf("You entered an invalid filename! :(\n");
    else {
      fseek(musicfile, -128L, SEEK_END);
      fread(&the_tag, 1, 128, musicfile);
      fclose(musicfile);
      if (strncmp(the_tag.identifier, "TAG", 3) == 0) {
        for (counter = 2; counter < argc; counter++) {
          if ((strcmp(argv[counter], "-TITLE")) == 0)
            strncpy(the_tag.title, argv[++counter], 30);
          else if ((strcmp(argv[counter], "-ARTIST")) == 0)
            strncpy(the_tag.artist, argv[++counter], 30);
          else if ((strcmp(argv[counter], "-ALBUM")) == 0)
            strncpy(the_tag.album, argv[++counter], 30);
          else if ((strcmp(argv[counter], "-YEAR")) == 0)
            strncpy(the_tag.year, argv[++counter], 4);
          else if ((strcmp(argv[counter], "-COMMENT")) == 0)
            strncpy(the_tag.comment, argv[++counter], 28);
          else if ((strcmp(argv[counter], "-TRACK")) == 0)
            the_tag.tracknumber = atoi(argv[++counter]);
        }
        write_file = fopen(argv[1], "r+b");
        if (write_file == NULL)
          return (1);
        fseek(write_file, -128L, SEEK_END);
        fwrite(&the_tag, 1, 128, write_file);
        fclose(write_file);
      } else {
        printf("Current ID3v1.1 tag:\n");
        printf("The file did not have an existing ID3v1.1 tag.\n");
        strncpy(the_tag.identifier, "TAG", 3);
        strncpy(the_tag.title, "", 30);
        strncpy(the_tag.artist, "", 30);
        strncpy(the_tag.album, "", 30);
        strncpy(the_tag.year, "", 4);
        strncpy(the_tag.comment, "", 28);
        the_tag.separator = '\0';
        the_tag.tracknumber = atoi("");
        the_tag.genre = atoi("");
        for (counter = 2; counter < argc; counter++) {
          if ((strcmp(argv[counter], "-TITLE")) == 0)
            strncpy(the_tag.title, argv[++counter], 30);
          else if ((strcmp(argv[counter], "-ARTIST")) == 0)
            strncpy(the_tag.artist, argv[++counter], 30);
          else if ((strcmp(argv[counter], "-ALBUM")) == 0)
            strncpy(the_tag.album, argv[++counter], 30);
          else if ((strcmp(argv[counter], "-YEAR")) == 0)
            strncpy(the_tag.year, argv[++counter], 4);
          else if ((strcmp(argv[counter], "-COMMENT")) == 0)
            strncpy(the_tag.comment, argv[++counter], 28);
          else if ((strcmp(argv[counter], "-TRACK")) == 0)
            the_tag.tracknumber = atoi(argv[++counter]);
        }
        write_file = fopen(argv[1], "ab");
        if (write_file == NULL)
          return (1);
        fwrite(&the_tag, 1, 128, write_file);
        fclose(write_file);
      }
      printf("\nNew ID3v1.1 data:\n");
      printf("\nIdentifier: %-3.3s\n", the_tag.identifier);
      printf("Title: %-30.30s\n", the_tag.title);
      printf("Artist: %-30.30s\n", the_tag.artist);
      printf("Album: %-30.30s\n", the_tag.album);
      printf("Year: %-4.4s\n", the_tag.year);
      printf("Comment: %-28.28s\n", the_tag.comment);
      printf("Track number: %d\n", the_tag.tracknumber);
      printf("Genre: %d\n\n", the_tag.genre);
    }
  } else {
    printf("\nSomething bad happened? :O \n");
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1238 <main+0x98>
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xf50(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xf81(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xfaf(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xfda(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0x100e(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1c1f <main+0xa7f>
cmpl   $0x2,-0x8(%rbp)
jne    13ce <main+0x22e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0x102b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x1023(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xa8(%rbp)
cmpq   $0x0,-0xa8(%rbp)
jne    1294 <main+0xf4>
lea    0x1005(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    13c9 <main+0x229>
mov    -0xa8(%rbp),%rdi
mov    0x2d46(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffffffffff80,%rsi
call   1090 <fseek@plt>
lea    -0x98(%rbp),%rdi
mov    -0xa8(%rbp),%rcx
mov    $0x1,%esi
mov    $0x80,%edx
call   1050 <fread@plt>
mov    -0xa8(%rbp),%rdi
call   1060 <fclose@plt>
lea    -0x98(%rbp),%rdi
lea    0xfcb(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    13b6 <main+0x216>
lea    -0x98(%rbp),%rsi
lea    0xfad(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
add    $0x3,%rsi
lea    0xfa9(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
add    $0x21,%rsi
lea    0xfa1(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
add    $0x3f,%rsi
lea    0xf9a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
add    $0x5d,%rsi
lea    0xf92(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
add    $0x61,%rsi
lea    0xf87(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movzbl -0x1a(%rbp),%esi
lea    0xf88(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movzbl -0x19(%rbp),%esi
lea    0xf88(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    13c4 <main+0x224>
lea    0xf81(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    13c9 <main+0x229>
jmp    1c1a <main+0xa7a>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    13f5 <main+0x255>
lea    0xf88(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1c15 <main+0xa75>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1bf6 <main+0xa56>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xf69(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe4e(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xa8(%rbp)
cmpq   $0x0,-0xa8(%rbp)
jne    1469 <main+0x2c9>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1bf1 <main+0xa51>
mov    -0xa8(%rbp),%rdi
mov    0x2b71(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffffffffff80,%rsi
call   1090 <fseek@plt>
lea    -0x98(%rbp),%rdi
mov    -0xa8(%rbp),%rcx
mov    $0x1,%esi
mov    $0x80,%edx
call   1050 <fread@plt>
mov    -0xa8(%rbp),%rdi
call   1060 <fclose@plt>
lea    -0x98(%rbp),%rdi
lea    0xdf6(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    179e <main+0x5fe>
movl   $0x2,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    171f <main+0x57f>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xea7(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1542 <main+0x3a2>
lea    -0x98(%rbp),%rdi
add    $0x3,%rdi
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
jmp    1706 <main+0x566>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe55(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    159b <main+0x3fb>
lea    -0x98(%rbp),%rdi
add    $0x21,%rdi
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
jmp    1701 <main+0x561>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe04(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    15f4 <main+0x454>
lea    -0x98(%rbp),%rdi
add    $0x3f,%rdi
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
jmp    16fc <main+0x55c>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdb2(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    164d <main+0x4ad>
lea    -0x98(%rbp),%rdi
add    $0x5d,%rdi
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x4,%edx
call   1030 <strncpy@plt>
jmp    16f7 <main+0x557>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd5f(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    16a6 <main+0x506>
lea    -0x98(%rbp),%rdi
add    $0x61,%rdi
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x1c,%edx
call   1030 <strncpy@plt>
jmp    16f2 <main+0x552>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd0f(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    16ed <main+0x54d>
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   10b0 <atoi@plt>
mov    %al,-0x1a(%rbp)
jmp    16f2 <main+0x552>
jmp    16f7 <main+0x557>
jmp    16fc <main+0x55c>
jmp    1701 <main+0x561>
jmp    1706 <main+0x566>
jmp    170b <main+0x56b>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    14da <main+0x33a>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xca4(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xb0(%rbp)
cmpq   $0x0,-0xb0(%rbp)
jne    1754 <main+0x5b4>
movl   $0x1,-0x4(%rbp)
jmp    1c26 <main+0xa86>
mov    -0xb0(%rbp),%rdi
mov    0x2886(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffffffffff80,%rsi
call   1090 <fseek@plt>
lea    -0x98(%rbp),%rdi
mov    -0xb0(%rbp),%rcx
mov    $0x1,%esi
mov    $0x80,%edx
call   10c0 <fwrite@plt>
mov    -0xb0(%rbp),%rdi
call   1060 <fclose@plt>
jmp    1b2d <main+0x98d>
lea    0xc31(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xc39(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rdi
lea    0xaea(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncpy@plt>
lea    -0x98(%rbp),%rdi
add    $0x3,%rdi
lea    0xb59(%rip),%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
lea    -0x98(%rbp),%rdi
add    $0x21,%rdi
lea    0xb3d(%rip),%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
lea    -0x98(%rbp),%rdi
add    $0x3f,%rdi
lea    0xb21(%rip),%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
lea    -0x98(%rbp),%rdi
add    $0x5d,%rdi
lea    0xb05(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncpy@plt>
lea    -0x98(%rbp),%rdi
add    $0x61,%rdi
lea    0xae9(%rip),%rsi
mov    $0x1c,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x1b(%rbp)
lea    0xad4(%rip),%rdi
call   10b0 <atoi@plt>
mov    %al,-0x1a(%rbp)
lea    0xac5(%rip),%rdi
call   10b0 <atoi@plt>
mov    %al,-0x19(%rbp)
movl   $0x2,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1acf <main+0x92f>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xaf7(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    18f2 <main+0x752>
lea    -0x98(%rbp),%rdi
add    $0x3,%rdi
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
jmp    1ab6 <main+0x916>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xaa5(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    194b <main+0x7ab>
lea    -0x98(%rbp),%rdi
add    $0x21,%rdi
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
jmp    1ab1 <main+0x911>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xa54(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    19a4 <main+0x804>
lea    -0x98(%rbp),%rdi
add    $0x3f,%rdi
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
jmp    1aac <main+0x90c>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xa02(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    19fd <main+0x85d>
lea    -0x98(%rbp),%rdi
add    $0x5d,%rdi
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x4,%edx
call   1030 <strncpy@plt>
jmp    1aa7 <main+0x907>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x9af(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1a56 <main+0x8b6>
lea    -0x98(%rbp),%rdi
add    $0x61,%rdi
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x1c,%edx
call   1030 <strncpy@plt>
jmp    1aa2 <main+0x902>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x95f(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1a9d <main+0x8fd>
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   10b0 <atoi@plt>
mov    %al,-0x1a(%rbp)
jmp    1aa2 <main+0x902>
jmp    1aa7 <main+0x907>
jmp    1aac <main+0x90c>
jmp    1ab1 <main+0x911>
jmp    1ab6 <main+0x916>
jmp    1abb <main+0x91b>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    188a <main+0x6ea>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x93e(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xb0(%rbp)
cmpq   $0x0,-0xb0(%rbp)
jne    1b04 <main+0x964>
movl   $0x1,-0x4(%rbp)
jmp    1c26 <main+0xa86>
lea    -0x98(%rbp),%rdi
mov    -0xb0(%rbp),%rcx
mov    $0x1,%esi
mov    $0x80,%edx
call   10c0 <fwrite@plt>
mov    -0xb0(%rbp),%rdi
call   1060 <fclose@plt>
lea    0x8eb(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
lea    0x76d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
add    $0x3,%rsi
lea    0x769(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
add    $0x21,%rsi
lea    0x761(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
add    $0x3f,%rsi
lea    0x75a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
add    $0x5d,%rsi
lea    0x752(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x98(%rbp),%rsi
add    $0x61,%rsi
lea    0x747(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movzbl -0x1a(%rbp),%esi
lea    0x748(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movzbl -0x19(%rbp),%esi
lea    0x748(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1c10 <main+0xa70>
lea    0x836(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1c26 <main+0xa86>
jmp    1c15 <main+0xa75>
jmp    1c1a <main+0xa7a>
jmp    1c1f <main+0xa7f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rsi,%rbx
cmp    $0x2,%edi
je     1248 <main+0x98>
mov    %edi,%ebp
cmp    $0x1,%edi
jne    12d9 <main+0x129>
lea    0x1139(%rip),%rdi
call   1050 <puts@plt>
lea    0xe19(%rip),%rdi
xor    %r14d,%r14d
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xe1d(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xe4b(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xe7c(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xeaa(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x11c8(%rip),%rdi
call   1050 <puts@plt>
jmp    17fe <main+0x64e>
mov    0x8(%rbx),%rsi
lea    0xef4(%rip),%rdi
xor    %r14d,%r14d
xor    %eax,%eax
call   1080 <printf@plt>
mov    0x8(%rbx),%rdi
lea    0xeed(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     1572 <main+0x3c2>
mov    %rax,%rbx
mov    0x2d68(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0xffffffffffffff80,%rsi
call   10a0 <fseek@plt>
lea    0x8(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x80,%edx
mov    %rbx,%rcx
call   1060 <fread@plt>
mov    %rbx,%rdi
call   1070 <fclose@plt>
lea    0xe9e(%rip),%rsi
mov    %rbp,%rdi
mov    $0x3,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     159a <main+0x3ea>
lea    0xfe7(%rip),%rdi
jmp    12f9 <main+0x149>
mov    %ebp,%ecx
shr    $0x1f,%ecx
add    %ebp,%ecx
and    $0xfffffffe,%ecx
mov    %ebp,%eax
sub    %ecx,%eax
je     1306 <main+0x156>
cmp    $0x1,%eax
jne    1583 <main+0x3d3>
lea    0xfa8(%rip),%rdi
call   1050 <puts@plt>
xor    %r14d,%r14d
jmp    17fe <main+0x64e>
mov    0x8(%rbx),%rsi
lea    0xe36(%rip),%rdi
xor    %r14d,%r14d
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xf12(%rip),%rdi
call   1050 <puts@plt>
mov    0x8(%rbx),%rdi
lea    0xe23(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     1572 <main+0x3c2>
mov    %rax,%r15
mov    0x2c9e(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
mov    $0xffffffffffffff80,%rsi
call   10a0 <fseek@plt>
lea    0x8(%rsp),%r14
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x80,%edx
mov    %r15,%rcx
call   1060 <fread@plt>
mov    %r15,%rdi
call   1070 <fclose@plt>
lea    0xdd4(%rip),%rsi
mov    %r14,%rdi
mov    $0x3,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     15cc <main+0x41c>
lea    0xea9(%rip),%rdi
call   1050 <puts@plt>
lea    0xeb2(%rip),%rdi
call   1050 <puts@plt>
lea    0xd9f(%rip),%rsi
lea    0x8(%rsp),%rdi
mov    $0x3,%edx
call   1030 <strncpy@plt>
lea    0xb(%rsp),%rdi
lea    0xe0f(%rip),%r15
mov    %r15,%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
lea    0x29(%rsp),%rdi
mov    %r15,%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
lea    0x47(%rsp),%rdi
mov    %r15,%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
lea    0x65(%rsp),%rdi
mov    %r15,%rsi
mov    $0x4,%edx
call   1030 <strncpy@plt>
lea    0x69(%rsp),%rdi
mov    %r15,%rsi
mov    $0x1c,%edx
call   1030 <strncpy@plt>
movw   $0x0,0x85(%rsp)
movb   $0x0,0x87(%rsp)
cmp    $0x3,%ebp
jl     15ae <main+0x3fe>
mov    $0x2,%r14d
lea    0xd93(%rip),%r13
lea    0xd93(%rip),%r12
jmp    1485 <main+0x2d5>
nopw   0x0(%rax,%rax,1)
lea    0x1(%r15),%r14d
mov    0x8(%rbx,%r15,8),%rsi
lea    0xb(%rsp),%rdi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
add    $0x1,%r14d
cmp    %ebp,%r14d
jge    15ae <main+0x3fe>
movslq %r14d,%r15
mov    (%rbx,%r15,8),%rdi
mov    %r13,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1460 <main+0x2b0>
mov    (%rbx,%r15,8),%rdi
mov    %r12,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     151c <main+0x36c>
mov    (%rbx,%r15,8),%rdi
lea    0xd3e(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     152f <main+0x37f>
mov    (%rbx,%r15,8),%rdi
lea    0xd30(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1542 <main+0x392>
mov    (%rbx,%r15,8),%rdi
lea    0xd21(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     155a <main+0x3aa>
mov    (%rbx,%r15,8),%rdi
lea    0xd15(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    1478 <main+0x2c8>
lea    0x1(%r15),%r14d
mov    0x8(%rbx,%r15,8),%rdi
call   10c0 <atoi@plt>
mov    %al,0x86(%rsp)
jmp    1478 <main+0x2c8>
lea    0x1(%r15),%r14d
mov    0x8(%rbx,%r15,8),%rsi
lea    0x29(%rsp),%rdi
jmp    146e <main+0x2be>
lea    0x1(%r15),%r14d
mov    0x8(%rbx,%r15,8),%rsi
lea    0x47(%rsp),%rdi
jmp    146e <main+0x2be>
lea    0x1(%r15),%r14d
mov    0x8(%rbx,%r15,8),%rsi
lea    0x65(%rsp),%rdi
mov    $0x4,%edx
jmp    1473 <main+0x2c3>
lea    0x1(%r15),%r14d
mov    0x8(%rbx,%r15,8),%rsi
lea    0x69(%rsp),%rdi
mov    $0x1c,%edx
jmp    1473 <main+0x2c3>
lea    0xd77(%rip),%rdi
call   1050 <puts@plt>
jmp    17fe <main+0x64e>
lea    0xc8d(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%r14d
jmp    17fe <main+0x64e>
lea    0xbbb(%rip),%rdi
xor    %r14d,%r14d
lea    0x8(%rsp),%rsi
jmp    176c <main+0x5bc>
mov    0x8(%rbx),%rdi
lea    0xc5b(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1731 <main+0x581>
jmp    158f <main+0x3df>
cmp    $0x3,%ebp
jl     16fd <main+0x54d>
mov    $0x2,%r14d
lea    0xc02(%rip),%r15
lea    0xc02(%rip),%r12
jmp    1610 <main+0x460>
lea    0x1(%r13),%r14d
mov    0x8(%rbx,%r13,8),%rsi
lea    0xb(%rsp),%rdi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
add    $0x1,%r14d
cmp    %ebp,%r14d
jge    16fd <main+0x54d>
movslq %r14d,%r13
mov    (%rbx,%r13,8),%rdi
mov    %r15,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     15eb <main+0x43b>
mov    (%rbx,%r13,8),%rdi
mov    %r12,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     16a7 <main+0x4f7>
mov    (%rbx,%r13,8),%rdi
lea    0xbb3(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     16ba <main+0x50a>
mov    (%rbx,%r13,8),%rdi
lea    0xba5(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     16cd <main+0x51d>
mov    (%rbx,%r13,8),%rdi
lea    0xb96(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     16e5 <main+0x535>
mov    (%rbx,%r13,8),%rdi
lea    0xb8a(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    1603 <main+0x453>
lea    0x1(%r13),%r14d
mov    0x8(%rbx,%r13,8),%rdi
call   10c0 <atoi@plt>
mov    %al,0x86(%rsp)
jmp    1603 <main+0x453>
lea    0x1(%r13),%r14d
mov    0x8(%rbx,%r13,8),%rsi
lea    0x29(%rsp),%rdi
jmp    15f9 <main+0x449>
lea    0x1(%r13),%r14d
mov    0x8(%rbx,%r13,8),%rsi
lea    0x47(%rsp),%rdi
jmp    15f9 <main+0x449>
lea    0x1(%r13),%r14d
mov    0x8(%rbx,%r13,8),%rsi
lea    0x65(%rsp),%rdi
mov    $0x4,%edx
jmp    15fe <main+0x44e>
lea    0x1(%r13),%r14d
mov    0x8(%rbx,%r13,8),%rsi
lea    0x69(%rsp),%rdi
mov    $0x1c,%edx
jmp    15fe <main+0x44e>
mov    0x8(%rbx),%rdi
lea    0xb08(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     158f <main+0x3df>
mov    %rax,%rbx
mov    0x28c8(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0xffffffffffffff80,%rsi
call   10a0 <fseek@plt>
lea    0x8(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x80,%edx
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
mov    %rbx,%rdi
call   1070 <fclose@plt>
lea    0xb34(%rip),%rdi
call   1050 <puts@plt>
lea    0x9f6(%rip),%rdi
xor    %r14d,%r14d
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xb(%rsp),%rsi
lea    0x9f2(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x29(%rsp),%rsi
lea    0x9f0(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x47(%rsp),%rsi
lea    0x9ef(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x65(%rsp),%rsi
lea    0x9ed(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x69(%rsp),%rsi
lea    0x9e8(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
movzbl 0x86(%rsp),%esi
lea    0x9e5(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
movzbl 0x87(%rsp),%esi
lea    0x9e1(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %r14d,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.id3tag = type { [3 x i8], [30 x i8], [30 x i8], [30 x i8], [4 x i8], [28 x i8], i8, i8, i8 }
%struct.id3tag.0 = type opaque
%struct.id3tag.1 = type opaque
@.str = [243 x i8] c"You entered no filename!\0ACorrect usage:\0APROGRAMNAME FILE_NAME.EXT\0A\09Display current ID3v1.1 data in a file\0APROGRAMNAME FILE_NAME.EXT -SWITCH NEW_DATA ...\0A\09Either changes the existing ID3v1.1 data, or creates a new tag with the specified data.\0A\00"
@.str.1 = [21 x i8] c"\0AAvailable switches:\00"
@.str.2 = [60 x i8] c"\0A-TITLE \22TITLE_DATA\22\09-\09Sets the title to the specified data\00"
@.str.3 = [63 x i8] c"\0A-ARTIST \22ARTIST_DATA\22\09-\09Sets the artist to the specified data\00"
@.str.4 = [60 x i8] c"\0A-ALBUM \22ALBUM_DATA\22\09-\09Sets the album to the specified data\00"
@.str.5 = [57 x i8] c"\0A-YEAR \22YEAR_DATA\22\09-\09Sets the year to the specified data\00"
@.str.6 = [66 x i8] c"\0A-COMMENT \22COMMENT_DATA\22\09-\09Sets the comment to the specified data\00"
@.str.7 = [66 x i8] c"\0A-TRACK \22TRACK_NUMBER\22\09-\09Sets the track to the specified number\0A\0A\00"
@.str.8 = [14 x i8] c"Filename: %s\0A\00"
@.str.9 = [3 x i8] c"rb\00"
@.str.10 = [37 x i8] c"You entered an invalid filename! :(\0A\00"
@SEEK_END = global i32 0
@.str.11 = [4 x i8] c"TAG\00"
@.str.12 = [21 x i8] c"\0AIdentifier: %-3.3s\0A\00"
@.str.13 = [17 x i8] c"Title: %-30.30s\0A\00"
@.str.14 = [18 x i8] c"Artist: %-30.30s\0A\00"
@.str.15 = [17 x i8] c"Album: %-30.30s\0A\00"
@.str.16 = [14 x i8] c"Year: %-4.4s\0A\00"
@.str.17 = [19 x i8] c"Comment: %-28.28s\0A\00"
@.str.18 = [18 x i8] c"Track number: %d\0A\00"
@.str.19 = [12 x i8] c"Genre: %d\0A\0A\00"
@.str.20 = [51 x i8] c"There was no ID3v1.1 tag in the specified file :(\0A\00"
@.str.21 = [30 x i8] c"Invalid number of arguments!\0A\00"
@.str.22 = [23 x i8] c"Current ID3v1.1 data:\0A\00"
@.str.23 = [7 x i8] c"-TITLE\00"
@.str.24 = [8 x i8] c"-ARTIST\00"
@.str.25 = [7 x i8] c"-ALBUM\00"
@.str.26 = [6 x i8] c"-YEAR\00"
@.str.27 = [9 x i8] c"-COMMENT\00"
@.str.28 = [7 x i8] c"-TRACK\00"
@.str.29 = [4 x i8] c"r+b\00"
@.str.30 = [22 x i8] c"Current ID3v1.1 tag:\0A\00"
@.str.31 = [48 x i8] c"The file did not have an existing ID3v1.1 tag.\0A\00"
@.str.32 = [1 x i8] zeroinitializer
@.str.33 = [3 x i8] c"ab\00"
@.str.34 = [20 x i8] c"\0ANew ID3v1.1 data:\0A\00"
@.str.35 = [30 x i8] c"\0ASomething bad happened? :O \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca %struct.id3tag
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %22
13: ; preds = %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([243 x i8], [243 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.6, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.7, i64 0, i64 0))
br label %455
22: ; preds = %2
%23 = load i32, i32* %4
%24 = icmp eq i32 %23, 2
br i1 %24, label %25, label %82
25: ; preds = %22
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %28)
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
%33 = call i32* @fopen(i8* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32* %33, i32** %9
%34 = load i32*, i32** %9
%35 = icmp eq i32* %34, null
br i1 %35, label %36, label %38
36: ; preds = %25
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0))
br label %81
38: ; preds = %25
%39 = load i32*, i32** %9
%40 = load i32, i32* @SEEK_END
%41 = call i32 @fseek(i32* %39, i64 -128, i32 %40)
%42 = bitcast %struct.id3tag* %7 to %struct.id3tag.0*
%43 = load i32*, i32** %9
%44 = call i32 @fread(%struct.id3tag.0* %42, i32 1, i32 128, i32* %43)
%45 = load i32*, i32** %9
%46 = call i32 @fclose(i32* %45)
%47 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 0
%48 = getelementptr inbounds [3 x i8], [3 x i8]* %47, i64 0, i64 0
%49 = call i64 @strncmp(i8* %48, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 3)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %78
51: ; preds = %38
%52 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 0
%53 = getelementptr inbounds [3 x i8], [3 x i8]* %52, i64 0, i64 0
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i8* %53)
%55 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 1
%56 = getelementptr inbounds [30 x i8], [30 x i8]* %55, i64 0, i64 0
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i8* %56)
%58 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 2
%59 = getelementptr inbounds [30 x i8], [30 x i8]* %58, i64 0, i64 0
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i8* %59)
%61 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 3
%62 = getelementptr inbounds [30 x i8], [30 x i8]* %61, i64 0, i64 0
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i8* %62)
%64 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 4
%65 = getelementptr inbounds [4 x i8], [4 x i8]* %64, i64 0, i64 0
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* %65)
%67 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 5
%68 = getelementptr inbounds [28 x i8], [28 x i8]* %67, i64 0, i64 0
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i64 0, i64 0), i8* %68)
%70 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 7
%71 = load i8, i8* %70
%72 = zext i8 %71 to i32
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i32 %72)
%74 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 8
%75 = load i8, i8* %74
%76 = zext i8 %75 to i32
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %76)
br label %80
78: ; preds = %38
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.20, i64 0, i64 0))
br label %80
80: ; preds = %78, %51
br label %81
81: ; preds = %80, %36
br label %454
82: ; preds = %22
%83 = load i32, i32* %4
%84 = srem i32 %83, 2
%85 = icmp eq i32 %84, 1
br i1 %85, label %86, label %88
86: ; preds = %82
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.21, i64 0, i64 0))
br label %453
88: ; preds = %82
%89 = load i32, i32* %4
%90 = srem i32 %89, 2
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %450
92: ; preds = %88
%93 = load i8**, i8*** %5
%94 = getelementptr inbounds i8*, i8** %93, i64 1
%95 = load i8*, i8** %94
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %95)
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i64 0, i64 0))
%98 = load i8**, i8*** %5
%99 = getelementptr inbounds i8*, i8** %98, i64 1
%100 = load i8*, i8** %99
%101 = call i32* @fopen(i8* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32* %101, i32** %9
%102 = load i32*, i32** %9
%103 = icmp eq i32* %102, null
br i1 %103, label %104, label %106
104: ; preds = %92
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0))
br label %449
106: ; preds = %92
%107 = load i32*, i32** %9
%108 = load i32, i32* @SEEK_END
%109 = call i32 @fseek(i32* %107, i64 -128, i32 %108)
%110 = bitcast %struct.id3tag* %7 to %struct.id3tag.0*
%111 = load i32*, i32** %9
%112 = call i32 @fread(%struct.id3tag.0* %110, i32 1, i32 128, i32* %111)
%113 = load i32*, i32** %9
%114 = call i32 @fclose(i32* %113)
%115 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 0
%116 = getelementptr inbounds [3 x i8], [3 x i8]* %115, i64 0, i64 0
%117 = call i64 @strncmp(i8* %116, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 3)
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %258
119: ; preds = %106
store i32 2, i32* %8
br label %120
120: ; preds = %238, %119
%121 = load i32, i32* %8
%122 = load i32, i32* %4
%123 = icmp slt i32 %121, %122
br i1 %123, label %124, label %241
124: ; preds = %120
%125 = load i8**, i8*** %5
%126 = load i32, i32* %8
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8*, i8** %125, i64 %127
%129 = load i8*, i8** %128
%130 = call i64 @strcmp(i8* %129, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
br i1 %131, label %132, label %142
132: ; preds = %124
%133 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 1
%134 = getelementptr inbounds [30 x i8], [30 x i8]* %133, i64 0, i64 0
%135 = load i8**, i8*** %5
%136 = load i32, i32* %8
%137 = add nsw i32 %136, 1
store i32 %137, i32* %8
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8*, i8** %135, i64 %138
%140 = load i8*, i8** %139
%141 = call i32 @strncpy(i8* %134, i8* %140, i32 30)
br label %237
142: ; preds = %124
%143 = load i8**, i8*** %5
%144 = load i32, i32* %8
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i8*, i8** %143, i64 %145
%147 = load i8*, i8** %146
%148 = call i64 @strcmp(i8* %147, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0))
%149 = icmp eq i64 %148, 0
br i1 %149, label %150, label %160
150: ; preds = %142
%151 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 2
%152 = getelementptr inbounds [30 x i8], [30 x i8]* %151, i64 0, i64 0
%153 = load i8**, i8*** %5
%154 = load i32, i32* %8
%155 = add nsw i32 %154, 1
store i32 %155, i32* %8
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i8*, i8** %153, i64 %156
%158 = load i8*, i8** %157
%159 = call i32 @strncpy(i8* %152, i8* %158, i32 30)
br label %236
160: ; preds = %142
%161 = load i8**, i8*** %5
%162 = load i32, i32* %8
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds i8*, i8** %161, i64 %163
%165 = load i8*, i8** %164
%166 = call i64 @strcmp(i8* %165, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.25, i64 0, i64 0))
%167 = icmp eq i64 %166, 0
br i1 %167, label %168, label %178
168: ; preds = %160
%169 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 3
%170 = getelementptr inbounds [30 x i8], [30 x i8]* %169, i64 0, i64 0
%171 = load i8**, i8*** %5
%172 = load i32, i32* %8
%173 = add nsw i32 %172, 1
store i32 %173, i32* %8
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i8*, i8** %171, i64 %174
%176 = load i8*, i8** %175
%177 = call i32 @strncpy(i8* %170, i8* %176, i32 30)
br label %235
178: ; preds = %160
%179 = load i8**, i8*** %5
%180 = load i32, i32* %8
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds i8*, i8** %179, i64 %181
%183 = load i8*, i8** %182
%184 = call i64 @strcmp(i8* %183, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0))
%185 = icmp eq i64 %184, 0
br i1 %185, label %186, label %196
186: ; preds = %178
%187 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 4
%188 = getelementptr inbounds [4 x i8], [4 x i8]* %187, i64 0, i64 0
%189 = load i8**, i8*** %5
%190 = load i32, i32* %8
%191 = add nsw i32 %190, 1
store i32 %191, i32* %8
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds i8*, i8** %189, i64 %192
%194 = load i8*, i8** %193
%195 = call i32 @strncpy(i8* %188, i8* %194, i32 4)
br label %234
196: ; preds = %178
%197 = load i8**, i8*** %5
%198 = load i32, i32* %8
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds i8*, i8** %197, i64 %199
%201 = load i8*, i8** %200
%202 = call i64 @strcmp(i8* %201, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0))
%203 = icmp eq i64 %202, 0
br i1 %203, label %204, label %214
204: ; preds = %196
%205 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 5
%206 = getelementptr inbounds [28 x i8], [28 x i8]* %205, i64 0, i64 0
%207 = load i8**, i8*** %5
%208 = load i32, i32* %8
%209 = add nsw i32 %208, 1
store i32 %209, i32* %8
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds i8*, i8** %207, i64 %210
%212 = load i8*, i8** %211
%213 = call i32 @strncpy(i8* %206, i8* %212, i32 28)
br label %233
214: ; preds = %196
%215 = load i8**, i8*** %5
%216 = load i32, i32* %8
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i8*, i8** %215, i64 %217
%219 = load i8*, i8** %218
%220 = call i64 @strcmp(i8* %219, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0))
%221 = icmp eq i64 %220, 0
br i1 %221, label %222, label %232
222: ; preds = %214
%223 = load i8**, i8*** %5
%224 = load i32, i32* %8
%225 = add nsw i32 %224, 1
store i32 %225, i32* %8
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds i8*, i8** %223, i64 %226
%228 = load i8*, i8** %227
%229 = call i8* @atoi(i8* %228)
%230 = ptrtoint i8* %229 to i8
%231 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 7
store i8 %230, i8* %231
br label %232
232: ; preds = %222, %214
br label %233
233: ; preds = %232, %204
br label %234
234: ; preds = %233, %186
br label %235
235: ; preds = %234, %168
br label %236
236: ; preds = %235, %150
br label %237
237: ; preds = %236, %132
br label %238
238: ; preds = %237
%239 = load i32, i32* %8
%240 = add nsw i32 %239, 1
store i32 %240, i32* %8
br label %120
241: ; preds = %120
%242 = load i8**, i8*** %5
%243 = getelementptr inbounds i8*, i8** %242, i64 1
%244 = load i8*, i8** %243
%245 = call i32* @fopen(i8* %244, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
store i32* %245, i32** %10
%246 = load i32*, i32** %10
%247 = icmp eq i32* %246, null
br i1 %247, label %248, label %249
248: ; preds = %241
store i32 1, i32* %3
br label %456
249: ; preds = %241
%250 = load i32*, i32** %10
%251 = load i32, i32* @SEEK_END
%252 = call i32 @fseek(i32* %250, i64 -128, i32 %251)
%253 = bitcast %struct.id3tag* %7 to %struct.id3tag.1*
%254 = load i32*, i32** %10
%255 = call i32 @fwrite(%struct.id3tag.1* %253, i32 1, i32 128, i32* %254)
%256 = load i32*, i32** %10
%257 = call i32 @fclose(i32* %256)
br label %421
258: ; preds = %106
%259 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.30, i64 0, i64 0))
%260 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.31, i64 0, i64 0))
%261 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 0
%262 = getelementptr inbounds [3 x i8], [3 x i8]* %261, i64 0, i64 0
%263 = call i32 @strncpy(i8* %262, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 3)
%264 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 1
%265 = getelementptr inbounds [30 x i8], [30 x i8]* %264, i64 0, i64 0
%266 = call i32 @strncpy(i8* %265, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i32 30)
%267 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 2
%268 = getelementptr inbounds [30 x i8], [30 x i8]* %267, i64 0, i64 0
%269 = call i32 @strncpy(i8* %268, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i32 30)
%270 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 3
%271 = getelementptr inbounds [30 x i8], [30 x i8]* %270, i64 0, i64 0
%272 = call i32 @strncpy(i8* %271, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i32 30)
%273 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 4
%274 = getelementptr inbounds [4 x i8], [4 x i8]* %273, i64 0, i64 0
%275 = call i32 @strncpy(i8* %274, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i32 4)
%276 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 5
%277 = getelementptr inbounds [28 x i8], [28 x i8]* %276, i64 0, i64 0
%278 = call i32 @strncpy(i8* %277, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i32 28)
%279 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 6
store i8 0, i8* %279
%280 = call i8* @atoi(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0))
%281 = ptrtoint i8* %280 to i8
%282 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 7
store i8 %281, i8* %282
%283 = call i8* @atoi(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0))
%284 = ptrtoint i8* %283 to i8
%285 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 8
store i8 %284, i8* %285
store i32 2, i32* %8
br label %286
286: ; preds = %404, %258
%287 = load i32, i32* %8
%288 = load i32, i32* %4
%289 = icmp slt i32 %287, %288
br i1 %289, label %290, label %407
290: ; preds = %286
%291 = load i8**, i8*** %5
%292 = load i32, i32* %8
%293 = sext i32 %292 to i64
%294 = getelementptr inbounds i8*, i8** %291, i64 %293
%295 = load i8*, i8** %294
%296 = call i64 @strcmp(i8* %295, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
%297 = icmp eq i64 %296, 0
br i1 %297, label %298, label %308
298: ; preds = %290
%299 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 1
%300 = getelementptr inbounds [30 x i8], [30 x i8]* %299, i64 0, i64 0
%301 = load i8**, i8*** %5
%302 = load i32, i32* %8
%303 = add nsw i32 %302, 1
store i32 %303, i32* %8
%304 = sext i32 %303 to i64
%305 = getelementptr inbounds i8*, i8** %301, i64 %304
%306 = load i8*, i8** %305
%307 = call i32 @strncpy(i8* %300, i8* %306, i32 30)
br label %403
308: ; preds = %290
%309 = load i8**, i8*** %5
%310 = load i32, i32* %8
%311 = sext i32 %310 to i64
%312 = getelementptr inbounds i8*, i8** %309, i64 %311
%313 = load i8*, i8** %312
%314 = call i64 @strcmp(i8* %313, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0))
%315 = icmp eq i64 %314, 0
br i1 %315, label %316, label %326
316: ; preds = %308
%317 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 2
%318 = getelementptr inbounds [30 x i8], [30 x i8]* %317, i64 0, i64 0
%319 = load i8**, i8*** %5
%320 = load i32, i32* %8
%321 = add nsw i32 %320, 1
store i32 %321, i32* %8
%322 = sext i32 %321 to i64
%323 = getelementptr inbounds i8*, i8** %319, i64 %322
%324 = load i8*, i8** %323
%325 = call i32 @strncpy(i8* %318, i8* %324, i32 30)
br label %402
326: ; preds = %308
%327 = load i8**, i8*** %5
%328 = load i32, i32* %8
%329 = sext i32 %328 to i64
%330 = getelementptr inbounds i8*, i8** %327, i64 %329
%331 = load i8*, i8** %330
%332 = call i64 @strcmp(i8* %331, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.25, i64 0, i64 0))
%333 = icmp eq i64 %332, 0
br i1 %333, label %334, label %344
334: ; preds = %326
%335 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 3
%336 = getelementptr inbounds [30 x i8], [30 x i8]* %335, i64 0, i64 0
%337 = load i8**, i8*** %5
%338 = load i32, i32* %8
%339 = add nsw i32 %338, 1
store i32 %339, i32* %8
%340 = sext i32 %339 to i64
%341 = getelementptr inbounds i8*, i8** %337, i64 %340
%342 = load i8*, i8** %341
%343 = call i32 @strncpy(i8* %336, i8* %342, i32 30)
br label %401
344: ; preds = %326
%345 = load i8**, i8*** %5
%346 = load i32, i32* %8
%347 = sext i32 %346 to i64
%348 = getelementptr inbounds i8*, i8** %345, i64 %347
%349 = load i8*, i8** %348
%350 = call i64 @strcmp(i8* %349, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0))
%351 = icmp eq i64 %350, 0
br i1 %351, label %352, label %362
352: ; preds = %344
%353 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 4
%354 = getelementptr inbounds [4 x i8], [4 x i8]* %353, i64 0, i64 0
%355 = load i8**, i8*** %5
%356 = load i32, i32* %8
%357 = add nsw i32 %356, 1
store i32 %357, i32* %8
%358 = sext i32 %357 to i64
%359 = getelementptr inbounds i8*, i8** %355, i64 %358
%360 = load i8*, i8** %359
%361 = call i32 @strncpy(i8* %354, i8* %360, i32 4)
br label %400
362: ; preds = %344
%363 = load i8**, i8*** %5
%364 = load i32, i32* %8
%365 = sext i32 %364 to i64
%366 = getelementptr inbounds i8*, i8** %363, i64 %365
%367 = load i8*, i8** %366
%368 = call i64 @strcmp(i8* %367, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0))
%369 = icmp eq i64 %368, 0
br i1 %369, label %370, label %380
370: ; preds = %362
%371 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 5
%372 = getelementptr inbounds [28 x i8], [28 x i8]* %371, i64 0, i64 0
%373 = load i8**, i8*** %5
%374 = load i32, i32* %8
%375 = add nsw i32 %374, 1
store i32 %375, i32* %8
%376 = sext i32 %375 to i64
%377 = getelementptr inbounds i8*, i8** %373, i64 %376
%378 = load i8*, i8** %377
%379 = call i32 @strncpy(i8* %372, i8* %378, i32 28)
br label %399
380: ; preds = %362
%381 = load i8**, i8*** %5
%382 = load i32, i32* %8
%383 = sext i32 %382 to i64
%384 = getelementptr inbounds i8*, i8** %381, i64 %383
%385 = load i8*, i8** %384
%386 = call i64 @strcmp(i8* %385, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0))
%387 = icmp eq i64 %386, 0
br i1 %387, label %388, label %398
388: ; preds = %380
%389 = load i8**, i8*** %5
%390 = load i32, i32* %8
%391 = add nsw i32 %390, 1
store i32 %391, i32* %8
%392 = sext i32 %391 to i64
%393 = getelementptr inbounds i8*, i8** %389, i64 %392
%394 = load i8*, i8** %393
%395 = call i8* @atoi(i8* %394)
%396 = ptrtoint i8* %395 to i8
%397 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 7
store i8 %396, i8* %397
br label %398
398: ; preds = %388, %380
br label %399
399: ; preds = %398, %370
br label %400
400: ; preds = %399, %352
br label %401
401: ; preds = %400, %334
br label %402
402: ; preds = %401, %316
br label %403
403: ; preds = %402, %298
br label %404
404: ; preds = %403
%405 = load i32, i32* %8
%406 = add nsw i32 %405, 1
store i32 %406, i32* %8
br label %286
407: ; preds = %286
%408 = load i8**, i8*** %5
%409 = getelementptr inbounds i8*, i8** %408, i64 1
%410 = load i8*, i8** %409
%411 = call i32* @fopen(i8* %410, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0))
store i32* %411, i32** %10
%412 = load i32*, i32** %10
%413 = icmp eq i32* %412, null
br i1 %413, label %414, label %415
414: ; preds = %407
store i32 1, i32* %3
br label %456
415: ; preds = %407
%416 = bitcast %struct.id3tag* %7 to %struct.id3tag.1*
%417 = load i32*, i32** %10
%418 = call i32 @fwrite(%struct.id3tag.1* %416, i32 1, i32 128, i32* %417)
%419 = load i32*, i32** %10
%420 = call i32 @fclose(i32* %419)
br label %421
421: ; preds = %415, %249
%422 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.34, i64 0, i64 0))
%423 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 0
%424 = getelementptr inbounds [3 x i8], [3 x i8]* %423, i64 0, i64 0
%425 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i8* %424)
%426 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 1
%427 = getelementptr inbounds [30 x i8], [30 x i8]* %426, i64 0, i64 0
%428 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i8* %427)
%429 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 2
%430 = getelementptr inbounds [30 x i8], [30 x i8]* %429, i64 0, i64 0
%431 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i8* %430)
%432 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 3
%433 = getelementptr inbounds [30 x i8], [30 x i8]* %432, i64 0, i64 0
%434 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i8* %433)
%435 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 4
%436 = getelementptr inbounds [4 x i8], [4 x i8]* %435, i64 0, i64 0
%437 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* %436)
%438 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 5
%439 = getelementptr inbounds [28 x i8], [28 x i8]* %438, i64 0, i64 0
%440 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i64 0, i64 0), i8* %439)
%441 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 7
%442 = load i8, i8* %441
%443 = zext i8 %442 to i32
%444 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i32 %443)
%445 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %7, i32 0, i32 8
%446 = load i8, i8* %445
%447 = zext i8 %446 to i32
%448 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %447)
br label %449
449: ; preds = %421, %104
br label %452
450: ; preds = %88
%451 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.35, i64 0, i64 0))
store i32 1, i32* %3
br label %456
452: ; preds = %449
br label %453
453: ; preds = %452, %86
br label %454
454: ; preds = %453, %81
br label %455
455: ; preds = %454, %13
store i32 0, i32* %3
br label %456
456: ; preds = %455, %450, %414, %248
%457 = load i32, i32* %3
ret i32 %457
}

LLVM IR (-O2):
%struct.id3tag = type { [3 x i8], [30 x i8], [30 x i8], [30 x i8], [4 x i8], [28 x i8], i8, i8, i8 }
%struct.id3tag.0 = type opaque
%struct.id3tag.1 = type opaque
@.str.1 = [21 x i8] c"\0AAvailable switches:\00"
@.str.2 = [60 x i8] c"\0A-TITLE \22TITLE_DATA\22\09-\09Sets the title to the specified data\00"
@.str.3 = [63 x i8] c"\0A-ARTIST \22ARTIST_DATA\22\09-\09Sets the artist to the specified data\00"
@.str.4 = [60 x i8] c"\0A-ALBUM \22ALBUM_DATA\22\09-\09Sets the album to the specified data\00"
@.str.5 = [57 x i8] c"\0A-YEAR \22YEAR_DATA\22\09-\09Sets the year to the specified data\00"
@.str.6 = [66 x i8] c"\0A-COMMENT \22COMMENT_DATA\22\09-\09Sets the comment to the specified data\00"
@.str.8 = [14 x i8] c"Filename: %s\0A\00"
@.str.9 = [3 x i8] c"rb\00"
@SEEK_END = global i32 0
@.str.11 = [4 x i8] c"TAG\00"
@.str.12 = [21 x i8] c"\0AIdentifier: %-3.3s\0A\00"
@.str.13 = [17 x i8] c"Title: %-30.30s\0A\00"
@.str.14 = [18 x i8] c"Artist: %-30.30s\0A\00"
@.str.15 = [17 x i8] c"Album: %-30.30s\0A\00"
@.str.16 = [14 x i8] c"Year: %-4.4s\0A\00"
@.str.17 = [19 x i8] c"Comment: %-28.28s\0A\00"
@.str.18 = [18 x i8] c"Track number: %d\0A\00"
@.str.19 = [12 x i8] c"Genre: %d\0A\0A\00"
@.str.23 = [7 x i8] c"-TITLE\00"
@.str.24 = [8 x i8] c"-ARTIST\00"
@.str.25 = [7 x i8] c"-ALBUM\00"
@.str.26 = [6 x i8] c"-YEAR\00"
@.str.27 = [9 x i8] c"-COMMENT\00"
@.str.28 = [7 x i8] c"-TRACK\00"
@.str.29 = [4 x i8] c"r+b\00"
@.str.32 = [1 x i8] zeroinitializer
@.str.33 = [3 x i8] c"ab\00"
@str = [29 x i8] c"\0ASomething bad happened? :O \00"
@str.36 = [22 x i8] c"Current ID3v1.1 data:\00"
@str.37 = [21 x i8] c"Current ID3v1.1 tag:\00"
@str.38 = [47 x i8] c"The file did not have an existing ID3v1.1 tag.\00"
@str.39 = [19 x i8] c"\0ANew ID3v1.1 data:\00"
@str.41 = [29 x i8] c"Invalid number of arguments!\00"
@str.42 = [50 x i8] c"There was no ID3v1.1 tag in the specified file :(\00"
@str.43 = [36 x i8] c"You entered an invalid filename! :(\00"
@str.44 = [242 x i8] c"You entered no filename!\0ACorrect usage:\0APROGRAMNAME FILE_NAME.EXT\0A\09Display current ID3v1.1 data in a file\0APROGRAMNAME FILE_NAME.EXT -SWITCH NEW_DATA ...\0A\09Either changes the existing ID3v1.1 data, or creates a new tag with the specified data.\00"
@str.45 = [65 x i8] c"\0A-TRACK \22TRACK_NUMBER\22\09-\09Sets the track to the specified number\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.id3tag
%4 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 0, i64 0
switch i32 %0, label %53 [
i32 1, label %5
i32 2, label %14
]
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([242 x i8], [242 x i8]* @str.44, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.6, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.45, i64 0, i64 0))
br label %278
14: ; preds = %2
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %16)
%18 = load i8*, i8** %15
%19 = tail call i32* @fopen(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%20 = icmp eq i32* %19, null
br i1 %20, label %21, label %23
21: ; preds = %14
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.43, i64 0, i64 0))
br label %278
23: ; preds = %14
%24 = load i32, i32* @SEEK_END
%25 = tail call i32 @fseek(i32* %19, i64 -128, i32 %24)
%26 = bitcast %struct.id3tag* %3 to %struct.id3tag.0*
%27 = call i32 @fread(%struct.id3tag.0* %26, i32 1, i32 128, i32* %19)
%28 = tail call i32 @fclose(i32* %19)
%29 = call i64 @strncmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 3)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %51
31: ; preds = %23
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i8* %4)
%33 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 1, i64 0
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i8* %33)
%35 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 2, i64 0
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i8* %35)
%37 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 3, i64 0
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i8* %37)
%39 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 4, i64 0
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* %39)
%41 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 5, i64 0
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i64 0, i64 0), i8* %41)
%43 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 7
%44 = load i8, i8* %43
%45 = zext i8 %44 to i32
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 8
%48 = load i8, i8* %47
%49 = zext i8 %48 to i32
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %49)
br label %278
51: ; preds = %23
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.42, i64 0, i64 0))
br label %278
53: ; preds = %2
%54 = srem i32 %0, 2
switch i32 %54, label %276 [
i32 1, label %55
i32 0, label %57
]
55: ; preds = %53
%56 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.41, i64 0, i64 0))
br label %278
57: ; preds = %53
%58 = getelementptr inbounds i8*, i8** %1, i64 1
%59 = load i8*, i8** %58
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %59)
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.36, i64 0, i64 0))
%62 = load i8*, i8** %58
%63 = tail call i32* @fopen(i8* %62, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%64 = icmp eq i32* %63, null
br i1 %64, label %65, label %67
65: ; preds = %57
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.43, i64 0, i64 0))
br label %278
67: ; preds = %57
%68 = load i32, i32* @SEEK_END
%69 = tail call i32 @fseek(i32* %63, i64 -128, i32 %68)
%70 = bitcast %struct.id3tag* %3 to %struct.id3tag.0*
%71 = call i32 @fread(%struct.id3tag.0* %70, i32 1, i32 128, i32* %63)
%72 = tail call i32 @fclose(i32* %63)
%73 = call i64 @strncmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 3)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %160
75: ; preds = %67
%76 = icmp sgt i32 %0, 2
br i1 %76, label %77, label %153
77: ; preds = %75
%78 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 7
%79 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 5, i64 0
%80 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 4, i64 0
%81 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 3, i64 0
%82 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 2, i64 0
%83 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 1, i64 0
br label %84
84: ; preds = %77, %149
%85 = phi i32 [ 2, %77 ], [ %151, %149 ]
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8*, i8** %1, i64 %86
%88 = load i8*, i8** %87
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %97
91: ; preds = %84
%92 = add nsw i32 %85, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8*, i8** %1, i64 %93
%95 = load i8*, i8** %94
%96 = call i32 @strncpy(i8* %83, i8* %95, i32 30)
br label %149
97: ; preds = %84
%98 = load i8*, i8** %87
%99 = call i64 @strcmp(i8* %98, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %107
101: ; preds = %97
%102 = add nsw i32 %85, 1
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8*, i8** %1, i64 %103
%105 = load i8*, i8** %104
%106 = call i32 @strncpy(i8* %82, i8* %105, i32 30)
br label %149
107: ; preds = %97
%108 = load i8*, i8** %87
%109 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.25, i64 0, i64 0))
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %117
111: ; preds = %107
%112 = add nsw i32 %85, 1
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8*, i8** %1, i64 %113
%115 = load i8*, i8** %114
%116 = call i32 @strncpy(i8* %81, i8* %115, i32 30)
br label %149
117: ; preds = %107
%118 = load i8*, i8** %87
%119 = call i64 @strcmp(i8* %118, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0))
%120 = icmp eq i64 %119, 0
br i1 %120, label %121, label %127
121: ; preds = %117
%122 = add nsw i32 %85, 1
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8*, i8** %1, i64 %123
%125 = load i8*, i8** %124
%126 = call i32 @strncpy(i8* %80, i8* %125, i32 4)
br label %149
127: ; preds = %117
%128 = load i8*, i8** %87
%129 = call i64 @strcmp(i8* %128, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0))
%130 = icmp eq i64 %129, 0
br i1 %130, label %131, label %137
131: ; preds = %127
%132 = add nsw i32 %85, 1
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8*, i8** %1, i64 %133
%135 = load i8*, i8** %134
%136 = call i32 @strncpy(i8* %79, i8* %135, i32 28)
br label %149
137: ; preds = %127
%138 = load i8*, i8** %87
%139 = call i64 @strcmp(i8* %138, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0))
%140 = icmp eq i64 %139, 0
br i1 %140, label %141, label %149
141: ; preds = %137
%142 = add nsw i32 %85, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i8*, i8** %1, i64 %143
%145 = load i8*, i8** %144
%146 = call i8* @atoi(i8* %145)
%147 = ptrtoint i8* %146 to i64
%148 = trunc i64 %147 to i8
store i8 %148, i8* %78
br label %149
149: ; preds = %91, %111, %131, %141, %137, %121, %101
%150 = phi i32 [ %92, %91 ], [ %102, %101 ], [ %112, %111 ], [ %122, %121 ], [ %132, %131 ], [ %142, %141 ], [ %85, %137 ]
%151 = add nsw i32 %150, 1
%152 = icmp slt i32 %151, %0
br i1 %152, label %84, label %153
153: ; preds = %149, %75
%154 = load i8*, i8** %58
%155 = call i32* @fopen(i8* %154, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
%156 = icmp eq i32* %155, null
br i1 %156, label %278, label %157
157: ; preds = %153
%158 = load i32, i32* @SEEK_END
%159 = call i32 @fseek(i32* %155, i64 -128, i32 %158)
br label %251
160: ; preds = %67
%161 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.37, i64 0, i64 0))
%162 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.38, i64 0, i64 0))
%163 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 3)
%164 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 1, i64 0
%165 = call i32 @strncpy(i8* %164, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i32 30)
%166 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 2, i64 0
%167 = call i32 @strncpy(i8* %166, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i32 30)
%168 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 3, i64 0
%169 = call i32 @strncpy(i8* %168, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i32 30)
%170 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 4, i64 0
%171 = call i32 @strncpy(i8* %170, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i32 4)
%172 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 5, i64 0
%173 = call i32 @strncpy(i8* %172, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.32, i64 0, i64 0), i32 28)
%174 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 6
store i8 0, i8* %174
%175 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 7
store i8 0, i8* %175
%176 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 8
store i8 0, i8* %176
%177 = icmp sgt i32 %0, 2
br i1 %177, label %178, label %247
178: ; preds = %160, %243
%179 = phi i32 [ %245, %243 ], [ 2, %160 ]
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds i8*, i8** %1, i64 %180
%182 = load i8*, i8** %181
%183 = call i64 @strcmp(i8* %182, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
%184 = icmp eq i64 %183, 0
br i1 %184, label %185, label %191
185: ; preds = %178
%186 = add nsw i32 %179, 1
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds i8*, i8** %1, i64 %187
%189 = load i8*, i8** %188
%190 = call i32 @strncpy(i8* %164, i8* %189, i32 30)
br label %243
191: ; preds = %178
%192 = load i8*, i8** %181
%193 = call i64 @strcmp(i8* %192, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0))
%194 = icmp eq i64 %193, 0
br i1 %194, label %195, label %201
195: ; preds = %191
%196 = add nsw i32 %179, 1
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i8*, i8** %1, i64 %197
%199 = load i8*, i8** %198
%200 = call i32 @strncpy(i8* %166, i8* %199, i32 30)
br label %243
201: ; preds = %191
%202 = load i8*, i8** %181
%203 = call i64 @strcmp(i8* %202, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.25, i64 0, i64 0))
%204 = icmp eq i64 %203, 0
br i1 %204, label %205, label %211
205: ; preds = %201
%206 = add nsw i32 %179, 1
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds i8*, i8** %1, i64 %207
%209 = load i8*, i8** %208
%210 = call i32 @strncpy(i8* %168, i8* %209, i32 30)
br label %243
211: ; preds = %201
%212 = load i8*, i8** %181
%213 = call i64 @strcmp(i8* %212, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0))
%214 = icmp eq i64 %213, 0
br i1 %214, label %215, label %221
215: ; preds = %211
%216 = add nsw i32 %179, 1
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i8*, i8** %1, i64 %217
%219 = load i8*, i8** %218
%220 = call i32 @strncpy(i8* %170, i8* %219, i32 4)
br label %243
221: ; preds = %211
%222 = load i8*, i8** %181
%223 = call i64 @strcmp(i8* %222, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0))
%224 = icmp eq i64 %223, 0
br i1 %224, label %225, label %231
225: ; preds = %221
%226 = add nsw i32 %179, 1
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds i8*, i8** %1, i64 %227
%229 = load i8*, i8** %228
%230 = call i32 @strncpy(i8* %172, i8* %229, i32 28)
br label %243
231: ; preds = %221
%232 = load i8*, i8** %181
%233 = call i64 @strcmp(i8* %232, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0))
%234 = icmp eq i64 %233, 0
br i1 %234, label %235, label %243
235: ; preds = %231
%236 = add nsw i32 %179, 1
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds i8*, i8** %1, i64 %237
%239 = load i8*, i8** %238
%240 = call i8* @atoi(i8* %239)
%241 = ptrtoint i8* %240 to i64
%242 = trunc i64 %241 to i8
store i8 %242, i8* %175
br label %243
243: ; preds = %185, %205, %225, %235, %231, %215, %195
%244 = phi i32 [ %186, %185 ], [ %196, %195 ], [ %206, %205 ], [ %216, %215 ], [ %226, %225 ], [ %236, %235 ], [ %179, %231 ]
%245 = add nsw i32 %244, 1
%246 = icmp slt i32 %245, %0
br i1 %246, label %178, label %247
247: ; preds = %243, %160
%248 = load i8*, i8** %58
%249 = call i32* @fopen(i8* %248, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0))
%250 = icmp eq i32* %249, null
br i1 %250, label %278, label %251
251: ; preds = %247, %157
%252 = phi i32* [ %155, %157 ], [ %249, %247 ]
%253 = bitcast %struct.id3tag* %3 to %struct.id3tag.1*
%254 = call i32 @fwrite(%struct.id3tag.1* %253, i32 1, i32 128, i32* %252)
%255 = call i32 @fclose(i32* %252)
%256 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.39, i64 0, i64 0))
%257 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i8* %4)
%258 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 1, i64 0
%259 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i8* %258)
%260 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 2, i64 0
%261 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i8* %260)
%262 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 3, i64 0
%263 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i8* %262)
%264 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 4, i64 0
%265 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8* %264)
%266 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 5, i64 0
%267 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i64 0, i64 0), i8* %266)
%268 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 7
%269 = load i8, i8* %268
%270 = zext i8 %269 to i32
%271 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i32 %270)
%272 = getelementptr inbounds %struct.id3tag, %struct.id3tag* %3, i64 0, i32 8
%273 = load i8, i8* %272
%274 = zext i8 %273 to i32
%275 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %274)
br label %278
276: ; preds = %53
%277 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
br label %278
278: ; preds = %5, %55, %65, %251, %21, %51, %31, %247, %153, %276
%279 = phi i32 [ 1, %276 ], [ 1, %153 ], [ 1, %247 ], [ 0, %31 ], [ 0, %51 ], [ 0, %21 ], [ 0, %251 ], [ 0, %65 ], [ 0, %55 ], [ 0, %5 ]
ret i32 %279
}