{"type": "func", "start": 4657232, "end": 4657276, "name": "GJBaseGameLayer::sortAllGroupsX", "pseudocode": "// \n// GJBaseGameLayer::sortAllGroupsX from 0x471050 to 0x47107c (44 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::recreateGroups @ 0x36e87e\n// > GJBaseGameLayer::sortGroups @ 0x489d6c\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::sortAllGroupsX(GJBaseGameLayer *a1)\n{\n  int i; // r4\n  cocos2d::CCArray *v3; // r3\n\n  for ( i = 1; i != 10000; ++i )\n  {\n    v3 = a1->m_groups.m_start[i];\n    if ( v3 )\n      qsort(v3->data->arr, v3->data->num, 4u, (int (*)(const void *, const void *))xCompPosition);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::sortAllGroupsX from 0x471050 to 0x47107c (44 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::recreateGroups @ 0x36e87e\n; > GJBaseGameLayer::sortGroups @ 0x489d6c\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            {R4-R6,LR}                                             ; +0x0, 0x471050\nMOV             R6, R0                                                 ; +0x2, 0x471052\nMOVS            R4, #4                                                 ; +0x4, 0x471054\nMOVW            R5, #0x9C40                                            ; +0x6, 0x471056\nLDR.W           R3, [R6,#0x98C]                                        ; +0xa, 0x47105a\nLDR             R3, [R3,R4]                                            ; +0xe, 0x47105e\nCBZ             R3, loc_471074                                         ; +0x10, 0x471060\nLDR             R3, [R3,#0x34]                                         ; +0x12, 0x471062\nMOVS            R2, #4; size_t                                         ; +0x14, 0x471064\nLDR             R0, [R3,#0xC]; void *                                  ; +0x16, 0x471066\nLDR             R1, [R3]; size_t                                       ; +0x18, 0x471068\nLDR             R3, =(_Z13xCompPositionPKvS0__ptr - 0x471070)          ; +0x1a, 0x47106a\nADD             R3, PC; _Z13xCompPositionPKvS0__ptr                    ; +0x1c, 0x47106c\nLDR             R3, [R3]; xCompPosition(void const*,void const*) ; int (*)(const void *, const void *) ; +0x1e, 0x47106e\nBLX             qsort                                                  ; +0x20, 0x471070\nADDS            R4, #4                                                 ; +0x24, 0x471074\nCMP             R4, R5                                                 ; +0x26, 0x471076\nBNE             loc_47105A                                             ; +0x28, 0x471078\nPOP             {R4-R6,PC}                                             ; +0x2a, 0x47107a", "xrefs": ["LevelEditorLayer::recreateGroups @ 0x36e87e", "GJBaseGameLayer::sortGroups @ 0x489d6c"], "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"}