{"type": "func", "start": 4656316, "end": 4656390, "name": "GJBaseGameLayer::triggerGravityChange", "pseudocode": "// \n// GJBaseGameLayer::triggerGravityChange from 0x470cbc to 0x470d06 (74 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x3edcc2\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 GJBaseGameLayer::triggerGravityChange(GJBaseGameLayer *a1, EffectGameObject *a2, int a3)\n{\n  PlayerObject *m_player1; // r3\n  float m_gravityValue; // r2\n\n  if ( a2->m_followCPP )\n  {\n    if ( a3 == 1 )\n    {\n      m_player1 = a1->m_player1;\n      m_gravityValue = a2->m_gravityValue;\nLABEL_10:\n      m_player1->m_gravityMod = m_gravityValue;\n      return;\n    }\n    if ( a3 != 2 )\n      return;\nLABEL_9:\n    m_player1 = a1->m_player2;\n    m_gravityValue = a2->m_gravityValue;\n    goto LABEL_10;\n  }\n  if ( !a2->m_targetPlayer2 )\n    a1->m_player1->m_gravityMod = a2->m_gravityValue;\n  if ( !a2->m_targetPlayer1 )\n    goto LABEL_9;\n}", "assembly": "; \n; GJBaseGameLayer::triggerGravityChange from 0x470cbc to 0x470d06 (74 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x3edcc2\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.W          R3, [R1,#0x5DA]                                        ; +0x0, 0x470cbc\nCBZ             R3, loc_470CD8                                         ; +0x4, 0x470cc0\nCMP             R2, #1                                                 ; +0x6, 0x470cc2\nBNE             loc_470CD2                                             ; +0x8, 0x470cc4\nADD.W           R1, R1, #0x608                                         ; +0xa, 0x470cc6\nLDR.W           R3, [R0,#0x8B8]                                        ; +0xe, 0x470cca\nLDR             R2, [R1]                                               ; +0x12, 0x470cce\nB               loc_470CFE                                             ; +0x14, 0x470cd0\nCMP             R2, #2                                                 ; +0x16, 0x470cd2\nBNE             locret_470D04                                          ; +0x18, 0x470cd4\nB               loc_470CF4                                             ; +0x1a, 0x470cd6\nLDRB.W          R3, [R1,#0x5D9]                                        ; +0x1c, 0x470cd8\nCBNZ            R3, loc_470CEE                                         ; +0x20, 0x470cdc\nADD.W           R3, R1, #0x608                                         ; +0x22, 0x470cde\nLDR             R2, [R3]                                               ; +0x26, 0x470ce2\nLDR.W           R3, [R0,#0x8B8]                                        ; +0x28, 0x470ce4\nADDW            R3, R3, #0x93C                                         ; +0x2c, 0x470ce8\nSTR             R2, [R3]                                               ; +0x30, 0x470cec\nLDRB.W          R3, [R1,#0x5D8]                                        ; +0x32, 0x470cee\nCBNZ            R3, locret_470D04                                      ; +0x36, 0x470cf2\nADD.W           R1, R1, #0x608                                         ; +0x38, 0x470cf4\nLDR.W           R3, [R0,#0x8BC]                                        ; +0x3c, 0x470cf8\nLDR             R2, [R1]                                               ; +0x40, 0x470cfc\nADDW            R3, R3, #0x93C                                         ; +0x42, 0x470cfe\nSTR             R2, [R3]                                               ; +0x46, 0x470d02\nBX              LR                                                     ; +0x48, 0x470d04", "xrefs": ["EffectGameObject::triggerObject @ 0x3edcc2"], "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"}