{"type": "func", "start": 8771584, "end": 8771684, "name": "GJBaseGameLayer::sortAllGroupsX", "pseudocode": "// \n// GJBaseGameLayer::sortAllGroupsX from 0x85d800 to 0x85d864 (100 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::recreateGroups @ 0x660af0\n// > GJBaseGameLayer::sortGroups @ 0x8835b0\n// > <???> @ 0x706e0\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  __int64 i; // x19\n  cocos2d::CCArray *v3; // x0\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, 8u, (int (*)(const void *, const void *))xCompPosition);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::sortAllGroupsX from 0x85d800 to 0x85d864 (100 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::recreateGroups @ 0x660af0\n; > GJBaseGameLayer::sortGroups @ 0x8835b0\n; > <???> @ 0x706e0\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x85d800\nMOV             X29, SP                                                ; +0x4, 0x85d804\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x85d808\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x85d80c\nMOV             X20, X0                                                ; +0x10, 0x85d810\nMOV             X19, #8                                                ; +0x14, 0x85d814\nADRP            X21, #_Z13xCompPositionPKvS0__ptr@PAGE                 ; +0x18, 0x85d818\nLDR             X0, [X20,#0xF68]                                       ; +0x1c, 0x85d81c\nMOV             X2, #8; size_t                                         ; +0x20, 0x85d820\nLDR             X0, [X0,X19]                                           ; +0x24, 0x85d824\nADD             X19, X19, X2                                           ; +0x28, 0x85d828\nCBZ             X0, loc_85D844                                         ; +0x2c, 0x85d82c\nLDR             X1, [X0,#0x38]                                         ; +0x30, 0x85d830\nLDR             X3, [X21,#_Z13xCompPositionPKvS0__ptr@PAGEOFF]; int (*)(const void *, const void *) ; +0x34, 0x85d834\nLDR             X0, [X1,#0x10]; void *                                 ; +0x38, 0x85d838\nLDR             W1, [X1]; size_t                                       ; +0x3c, 0x85d83c\nBL              .qsort                                                 ; +0x40, 0x85d840\nMOV             X0, #0x13880                                           ; +0x44, 0x85d844\nCMP             X19, X0                                                ; +0x4c, 0x85d84c\nB.NE            loc_85D81C                                             ; +0x50, 0x85d850\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x54, 0x85d854\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x58, 0x85d858\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x85d85c\nRET                                                                    ; +0x60, 0x85d860", "xrefs": ["LevelEditorLayer::recreateGroups @ 0x660af0", "GJBaseGameLayer::sortGroups @ 0x8835b0", "<???> @ 0x706e0"], "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"}