{"type": "func", "start": 4296989888, "end": 4296990036, "name": "GJBaseGameLayer::activateCustomRing", "pseudocode": "// \n// GJBaseGameLayer::activateCustomRing from 0x1001edcc0 to 0x1001edd54 (148 bytes)\n// \n// 1 xrefs:\n// > PlayerObject::ringJump @ 0x1002282e8\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::activateCustomRing(GJBaseGameLayer *a1, RingObject *a2)\n{\n  _BOOL4 m_isSpawnOnly; // w9\n  __int64 m_targetGroupID; // x1\n  _BOOL8 m_activateGroup; // x2\n  void *__p; // [xsp+8h] [xbp-28h] BYREF\n  void *v7; // [xsp+10h] [xbp-20h]\n  __int64 v8; // [xsp+18h] [xbp-18h]\n\n  m_isSpawnOnly = a2->m_isSpawnOnly;\n  m_targetGroupID = (unsigned int)a2->m_targetGroupID;\n  if ( m_isSpawnOnly )\n  {\n    __p = nullptr;\n    v7 = nullptr;\n    v8 = 0;\n    ((void (__fastcall *)(GJBaseGameLayer *, __int64, _QWORD, void **, _QWORD, _QWORD, double))a1->spawnGroup)(\n      a1,\n      m_targetGroupID,\n      0,\n      &__p,\n      (unsigned int)a2->m_uniqueID,\n      (unsigned int)a2->m_controlID,\n      0.0);\n  }\n  else\n  {\n    m_activateGroup = a2->m_activateGroup;\n    __p = nullptr;\n    v7 = nullptr;\n    v8 = 0;\n    ((void (__fastcall *)(GJBaseGameLayer *, __int64, _BOOL8, void **, _QWORD, _QWORD))a1->toggleGroupTriggered)(\n      a1,\n      m_targetGroupID,\n      m_activateGroup,\n      &__p,\n      (unsigned int)a2->m_uniqueID,\n      (unsigned int)a2->m_controlID);\n  }\n  if ( __p )\n  {\n    v7 = __p;\n    operator delete(__p);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::activateCustomRing from 0x1001edcc0 to 0x1001edd54 (148 bytes)\n; \n; 1 xrefs:\n; > PlayerObject::ringJump @ 0x1002282e8\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1001edcc0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1001edcc4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1001edcc8\nADD             X29, SP, #0x30                                         ; +0xc, 0x1001edccc\nMOV             X8, X1                                                 ; +0x10, 0x1001edcd0\nLDRB            W9, [X1,#0x72D]                                        ; +0x14, 0x1001edcd4\nLDR             W1, [X1,#0x5B8]                                        ; +0x18, 0x1001edcd8\nCMP             W9, #1                                                 ; +0x1c, 0x1001edcdc\nB.NE            loc_1001EDD10                                          ; +0x20, 0x1001edce0\nSTP             XZR, XZR, [SP,#0x30+__p]                               ; +0x24, 0x1001edce4\nSTR             XZR, [SP,#0x30+var_18]                                 ; +0x28, 0x1001edce8\nLDR             W4, [X8,#0x394]                                        ; +0x2c, 0x1001edcec\nLDR             W5, [X8,#0x688]                                        ; +0x30, 0x1001edcf0\nLDR             X8, [X0]                                               ; +0x34, 0x1001edcf4\nLDR             X8, [X8,#0x4D8]                                        ; +0x38, 0x1001edcf8\nFMOV            D0, XZR                                                ; +0x3c, 0x1001edcfc\nADD             X3, SP, #0x30+__p                                      ; +0x40, 0x1001edd00\nMOV             W2, #0                                                 ; +0x44, 0x1001edd04\nBLR             X8                                                     ; +0x48, 0x1001edd08\nB               loc_1001EDD34                                          ; +0x4c, 0x1001edd0c\nLDRB            W2, [X8,#0x665]                                        ; +0x50, 0x1001edd10\nSTP             XZR, XZR, [SP,#0x30+__p]                               ; +0x54, 0x1001edd14\nSTR             XZR, [SP,#0x30+var_18]                                 ; +0x58, 0x1001edd18\nLDR             W4, [X8,#0x394]                                        ; +0x5c, 0x1001edd1c\nLDR             W5, [X8,#0x688]                                        ; +0x60, 0x1001edd20\nLDR             X8, [X0]                                               ; +0x64, 0x1001edd24\nLDR             X8, [X8,#0x4C8]                                        ; +0x68, 0x1001edd28\nADD             X3, SP, #0x30+__p                                      ; +0x6c, 0x1001edd2c\nBLR             X8                                                     ; +0x70, 0x1001edd30\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x74, 0x1001edd34\nCBZ             X0, loc_1001EDD44                                      ; +0x78, 0x1001edd38\nSTR             X0, [SP,#0x30+var_20]                                  ; +0x7c, 0x1001edd3c\nBL              __ZdlPv; operator delete(void *)                       ; +0x80, 0x1001edd40\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x84, 0x1001edd44\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x88, 0x1001edd48\nADD             SP, SP, #0x40 ; '@'                                    ; +0x8c, 0x1001edd4c\nRET                                                                    ; +0x90, 0x1001edd50", "xrefs": ["PlayerObject::ringJump @ 0x1002282e8"], "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"}