{"type": "func", "start": 4297006692, "end": 4297006780, "name": "GJBaseGameLayer::triggerGravityChange", "pseudocode": "// \n// GJBaseGameLayer::triggerGravityChange from 0x1001f1e64 to 0x1001f1ebc (88 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x100385d6c\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\nvoid __fastcall GJBaseGameLayer::triggerGravityChange(GJBaseGameLayer *a1, EffectGameObject *a2, int a3)\n{\n  __int64 v3; // x8\n\n  if ( a2->m_followCPP )\n  {\n    if ( a3 == 1 )\n    {\n      v3 = 3272;\n      goto LABEL_10;\n    }\n    if ( a3 != 2 )\n      return;\nLABEL_8:\n    v3 = 3280;\nLABEL_10:\n    HIDWORD((*(GJBaseGameLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                      + v3))[1].destroyPlayer) = LODWORD(a2->m_gravityValue);\n    return;\n  }\n  if ( !a2->m_targetPlayer2 )\n    a1->m_player1->m_gravityMod = a2->m_gravityValue;\n  if ( !a2->m_targetPlayer1 )\n    goto LABEL_8;\n}", "assembly": "; \n; GJBaseGameLayer::triggerGravityChange from 0x1001f1e64 to 0x1001f1ebc (88 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x100385d6c\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\nLDRB            W8, [X1,#0x696]                                        ; +0x0, 0x1001f1e64\nCMP             W8, #1                                                 ; +0x4, 0x1001f1e68\nB.NE            loc_1001F1E84                                          ; +0x8, 0x1001f1e6c\nCMP             W2, #1                                                 ; +0xc, 0x1001f1e70\nB.EQ            loc_1001F1EA8                                          ; +0x10, 0x1001f1e74\nCMP             W2, #2                                                 ; +0x14, 0x1001f1e78\nB.EQ            loc_1001F1EA0                                          ; +0x18, 0x1001f1e7c\nRET                                                                    ; +0x1c, 0x1001f1e80\nLDRB            W8, [X1,#0x695]                                        ; +0x20, 0x1001f1e84\nTBNZ            W8, #0, loc_1001F1E98                                  ; +0x24, 0x1001f1e88\nLDR             X8, [X0,#0xCC8]                                        ; +0x28, 0x1001f1e8c\nLDR             S0, [X1,#0x6C8]                                        ; +0x2c, 0x1001f1e90\nSTR             S0, [X8,#0xB24]                                        ; +0x30, 0x1001f1e94\nLDRB            W8, [X1,#0x694]                                        ; +0x34, 0x1001f1e98\nTBNZ            W8, #0, locret_1001F1E80                               ; +0x38, 0x1001f1e9c\nMOV             W8, #0xCD0                                             ; +0x3c, 0x1001f1ea0\nB               loc_1001F1EAC                                          ; +0x40, 0x1001f1ea4\nMOV             W8, #0xCC8                                             ; +0x44, 0x1001f1ea8\nLDR             X8, [X0,X8]                                            ; +0x48, 0x1001f1eac\nLDR             S0, [X1,#0x6C8]                                        ; +0x4c, 0x1001f1eb0\nSTR             S0, [X8,#0xB24]                                        ; +0x50, 0x1001f1eb4\nRET                                                                    ; +0x54, 0x1001f1eb8", "xrefs": ["EffectGameObject::triggerObject @ 0x100385d6c"], "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"}