{"type": "func", "start": 4297620824, "end": 4297621168, "name": "GJBaseGameLayer::spawnObjectsInOrder", "pseudocode": "// \n// GJBaseGameLayer::spawnObjectsInOrder from 0x100287d58 to 0x100287eb0 (344 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::spawnGroup @ 0x100287cd8\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:58 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::spawnObjectsInOrder(\n        __int64 result,\n        __int64 a2,\n        __int64 a3,\n        int a4,\n        int a5,\n        double a6)\n{\n  __int64 v6; // x22\n  unsigned int *v7; // x9\n  __int64 v8; // x8\n  char v13; // w27\n  __int64 *v14; // x25\n  unsigned __int64 v15; // x26\n  float v16; // s9\n  __int64 v17; // x23\n  float *v18; // x0\n  float v19; // s0\n\n  if ( a2 )\n  {\n    v6 = result;\n    if ( (*(_BYTE *)(result + 13096) & 1) == 0 )\n    {\n      v7 = *(unsigned int **)(a2 + 56);\n      v8 = *v7;\n      if ( (_DWORD)v8 )\n      {\n        v13 = 0;\n        v14 = *((__int64 **)v7 + 2);\n        v15 = (unsigned __int64)&v14[v8 - 1];\n        v16 = 0.0;\n        do\n        {\n          v17 = *v14;\n          if ( !*v14 )\n            return result;\n          if ( *(_DWORD *)(v17 + 1248) == 1 )\n          {\n            result = sub_1002FF818(*v14);\n            if ( (result & 1) != 0 )\n              goto LABEL_11;\n          }\n          else if ( *(_DWORD *)(v17 + 1028) == 2065 && *(_BYTE *)(v17 + 1417) == 1 )\n          {\nLABEL_11:\n            v18 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 192LL))(v17);\n            if ( (v13 & 1) != 0 )\n            {\n              v19 = (float)(*v18 - v16) / 311.580109 - a6;\n              if ( v19 > 0.0 )\n              {\n                result = sub_100014CB8(*(_QWORD *)(v6 + 2152), v17, a3, a4, a5, v19);\nLABEL_16:\n                if ( (*(_BYTE *)(v6 + 13096) & 1) != 0 )\n                  return result;\n                v13 = 1;\n                goto LABEL_18;\n              }\n            }\n            else\n            {\n              v16 = *v18;\n            }\n            result = (*(__int64 (__fastcall **)(__int64, __int64, __int64, double))(*(_QWORD *)v6 + 1264LL))(\n                       v6,\n                       v17,\n                       a3,\n                       0.0);\n            goto LABEL_16;\n          }\nLABEL_18:\n          ++v14;\n        }\n        while ( (unsigned __int64)v14 <= v15 );\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::spawnObjectsInOrder from 0x100287d58 to 0x100287eb0 (344 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::spawnGroup @ 0x100287cd8\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:58 +0000\n; \nCBZ             X1, locret_100287EAC                                   ; +0x0, 0x100287d58\nSTP             D11, D10, [SP,#-0x10+var_70]!                          ; +0x4, 0x100287d5c\nSTP             D9, D8, [SP,#0x70+var_60]                              ; +0x8, 0x100287d60\nSTP             X28, X27, [SP,#0x70+var_50]                            ; +0xc, 0x100287d64\nSTP             X26, X25, [SP,#0x70+var_40]                            ; +0x10, 0x100287d68\nSTP             X24, X23, [SP,#0x70+var_30]                            ; +0x14, 0x100287d6c\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x18, 0x100287d70\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x1c, 0x100287d74\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0x20, 0x100287d78\nADD             X29, SP, #0x70                                         ; +0x24, 0x100287d7c\nMOV             X22, X0                                                ; +0x28, 0x100287d80\nMOV             W24, #0x3328                                           ; +0x2c, 0x100287d84\nLDRB            W8, [X0,X24]                                           ; +0x30, 0x100287d88\nTBNZ            W8, #0, loc_100287E8C                                  ; +0x34, 0x100287d8c\nLDR             X9, [X1,#0x38]                                         ; +0x38, 0x100287d90\nLDR             W8, [X9]                                               ; +0x3c, 0x100287d94\nCBZ             W8, loc_100287E8C                                      ; +0x40, 0x100287d98\nMOV             X19, X4                                                ; +0x44, 0x100287d9c\nMOV             X20, X3                                                ; +0x48, 0x100287da0\nMOV             X21, X2                                                ; +0x4c, 0x100287da4\nFMOV            D8, D0                                                 ; +0x50, 0x100287da8\nMOV             W27, #0                                                ; +0x54, 0x100287dac\nLDR             X25, [X9,#0x10]                                        ; +0x58, 0x100287db0\nADD             X8, X25, X8,LSL#3                                      ; +0x5c, 0x100287db4\nSUB             X26, X8, #8                                            ; +0x60, 0x100287db8\nFMOV            S9, WZR                                                ; +0x64, 0x100287dbc\nADRP            X8, #qword_100763258@PAGE                              ; +0x68, 0x100287dc0\nLDR             D10, [X8,#qword_100763258@PAGEOFF]                     ; +0x6c, 0x100287dc4\nLDR             X23, [X25]                                             ; +0x70, 0x100287dc8\nCBZ             X23, loc_100287E8C                                     ; +0x74, 0x100287dcc\nLDR             W8, [X23,#0x4E0]                                       ; +0x78, 0x100287dd0\nCMP             W8, #1                                                 ; +0x7c, 0x100287dd4\nB.NE            loc_100287DEC                                          ; +0x80, 0x100287dd8\nMOV             X0, X23                                                ; +0x84, 0x100287ddc\nBL              sub_1002FF818                                          ; +0x88, 0x100287de0\nTBNZ            W0, #0, loc_100287E04                                  ; +0x8c, 0x100287de4\nB               loc_100287E80                                          ; +0x90, 0x100287de8\nLDR             W8, [X23,#0x404]                                       ; +0x94, 0x100287dec\nCMP             W8, #0x811                                             ; +0x98, 0x100287df0\nB.NE            loc_100287E80                                          ; +0x9c, 0x100287df4\nLDRB            W8, [X23,#0x589]                                       ; +0xa0, 0x100287df8\nCMP             W8, #1                                                 ; +0xa4, 0x100287dfc\nB.NE            loc_100287E80                                          ; +0xa8, 0x100287e00\nLDR             X8, [X23]                                              ; +0xac, 0x100287e04\nLDR             X8, [X8,#0xC0]                                         ; +0xb0, 0x100287e08\nMOV             X0, X23                                                ; +0xb4, 0x100287e0c\nBLR             X8                                                     ; +0xb8, 0x100287e10\nLDR             S0, [X0]                                               ; +0xbc, 0x100287e14\nTBZ             W27, #0, loc_100287E54                                 ; +0xc0, 0x100287e18\nFSUB            S0, S0, S9                                             ; +0xc4, 0x100287e1c\nFCVT            D0, S0                                                 ; +0xc8, 0x100287e20\nFDIV            D0, D0, D10                                            ; +0xcc, 0x100287e24\nFSUB            D0, D0, D8                                             ; +0xd0, 0x100287e28\nFCVT            S0, D0                                                 ; +0xd4, 0x100287e2c\nFCMP            S0, #0.0                                               ; +0xd8, 0x100287e30\nB.LS            loc_100287E58                                          ; +0xdc, 0x100287e34\nLDR             X0, [X22,#0x868]                                       ; +0xe0, 0x100287e38\nMOV             X1, X23                                                ; +0xe4, 0x100287e3c\nMOV             X2, X21                                                ; +0xe8, 0x100287e40\nMOV             X3, X20                                                ; +0xec, 0x100287e44\nMOV             X4, X19                                                ; +0xf0, 0x100287e48\nBL              sub_100014CB8                                          ; +0xf4, 0x100287e4c\nB               loc_100287E74                                          ; +0xf8, 0x100287e50\nFMOV            S9, S0                                                 ; +0xfc, 0x100287e54\nLDR             X8, [X22]                                              ; +0x100, 0x100287e58\nLDR             X8, [X8,#0x4F0]                                        ; +0x104, 0x100287e5c\nFMOV            D0, XZR                                                ; +0x108, 0x100287e60\nMOV             X0, X22                                                ; +0x10c, 0x100287e64\nMOV             X1, X23                                                ; +0x110, 0x100287e68\nMOV             X2, X21                                                ; +0x114, 0x100287e6c\nBLR             X8                                                     ; +0x118, 0x100287e70\nLDRB            W8, [X22,X24]                                          ; +0x11c, 0x100287e74\nTBNZ            W8, #0, loc_100287E8C                                  ; +0x120, 0x100287e78\nMOV             W27, #1                                                ; +0x124, 0x100287e7c\nADD             X25, X25, #8                                           ; +0x128, 0x100287e80\nCMP             X25, X26                                               ; +0x12c, 0x100287e84\nB.LS            loc_100287DC8                                          ; +0x130, 0x100287e88\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0x134, 0x100287e8c\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0x138, 0x100287e90\nLDP             X22, X21, [SP,#0x70+var_20]                            ; +0x13c, 0x100287e94\nLDP             X24, X23, [SP,#0x70+var_30]                            ; +0x140, 0x100287e98\nLDP             X26, X25, [SP,#0x70+var_40]                            ; +0x144, 0x100287e9c\nLDP             X28, X27, [SP,#0x70+var_50]                            ; +0x148, 0x100287ea0\nLDP             D9, D8, [SP,#0x70+var_60]                              ; +0x14c, 0x100287ea4\nLDP             D11, D10, [SP+0x70+var_70],#0x80                       ; +0x150, 0x100287ea8\nRET                                                                    ; +0x154, 0x100287eac", "xrefs": ["GJBaseGameLayer::spawnGroup @ 0x100287cd8"], "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"}