{"type": "func", "start": 5372182656, "end": 5372182828, "name": "GJBaseGameLayer::orderSpawnObjects", "pseudocode": "// \n// GJBaseGameLayer::orderSpawnObjects from 0x140350080 to 0x14035012c (172 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::onPlaytest @ 0x1403fed7c\n// > PlayLayer::createObjectsFromSetupFinished @ 0x14050c53e\n// > <???> @ 0x1408b87c4\n// > <???> @ 0x1408b87f8\n// > <???> @ 0x1409201ec\n// \n// This function is hookable on this platform (idp: pc, 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:30:46 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::orderSpawnObjects(__int64 a1)\n{\n  __int64 v2; // rdi\n  unsigned int *v3; // rdi\n  __int64 v4; // rax\n  _QWORD *v5; // rdi\n  _QWORD *i; // rbp\n  __int64 v7; // rbx\n  __int64 v8; // rax\n  char v10; // [rsp+30h] [rbp+8h] BYREF\n\n  cocos2d::CCDictionary::removeAllObjects(*(cocos2d::CCDictionary **)(a1 + 3568));\n  v2 = *(_QWORD *)(a1 + 3560);\n  if ( v2 )\n  {\n    v3 = *(unsigned int **)(v2 + 56);\n    v4 = *v3;\n    if ( (_DWORD)v4 )\n    {\n      v5 = *((_QWORD **)v3 + 2);\n      for ( i = &v5[v4 - 1]; v5 <= i; ++v5 )\n      {\n        v7 = *v5;\n        if ( !*v5 )\n          break;\n        v8 = (*(__int64 (__fastcall **)(_QWORD, char *))(*(_QWORD *)v7 + 1664LL))(*v5, &v10);\n        cocos2d::CCPoint::operator=(v7 + 1800, v8);\n      }\n    }\n  }\n  return LevelTools::sortChannelOrderObjects(*(_QWORD *)(a1 + 3560), *(_QWORD *)(a1 + 3568), 0);\n}", "assembly": "; \n; GJBaseGameLayer::orderSpawnObjects from 0x140350080 to 0x14035012c (172 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::onPlaytest @ 0x1403fed7c\n; > PlayLayer::createObjectsFromSetupFinished @ 0x14050c53e\n; > <???> @ 0x1408b87c4\n; > <???> @ 0x1408b87f8\n; > <???> @ 0x1409201ec\n; \n; This function is hookable on this platform (idp: pc, 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:30:46 +0000\n; \nmov     [rsp+arg_18], rsi                                              ; +0x0, 0x140350080\npush    rdi                                                            ; +0x5, 0x140350085\nsub     rsp, 20h                                                       ; +0x6, 0x140350086\nmov     rsi, rcx                                                       ; +0xa, 0x14035008a\nmov     rcx, [rcx+0DF0h]                                               ; +0xd, 0x14035008d\ncall    cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x14, 0x140350094\nmov     rdi, [rsi+0DE8h]                                               ; +0x1a, 0x14035009a\ntest    rdi, rdi                                                       ; +0x21, 0x1403500a1\njz      short loc_14035010C                                            ; +0x24, 0x1403500a4\nmov     rdi, [rdi+38h]                                                 ; +0x26, 0x1403500a6\nmov     eax, [rdi]                                                     ; +0x2a, 0x1403500aa\ntest    eax, eax                                                       ; +0x2c, 0x1403500ac\njz      short loc_14035010C                                            ; +0x2e, 0x1403500ae\nmov     rdi, [rdi+10h]                                                 ; +0x30, 0x1403500b0\nmov     [rsp+28h+arg_10], rbp                                          ; +0x34, 0x1403500b4\nlea     rbp, [rax-1]                                                   ; +0x39, 0x1403500b9\nlea     rbp, [rdi+rbp*8]                                               ; +0x3d, 0x1403500bd\ncmp     rdi, rbp                                                       ; +0x41, 0x1403500c1\nja      short loc_140350107                                            ; +0x44, 0x1403500c4\nmov     [rsp+28h+arg_8], rbx                                           ; +0x46, 0x1403500c6\nnop     dword ptr [rax+rax+00h]                                        ; +0x4b, 0x1403500cb\nmov     rbx, [rdi]                                                     ; +0x50, 0x1403500d0\ntest    rbx, rbx                                                       ; +0x53, 0x1403500d3\njz      short loc_140350102                                            ; +0x56, 0x1403500d6\nmov     rax, [rbx]                                                     ; +0x58, 0x1403500d8\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x5b, 0x1403500db\nmov     rcx, rbx                                                       ; +0x60, 0x1403500e0\ncall    qword ptr [rax+680h]                                           ; +0x63, 0x1403500e3\nmov     rdx, rax                                                       ; +0x69, 0x1403500e9\nlea     rcx, [rbx+708h]                                                ; +0x6c, 0x1403500ec\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x73, 0x1403500f3\nadd     rdi, 8                                                         ; +0x79, 0x1403500f9\ncmp     rdi, rbp                                                       ; +0x7d, 0x1403500fd\njbe     short loc_1403500D0                                            ; +0x80, 0x140350100\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x82, 0x140350102\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x87, 0x140350107\nmov     rdx, [rsi+0DF0h]                                               ; +0x8c, 0x14035010c\nxor     r8d, r8d                                                       ; +0x93, 0x140350113\nmov     rcx, [rsi+0DE8h]                                               ; +0x96, 0x140350116\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x9d, 0x14035011d\nadd     rsp, 20h                                                       ; +0xa2, 0x140350122\npop     rdi                                                            ; +0xa6, 0x140350126\njmp     LevelTools__sortChannelOrderObjects                            ; +0xa7, 0x140350127", "xrefs": ["LevelEditorLayer::onPlaytest @ 0x1403fed7c", "PlayLayer::createObjectsFromSetupFinished @ 0x14050c53e", "<???> @ 0x1408b87c4", "<???> @ 0x1408b87f8", "<???> @ 0x1409201ec"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}