{"type": "func", "start": 5371275312, "end": 5371275517, "name": "GJFollowCommandLayer::updateTargetGroupID2", "pseudocode": "// \n// GJFollowCommandLayer::updateTargetGroupID2 from 0x140272830 to 0x1402728fd (205 bytes)\n// \n// 3 xrefs:\n// > GJFollowCommandLayer::onUpdateGroupID2 @ 0x14027210f\n// > GJFollowCommandLayer::textChanged @ 0x14027223e\n// > <???> @ 0x1406d0e78\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 GJFollowCommandLayer::updateTargetGroupID2(GJFollowCommandLayer *a1)\n{\n  int m_followGroupID; // edx\n  EffectGameObject *m_gameObject; // rax\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v5; // rax\n  int v6; // ecx\n\n  m_followGroupID = 0;\n  if ( a1->m_followGroupID >= 0 )\n    m_followGroupID = a1->m_followGroupID;\n  m_gameObject = a1->m_gameObject;\n  if ( m_followGroupID > 9999 )\n    m_followGroupID = 9999;\n  a1->m_followGroupID = m_followGroupID;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_centerGroupID = m_followGroupID;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); v5[26].m_eObjType = v6 )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);\n      v6 = a1->m_followGroupID;\n      if ( v6 < 0 )\n        v6 = 0;\n      if ( v6 > 9999 )\n        v6 = 9999;\n      ++i;\n    }\n  }\n}", "assembly": "; \n; GJFollowCommandLayer::updateTargetGroupID2 from 0x140272830 to 0x1402728fd (205 bytes)\n; \n; 3 xrefs:\n; > GJFollowCommandLayer::onUpdateGroupID2 @ 0x14027210f\n; > GJFollowCommandLayer::textChanged @ 0x14027223e\n; > <???> @ 0x1406d0e78\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, 0x140272830\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140272835\npush    rsi                                                            ; +0xa, 0x14027283a\nsub     rsp, 20h                                                       ; +0xb, 0x14027283b\nmov     eax, [rcx+400h]                                                ; +0xf, 0x14027283f\nxor     ebp, ebp                                                       ; +0x15, 0x140272845\ntest    eax, eax                                                       ; +0x17, 0x140272847\nmov     esi, 270Fh                                                     ; +0x19, 0x140272849\nmov     edx, ebp                                                       ; +0x1e, 0x14027284e\nmov     rbx, rcx                                                       ; +0x20, 0x140272850\ncmovns  edx, eax                                                       ; +0x23, 0x140272853\nmov     rax, [rcx+290h]                                                ; +0x26, 0x140272856\ncmp     edx, esi                                                       ; +0x2d, 0x14027285d\ncmovg   edx, esi                                                       ; +0x2f, 0x14027285f\nmov     [rcx+400h], edx                                                ; +0x32, 0x140272862\ntest    rax, rax                                                       ; +0x38, 0x140272868\njz      short loc_14027288D                                            ; +0x3b, 0x14027286b\ntest    edx, edx                                                       ; +0x3d, 0x14027286d\ncmovs   edx, ebp                                                       ; +0x3f, 0x14027286f\ncmp     edx, esi                                                       ; +0x42, 0x140272872\ncmovg   edx, esi                                                       ; +0x44, 0x140272874\nmov     [rax+5CCh], edx                                                ; +0x47, 0x140272877\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x4d, 0x14027287d\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x52, 0x140272882\nadd     rsp, 20h                                                       ; +0x57, 0x140272887\npop     rsi                                                            ; +0x5b, 0x14027288b\nretn                                                                   ; +0x5c, 0x14027288c\nmov     rcx, [rcx+298h]                                                ; +0x5d, 0x14027288d\nmov     [rsp+28h+arg_0], rdi                                           ; +0x64, 0x140272894\nmov     edi, ebp                                                       ; +0x69, 0x140272899\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6b, 0x14027289b\ntest    eax, eax                                                       ; +0x71, 0x1402728a1\njz      short loc_1402728E8                                            ; +0x73, 0x1402728a3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x75, 0x1402728a5\nmov     rcx, [rbx+298h]                                                ; +0x80, 0x1402728b0\nmov     edx, edi                                                       ; +0x87, 0x1402728b7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x1402728b9\nmov     ecx, [rbx+400h]                                                ; +0x8f, 0x1402728bf\ntest    ecx, ecx                                                       ; +0x95, 0x1402728c5\ncmovs   ecx, ebp                                                       ; +0x97, 0x1402728c7\ncmp     ecx, esi                                                       ; +0x9a, 0x1402728ca\ncmovg   ecx, esi                                                       ; +0x9c, 0x1402728cc\ninc     edi                                                            ; +0x9f, 0x1402728cf\nmov     [rax+5CCh], ecx                                                ; +0xa1, 0x1402728d1\nmov     rcx, [rbx+298h]                                                ; +0xa7, 0x1402728d7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xae, 0x1402728de\ncmp     edi, eax                                                       ; +0xb4, 0x1402728e4\njb      short loc_1402728B0                                            ; +0xb6, 0x1402728e6\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xb8, 0x1402728e8\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbd, 0x1402728ed\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xc2, 0x1402728f2\nadd     rsp, 20h                                                       ; +0xc7, 0x1402728f7\npop     rsi                                                            ; +0xcb, 0x1402728fb\nretn                                                                   ; +0xcc, 0x1402728fc", "xrefs": ["GJFollowCommandLayer::onUpdateGroupID2 @ 0x14027210f", "GJFollowCommandLayer::textChanged @ 0x14027223e", "<???> @ 0x1406d0e78"], "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"}