{"type": "func", "start": 5372889056, "end": 5372889534, "name": "SetGroupIDLayer::callRemoveFromGroup", "pseudocode": "// \n// SetGroupIDLayer::callRemoveFromGroup from 0x1403fc7e0 to 0x1403fc9be (478 bytes)\n// \n// 3 xrefs:\n// > SetGroupIDLayer::callRemoveFromGroup @ 0x1403fc7f5\n// > SetGroupIDLayer::onRemoveFromGroup @ 0x1403fca64\n// > <???> @ 0x1406d84b0\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=3\nvoid SetGroupIDLayer::callRemoveFromGroup(SetGroupIDLayer *a1, float a2)\n{\n  __int64 v3; // rcx\n  unsigned int m_groupToRemove; // ebp\n  GameObject *m_targetObject; // rcx\n  __int64 v6; // rcx\n  unsigned int i; // esi\n  struct cocos2d::CCObject *v8; // rdi\n  __int64 v9; // rcx\n  void *v10; // [rsp+40h] [rbp+8h]\n  void *v11; // [rsp+40h] [rbp+8h]\n  void *v12; // [rsp+40h] [rbp+8h]\n\n  cocos2d::CCNode::unschedule(a1, SetGroupIDLayer::callRemoveFromGroup);\n  a1->m_removeGroupsLock = 0;\n  if ( cocos2d::CCDictionary::objectForKey(a1->m_parentGroups, a1->m_groupToRemove) )\n  {\n    v3 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v10 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v3 = qword_1406C2ED8;\n    }\n    GJBaseGameLayer::removeGroupParent(*(GJBaseGameLayer **)(v3 + 528), a1->m_groupToRemove);\n  }\n  else\n  {\n    m_groupToRemove = a1->m_groupToRemove;\n    a1->m_addedGroup = 1;\n    m_targetObject = a1->m_targetObject;\n    if ( m_targetObject )\n    {\n      m_targetObject->removeFromGroup(m_targetObject, m_groupToRemove);\n      v6 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v11 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v11);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v6 = qword_1406C2ED8;\n      }\n      (*(void (__fastcall **)(_QWORD, GameObject *, _QWORD))(**(_QWORD **)(v6 + 528) + 1160LL))(\n        *(_QWORD *)(v6 + 528),\n        a1->m_targetObject,\n        m_groupToRemove);\n    }\n    else\n    {\n      for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); ++i )\n      {\n        v8 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i);\n        v8->__vftable[20].copyWithZone(v8, (cocos2d::CCZone *)m_groupToRemove);\n        v9 = qword_1406C2ED8;\n        if ( !qword_1406C2ED8 )\n        {\n          v12 = operator new(0x668u);\n          qword_1406C2ED8 = sub_14017AB00((__int64)v12);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n          v9 = qword_1406C2ED8;\n        }\n        (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, _QWORD))(**(_QWORD **)(v9 + 528) + 1160LL))(\n          *(_QWORD *)(v9 + 528),\n          v8,\n          m_groupToRemove);\n      }\n    }\n  }\n  SetGroupIDLayer::updateGroupIDButtons(a1);\n  a1->m_groupToRemove = 0;\n}", "assembly": "; \n; SetGroupIDLayer::callRemoveFromGroup from 0x1403fc7e0 to 0x1403fc9be (478 bytes)\n; \n; 3 xrefs:\n; > SetGroupIDLayer::callRemoveFromGroup @ 0x1403fc7f5\n; > SetGroupIDLayer::onRemoveFromGroup @ 0x1403fca64\n; > <???> @ 0x1406d84b0\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403fc7e0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1403fc7e5\npush    rsi                                                            ; +0xa, 0x1403fc7ea\npush    rdi                                                            ; +0xb, 0x1403fc7eb\npush    r14                                                            ; +0xc, 0x1403fc7ec\nsub     rsp, 20h                                                       ; +0xe, 0x1403fc7ee\nmov     rbx, rcx                                                       ; +0x12, 0x1403fc7f2\nlea     rdx, SetGroupIDLayer__callRemoveFromGroup                      ; +0x15, 0x1403fc7f5\ncall    cs:?unschedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x1c, 0x1403fc7fc\nmov     byte ptr [rbx+2FEh], 0                                         ; +0x22, 0x1403fc802\nmovsxd  rdx, dword ptr [rbx+300h]                                      ; +0x29, 0x1403fc809\nmov     rcx, [rbx+310h]                                                ; +0x30, 0x1403fc810\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x37, 0x1403fc817\ntest    rax, rax                                                       ; +0x3d, 0x1403fc81d\njz      short loc_1403FC874                                            ; +0x40, 0x1403fc820\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x42, 0x1403fc822\ntest    rcx, rcx                                                       ; +0x49, 0x1403fc829\njnz     short loc_1403FC85D                                            ; +0x4c, 0x1403fc82c\nmov     ecx, 668h; Size                                                ; +0x4e, 0x1403fc82e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x53, 0x1403fc833\nmov     [rsp+38h+arg_0], rax                                           ; +0x58, 0x1403fc838\nmov     rcx, rax                                                       ; +0x5d, 0x1403fc83d\ncall    sub_14017AB00                                                  ; +0x60, 0x1403fc840\nnop                                                                    ; +0x65, 0x1403fc845\nmov     cs:qword_1406C2ED8, rax                                        ; +0x66, 0x1403fc846\nmov     rdx, [rax]                                                     ; +0x6d, 0x1403fc84d\nmov     rcx, rax                                                       ; +0x70, 0x1403fc850\ncall    qword ptr [rdx+48h]                                            ; +0x73, 0x1403fc853\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x76, 0x1403fc856\nmov     edx, [rbx+300h]                                                ; +0x7d, 0x1403fc85d\nmov     rcx, [rcx+210h]                                                ; +0x83, 0x1403fc863\ncall    GJBaseGameLayer__removeGroupParent                             ; +0x8a, 0x1403fc86a\njmp     loc_1403FC999                                                  ; +0x8f, 0x1403fc86f\nmov     ebp, [rbx+300h]                                                ; +0x94, 0x1403fc874\nmov     byte ptr [rbx+304h], 1                                         ; +0x9a, 0x1403fc87a\nmov     rcx, [rbx+288h]                                                ; +0xa1, 0x1403fc881\ntest    rcx, rcx                                                       ; +0xa8, 0x1403fc888\njz      short loc_1403FC8F2                                            ; +0xab, 0x1403fc88b\nmov     rax, [rcx]                                                     ; +0xad, 0x1403fc88d\nmov     edx, ebp                                                       ; +0xb0, 0x1403fc890\ncall    qword ptr [rax+5A0h]                                           ; +0xb2, 0x1403fc892\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xb8, 0x1403fc898\ntest    rcx, rcx                                                       ; +0xbf, 0x1403fc89f\njnz     short loc_1403FC8D3                                            ; +0xc2, 0x1403fc8a2\nmov     ecx, 668h; Size                                                ; +0xc4, 0x1403fc8a4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xc9, 0x1403fc8a9\nmov     [rsp+38h+arg_0], rax                                           ; +0xce, 0x1403fc8ae\nmov     rcx, rax                                                       ; +0xd3, 0x1403fc8b3\ncall    sub_14017AB00                                                  ; +0xd6, 0x1403fc8b6\nnop                                                                    ; +0xdb, 0x1403fc8bb\nmov     cs:qword_1406C2ED8, rax                                        ; +0xdc, 0x1403fc8bc\nmov     rdx, [rax]                                                     ; +0xe3, 0x1403fc8c3\nmov     rcx, rax                                                       ; +0xe6, 0x1403fc8c6\ncall    qword ptr [rdx+48h]                                            ; +0xe9, 0x1403fc8c9\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xec, 0x1403fc8cc\nmov     rcx, [rcx+210h]                                                ; +0xf3, 0x1403fc8d3\nmov     rax, [rcx]                                                     ; +0xfa, 0x1403fc8da\nmov     r8d, ebp                                                       ; +0xfd, 0x1403fc8dd\nmov     rdx, [rbx+288h]                                                ; +0x100, 0x1403fc8e0\ncall    qword ptr [rax+488h]                                           ; +0x107, 0x1403fc8e7\njmp     loc_1403FC999                                                  ; +0x10d, 0x1403fc8ed\nxor     esi, esi                                                       ; +0x112, 0x1403fc8f2\nmov     rcx, [rbx+290h]                                                ; +0x114, 0x1403fc8f4\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x11b, 0x1403fc8fb\ntest    eax, eax                                                       ; +0x121, 0x1403fc901\njz      loc_1403FC999                                                  ; +0x123, 0x1403fc903\nnop     dword ptr [rax+00000000h]                                      ; +0x129, 0x1403fc909\nmov     edx, esi                                                       ; +0x130, 0x1403fc910\nmov     rcx, [rbx+290h]                                                ; +0x132, 0x1403fc912\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x139, 0x1403fc919\nmov     rdi, rax                                                       ; +0x13f, 0x1403fc91f\nmov     r8, [rax]                                                      ; +0x142, 0x1403fc922\nmov     edx, ebp                                                       ; +0x145, 0x1403fc925\nmov     rcx, rax                                                       ; +0x147, 0x1403fc927\ncall    qword ptr [r8+5A0h]                                            ; +0x14a, 0x1403fc92a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x151, 0x1403fc931\ntest    rcx, rcx                                                       ; +0x158, 0x1403fc938\njnz     short loc_1403FC96C                                            ; +0x15b, 0x1403fc93b\nmov     ecx, 668h; Size                                                ; +0x15d, 0x1403fc93d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x162, 0x1403fc942\nmov     [rsp+38h+arg_0], rax                                           ; +0x167, 0x1403fc947\nmov     rcx, rax                                                       ; +0x16c, 0x1403fc94c\ncall    sub_14017AB00                                                  ; +0x16f, 0x1403fc94f\nnop                                                                    ; +0x174, 0x1403fc954\nmov     cs:qword_1406C2ED8, rax                                        ; +0x175, 0x1403fc955\nmov     rdx, [rax]                                                     ; +0x17c, 0x1403fc95c\nmov     rcx, rax                                                       ; +0x17f, 0x1403fc95f\ncall    qword ptr [rdx+48h]                                            ; +0x182, 0x1403fc962\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x185, 0x1403fc965\nmov     rcx, [rcx+210h]                                                ; +0x18c, 0x1403fc96c\nmov     rax, [rcx]                                                     ; +0x193, 0x1403fc973\nmov     r8d, ebp                                                       ; +0x196, 0x1403fc976\nmov     rdx, rdi                                                       ; +0x199, 0x1403fc979\ncall    qword ptr [rax+488h]                                           ; +0x19c, 0x1403fc97c\ninc     esi                                                            ; +0x1a2, 0x1403fc982\nmov     rcx, [rbx+290h]                                                ; +0x1a4, 0x1403fc984\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1ab, 0x1403fc98b\ncmp     esi, eax                                                       ; +0x1b1, 0x1403fc991\njb      loc_1403FC910                                                  ; +0x1b3, 0x1403fc993\nmov     rcx, rbx                                                       ; +0x1b9, 0x1403fc999\ncall    SetGroupIDLayer__updateGroupIDButtons                          ; +0x1bc, 0x1403fc99c\nmov     dword ptr [rbx+300h], 0                                        ; +0x1c1, 0x1403fc9a1\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x1cb, 0x1403fc9ab\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x1d0, 0x1403fc9b0\nadd     rsp, 20h                                                       ; +0x1d5, 0x1403fc9b5\npop     r14                                                            ; +0x1d9, 0x1403fc9b9\npop     rdi                                                            ; +0x1db, 0x1403fc9bb\npop     rsi                                                            ; +0x1dc, 0x1403fc9bc\nretn                                                                   ; +0x1dd, 0x1403fc9bd", "xrefs": ["SetGroupIDLayer::callRemoveFromGroup @ 0x1403fc7f5", "SetGroupIDLayer::onRemoveFromGroup @ 0x1403fca64", "<???> @ 0x1406d84b0"], "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"}