{"type": "func", "start": 4298648464, "end": 4298648704, "name": "GameManager::removeIconDelegate", "pseudocode": "// \n// GameManager::removeIconDelegate from 0x100382b90 to 0x100382c80 (240 bytes)\n// \n// 3 xrefs:\n// > SimplePlayer::dSimplePlayer @ 0x10036fef9\n// > sub_10036FF20 @ 0x10036ff79\n// > sub_10036FFA0 @ 0x10036fff9\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 GameManager::removeIconDelegate(GameManager *a1, int a2)\n{\n  std::__tree<std::__value_type<int, std::vector<cocos2d::CCObject *>>, std::__map_value_compare<int, std::__value_type<int, std::vector<cocos2d::CCObject *>>, std::less<int>, true>, std::allocator<std::__value_type<int, std::vector<cocos2d::CCObject *>>>>::__iter_pointer begin_node; // r13\n  std::__tree_end_node<std::__tree_node_base<void *> *>::pointer left; // rax\n  std::__tree_end_node<std::__tree_node_base<void *> *>::pointer v4; // rcx\n  __int64 v5; // rdx\n  std::__tree_end_node<std::__tree_node_base<void *> *>::pointer v6; // r15\n  int v7; // r14d\n  char *v8; // r12\n  size_t v9; // r15\n  std::__tree_node_base<void *> *v10; // r12\n  GameManager *v11; // rcx\n  GameManager *v12; // rax\n  bool v13; // zf\n\n  begin_node = a1->m_iconDelegates.__tree_.__begin_node_;\n  if ( begin_node != (std::__tree<std::__value_type<int, std::vector<cocos2d::CCObject *>>, std::__map_value_compare<int, std::__value_type<int, std::vector<cocos2d::CCObject *>>, std::less<int>, true>, std::allocator<std::__value_type<int, std::vector<cocos2d::CCObject *>>>>::__iter_pointer)&a1->m_iconDelegates.__tree_.__pair1_ )\n  {\n    do\n    {\n      left = begin_node[5].__left_;\n      v4 = begin_node[6].__left_;\n      if ( v4 != left )\n      {\n        v5 = 0;\n        v6 = begin_node[6].__left_;\n        v7 = 0;\n        do\n        {\n          if ( *(_DWORD *)(*((_QWORD *)left + v5) + 664LL) == a2 )\n          {\n            v8 = (char *)left + 8 * v5;\n            v9 = v6 - (std::__tree_end_node<std::__tree_node_base<void *> *>::pointer)(v8 + 8);\n            if ( v4 != (std::__tree_end_node<std::__tree_node_base<void *> *>::pointer)(v8 + 8) )\n            {\n              memmove((char *)left + 8 * v5, v8 + 8, v9);\n              left = begin_node[5].__left_;\n            }\n            v10 = (std::__tree_node_base<void *> *)&v8[v9];\n            begin_node[6].__left_ = v10;\n            v4 = v10;\n          }\n          else\n          {\n            ++v7;\n          }\n          v5 = v7;\n          v6 = v4;\n        }\n        while ( (v4 - left) >> 3 > (unsigned __int64)v7 );\n      }\n      v11 = (GameManager *)begin_node[1].__left_;\n      if ( v11 )\n      {\n        do\n        {\n          v12 = v11;\n          v11 = (GameManager *)v11->__vftable;\n        }\n        while ( v11 );\n      }\n      else\n      {\n        do\n        {\n          v12 = (GameManager *)begin_node[2].__left_;\n          v13 = v12->__vftable == (GameManager_vtbl *)begin_node;\n          begin_node = (std::__tree<std::__value_type<int, std::vector<cocos2d::CCObject *>>, std::__map_value_compare<int, std::__value_type<int, std::vector<cocos2d::CCObject *>>, std::less<int>, true>, std::allocator<std::__value_type<int, std::vector<cocos2d::CCObject *>>>>::__iter_pointer)v12;\n        }\n        while ( !v13 );\n      }\n      begin_node = (std::__tree<std::__value_type<int, std::vector<cocos2d::CCObject *>>, std::__map_value_compare<int, std::__value_type<int, std::vector<cocos2d::CCObject *>>, std::less<int>, true>, std::allocator<std::__value_type<int, std::vector<cocos2d::CCObject *>>>>::__iter_pointer)v12;\n    }\n    while ( v12 != (GameManager *)&a1->m_iconDelegates.__tree_.__pair1_ );\n  }\n}", "assembly": "; \n; GameManager::removeIconDelegate from 0x100382b90 to 0x100382c80 (240 bytes)\n; \n; 3 xrefs:\n; > SimplePlayer::dSimplePlayer @ 0x10036fef9\n; > sub_10036FF20 @ 0x10036ff79\n; > sub_10036FFA0 @ 0x10036fff9\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    rbp                                                            ; +0x0, 0x100382b90\nmov     rbp, rsp                                                       ; +0x1, 0x100382b91\npush    r15                                                            ; +0x4, 0x100382b94\npush    r14                                                            ; +0x6, 0x100382b96\npush    r13                                                            ; +0x8, 0x100382b98\npush    r12                                                            ; +0xa, 0x100382b9a\npush    rbx                                                            ; +0xc, 0x100382b9c\npush    rax                                                            ; +0xd, 0x100382b9d\nmov     r13, [rdi+480h]                                                ; +0xe, 0x100382b9e\nadd     rdi, 488h                                                      ; +0x15, 0x100382ba5\nmov     [rbp+var_30], rdi                                              ; +0x1c, 0x100382bac\ncmp     r13, rdi                                                       ; +0x20, 0x100382bb0\njz      loc_100382C71                                                  ; +0x23, 0x100382bb3\nmov     ebx, esi                                                       ; +0x29, 0x100382bb9\njmp     short loc_100382BCD                                            ; +0x2b, 0x100382bbb\nalign 20h                                                              ; +0x2d, 0x100382bbd\nmov     r13, rax                                                       ; +0x30, 0x100382bc0\ncmp     rax, [rbp+var_30]                                              ; +0x33, 0x100382bc3\njz      loc_100382C71                                                  ; +0x37, 0x100382bc7\nmov     rax, [r13+28h]                                                 ; +0x3d, 0x100382bcd\nmov     rcx, [r13+30h]                                                 ; +0x41, 0x100382bd1\ncmp     rcx, rax                                                       ; +0x45, 0x100382bd5\njz      short loc_100382C40                                            ; +0x48, 0x100382bd8\nxor     edx, edx                                                       ; +0x4a, 0x100382bda\nmov     r15, rcx                                                       ; +0x4c, 0x100382bdc\nxor     r14d, r14d                                                     ; +0x4f, 0x100382bdf\njmp     short loc_100382C08                                            ; +0x52, 0x100382be2\nalign 10h                                                              ; +0x54, 0x100382be4\ninc     r14d                                                           ; +0x60, 0x100382bf0\nmovsxd  rdx, r14d                                                      ; +0x63, 0x100382bf3\nmov     rsi, rcx                                                       ; +0x66, 0x100382bf6\nsub     rsi, rax                                                       ; +0x69, 0x100382bf9\nsar     rsi, 3                                                         ; +0x6c, 0x100382bfc\nmov     r15, rcx                                                       ; +0x70, 0x100382c00\ncmp     rsi, rdx                                                       ; +0x73, 0x100382c03\njbe     short loc_100382C40                                            ; +0x76, 0x100382c06\nmov     rsi, [rax+rdx*8]                                               ; +0x78, 0x100382c08\ncmp     [rsi+298h], ebx                                                ; +0x7c, 0x100382c0c\njnz     short loc_100382BF0                                            ; +0x82, 0x100382c12\nlea     r12, [rax+rdx*8]                                               ; +0x84, 0x100382c14\nlea     rsi, [r12+8]; __src                                            ; +0x88, 0x100382c18\nsub     r15, rsi                                                       ; +0x8d, 0x100382c1d\ncmp     rcx, rsi                                                       ; +0x90, 0x100382c20\njz      short loc_100382C34                                            ; +0x93, 0x100382c23\nmov     rdi, r12; __dst                                                ; +0x95, 0x100382c25\nmov     rdx, r15; __len                                                ; +0x98, 0x100382c28\ncall    _memmove                                                       ; +0x9b, 0x100382c2b\nmov     rax, [r13+28h]                                                 ; +0xa0, 0x100382c30\nadd     r12, r15                                                       ; +0xa4, 0x100382c34\nmov     [r13+30h], r12                                                 ; +0xa7, 0x100382c37\nmov     rcx, r12                                                       ; +0xab, 0x100382c3b\njmp     short loc_100382BF3                                            ; +0xae, 0x100382c3e\nmov     rcx, [r13+8]                                                   ; +0xb0, 0x100382c40\ntest    rcx, rcx                                                       ; +0xb4, 0x100382c44\njz      short loc_100382C60                                            ; +0xb7, 0x100382c47\nnop     dword ptr [rax+00000000h]                                      ; +0xb9, 0x100382c49\nmov     rax, rcx                                                       ; +0xc0, 0x100382c50\nmov     rcx, [rcx]                                                     ; +0xc3, 0x100382c53\ntest    rcx, rcx                                                       ; +0xc6, 0x100382c56\njnz     short loc_100382C50                                            ; +0xc9, 0x100382c59\njmp     loc_100382BC0                                                  ; +0xcb, 0x100382c5b\nmov     rax, [r13+10h]                                                 ; +0xd0, 0x100382c60\ncmp     [rax], r13                                                     ; +0xd4, 0x100382c64\nmov     r13, rax                                                       ; +0xd7, 0x100382c67\njnz     short loc_100382C60                                            ; +0xda, 0x100382c6a\njmp     loc_100382BC0                                                  ; +0xdc, 0x100382c6c\nadd     rsp, 8                                                         ; +0xe1, 0x100382c71\npop     rbx                                                            ; +0xe5, 0x100382c75\npop     r12                                                            ; +0xe6, 0x100382c76\npop     r13                                                            ; +0xe8, 0x100382c78\npop     r14                                                            ; +0xea, 0x100382c7a\npop     r15                                                            ; +0xec, 0x100382c7c\npop     rbp                                                            ; +0xee, 0x100382c7e\nretn                                                                   ; +0xef, 0x100382c7f", "xrefs": ["SimplePlayer::dSimplePlayer @ 0x10036fef9", "sub_10036FF20 @ 0x10036ff79", "sub_10036FFA0 @ 0x10036fff9"], "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"}