{"type": "func", "start": 4296188144, "end": 4296188236, "name": "GJBaseGameLayer::getItemValue", "pseudocode": "// \n// GJBaseGameLayer::getItemValue from 0x10012a0f0 to 0x10012a14c (92 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:24:43 +0000\n// \n\ndouble __fastcall GJBaseGameLayer::getItemValue(__int64 a1, int a2, unsigned int a3)\n{\n  int v3; // eax\n  double result; // xmm0_8\n\n  switch ( a2 )\n  {\n    case 1:\n      GJEffectManager::countForItem(*(_QWORD *)(a1 + 2152), a3);\n      result = (double)v3;\n      break;\n    case 2:\n      GJEffectManager::timeForItem(*(_QWORD *)(a1 + 2152), a3);\n      break;\n    case 3:\n      result = (double)*(int *)(a1 + 1916);\n      break;\n    case 4:\n      result = *(double *)(a1 + 13320);\n      break;\n    case 5:\n      result = (double)*(int *)(a1 + 12212);\n      break;\n    default:\n      result = 0.0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getItemValue from 0x10012a0f0 to 0x10012a14c (92 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:24:43 +0000\n; \ndec     esi; switch 5 cases                                            ; +0x0, 0x10012a0f0\ncmp     esi, 4                                                         ; +0x2, 0x10012a0f2\nja      short def_10012A105; jumptable 000000010012A105 default case   ; +0x5, 0x10012a0f5\nlea     rax, jpt_10012A105                                             ; +0x7, 0x10012a0f7\nmovsxd  rcx, (jpt_10012A105 - 10012A14Ch)[rax+rsi*4]                   ; +0xe, 0x10012a0fe\nadd     rcx, rax                                                       ; +0x12, 0x10012a102\njmp     rcx; switch jump                                               ; +0x15, 0x10012a105\npush    rbp; jumptable 000000010012A105 case 1                         ; +0x17, 0x10012a107\nmov     rbp, rsp                                                       ; +0x18, 0x10012a108\nmov     rdi, [rdi+868h]                                                ; +0x1b, 0x10012a10b\nmov     esi, edx                                                       ; +0x22, 0x10012a112\ncall    GJEffectManager__countForItem                                  ; +0x24, 0x10012a114\ncvtsi2sd xmm0, eax                                                     ; +0x29, 0x10012a119\npop     rbp                                                            ; +0x2d, 0x10012a11d\nretn                                                                   ; +0x2e, 0x10012a11e\ncvtsi2sd xmm0, dword ptr [rdi+2FB4h]; jumptable 000000010012A105 case 5 ; +0x2f, 0x10012a11f\nretn                                                                   ; +0x37, 0x10012a127\ncvtsi2sd xmm0, dword ptr [rdi+77Ch]; jumptable 000000010012A105 case 3 ; +0x38, 0x10012a128\nretn                                                                   ; +0x40, 0x10012a130\nmovsd   xmm0, qword ptr [rdi+3408h]; jumptable 000000010012A105 case 4 ; +0x41, 0x10012a131\nretn                                                                   ; +0x49, 0x10012a139\nmov     rdi, [rdi+868h]; jumptable 000000010012A105 case 2             ; +0x4a, 0x10012a13a\nmov     esi, edx                                                       ; +0x51, 0x10012a141\njmp     GJEffectManager__timeForItem                                   ; +0x53, 0x10012a143\nxorps   xmm0, xmm0; jumptable 000000010012A105 default case            ; +0x58, 0x10012a148\nretn                                                                   ; +0x5b, 0x10012a14b", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}