{"type": "func", "start": 4297046516, "end": 4297046640, "name": "GJBaseGameLayer::getItemValue", "pseudocode": "// \n// GJBaseGameLayer::getItemValue from 0x1001fb9f4 to 0x1001fba70 (124 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbcc\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbe0\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbf4\n// > GJBaseGameLayer::activateItemCompareTrigger @ 0x1001fbef4\n// > GJBaseGameLayer::activateItemCompareTrigger @ 0x1001fbfbc\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; // d0\n\n  result = 0.0;\n  if ( a2 <= 2 )\n  {\n    if ( a2 == 1 )\n    {\n      return (double)GJEffectManager::countForItem(a1->m_effectManager, a3);\n    }\n    else if ( a2 == 2 )\n    {\n      return GJEffectManager::timeForItem(a1->m_effectManager, a3);\n    }\n  }\n  else\n  {\n    switch ( a2 )\n    {\n      case 3:\n        return (double)a1->m_gameState.m_points;\n      case 4:\n        return a1->m_timePlayed;\n      case 5:\n        return (double)a1->m_attempts;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getItemValue from 0x1001fb9f4 to 0x1001fba70 (124 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbcc\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbe0\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbf4\n; > GJBaseGameLayer::activateItemCompareTrigger @ 0x1001fbef4\n; > GJBaseGameLayer::activateItemCompareTrigger @ 0x1001fbfbc\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\nFMOV            D0, XZR                                                ; +0x0, 0x1001fb9f4\nCMP             W1, #2                                                 ; +0x4, 0x1001fb9f8\nB.LE            loc_1001FBA20                                          ; +0x8, 0x1001fb9fc\nCMP             W1, #3                                                 ; +0xc, 0x1001fba00\nB.EQ            loc_1001FBA3C                                          ; +0x10, 0x1001fba04\nCMP             W1, #4                                                 ; +0x14, 0x1001fba08\nB.EQ            loc_1001FBA48                                          ; +0x18, 0x1001fba0c\nCMP             W1, #5                                                 ; +0x1c, 0x1001fba10\nB.NE            locret_1001FBA4C                                       ; +0x20, 0x1001fba14\nLDR             W8, [X0,#0x2F44]                                       ; +0x24, 0x1001fba18\nB               loc_1001FBA40                                          ; +0x28, 0x1001fba1c\nCMP             W1, #1                                                 ; +0x2c, 0x1001fba20\nB.EQ            loc_1001FBA50                                          ; +0x30, 0x1001fba24\nCMP             W1, #2                                                 ; +0x34, 0x1001fba28\nB.NE            locret_1001FBA4C                                       ; +0x38, 0x1001fba2c\nLDR             X0, [X0,#0x878]                                        ; +0x3c, 0x1001fba30\nMOV             X1, X2                                                 ; +0x40, 0x1001fba34\nB               GJEffectManager__timeForItem                           ; +0x44, 0x1001fba38\nLDR             W8, [X0,#0x77C]                                        ; +0x48, 0x1001fba3c\nSCVTF           D0, W8                                                 ; +0x4c, 0x1001fba40\nRET                                                                    ; +0x50, 0x1001fba44\nLDR             D0, [X0,#0x3380]                                       ; +0x54, 0x1001fba48\nRET                                                                    ; +0x58, 0x1001fba4c\nSTP             X29, X30, [SP,#var_10]!                                ; +0x5c, 0x1001fba50\nMOV             X29, SP                                                ; +0x60, 0x1001fba54\nLDR             X0, [X0,#0x878]                                        ; +0x64, 0x1001fba58\nMOV             X1, X2                                                 ; +0x68, 0x1001fba5c\nBL              GJEffectManager__countForItem                          ; +0x6c, 0x1001fba60\nSCVTF           D0, W0                                                 ; +0x70, 0x1001fba64\nLDP             X29, X30, [SP+0x10+var_10],#0x10                       ; +0x74, 0x1001fba68\nRET                                                                    ; +0x78, 0x1001fba6c", "xrefs": ["GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbcc", "GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbe0", "GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbbf4", "GJBaseGameLayer::activateItemCompareTrigger @ 0x1001fbef4", "GJBaseGameLayer::activateItemCompareTrigger @ 0x1001fbfbc"], "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"}