{"type": "func", "start": 5372887168, "end": 5372887316, "name": "SetGroupIDLayer::onNextGroupID1", "pseudocode": "// \n// SetGroupIDLayer::onNextGroupID1 from 0x1403fc080 to 0x1403fc114 (148 bytes)\n// \n// 2 xrefs:\n// > SetGroupIDLayer::init @ 0x1403f92ad\n// > <???> @ 0x1406d8498\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\n// Hidden C++ exception states: #wind=2\nvoid SetGroupIDLayer::onNextGroupID1(SetGroupIDLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // r8\n  __int64 v4; // rcx\n  std::unordered_set<int> v5; // [rsp+20h] [rbp-48h] BYREF\n  void *v6; // [rsp+70h] [rbp+8h] BYREF\n\n  LODWORD(v6) = 0;\n  sub_14005E660((__int64)&v5, &v6, v2);\n  v4 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = qword_1406C2ED8;\n  }\n  a1->m_groupIDValue = LevelEditorLayer::getNextFreeGroupID(*(LevelEditorLayer **)(v4 + 528), &v5);\n  sub_14005D100((__int64)&v5._Vec);\n  sub_14005D870((void **)&v5._List._Mypair._Myval2._Myhead);\n  SetGroupIDLayer::updateGroupIDLabel(a1);\n}", "assembly": "; \n; SetGroupIDLayer::onNextGroupID1 from 0x1403fc080 to 0x1403fc114 (148 bytes)\n; \n; 2 xrefs:\n; > SetGroupIDLayer::init @ 0x1403f92ad\n; > <???> @ 0x1406d8498\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\npush    rbx                                                            ; +0x0, 0x1403fc080\nsub     rsp, 60h                                                       ; +0x2, 0x1403fc082\nmov     rbx, rcx                                                       ; +0x6, 0x1403fc086\nmov     dword ptr [rsp+68h+arg_0], 0                                   ; +0x9, 0x1403fc089\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x11, 0x1403fc091\nlea     rcx, [rsp+68h+var_48]                                          ; +0x16, 0x1403fc096\ncall    sub_14005E660                                                  ; +0x1b, 0x1403fc09b\nnop                                                                    ; +0x20, 0x1403fc0a0\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x21, 0x1403fc0a1\ntest    rcx, rcx                                                       ; +0x28, 0x1403fc0a8\njnz     short loc_1403FC0DC                                            ; +0x2b, 0x1403fc0ab\nmov     ecx, 668h; Size                                                ; +0x2d, 0x1403fc0ad\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x32, 0x1403fc0b2\nmov     [rsp+68h+arg_0], rax                                           ; +0x37, 0x1403fc0b7\nmov     rcx, rax                                                       ; +0x3c, 0x1403fc0bc\ncall    sub_14017AB00                                                  ; +0x3f, 0x1403fc0bf\nnop                                                                    ; +0x44, 0x1403fc0c4\nmov     cs:qword_1406C2ED8, rax                                        ; +0x45, 0x1403fc0c5\nmov     rdx, [rax]                                                     ; +0x4c, 0x1403fc0cc\nmov     rcx, rax                                                       ; +0x4f, 0x1403fc0cf\ncall    qword ptr [rdx+48h]                                            ; +0x52, 0x1403fc0d2\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x55, 0x1403fc0d5\nlea     rdx, [rsp+68h+var_48]                                          ; +0x5c, 0x1403fc0dc\nmov     rcx, [rcx+210h]                                                ; +0x61, 0x1403fc0e1\ncall    LevelEditorLayer__getNextFreeGroupID                           ; +0x68, 0x1403fc0e8\nmov     [rbx+2E4h], eax                                                ; +0x6d, 0x1403fc0ed\nlea     rcx, [rsp+68h+var_30]                                          ; +0x73, 0x1403fc0f3\ncall    sub_14005D100                                                  ; +0x78, 0x1403fc0f8\nlea     rcx, [rsp+68h+var_40]                                          ; +0x7d, 0x1403fc0fd\ncall    sub_14005D870                                                  ; +0x82, 0x1403fc102\nmov     rcx, rbx                                                       ; +0x87, 0x1403fc107\nadd     rsp, 60h                                                       ; +0x8a, 0x1403fc10a\npop     rbx                                                            ; +0x8e, 0x1403fc10e\njmp     SetGroupIDLayer__updateGroupIDLabel                            ; +0x8f, 0x1403fc10f", "xrefs": ["SetGroupIDLayer::init @ 0x1403f92ad", "<???> @ 0x1406d8498"], "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"}