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

```asm
<test_json_getKeyValuePair>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x350,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D173(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D112(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x330(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x64,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  lea    D69(%rip),%rax
  mov    %rax,-0x330(%rbp)
  lea    D50(%rip),%rax
  mov    %rax,-0x328(%rbp)
  lea    D198(%rip),%rax
  mov    %rax,-0x320(%rbp)
  lea    D137(%rip),%rax
  mov    %rax,-0x318(%rbp)
  lea    D139(%rip),%rax
  mov    %rax,-0x310(%rbp)
  lea    D104(%rip),%rax
  mov    %rax,-0x308(%rbp)
  lea    D10(%rip),%rax
  mov    %rax,-0x300(%rbp)
  lea    D156(%rip),%rax
  mov    %rax,-0x2f8(%rbp)
  lea    D196(%rip),%rax
  mov    %rax,-0x2f0(%rbp)
  lea    D184(%rip),%rax
  mov    %rax,-0x2e8(%rbp)
  lea    D150(%rip),%rax
  mov    %rax,-0x2e0(%rbp)
  movl   $0x0,-0x334(%rbp)
  jmp    L48
L2:
  mov    -0x334(%rbp),%eax
  cltq
  mov    -0x330(%rbp,%rax,8),%rax
  lea    -0x33c(%rbp),%r8
  lea    -0x340(%rbp),%rdi
  lea    -0x344(%rbp),%rcx
  lea    -0x348(%rbp),%rdx
  sub    $0x8,%rsp
  lea    -0x338(%rbp),%rsi
  push   %rsi
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <json_getKeyValuePair@plt>
  add    $0x10,%rsp
  cmp    $0xffffffff,%eax
  jne    L41
  mov    -0x334(%rbp),%eax
  cltq
  mov    -0x330(%rbp,%rax,8),%rax
  mov    -0x334(%rbp),%edx
  lea    0x1(%rdx),%ecx
  mov    %rax,%rdx
  mov    %ecx,%esi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L6
L41:
  mov    -0x334(%rbp),%eax
  cltq
  mov    -0x330(%rbp,%rax,8),%rax
  mov    -0x334(%rbp),%edx
  lea    0x1(%rdx),%ecx
  mov    %rax,%rdx
  mov    %ecx,%esi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x344(%rbp),%edx
  mov    -0x348(%rbp),%ecx
  mov    -0x334(%rbp),%eax
  cltq
  mov    -0x330(%rbp,%rax,8),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <json_util_printSubstring@plt>
  mov    -0x344(%rbp),%edx
  mov    -0x348(%rbp),%eax
  mov    %eax,%esi
  lea    D194(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x33c(%rbp),%edx
  mov    -0x340(%rbp),%ecx
  mov    -0x334(%rbp),%eax
  cltq
  mov    -0x330(%rbp,%rax,8),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <json_util_printSubstring@plt>
  mov    -0x338(%rbp),%eax
  mov    %eax,%edi
  call   <json_type_toString@plt>
  mov    %rax,%rcx
  mov    -0x33c(%rbp),%edx
  mov    -0x340(%rbp),%eax
  mov    %eax,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L6:
  addl   $0x1,-0x334(%rbp)
L48:
  mov    -0x334(%rbp),%eax
  cltq
  mov    -0x330(%rbp,%rax,8),%rax
  test   %rax,%rax
  jne    L2
  lea    D147(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L26
  call   <__stack_chk_fail@plt>
L26:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D173
type_guessed: string
name: extract_symbolic_data
arguments: tag: D99
type_guessed: string
name: extract_symbolic_data
arguments: tag: D112
type_guessed: string
name: extract_symbolic_data
arguments: tag: D69
type_guessed: string
name: extract_symbolic_data
arguments: tag: D50
type_guessed: string
name: extract_symbolic_data
arguments: tag: D198
type_guessed: string
name: extract_symbolic_data
arguments: tag: D137
type_guessed: string
name: extract_symbolic_data
arguments: tag: D139
type_guessed: string
name: extract_symbolic_data
arguments: tag: D104
type_guessed: string
name: extract_symbolic_data
arguments: tag: D10
type_guessed: string
name: extract_symbolic_data
arguments: tag: D156
type_guessed: string
name: extract_symbolic_data
arguments: tag: D196
type_guessed: string
name: extract_symbolic_data
arguments: tag: D184
type_guessed: string
name: extract_symbolic_data
arguments: tag: D150
type_guessed: string
name: extract_symbolic_data
arguments: tag: D53
type_guessed: string
name: extract_symbolic_data
arguments: tag: D45
type_guessed: string
name: extract_symbolic_data
arguments: tag: D16
type_guessed: string
name: extract_symbolic_data
arguments: tag: D194
type_guessed: string
name: extract_symbolic_data
arguments: tag: D7
type_guessed: string
name: extract_symbolic_data
arguments: tag: D147
type_guessed: string

tool: D173: Test json_getKeyValuePair

tool: D99: ================================================================================

tool: D112:     0123456789 123456789 123456789


tool: D69: "name"   :   "Leon"

tool: D50:    "age"  :  25  

tool: D198:    "sex"    :   "male" 

tool: D137: "company":"gemtek"

tool: D139: "obj":   {obj}

tool: D104: "array":[array]  

tool: D10: array:[]

tool: D156: obj:{}

tool: D196: "Bool"   
:   
true

tool: D184: 	"Bool"   	:   false

tool: D150: "Null"  :  null

tool: D53: %2d. %s, get key value pair failure



tool: D45: --------------------------------------------------------------------------------

tool: D16: %2d. %s

      Key = 

tool: D194:  [%d..%d]
    Value = 

tool: D7:  [%d..%d] (%s)



tool: D147: ================================================================================


assistant: ```c
void test_json_getKeyValuePair() {
  puts("Test json_getKeyValuePair");
  puts("================================================================================");
  puts("    0123456789 123456789 123456789\n");
  char *str[100] = {"\"name\"   :   \"Leon\"", "   \"age\"  :  25  ", "   \"sex\"    :   \"male\" ", "\"company\":\"gemtek\"", "\"obj\":   {obj}", "\"array\":[array]  ", "array:[]", "obj:{}", "\"Bool\"   \n:   \ntrue", "\t\"Bool\"   \t:   false", "\"Null\"  :  null"};
  int i, keyStartIndex, keyEndIndex, valueStartIndex, valueEndIndex, valueJsonType;
  for (i = 0; str[i] != NULL; i++) {
    if (json_getKeyValuePair(str[i], 0, &keyStartIndex, &keyEndIndex, &valueStartIndex, &valueEndIndex, &valueJsonType) == -1) {
      printf("%2d. %s, get key value pair failure\n\n", i + 1, str[i]);
      puts("--------------------------------------------------------------------------------");
      continue;
    }
    printf("%2d. %s\n\n      Key = ", i + 1, str[i]);
    json_util_printSubstring(str[i], keyStartIndex, keyEndIndex);
    printf(" [%d..%d]\n    Value = ", keyStartIndex, keyEndIndex);
    json_util_printSubstring(str[i], valueStartIndex, valueEndIndex);
    printf(" [%d..%d] (%s)\n\n", valueStartIndex, valueEndIndex, json_type_toString(valueJsonType));
    puts("--------------------------------------------------------------------------------");
  }
  puts("================================================================================\n");
}
```