{"type": "func", "start": 8803632, "end": 8803684, "name": "GJBaseGameLayer::performMathRounding", "pseudocode": "// \n// GJBaseGameLayer::performMathRounding from 0x865530 to 0x865564 (52 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::activateItemCompareTrigger @ 0x865730\n// > GJBaseGameLayer::activateItemCompareTrigger @ 0x865788\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x8911e8\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x89127c\n// > <???> @ 0x2d3c0\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::performMathRounding(GJBaseGameLayer *a1, double a2, int a3)\n{\n  switch ( a3 )\n  {\n    case 2:\n      return floor(a2);\n    case 3:\n      return ceil(a2);\n    case 1:\n      return round(a2);\n  }\n  return a2;\n}", "assembly": "; \n; GJBaseGameLayer::performMathRounding from 0x865530 to 0x865564 (52 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::activateItemCompareTrigger @ 0x865730\n; > GJBaseGameLayer::activateItemCompareTrigger @ 0x865788\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x8911e8\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x89127c\n; > <???> @ 0x2d3c0\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\nCMP             W1, #2                                                 ; +0x0, 0x865530\nB.EQ            loc_86555C                                             ; +0x4, 0x865534\nCMP             W1, #3                                                 ; +0x8, 0x865538\nB.EQ            loc_865554                                             ; +0xc, 0x86553c\nCMP             W1, #1                                                 ; +0x10, 0x865540\nB.EQ            loc_86554C                                             ; +0x14, 0x865544\nRET                                                                    ; +0x18, 0x865548\nFRINTA          D0, D0                                                 ; +0x1c, 0x86554c\nRET                                                                    ; +0x20, 0x865550\nFRINTP          D0, D0                                                 ; +0x24, 0x865554\nRET                                                                    ; +0x28, 0x865558\nFRINTM          D0, D0                                                 ; +0x2c, 0x86555c\nRET                                                                    ; +0x30, 0x865560", "xrefs": ["GJBaseGameLayer::activateItemCompareTrigger @ 0x865730", "GJBaseGameLayer::activateItemCompareTrigger @ 0x865788", "GJBaseGameLayer::activateItemEditTrigger @ 0x8911e8", "GJBaseGameLayer::activateItemEditTrigger @ 0x89127c", "<???> @ 0x2d3c0"], "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"}