user: Please show me the C implementation that matches the assembly code listed below:

```asm
<branch_2_check>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <createStringArray@plt>
  lea    0x4(%rsp),%rdx
  mov    %r12,%rdi
  movl   $0x0,0x4(%rsp)
  mov    %rax,%rsi
  mov    %rax,%rbp
  call   <splitString@plt>
  mov    0x4(%rsp),%eax
  cmp    $0x3,%eax
  je     L138
L35:
  mov    0x0(%rbp),%rdi
  cmp    $0x4,%eax
  je     L185
L115:
  mov    0x0(%rbp),%rdi
  call   <isLabel@plt>
  test   %rax,%rax
  jne    L181
  cmpl   $0x2,0x4(%rsp)
  je     L149
L147:
  mov    %rbp,%rdi
  call   <destroyStringArray@plt>
  xor    %eax,%eax
L97:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L187
  add    $0x18,%rsp
  pop    %rbp
  pop    %r12
  ret
  nop
L149:
  mov    0x0(%rbp),%rdi
  lea    D21(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L13
L181:
  mov    %rbp,%rdi
  call   <destroyStringArray@plt>
  mov    $0x1,%eax
  jmp    L97
  nopl   0x0(%rax,%rax,1)
L185:
  lea    D80(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L115
  lea    D18(%rip),%r12
  mov    0x8(%rbp),%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L115
  mov    0x10(%rbp),%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L115
  mov    0x18(%rbp),%rdi
  lea    D26(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L115
  jmp    L181
  nopl   (%rax)
L138:
  mov    0x0(%rbp),%rdi
  lea    D58(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L148
L85:
  mov    0x4(%rsp),%eax
  jmp    L35
  xchg   %ax,%ax
L13:
  mov    0x0(%rbp),%rdi
  lea    D53(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L181
  mov    0x0(%rbp),%rdi
  lea    D39(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L147
  jmp    L181
  nopw   0x0(%rax,%rax,1)
L148:
  mov    0x8(%rbp),%rdi
  lea    D18(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L85
  mov    0x10(%rbp),%rdi
  lea    D70(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L85
  jmp    L181
L187:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D21
datatype: string
name: extract_symbolic_data
arguments: data_label: D80
datatype: string
name: extract_symbolic_data
arguments: data_label: D18
datatype: string
name: extract_symbolic_data
arguments: data_label: D26
datatype: string
name: extract_symbolic_data
arguments: data_label: D58
datatype: string
name: extract_symbolic_data
arguments: data_label: D53
datatype: string
name: extract_symbolic_data
arguments: data_label: D39
datatype: string
name: extract_symbolic_data
arguments: data_label: D70
datatype: string

tool: D21: ble

tool: D80: sub

tool: D18: r0

tool: D26: #1

tool: D58: cmp

tool: D53: bgt

tool: D39: b

tool: D70: #0

assistant: ```c
int branch_2_check(char *line) {
  char **splitted = createStringArray();
  int n = 0;
  splitString(line, splitted, &n);
  if (n == 3) {
    if (strcmp(splitted[0], "cmp") == 0 && strcmp(splitted[1], "r0") == 0 && strcmp(splitted[2], "#0") == 0) {
      destroyStringArray(splitted);
      return 1;
    }
  }
  if (n == 4) {
    if (strcmp(splitted[0], "sub") == 0 && strcmp(splitted[1], "r0") == 0 && strcmp(splitted[2], "r0") == 0 && strcmp(splitted[3], "#1") == 0) {
      destroyStringArray(splitted);
      return 1;
    }
  }
  if (isLabel(splitted[0])) {
    destroyStringArray(splitted);
    return 1;
  }
  if (n == 2) {
    if (strcmp(splitted[0], "ble") == 0 || strcmp(splitted[0], "bgt") == 0 || strcmp(splitted[0], "b") == 0) {
      destroyStringArray(splitted);
      return 1;
    }
  }
  destroyStringArray(splitted);
  return 0;
}
```