{"type": "func", "start": 4656390, "end": 4656448, "name": "GJBaseGameLayer::addToGroups", "pseudocode": "// \n// GJBaseGameLayer::addToGroups from 0x470d06 to 0x470d40 (58 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::addObject @ 0x310dca\n// > PlayLayer::addObject @ 0x3111e2\n// > PlayLayer::addObject @ 0x31142a\n// > LevelEditorLayer::addSpecial @ 0x370d52\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::addToGroups(GJBaseGameLayer *a1, GameObject *a2, bool a3)\n{\n  _BOOL4 v5; // r7\n  int i; // r4\n  int GroupID; // r0\n\n  v5 = a3;\n  if ( a2->m_groupCount > 0 )\n  {\n    for ( i = 0; i < a2->m_groupCount; ++i )\n    {\n      GroupID = GameObject::getGroupID(a2, i);\n      a1->addToGroup(a1, a2, GroupID, v5);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addToGroups from 0x470d06 to 0x470d40 (58 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::addObject @ 0x310dca\n; > PlayLayer::addObject @ 0x3111e2\n; > PlayLayer::addObject @ 0x31142a\n; > LevelEditorLayer::addSpecial @ 0x370d52\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            {R3-R7,LR}                                             ; +0x0, 0x470d06\nMOV             R6, R0                                                 ; +0x2, 0x470d08\nLDRSH.W         R3, [R1,#0x3F4]                                        ; +0x4, 0x470d0a\nMOV             R5, R1                                                 ; +0x8, 0x470d0e\nMOV             R7, R2                                                 ; +0xa, 0x470d10\nCMP             R3, #0                                                 ; +0xc, 0x470d12\nBGT             loc_470D18                                             ; +0xe, 0x470d14\nPOP             {R3-R7,PC}                                             ; +0x10, 0x470d16\nMOVS            R4, #0                                                 ; +0x12, 0x470d18\nLDRSH.W         R3, [R5,#0x3F4]                                        ; +0x14, 0x470d1a\nCMP             R4, R3                                                 ; +0x18, 0x470d1e\nBGE             locret_470D3E                                          ; +0x1a, 0x470d20\nMOV             R1, R4; int                                            ; +0x1c, 0x470d22\nMOV             R0, R5; this                                           ; +0x1e, 0x470d24\nBL              _ZN10GameObject10getGroupIDEi; GameObject::getGroupID(int) ; +0x20, 0x470d26\nLDR             R3, [R6]                                               ; +0x24, 0x470d2a\nMOV             R1, R5                                                 ; +0x26, 0x470d2c\nADDS            R4, #1                                                 ; +0x28, 0x470d2e\nLDR.W           R12, [R3,#0x28C]                                       ; +0x2a, 0x470d30\nMOV             R3, R7                                                 ; +0x2e, 0x470d34\nMOV             R2, R0                                                 ; +0x30, 0x470d36\nMOV             R0, R6                                                 ; +0x32, 0x470d38\nBLX             R12                                                    ; +0x34, 0x470d3a\nB               loc_470D1A                                             ; +0x36, 0x470d3c\nPOP             {R3-R7,PC}                                             ; +0x38, 0x470d3e", "xrefs": ["PlayLayer::addObject @ 0x310dca", "PlayLayer::addObject @ 0x3111e2", "PlayLayer::addObject @ 0x31142a", "LevelEditorLayer::addSpecial @ 0x370d52"], "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"}