{"type": "func", "start": 4297685544, "end": 4297685668, "name": "GJBaseGameLayer::getItemValue", "pseudocode": "// \n// GJBaseGameLayer::getItemValue from 0x100297a28 to 0x100297aa4 (124 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x100297c00\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x100297c14\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x100297c28\n// > GJBaseGameLayer::activateItemCompareTrigger @ 0x100297f28\n// > GJBaseGameLayer::activateItemCompareTrigger @ 0x100297ff0\n// \n// This function is hookable on this platform (idp: arm, 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:02:07 +0000\n// \n\ndouble __fastcall GJBaseGameLayer::getItemValue(__int64 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)(int)sub_100015640(*(_QWORD *)(a1 + 2152), a3);\n    }\n    else if ( a2 == 2 )\n    {\n      return sub_100016D2C(*(_QWORD *)(a1 + 2152), a3);\n    }\n  }\n  else\n  {\n    switch ( a2 )\n    {\n      case 3:\n        return (double)*(int *)(a1 + 1916);\n      case 4:\n        return *(double *)(a1 + 13320);\n      case 5:\n        return (double)*(int *)(a1 + 12212);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getItemValue from 0x100297a28 to 0x100297aa4 (124 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x100297c00\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x100297c14\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x100297c28\n; > GJBaseGameLayer::activateItemCompareTrigger @ 0x100297f28\n; > GJBaseGameLayer::activateItemCompareTrigger @ 0x100297ff0\n; \n; This function is hookable on this platform (idp: arm, 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:02:07 +0000\n; \nFMOV            D0, XZR                                                ; +0x0, 0x100297a28\nCMP             W1, #2                                                 ; +0x4, 0x100297a2c\nB.LE            loc_100297A54                                          ; +0x8, 0x100297a30\nCMP             W1, #3                                                 ; +0xc, 0x100297a34\nB.EQ            loc_100297A70                                          ; +0x10, 0x100297a38\nCMP             W1, #4                                                 ; +0x14, 0x100297a3c\nB.EQ            loc_100297A7C                                          ; +0x18, 0x100297a40\nCMP             W1, #5                                                 ; +0x1c, 0x100297a44\nB.NE            locret_100297A80                                       ; +0x20, 0x100297a48\nLDR             W8, [X0,#0x2FB4]                                       ; +0x24, 0x100297a4c\nB               loc_100297A74                                          ; +0x28, 0x100297a50\nCMP             W1, #1                                                 ; +0x2c, 0x100297a54\nB.EQ            loc_100297A84                                          ; +0x30, 0x100297a58\nCMP             W1, #2                                                 ; +0x34, 0x100297a5c\nB.NE            locret_100297A80                                       ; +0x38, 0x100297a60\nLDR             X0, [X0,#0x868]                                        ; +0x3c, 0x100297a64\nMOV             X1, X2                                                 ; +0x40, 0x100297a68\nB               sub_100016D2C                                          ; +0x44, 0x100297a6c\nLDR             W8, [X0,#0x77C]                                        ; +0x48, 0x100297a70\nSCVTF           D0, W8                                                 ; +0x4c, 0x100297a74\nRET                                                                    ; +0x50, 0x100297a78\nLDR             D0, [X0,#0x3408]                                       ; +0x54, 0x100297a7c\nRET                                                                    ; +0x58, 0x100297a80\nSTP             X29, X30, [SP,#var_10]!                                ; +0x5c, 0x100297a84\nMOV             X29, SP                                                ; +0x60, 0x100297a88\nLDR             X0, [X0,#0x868]                                        ; +0x64, 0x100297a8c\nMOV             X1, X2                                                 ; +0x68, 0x100297a90\nBL              sub_100015640                                          ; +0x6c, 0x100297a94\nSCVTF           D0, W0                                                 ; +0x70, 0x100297a98\nLDP             X29, X30, [SP+0x10+var_10],#0x10                       ; +0x74, 0x100297a9c\nRET                                                                    ; +0x78, 0x100297aa0", "xrefs": ["GJBaseGameLayer::activateItemEditTrigger @ 0x100297c00", "GJBaseGameLayer::activateItemEditTrigger @ 0x100297c14", "GJBaseGameLayer::activateItemEditTrigger @ 0x100297c28", "GJBaseGameLayer::activateItemCompareTrigger @ 0x100297f28", "GJBaseGameLayer::activateItemCompareTrigger @ 0x100297ff0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}