// File: /workspace/github_c_makefile_star2_O0/bokunimowakaru[P]petit15term/lpc21isp/lpcprog.c
// Function: ReturnValueLpcRamStart
unsigned long ReturnValueLpcRamStart(ISP_ENVIRONMENT *IspEnvironment)
{
  if(LPCtypes[IspEnvironment->DetectedDevice].ChipVariant == CHIP_VARIANT_LPC43XX)
  {
    return LPC_RAMSTART_LPC43XX;
  }
  else if(LPCtypes[IspEnvironment->DetectedDevice].ChipVariant == CHIP_VARIANT_LPC2XXX)
  {
    return LPC_RAMSTART_LPC2XXX;
  }
  else if(LPCtypes[IspEnvironment->DetectedDevice].ChipVariant == CHIP_VARIANT_LPC18XX)
  {
    return LPC_RAMSTART_LPC18XX;
  }
  else if(LPCtypes[IspEnvironment->DetectedDevice].ChipVariant == CHIP_VARIANT_LPC17XX)
  {
    return LPC_RAMSTART_LPC17XX;
  }
  else if(LPCtypes[IspEnvironment->DetectedDevice].ChipVariant == CHIP_VARIANT_LPC13XX)
  {
    return LPC_RAMSTART_LPC13XX;
  }
  else if(LPCtypes[IspEnvironment->DetectedDevice].ChipVariant == CHIP_VARIANT_LPC11XX)
  {
    return LPC_RAMSTART_LPC11XX;
  }
  else if(LPCtypes[IspEnvironment->DetectedDevice].ChipVariant == CHIP_VARIANT_LPC8XX)
  {
    return LPC_RAMSTART_LPC8XX;
  }
  DebugPrintf(1, "Error in ReturnValueLpcRamStart (%d)\n", LPCtypes[IspEnvironment->DetectedDevice].ChipVariant);
  exit(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movslq 0x38(%rax), %rcx
leaq 0x5c25(%rip), %rax      # 0x10160
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $0x1, 0x38(%rax)
jne 0xa555
movq $0x10000000, -0x8(%rbp) # imm = 0x10000000
jmp 0xa687
movq -0x10(%rbp), %rax
movslq 0x38(%rax), %rcx
leaq 0x5bfc(%rip), %rax      # 0x10160
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $0x2, 0x38(%rax)
jne 0xa57e
movq $0x40000000, -0x8(%rbp) # imm = 0x40000000
jmp 0xa687
movq -0x10(%rbp), %rax
movslq 0x38(%rax), %rcx
leaq 0x5bd3(%rip), %rax      # 0x10160
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $0x3, 0x38(%rax)
jne 0xa5a7
movq $0x10000000, -0x8(%rbp) # imm = 0x10000000
jmp 0xa687
movq -0x10(%rbp), %rax
movslq 0x38(%rax), %rcx
leaq 0x5baa(%rip), %rax      # 0x10160
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $0x4, 0x38(%rax)
jne 0xa5d0
movq $0x10000000, -0x8(%rbp) # imm = 0x10000000
jmp 0xa687
movq -0x10(%rbp), %rax
movslq 0x38(%rax), %rcx
leaq 0x5b81(%rip), %rax      # 0x10160
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $0x5, 0x38(%rax)
jne 0xa5f9
movq $0x10000000, -0x8(%rbp) # imm = 0x10000000
jmp 0xa687
movq -0x10(%rbp), %rax
movslq 0x38(%rax), %rcx
leaq 0x5b58(%rip), %rax      # 0x10160
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $0x6, 0x38(%rax)
jne 0xa61f
movq $0x10000000, -0x8(%rbp) # imm = 0x10000000
jmp 0xa687
movq -0x10(%rbp), %rax
movslq 0x38(%rax), %rcx
leaq 0x5b32(%rip), %rax      # 0x10160
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $0x7, 0x38(%rax)
jne 0xa645
movq $0x10000000, -0x8(%rbp) # imm = 0x10000000
jmp 0xa687
jmp 0xa647
jmp 0xa649
jmp 0xa64b
jmp 0xa64d
jmp 0xa64f
jmp 0xa651
movq -0x10(%rbp), %rax
movslq 0x38(%rax), %rcx
leaq 0x5b00(%rip), %rax      # 0x10160
shlq $0x6, %rcx
addq %rcx, %rax
movl 0x38(%rax), %edx
movl $0x1, %edi
leaq 0x2327(%rip), %rsi      # 0xc99d
movb $0x0, %al
callq 0x44e0
movl $0x1, %edi
callq 0x4250
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)