{"type": "func", "start": 4296983192, "end": 4296983536, "name": "GJBaseGameLayer::spawnObjectsInOrder", "pseudocode": "// \n// GJBaseGameLayer::spawnObjectsInOrder from 0x1001ec298 to 0x1001ec3f0 (344 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::spawnGroup @ 0x1001ec218\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 __fastcall GJBaseGameLayer::spawnObjectsInOrder(\n        GJBaseGameLayer *a1,\n        cocos2d::CCArray *a2,\n        double a3,\n        std::vector<int> *const a4,\n        int a5,\n        int a6)\n{\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  char v13; // w27\n  GameObject **arr; // x25\n  unsigned __int64 v15; // x26\n  float v16; // s9\n  GameObject *v17; // x23\n  float *v18; // x0\n  float v19; // s0\n\n  if ( a2 )\n  {\n    if ( !a1->m_spawnAbuse )\n    {\n      data = a2->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        v13 = 0;\n        arr = (GameObject **)data->arr;\n        v15 = (unsigned __int64)&arr[num - 1];\n        v16 = 0.0;\n        do\n        {\n          v17 = *arr;\n          if ( !*arr )\n            return;\n          if ( v17->m_classType == Effect )\n          {\n            if ( GameObject::isSpawnableTrigger(*arr) )\n              goto LABEL_11;\n          }\n          else if ( v17->m_objectID == 2065 && BYTE1(v17[1].m_fScaleX) == 1 )\n          {\nLABEL_11:\n            v18 = (float *)((__int64 (__fastcall *)(GameObject *))v17->getPosition)(v17);\n            if ( (v13 & 1) != 0 )\n            {\n              v19 = (float)(*v18 - v16) / 311.580109 - a3;\n              if ( v19 > 0.0 )\n              {\n                GJEffectManager::spawnObject(a1->m_effectManager, v17, v19, a4, a5, a6);\nLABEL_16:\n                if ( a1->m_spawnAbuse )\n                  return;\n                v13 = 1;\n                goto LABEL_18;\n              }\n            }\n            else\n            {\n              v16 = *v18;\n            }\n            ((void (__fastcall *)(GJBaseGameLayer *, GameObject *, std::vector<int> *const, double))a1->spawnObject)(\n              a1,\n              v17,\n              a4,\n              0.0);\n            goto LABEL_16;\n          }\nLABEL_18:\n          ++arr;\n        }\n        while ( (unsigned __int64)arr <= v15 );\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::spawnObjectsInOrder from 0x1001ec298 to 0x1001ec3f0 (344 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::spawnGroup @ 0x1001ec218\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\nCBZ             X1, locret_1001EC3EC                                   ; +0x0, 0x1001ec298\nSTP             D11, D10, [SP,#-0x10+var_70]!                          ; +0x4, 0x1001ec29c\nSTP             D9, D8, [SP,#0x70+var_60]                              ; +0x8, 0x1001ec2a0\nSTP             X28, X27, [SP,#0x70+var_50]                            ; +0xc, 0x1001ec2a4\nSTP             X26, X25, [SP,#0x70+var_40]                            ; +0x10, 0x1001ec2a8\nSTP             X24, X23, [SP,#0x70+var_30]                            ; +0x14, 0x1001ec2ac\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x18, 0x1001ec2b0\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x1c, 0x1001ec2b4\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0x20, 0x1001ec2b8\nADD             X29, SP, #0x70                                         ; +0x24, 0x1001ec2bc\nMOV             X22, X0                                                ; +0x28, 0x1001ec2c0\nMOV             W24, #0x3298                                           ; +0x2c, 0x1001ec2c4\nLDRB            W8, [X0,X24]                                           ; +0x30, 0x1001ec2c8\nTBNZ            W8, #0, loc_1001EC3CC                                  ; +0x34, 0x1001ec2cc\nLDR             X9, [X1,#0x38]                                         ; +0x38, 0x1001ec2d0\nLDR             W8, [X9]                                               ; +0x3c, 0x1001ec2d4\nCBZ             W8, loc_1001EC3CC                                      ; +0x40, 0x1001ec2d8\nMOV             X19, X4                                                ; +0x44, 0x1001ec2dc\nMOV             X20, X3                                                ; +0x48, 0x1001ec2e0\nMOV             X21, X2                                                ; +0x4c, 0x1001ec2e4\nFMOV            D8, D0                                                 ; +0x50, 0x1001ec2e8\nMOV             W27, #0                                                ; +0x54, 0x1001ec2ec\nLDR             X25, [X9,#0x10]                                        ; +0x58, 0x1001ec2f0\nADD             X8, X25, X8,LSL#3                                      ; +0x5c, 0x1001ec2f4\nSUB             X26, X8, #8                                            ; +0x60, 0x1001ec2f8\nFMOV            S9, WZR                                                ; +0x64, 0x1001ec2fc\nADRP            X8, #qword_10063A550@PAGE                              ; +0x68, 0x1001ec300\nLDR             D10, [X8,#qword_10063A550@PAGEOFF]                     ; +0x6c, 0x1001ec304\nLDR             X23, [X25]                                             ; +0x70, 0x1001ec308\nCBZ             X23, loc_1001EC3CC                                     ; +0x74, 0x1001ec30c\nLDR             W8, [X23,#0x4E0]                                       ; +0x78, 0x1001ec310\nCMP             W8, #1                                                 ; +0x7c, 0x1001ec314\nB.NE            loc_1001EC32C                                          ; +0x80, 0x1001ec318\nMOV             X0, X23                                                ; +0x84, 0x1001ec31c\nBL              GameObject__isSpawnableTrigger                         ; +0x88, 0x1001ec320\nTBNZ            W0, #0, loc_1001EC344                                  ; +0x8c, 0x1001ec324\nB               loc_1001EC3C0                                          ; +0x90, 0x1001ec328\nLDR             W8, [X23,#0x404]                                       ; +0x94, 0x1001ec32c\nCMP             W8, #0x811                                             ; +0x98, 0x1001ec330\nB.NE            loc_1001EC3C0                                          ; +0x9c, 0x1001ec334\nLDRB            W8, [X23,#0x589]                                       ; +0xa0, 0x1001ec338\nCMP             W8, #1                                                 ; +0xa4, 0x1001ec33c\nB.NE            loc_1001EC3C0                                          ; +0xa8, 0x1001ec340\nLDR             X8, [X23]                                              ; +0xac, 0x1001ec344\nLDR             X8, [X8,#0xC0]                                         ; +0xb0, 0x1001ec348\nMOV             X0, X23                                                ; +0xb4, 0x1001ec34c\nBLR             X8                                                     ; +0xb8, 0x1001ec350\nLDR             S0, [X0]                                               ; +0xbc, 0x1001ec354\nTBZ             W27, #0, loc_1001EC394                                 ; +0xc0, 0x1001ec358\nFSUB            S0, S0, S9                                             ; +0xc4, 0x1001ec35c\nFCVT            D0, S0                                                 ; +0xc8, 0x1001ec360\nFDIV            D0, D0, D10                                            ; +0xcc, 0x1001ec364\nFSUB            D0, D0, D8                                             ; +0xd0, 0x1001ec368\nFCVT            S0, D0                                                 ; +0xd4, 0x1001ec36c\nFCMP            S0, #0.0                                               ; +0xd8, 0x1001ec370\nB.LS            loc_1001EC398                                          ; +0xdc, 0x1001ec374\nLDR             X0, [X22,#0x878]                                       ; +0xe0, 0x1001ec378\nMOV             X1, X23                                                ; +0xe4, 0x1001ec37c\nMOV             X2, X21                                                ; +0xe8, 0x1001ec380\nMOV             X3, X20                                                ; +0xec, 0x1001ec384\nMOV             X4, X19                                                ; +0xf0, 0x1001ec388\nBL              GJEffectManager__spawnObject                           ; +0xf4, 0x1001ec38c\nB               loc_1001EC3B4                                          ; +0xf8, 0x1001ec390\nFMOV            S9, S0                                                 ; +0xfc, 0x1001ec394\nLDR             X8, [X22]                                              ; +0x100, 0x1001ec398\nLDR             X8, [X8,#0x4E0]                                        ; +0x104, 0x1001ec39c\nFMOV            D0, XZR                                                ; +0x108, 0x1001ec3a0\nMOV             X0, X22                                                ; +0x10c, 0x1001ec3a4\nMOV             X1, X23                                                ; +0x110, 0x1001ec3a8\nMOV             X2, X21                                                ; +0x114, 0x1001ec3ac\nBLR             X8                                                     ; +0x118, 0x1001ec3b0\nLDRB            W8, [X22,X24]                                          ; +0x11c, 0x1001ec3b4\nTBNZ            W8, #0, loc_1001EC3CC                                  ; +0x120, 0x1001ec3b8\nMOV             W27, #1                                                ; +0x124, 0x1001ec3bc\nADD             X25, X25, #8                                           ; +0x128, 0x1001ec3c0\nCMP             X25, X26                                               ; +0x12c, 0x1001ec3c4\nB.LS            loc_1001EC308                                          ; +0x130, 0x1001ec3c8\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0x134, 0x1001ec3cc\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0x138, 0x1001ec3d0\nLDP             X22, X21, [SP,#0x70+var_20]                            ; +0x13c, 0x1001ec3d4\nLDP             X24, X23, [SP,#0x70+var_30]                            ; +0x140, 0x1001ec3d8\nLDP             X26, X25, [SP,#0x70+var_40]                            ; +0x144, 0x1001ec3dc\nLDP             X28, X27, [SP,#0x70+var_50]                            ; +0x148, 0x1001ec3e0\nLDP             D9, D8, [SP,#0x70+var_60]                              ; +0x14c, 0x1001ec3e4\nLDP             D11, D10, [SP+0x70+var_70],#0x80                       ; +0x150, 0x1001ec3e8\nRET                                                                    ; +0x154, 0x1001ec3ec", "xrefs": ["GJBaseGameLayer::spawnGroup @ 0x1001ec218"], "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"}