// File: /workspace/github_c_makefile_star2_O0/canboat[P]canboat/analyzer/pgn.c
// Function: camelCase
void camelCase(bool upperCamelCase)
{
  int  i, j;
  bool haveEarlierSpareOrReserved;

  for (i = 0; i < pgnListSize; i++)
  {
    pgnList[i].camelDescription = camelize(pgnList[i].description, upperCamelCase, 0);
    haveEarlierSpareOrReserved  = false;
    for (j = 0; j < ARRAY_SIZE(pgnList[i].fieldList) && pgnList[i].fieldList[j].name; j++)
    {
      const char *name = pgnList[i].fieldList[j].name;

      if (pgnList[i].fieldList[j].camelName == NULL)
      {
        pgnList[i].fieldList[j].camelName = camelize(name, upperCamelCase, haveEarlierSpareOrReserved ? j + 1 : 0);
      }
      else if (upperCamelCase)
      {
        pgnList[i].fieldList[j].camelName
            = camelize(pgnList[i].fieldList[j].camelName, upperCamelCase, haveEarlierSpareOrReserved ? j + 1 : 0);
      }

      if (strcmp(name, "Reserved") == 0 || strcmp(name, "Spare") == 0)
      {
        haveEarlierSpareOrReserved = true;
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %dil, %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movl $0x0, -0x8(%rbp)
movslq -0x8(%rbp), %rax
leaq 0x16796(%rip), %rcx     # 0x24438
cmpq (%rcx), %rax
jae 0xdefc
movslq -0x8(%rbp), %rcx
leaq 0x2e64a(%rip), %rax     # 0x3c300
imulq $0x15f8, %rcx, %rcx     # imm = 0x15F8
addq %rcx, %rax
movq (%rax), %rdi
movb -0x1(%rbp), %al
xorl %edx, %edx
andb $0x1, %al
movzbl %al, %esi
callq 0xdf10
movq %rax, %rcx
movslq -0x8(%rbp), %rdx
leaq 0x2e620(%rip), %rax     # 0x3c300
imulq $0x15f8, %rdx, %rdx     # imm = 0x15F8
addq %rdx, %rax
movq %rcx, 0x15c8(%rax)
movb $0x0, -0xd(%rbp)
movl $0x0, -0xc(%rbp)
movslq -0xc(%rbp), %rcx
xorl %eax, %eax
cmpq $0x21, %rcx
movb %al, -0x19(%rbp)
jae 0xdd3c
movslq -0x8(%rbp), %rcx
leaq 0x2e5ea(%rip), %rax     # 0x3c300
imulq $0x15f8, %rcx, %rcx     # imm = 0x15F8
addq %rcx, %rax
addq $0x18, %rax
movslq -0xc(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
setne %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0xdd48
jmp 0xdeec
movslq -0x8(%rbp), %rcx
leaq 0x2e5ad(%rip), %rax     # 0x3c300
imulq $0x15f8, %rcx, %rcx     # imm = 0x15F8
addq %rcx, %rax
addq $0x18, %rax
movslq -0xc(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movslq -0x8(%rbp), %rcx
leaq 0x2e57f(%rip), %rax     # 0x3c300
imulq $0x15f8, %rcx, %rcx     # imm = 0x15F8
addq %rcx, %rax
addq $0x18, %rax
movslq -0xc(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x58(%rax)
jne 0xde12
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movb -0x1(%rbp), %al
movb %al, -0x1a(%rbp)
testb $0x1, -0xd(%rbp)
je 0xddc3
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xddca
xorl %eax, %eax
movl %eax, -0x2c(%rbp)
jmp 0xddca
movq -0x28(%rbp), %rdi
movb -0x1a(%rbp), %al
movl -0x2c(%rbp), %edx
movzbl %al, %esi
andl $0x1, %esi
callq 0xdf10
movq %rax, %rcx
movslq -0x8(%rbp), %rdx
leaq 0x2e513(%rip), %rax     # 0x3c300
imulq $0x15f8, %rdx, %rdx     # imm = 0x15F8
addq %rdx, %rax
addq $0x18, %rax
movslq -0xc(%rbp), %rdx
imulq $0xa8, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x58(%rax)
jmp 0xdeae
testb $0x1, -0x1(%rbp)
je 0xdeac
movslq -0x8(%rbp), %rcx
leaq 0x2e4d9(%rip), %rax     # 0x3c300
imulq $0x15f8, %rcx, %rcx     # imm = 0x15F8
addq %rcx, %rax
addq $0x18, %rax
movslq -0xc(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
movq 0x58(%rax), %rax
movq %rax, -0x38(%rbp)
movb -0x1(%rbp), %al
movb %al, -0x2d(%rbp)
testb $0x1, -0xd(%rbp)
je 0xde62
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xde69
xorl %eax, %eax
movl %eax, -0x3c(%rbp)
jmp 0xde69
movq -0x38(%rbp), %rdi
movb -0x2d(%rbp), %al
movl -0x3c(%rbp), %edx
movzbl %al, %esi
andl $0x1, %esi
callq 0xdf10
movq %rax, %rcx
movslq -0x8(%rbp), %rdx
leaq 0x2e474(%rip), %rax     # 0x3c300
imulq $0x15f8, %rdx, %rdx     # imm = 0x15F8
addq %rdx, %rax
addq $0x18, %rax
movslq -0xc(%rbp), %rdx
imulq $0xa8, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x58(%rax)
jmp 0xdeae
movq -0x18(%rbp), %rdi
leaq 0x164ca(%rip), %rsi     # 0x24383
callq 0xd190
cmpl $0x0, %eax
je 0xded8
movq -0x18(%rbp), %rdi
leaq 0x164be(%rip), %rsi     # 0x2438c
callq 0xd190
cmpl $0x0, %eax
jne 0xdedc
movb $0x1, -0xd(%rbp)
jmp 0xdede
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xdcfc
jmp 0xdeee
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xdc97
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)