{"type": "func", "start": 4714196, "end": 4714334, "name": "GJBaseGameLayer::activateCustomRing", "pseudocode": "// \n// GJBaseGameLayer::activateCustomRing from 0x47eed4 to 0x47ef5e (138 bytes)\n// \n// 1 xrefs:\n// > PlayerObject::ringJump @ 0x34e1a0\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::activateCustomRing(GJBaseGameLayer *a1, RingObject *a2)\n{\n  _BOOL4 m_isSpawnOnly; // r4\n  int m_targetGroupID; // r1\n  int m_uniqueID; // lr\n  int m_controlID; // r7\n  GJBaseGameLayer_vtbl *v7; // r2\n  void (__fastcall *spawnGroup)(GJBaseGameLayer *__hidden, int, bool, double, const std::vector<int> *, int, int); // r3\n  void (__fastcall *toggleGroupTriggered)(GJBaseGameLayer *__hidden, int, bool, const std::vector<int> *, int, int); // r12\n  _BOOL4 m_activateGroup; // r2\n  _BOOL4 v11; // [sp+18h] [bp-14h] BYREF\n  _BOOL4 v12; // [sp+1Ch] [bp-10h]\n  _BOOL4 v13; // [sp+20h] [bp-Ch]\n\n  m_isSpawnOnly = a2->m_isSpawnOnly;\n  m_targetGroupID = a2->m_targetGroupID;\n  m_uniqueID = a2->m_uniqueID;\n  m_controlID = a2->m_controlID;\n  v7 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  if ( a2->m_isSpawnOnly )\n  {\n    spawnGroup = v7->spawnGroup;\n    v11 = 0;\n    v12 = 0;\n    v13 = 0;\n    ((void (__fastcall *)(GJBaseGameLayer *, int, _DWORD, void (__fastcall *)(GJBaseGameLayer *__hidden, int, bool, double, const std::vector<int> *, int, int), _DWORD, _DWORD, _BOOL4 *, int, int))spawnGroup)(\n      a1,\n      m_targetGroupID,\n      0,\n      spawnGroup,\n      0,\n      0,\n      &v11,\n      m_uniqueID,\n      m_controlID);\n  }\n  else\n  {\n    toggleGroupTriggered = v7->toggleGroupTriggered;\n    m_activateGroup = a2->m_activateGroup;\n    v11 = m_isSpawnOnly;\n    v12 = m_isSpawnOnly;\n    v13 = m_isSpawnOnly;\n    toggleGroupTriggered(a1, m_targetGroupID, m_activateGroup, (const std::vector<int> *)&v11, m_uniqueID, m_controlID);\n  }\n  std::_Vector_base<int>::~_Vector_base((void **)&v11);\n}", "assembly": "; \n; GJBaseGameLayer::activateCustomRing from 0x47eed4 to 0x47ef5e (138 bytes)\n; \n; 1 xrefs:\n; > PlayerObject::ringJump @ 0x34e1a0\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\nMOV             R3, R1                                                 ; +0x0, 0x47eed4\nLDR             R1, =(__stack_chk_guard_ptr - 0x47EEE0)                ; +0x2, 0x47eed6\nPUSH.W          {R4-R9,LR}                                             ; +0x4, 0x47eed8\nADD             R1, PC; __stack_chk_guard_ptr                          ; +0x8, 0x47eedc\nLDR             R1, [R1]; __stack_chk_guard                            ; +0xa, 0x47eede\nLDRB.W          R4, [R3,#0x665]                                        ; +0xc, 0x47eee0\nSUB             SP, SP, #0x2C                                          ; +0x10, 0x47eee4\nLDR             R2, [R1]                                               ; +0x12, 0x47eee6\nMOV             R5, R1                                                 ; +0x14, 0x47eee8\nADD             R6, SP, #0x2C+var_14                                   ; +0x16, 0x47eeea\nLDR.W           R1, [R3,#0x4FC]                                        ; +0x18, 0x47eeec\nLDR.W           LR, [R3,#0x304]                                        ; +0x1c, 0x47eef0\nSTR             R2, [SP,#0x2C+var_8]                                   ; +0x20, 0x47eef4\nLDR.W           R7, [R3,#0x5CC]                                        ; +0x22, 0x47eef6\nLDR             R2, [R0]                                               ; +0x26, 0x47eefa\nCBZ             R4, loc_47EF22                                         ; +0x28, 0x47eefc\nLDR.W           R3, [R2,#0x26C]                                        ; +0x2a, 0x47eefe\nMOV.W           R8, #0                                                 ; +0x2e, 0x47ef02\nMOVS            R2, #0                                                 ; +0x32, 0x47ef06\nMOV.W           R9, #0                                                 ; +0x34, 0x47ef08\nSTR             R2, [SP,#0x2C+var_14]                                  ; +0x38, 0x47ef0c\nSTR             R2, [SP,#0x2C+var_10]                                  ; +0x3a, 0x47ef0e\nSTR             R2, [SP,#0x2C+var_C]                                   ; +0x3c, 0x47ef10\nSTRD.W          R8, R9, [SP,#0x2C+var_2C]                              ; +0x3e, 0x47ef12\nSTR             R6, [SP,#0x2C+var_24]                                  ; +0x42, 0x47ef16\nSTR.W           LR, [SP,#0x2C+var_20]                                  ; +0x44, 0x47ef18\nSTR             R7, [SP,#0x2C+var_1C]                                  ; +0x48, 0x47ef1c\nBLX             R3                                                     ; +0x4a, 0x47ef1e\nB               loc_47EF3A                                             ; +0x4c, 0x47ef20\nLDR.W           R12, [R2,#0x264]                                       ; +0x4e, 0x47ef22\nLDRB.W          R2, [R3,#0x5A9]                                        ; +0x52, 0x47ef26\nMOV             R3, R6                                                 ; +0x56, 0x47ef2a\nSTR             R4, [SP,#0x2C+var_14]                                  ; +0x58, 0x47ef2c\nSTR             R4, [SP,#0x2C+var_10]                                  ; +0x5a, 0x47ef2e\nSTR             R4, [SP,#0x2C+var_C]                                   ; +0x5c, 0x47ef30\nSTR.W           LR, [SP,#0x2C+var_2C]                                  ; +0x5e, 0x47ef32\nSTR             R7, [SP,#0x2C+var_28]                                  ; +0x62, 0x47ef36\nBLX             R12                                                    ; +0x64, 0x47ef38\nMOV             R0, R6                                                 ; +0x66, 0x47ef3a\nBL              _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base() ; +0x68, 0x47ef3c\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x6c, 0x47ef40\nLDR             R3, [R5]                                               ; +0x6e, 0x47ef42\nCMP             R2, R3                                                 ; +0x70, 0x47ef44\nBEQ             loc_47EF58                                             ; +0x72, 0x47ef46\nBLX             __stack_chk_fail                                       ; +0x74, 0x47ef48\nB               loc_47EF4E                                             ; +0x78, 0x47ef4c\nMOV             R0, R6                                                 ; +0x7a, 0x47ef4e\nBL              _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base() ; +0x7c, 0x47ef50\nBL              __cxa_end_cleanup                                      ; +0x80, 0x47ef54\nADD             SP, SP, #0x2C ; ','                                    ; +0x84, 0x47ef58\nPOP.W           {R4-R9,PC}                                             ; +0x86, 0x47ef5a", "xrefs": ["PlayerObject::ringJump @ 0x34e1a0"], "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"}