{"type": "func", "start": 4297594164, "end": 4297594292, "name": "GJBaseGameLayer::sortStartPosObjects", "pseudocode": "// \n// GJBaseGameLayer::sortStartPosObjects from 0x100281534 to 0x1002815b4 (128 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::addLiveStartPosObject @ 0x10014b10c\n// > GJBaseGameLayer::processStartPosObjects @ 0x1002814d4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:01:55 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::sortStartPosObjects(__int64 a1)\n{\n  __int64 v2; // x20\n  int v3; // w0\n  __int64 v4; // x21\n  __int64 v5; // x22\n  __int64 v6; // x0\n\n  if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 12440)) >= 2 )\n  {\n    v2 = sub_100281448(*(_QWORD *)(a1 + 12440));\n    sub_1002E7674(*(_QWORD *)(a1 + 12440));\n    v3 = sub_1002E757C(v2);\n    v4 = (unsigned int)(v3 - 1);\n    if ( v3 - 1 >= 0 )\n    {\n      do\n      {\n        v5 = *(_QWORD *)(a1 + 12440);\n        v6 = sub_1002E75A0(v2, v4);\n        sub_1002E74E0(v5, v6);\n        v4 = (unsigned int)(v4 - 1);\n      }\n      while ( (_DWORD)v4 != -1 );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::sortStartPosObjects from 0x100281534 to 0x1002815b4 (128 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::addLiveStartPosObject @ 0x10014b10c\n; > GJBaseGameLayer::processStartPosObjects @ 0x1002814d4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:01:55 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100281534\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100281538\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10028153c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100281540\nMOV             X19, X0                                                ; +0x10, 0x100281544\nLDR             X0, [X0,#0x3098]                                       ; +0x14, 0x100281548\nBL              sub_1002E757C                                          ; +0x18, 0x10028154c\nCMP             W0, #2                                                 ; +0x1c, 0x100281550\nB.CC            loc_1002815A4                                          ; +0x20, 0x100281554\nLDR             X0, [X19,#0x3098]                                      ; +0x24, 0x100281558\nBL              sub_100281448                                          ; +0x28, 0x10028155c\nMOV             X20, X0                                                ; +0x2c, 0x100281560\nLDR             X0, [X19,#0x3098]                                      ; +0x30, 0x100281564\nBL              sub_1002E7674                                          ; +0x34, 0x100281568\nMOV             X0, X20                                                ; +0x38, 0x10028156c\nBL              sub_1002E757C                                          ; +0x3c, 0x100281570\nSUBS            W21, W0, #1                                            ; +0x40, 0x100281574\nB.MI            loc_1002815A4                                          ; +0x44, 0x100281578\nLDR             X22, [X19,#0x3098]                                     ; +0x48, 0x10028157c\nMOV             X0, X20                                                ; +0x4c, 0x100281580\nMOV             X1, X21                                                ; +0x50, 0x100281584\nBL              sub_1002E75A0                                          ; +0x54, 0x100281588\nMOV             X1, X0                                                 ; +0x58, 0x10028158c\nMOV             X0, X22                                                ; +0x5c, 0x100281590\nBL              sub_1002E74E0                                          ; +0x60, 0x100281594\nSUB             W21, W21, #1                                           ; +0x64, 0x100281598\nCMN             W21, #1                                                ; +0x68, 0x10028159c\nB.NE            loc_10028157C                                          ; +0x6c, 0x1002815a0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x1002815a4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x1002815a8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x78, 0x1002815ac\nRET                                                                    ; +0x7c, 0x1002815b0", "xrefs": ["PlayLayer::addLiveStartPosObject @ 0x10014b10c", "GJBaseGameLayer::processStartPosObjects @ 0x1002814d4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}