{"type": "func", "start": 4296263696, "end": 4296263801, "name": "GJBaseGameLayer::triggerGravityChange", "pseudocode": "// \n// GJBaseGameLayer::triggerGravityChange from 0x10013c810 to 0x10013c879 (105 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x1001b9b97\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; // rax\n\n  if ( a2->m_followCPP )\n  {\n    if ( a3 == 1 )\n    {\n      v3 = 3232;\n      goto LABEL_10;\n    }\n    if ( a3 == 2 )\n    {\n      v3 = 3240;\nLABEL_10:\n      HIDWORD((*(GJBaseGameLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                        + v3))[1].updateDebugDraw) = LODWORD(a2->m_gravityValue);\n    }\n  }\n  else\n  {\n    if ( !a2->m_targetPlayer2 )\n      a1->m_player1->m_gravityMod = a2->m_gravityValue;\n    v3 = 3240;\n    if ( !a2->m_targetPlayer1 )\n      goto LABEL_10;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::triggerGravityChange from 0x10013c810 to 0x10013c879 (105 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x1001b9b97\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\npush    rbp                                                            ; +0x0, 0x10013c810\nmov     rbp, rsp                                                       ; +0x1, 0x10013c811\ncmp     byte ptr [rsi+696h], 1                                         ; +0x4, 0x10013c814\njnz     short loc_10013C82E                                            ; +0xb, 0x10013c81b\ncmp     edx, 1                                                         ; +0xd, 0x10013c81d\njz      short loc_10013C85E                                            ; +0x10, 0x10013c820\ncmp     edx, 2                                                         ; +0x12, 0x10013c822\njnz     short loc_10013C85C                                            ; +0x15, 0x10013c825\nmov     eax, 0CA8h                                                     ; +0x17, 0x10013c827\njmp     short loc_10013C863                                            ; +0x1c, 0x10013c82c\ncmp     byte ptr [rsi+695h], 0                                         ; +0x1e, 0x10013c82e\njnz     short loc_10013C84E                                            ; +0x25, 0x10013c835\nmov     rax, [rdi+0CA0h]                                               ; +0x27, 0x10013c837\nmovss   xmm0, dword ptr [rsi+6C8h]                                     ; +0x2e, 0x10013c83e\nmovss   dword ptr [rax+0B1Ch], xmm0                                    ; +0x36, 0x10013c846\nmov     eax, 0CA8h                                                     ; +0x3e, 0x10013c84e\ncmp     byte ptr [rsi+694h], 0                                         ; +0x43, 0x10013c853\njz      short loc_10013C863                                            ; +0x4a, 0x10013c85a\npop     rbp                                                            ; +0x4c, 0x10013c85c\nretn                                                                   ; +0x4d, 0x10013c85d\nmov     eax, 0CA0h                                                     ; +0x4e, 0x10013c85e\nmov     rax, [rdi+rax]                                                 ; +0x53, 0x10013c863\nmovss   xmm0, dword ptr [rsi+6C8h]                                     ; +0x57, 0x10013c867\nmovss   dword ptr [rax+0B1Ch], xmm0                                    ; +0x5f, 0x10013c86f\npop     rbp                                                            ; +0x67, 0x10013c877\nretn                                                                   ; +0x68, 0x10013c878", "xrefs": ["EffectGameObject::triggerObject @ 0x1001b9b97"], "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"}