// File: /workspace/github_c_makefile_star2_O0/inolen[P]gdb_server/./gdb_server.h
// Function: gdb_server_handle_packet
static void gdb_server_handle_packet(gdb_server_t *sv, const char *data) {
  int handled = 0;

  if (!strcmp(data, GDB_PACKET_ACK)) {
    handled = gdb_server_handle_ack(sv, data);
  } else if (!strcmp(data, GDB_PACKET_NACK)) {
    handled = gdb_server_handle_nack(sv, data);
  } else if (data[0] == 0x3) {
    handled = gdb_server_handle_int3(sv, data);
  } else if (data[0] == 'c') {
    handled = gdb_server_handle_c(sv, data);
  } else if (data[0] == 'g') {
    handled = gdb_server_handle_g(sv, data);
  } else if (data[0] == 'H') {
    handled = gdb_server_handle_H(sv, data);
  } else if (data[0] == 'm') {
    handled = gdb_server_handle_m(sv, data);
  } else if (data[0] == 'p') {
    handled = gdb_server_handle_p(sv, data);
  } else if (data[0] == 'q') {
    handled = gdb_server_handle_q(sv, data);
  } else if (data[0] == 'Q') {
    handled = gdb_server_handle_Q(sv, data);
  } else if (data[0] == 's') {
    handled = gdb_server_handle_s(sv, data);
  } else if (data[0] == 'z') {
    handled = gdb_server_handle_z(sv, data);
  } else if (data[0] == 'Z') {
    handled = gdb_server_handle_Z(sv, data);
  } else if (!strcmp(data, "?")) {
    handled = gdb_server_handle_question(sv, data);
  }

  if (!handled) {
    GDB_SERVER_LOG("Unsupported packet %s", data);

    gdb_server_send_packet(sv, "");
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rdi
movq 0x8b4e(%rip), %rsi      # 0x110c0
callq 0x3110
cmpl $0x0, %eax
jne 0x8591
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x91a0
movl %eax, -0x14(%rbp)
jmp 0x875c
movq -0x10(%rbp), %rdi
movq 0x8b2c(%rip), %rsi      # 0x110c8
callq 0x3110
cmpl $0x0, %eax
jne 0x85bb
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x91f0
movl %eax, -0x14(%rbp)
jmp 0x875a
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3, %eax
jne 0x85dc
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x9260
movl %eax, -0x14(%rbp)
jmp 0x8758
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x63, %eax
jne 0x85fd
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x92a0
movl %eax, -0x14(%rbp)
jmp 0x8756
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x67, %eax
jne 0x861e
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x9310
movl %eax, -0x14(%rbp)
jmp 0x8754
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x48, %eax
jne 0x863f
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x93e0
movl %eax, -0x14(%rbp)
jmp 0x8752
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x6d, %eax
jne 0x8660
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x9450
movl %eax, -0x14(%rbp)
jmp 0x8750
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x70, %eax
jne 0x8681
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x95c0
movl %eax, -0x14(%rbp)
jmp 0x874e
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x71, %eax
jne 0x86a2
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x9660
movl %eax, -0x14(%rbp)
jmp 0x874c
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x51, %eax
jne 0x86c3
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x96f0
movl %eax, -0x14(%rbp)
jmp 0x874a
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x73, %eax
jne 0x86e1
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x9700
movl %eax, -0x14(%rbp)
jmp 0x8748
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x7a, %eax
jne 0x86ff
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x9770
movl %eax, -0x14(%rbp)
jmp 0x8746
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x5a, %eax
jne 0x871d
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x9810
movl %eax, -0x14(%rbp)
jmp 0x8744
movq -0x10(%rbp), %rdi
leaq 0x28b1(%rip), %rsi      # 0xafd9
callq 0x3110
cmpl $0x0, %eax
jne 0x8742
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x98b0
movl %eax, -0x14(%rbp)
jmp 0x8744
jmp 0x8746
jmp 0x8748
jmp 0x874a
jmp 0x874c
jmp 0x874e
jmp 0x8750
jmp 0x8752
jmp 0x8754
jmp 0x8756
jmp 0x8758
jmp 0x875a
jmp 0x875c
cmpl $0x0, -0x14(%rbp)
jne 0x8784
movq -0x10(%rbp), %rsi
leaq 0x286e(%rip), %rdi      # 0xafdb
movb $0x0, %al
callq 0x30d0
movq -0x8(%rbp), %rdi
leaq 0x27ab(%rip), %rsi      # 0xaf2a
callq 0x7f60
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)