{"type": "func", "start": 5371019712, "end": 5371019843, "name": "GJBaseGameLayer::getItemValue", "pseudocode": "// \n// GJBaseGameLayer::getItemValue from 0x1402341c0 to 0x140234243 (131 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x1402343b7\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x1402343d3\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x1402343ed\n// > GJBaseGameLayer::activateItemCompareTrigger @ 0x140234797\n// > GJBaseGameLayer::activateItemCompareTrigger @ 0x14023485e\n// > <???> @ 0x1406cdfe0\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 GJBaseGameLayer::getItemValue(GJBaseGameLayer *a1, int a2, int a3)\n{\n  int v3; // edx\n  int v4; // edx\n  int v5; // edx\n  int v6; // edx\n\n  v3 = a2 - 1;\n  if ( !v3 )\n    return (double)GJEffectManager::countForItem(a1->m_effectManager, a3);\n  v4 = v3 - 1;\n  if ( !v4 )\n    return GJEffectManager::timeForItem(a1->m_effectManager, a3);\n  v5 = v4 - 1;\n  if ( !v5 )\n    return (double)a1->m_gameState.m_points;\n  v6 = v5 - 1;\n  if ( !v6 )\n    return a1->m_timePlayed;\n  if ( v6 == 1 )\n    return (double)a1->m_attempts;\n  return 0.0;\n}", "assembly": "; \n; GJBaseGameLayer::getItemValue from 0x1402341c0 to 0x140234243 (131 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x1402343b7\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x1402343d3\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x1402343ed\n; > GJBaseGameLayer::activateItemCompareTrigger @ 0x140234797\n; > GJBaseGameLayer::activateItemCompareTrigger @ 0x14023485e\n; > <???> @ 0x1406cdfe0\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\nsub     rsp, 28h                                                       ; +0x0, 0x1402341c0\nsub     edx, 1                                                         ; +0x4, 0x1402341c4\njz      short loc_140234227                                            ; +0x7, 0x1402341c7\nsub     edx, 1                                                         ; +0x9, 0x1402341c9\njz      short loc_140234214                                            ; +0xc, 0x1402341cc\nsub     edx, 1                                                         ; +0xe, 0x1402341ce\njz      short loc_140234203                                            ; +0x11, 0x1402341d1\nsub     edx, 1                                                         ; +0x13, 0x1402341d3\njz      short loc_1402341F6                                            ; +0x16, 0x1402341d6\ncmp     edx, 1                                                         ; +0x18, 0x1402341d8\njz      short loc_1402341E5                                            ; +0x1b, 0x1402341db\nxorps   xmm0, xmm0                                                     ; +0x1d, 0x1402341dd\nadd     rsp, 28h                                                       ; +0x20, 0x1402341e0\nretn                                                                   ; +0x24, 0x1402341e4\nmovd    xmm0, dword ptr [rcx+3084h]                                    ; +0x25, 0x1402341e5\ncvtdq2pd xmm0, xmm0                                                    ; +0x2d, 0x1402341ed\nadd     rsp, 28h                                                       ; +0x31, 0x1402341f1\nretn                                                                   ; +0x35, 0x1402341f5\nmovsd   xmm0, qword ptr [rcx+3560h]                                    ; +0x36, 0x1402341f6\nadd     rsp, 28h                                                       ; +0x3e, 0x1402341fe\nretn                                                                   ; +0x42, 0x140234202\nmovd    xmm0, dword ptr [rcx+864h]                                     ; +0x43, 0x140234203\ncvtdq2pd xmm0, xmm0                                                    ; +0x4b, 0x14023420b\nadd     rsp, 28h                                                       ; +0x4f, 0x14023420f\nretn                                                                   ; +0x53, 0x140234213\nmov     rcx, [rcx+950h]                                                ; +0x54, 0x140234214\nmov     edx, r8d                                                       ; +0x5b, 0x14023421b\nadd     rsp, 28h                                                       ; +0x5e, 0x14023421e\njmp     GJEffectManager__timeForItem                                   ; +0x62, 0x140234222\nmov     rcx, [rcx+950h]                                                ; +0x67, 0x140234227\nmov     edx, r8d                                                       ; +0x6e, 0x14023422e\ncall    GJEffectManager__countForItem                                  ; +0x71, 0x140234231\nmovd    xmm0, eax                                                      ; +0x76, 0x140234236\ncvtdq2pd xmm0, xmm0                                                    ; +0x7a, 0x14023423a\nadd     rsp, 28h                                                       ; +0x7e, 0x14023423e\nretn                                                                   ; +0x82, 0x140234242", "xrefs": ["GJBaseGameLayer::activateItemEditTrigger @ 0x1402343b7", "GJBaseGameLayer::activateItemEditTrigger @ 0x1402343d3", "GJBaseGameLayer::activateItemEditTrigger @ 0x1402343ed", "GJBaseGameLayer::activateItemCompareTrigger @ 0x140234797", "GJBaseGameLayer::activateItemCompareTrigger @ 0x14023485e", "<???> @ 0x1406cdfe0"], "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"}