{"type": "func", "start": 4296327808, "end": 4296327900, "name": "GJBaseGameLayer::getItemValue", "pseudocode": "// \n// GJBaseGameLayer::getItemValue from 0x10014c280 to 0x10014c2dc (92 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\ndouble __fastcall GJBaseGameLayer::getItemValue(GJBaseGameLayer *a1, int a2, int a3)\n{\n  double result; // xmm0_8\n\n  switch ( a2 )\n  {\n    case 1:\n      result = (double)GJEffectManager::countForItem(a1->m_effectManager, a3);\n      break;\n    case 2:\n      result = GJEffectManager::timeForItem(a1->m_effectManager, a3);\n      break;\n    case 3:\n      result = (double)a1->m_gameState.m_points;\n      break;\n    case 4:\n      result = a1->m_timePlayed;\n      break;\n    case 5:\n      result = (double)a1->m_attempts;\n      break;\n    default:\n      result = 0.0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getItemValue from 0x10014c280 to 0x10014c2dc (92 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\ndec     esi; switch 5 cases                                            ; +0x0, 0x10014c280\ncmp     esi, 4                                                         ; +0x2, 0x10014c282\nja      short def_10014C295; jumptable 000000010014C295 default case   ; +0x5, 0x10014c285\nlea     rax, jpt_10014C295                                             ; +0x7, 0x10014c287\nmovsxd  rcx, (jpt_10014C295 - 10014C2DCh)[rax+rsi*4]                   ; +0xe, 0x10014c28e\nadd     rcx, rax                                                       ; +0x12, 0x10014c292\njmp     rcx; switch jump                                               ; +0x15, 0x10014c295\npush    rbp; jumptable 000000010014C295 case 1                         ; +0x17, 0x10014c297\nmov     rbp, rsp                                                       ; +0x18, 0x10014c298\nmov     rdi, [rdi+850h]                                                ; +0x1b, 0x10014c29b\nmov     esi, edx                                                       ; +0x22, 0x10014c2a2\ncall    GJEffectManager__countForItem                                  ; +0x24, 0x10014c2a4\ncvtsi2sd xmm0, eax                                                     ; +0x29, 0x10014c2a9\npop     rbp                                                            ; +0x2d, 0x10014c2ad\nretn                                                                   ; +0x2e, 0x10014c2ae\ncvtsi2sd xmm0, dword ptr [rdi+2F1Ch]; jumptable 000000010014C295 case 5 ; +0x2f, 0x10014c2af\nretn                                                                   ; +0x37, 0x10014c2b7\ncvtsi2sd xmm0, dword ptr [rdi+77Ch]; jumptable 000000010014C295 case 3 ; +0x38, 0x10014c2b8\nretn                                                                   ; +0x40, 0x10014c2c0\nmovsd   xmm0, qword ptr [rdi+3350h]; jumptable 000000010014C295 case 4 ; +0x41, 0x10014c2c1\nretn                                                                   ; +0x49, 0x10014c2c9\nmov     rdi, [rdi+850h]; jumptable 000000010014C295 case 2             ; +0x4a, 0x10014c2ca\nmov     esi, edx                                                       ; +0x51, 0x10014c2d1\njmp     GJEffectManager__timeForItem                                   ; +0x53, 0x10014c2d3\nxorps   xmm0, xmm0; jumptable 000000010014C295 default case            ; +0x58, 0x10014c2d8\nretn                                                                   ; +0x5b, 0x10014c2db", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}