{"type": "func", "start": 5372104368, "end": 5372104499, "name": "GJBaseGameLayer::getItemValue", "pseudocode": "// \n// GJBaseGameLayer::getItemValue from 0x14033ceb0 to 0x14033cf33 (131 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x14033d098\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x14033d0b4\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x14033d0ce\n// > GJBaseGameLayer::activateItemCompareTrigger @ 0x14033d46e\n// > GJBaseGameLayer::activateItemCompareTrigger @ 0x14033d54b\n// > <???> @ 0x14091fc1c\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 11:30:37 +0000\n// \n\ndouble __fastcall GJBaseGameLayer::getItemValue(__int64 a1, int a2, unsigned int a3)\n{\n  int v3; // edx\n  int v4; // edx\n  int v5; // edx\n  int v6; // edx\n  double result; // xmm0_8\n\n  v3 = a2 - 1;\n  if ( !v3 )\n    return (double)(int)GJEffectManager::countForItem(*(_QWORD *)(a1 + 2408), a3);\n  v4 = v3 - 1;\n  if ( v4 )\n  {\n    v5 = v4 - 1;\n    if ( v5 )\n    {\n      v6 = v5 - 1;\n      if ( v6 )\n      {\n        if ( v6 == 1 )\n          return (double)*(int *)(a1 + 12644);\n        else\n          return 0.0;\n      }\n      else\n      {\n        return *(double *)(a1 + 13920);\n      }\n    }\n    else\n    {\n      return (double)*(int *)(a1 + 2148);\n    }\n  }\n  else\n  {\n    GJEffectManager::timeForItem(*(_QWORD *)(a1 + 2408), a3);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getItemValue from 0x14033ceb0 to 0x14033cf33 (131 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x14033d098\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x14033d0b4\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x14033d0ce\n; > GJBaseGameLayer::activateItemCompareTrigger @ 0x14033d46e\n; > GJBaseGameLayer::activateItemCompareTrigger @ 0x14033d54b\n; > <???> @ 0x14091fc1c\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 11:30:37 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x14033ceb0\nsub     edx, 1                                                         ; +0x4, 0x14033ceb4\njz      short loc_14033CF17                                            ; +0x7, 0x14033ceb7\nsub     edx, 1                                                         ; +0x9, 0x14033ceb9\njz      short loc_14033CF04                                            ; +0xc, 0x14033cebc\nsub     edx, 1                                                         ; +0xe, 0x14033cebe\njz      short loc_14033CEF3                                            ; +0x11, 0x14033cec1\nsub     edx, 1                                                         ; +0x13, 0x14033cec3\njz      short loc_14033CEE6                                            ; +0x16, 0x14033cec6\ncmp     edx, 1                                                         ; +0x18, 0x14033cec8\njz      short loc_14033CED5                                            ; +0x1b, 0x14033cecb\nxorps   xmm0, xmm0                                                     ; +0x1d, 0x14033cecd\nadd     rsp, 28h                                                       ; +0x20, 0x14033ced0\nretn                                                                   ; +0x24, 0x14033ced4\nmovd    xmm0, dword ptr [rcx+3164h]                                    ; +0x25, 0x14033ced5\ncvtdq2pd xmm0, xmm0                                                    ; +0x2d, 0x14033cedd\nadd     rsp, 28h                                                       ; +0x31, 0x14033cee1\nretn                                                                   ; +0x35, 0x14033cee5\nmovsd   xmm0, qword ptr [rcx+3660h]                                    ; +0x36, 0x14033cee6\nadd     rsp, 28h                                                       ; +0x3e, 0x14033ceee\nretn                                                                   ; +0x42, 0x14033cef2\nmovd    xmm0, dword ptr [rcx+864h]                                     ; +0x43, 0x14033cef3\ncvtdq2pd xmm0, xmm0                                                    ; +0x4b, 0x14033cefb\nadd     rsp, 28h                                                       ; +0x4f, 0x14033ceff\nretn                                                                   ; +0x53, 0x14033cf03\nmov     rcx, [rcx+968h]                                                ; +0x54, 0x14033cf04\nmov     edx, r8d                                                       ; +0x5b, 0x14033cf0b\nadd     rsp, 28h                                                       ; +0x5e, 0x14033cf0e\njmp     GJEffectManager__timeForItem                                   ; +0x62, 0x14033cf12\nmov     rcx, [rcx+968h]                                                ; +0x67, 0x14033cf17\nmov     edx, r8d                                                       ; +0x6e, 0x14033cf1e\ncall    GJEffectManager__countForItem                                  ; +0x71, 0x14033cf21\nmovd    xmm0, eax                                                      ; +0x76, 0x14033cf26\ncvtdq2pd xmm0, xmm0                                                    ; +0x7a, 0x14033cf2a\nadd     rsp, 28h                                                       ; +0x7e, 0x14033cf2e\nretn                                                                   ; +0x82, 0x14033cf32", "xrefs": ["GJBaseGameLayer::activateItemEditTrigger @ 0x14033d098", "GJBaseGameLayer::activateItemEditTrigger @ 0x14033d0b4", "GJBaseGameLayer::activateItemEditTrigger @ 0x14033d0ce", "GJBaseGameLayer::activateItemCompareTrigger @ 0x14033d46e", "GJBaseGameLayer::activateItemCompareTrigger @ 0x14033d54b", "<???> @ 0x14091fc1c"], "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"}