in Source/PLCrashAsyncThread_arm.c [223:244]
static inline plcrash_greg_t plcrash_async_thread_state_get_reg_32 (const plcrash_async_thread_state_t *ts, plcrash_regnum_t regnum) {
switch (regnum) {
case PLCRASH_ARM_R0: return THREAD_STATE_GET(r[0], thread.ts_32, ts);
case PLCRASH_ARM_R1: return THREAD_STATE_GET(r[1], thread.ts_32, ts);
case PLCRASH_ARM_R2: return THREAD_STATE_GET(r[2], thread.ts_32, ts);
case PLCRASH_ARM_R3: return THREAD_STATE_GET(r[3], thread.ts_32, ts);
case PLCRASH_ARM_R4: return THREAD_STATE_GET(r[4], thread.ts_32, ts);
case PLCRASH_ARM_R5: return THREAD_STATE_GET(r[5], thread.ts_32, ts);
case PLCRASH_ARM_R6: return THREAD_STATE_GET(r[6], thread.ts_32, ts);
case PLCRASH_ARM_R7: return THREAD_STATE_GET(r[7], thread.ts_32, ts);
case PLCRASH_ARM_R8: return THREAD_STATE_GET(r[8], thread.ts_32, ts);
case PLCRASH_ARM_R9: return THREAD_STATE_GET(r[9], thread.ts_32, ts);
case PLCRASH_ARM_R10: return THREAD_STATE_GET(r[10], thread.ts_32, ts);
case PLCRASH_ARM_R11: return THREAD_STATE_GET(r[11], thread.ts_32, ts);
case PLCRASH_ARM_R12: return THREAD_STATE_GET(r[12], thread.ts_32, ts);
case PLCRASH_ARM_SP: return THREAD_STATE_GET(sp, thread.ts_32, ts);
case PLCRASH_ARM_LR: return THREAD_STATE_GET(lr, thread.ts_32, ts);
case PLCRASH_ARM_PC: return THREAD_STATE_GET(pc, thread.ts_32, ts);
case PLCRASH_ARM_CPSR: return THREAD_STATE_GET(cpsr, thread.ts_32, ts);
default: __builtin_trap();
}
}