{"type": "func", "start": 5371275104, "end": 5371275309, "name": "GJFollowCommandLayer::updateTargetGroupID", "pseudocode": "// \n// GJFollowCommandLayer::updateTargetGroupID from 0x140272760 to 0x14027282d (205 bytes)\n// \n// 3 xrefs:\n// > GJFollowCommandLayer::onUpdateGroupID @ 0x1402720b5\n// > GJFollowCommandLayer::textChanged @ 0x1402723f0\n// > <???> @ 0x1406d0e6c\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::updateTargetGroupID(GJFollowCommandLayer *a1)\n{\n  int m_targetGroupID; // edx\n  EffectGameObject *m_gameObject; // rax\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v5; // rax\n  int v6; // ecx\n\n  m_targetGroupID = 0;\n  if ( a1->m_targetGroupID >= 0 )\n    m_targetGroupID = a1->m_targetGroupID;\n  m_gameObject = a1->m_gameObject;\n  if ( m_targetGroupID > 9999 )\n    m_targetGroupID = 9999;\n  a1->m_targetGroupID = m_targetGroupID;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_targetGroupID = m_targetGroupID;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); v5[26].m_uAutoReleaseCount = v6 )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);\n      v6 = a1->m_targetGroupID;\n      if ( v6 < 0 )\n        v6 = 0;\n      if ( v6 > 9999 )\n        v6 = 9999;\n      ++i;\n    }\n  }\n}", "assembly": "; \n; GJFollowCommandLayer::updateTargetGroupID from 0x140272760 to 0x14027282d (205 bytes)\n; \n; 3 xrefs:\n; > GJFollowCommandLayer::onUpdateGroupID @ 0x1402720b5\n; > GJFollowCommandLayer::textChanged @ 0x1402723f0\n; > <???> @ 0x1406d0e6c\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, 0x140272760\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140272765\npush    rsi                                                            ; +0xa, 0x14027276a\nsub     rsp, 20h                                                       ; +0xb, 0x14027276b\nmov     eax, [rcx+3F0h]                                                ; +0xf, 0x14027276f\nxor     ebp, ebp                                                       ; +0x15, 0x140272775\ntest    eax, eax                                                       ; +0x17, 0x140272777\nmov     esi, 270Fh                                                     ; +0x19, 0x140272779\nmov     edx, ebp                                                       ; +0x1e, 0x14027277e\nmov     rbx, rcx                                                       ; +0x20, 0x140272780\ncmovns  edx, eax                                                       ; +0x23, 0x140272783\nmov     rax, [rcx+290h]                                                ; +0x26, 0x140272786\ncmp     edx, esi                                                       ; +0x2d, 0x14027278d\ncmovg   edx, esi                                                       ; +0x2f, 0x14027278f\nmov     [rcx+3F0h], edx                                                ; +0x32, 0x140272792\ntest    rax, rax                                                       ; +0x38, 0x140272798\njz      short loc_1402727BD                                            ; +0x3b, 0x14027279b\ntest    edx, edx                                                       ; +0x3d, 0x14027279d\ncmovs   edx, ebp                                                       ; +0x3f, 0x14027279f\ncmp     edx, esi                                                       ; +0x42, 0x1402727a2\ncmovg   edx, esi                                                       ; +0x44, 0x1402727a4\nmov     [rax+5C8h], edx                                                ; +0x47, 0x1402727a7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x4d, 0x1402727ad\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x52, 0x1402727b2\nadd     rsp, 20h                                                       ; +0x57, 0x1402727b7\npop     rsi                                                            ; +0x5b, 0x1402727bb\nretn                                                                   ; +0x5c, 0x1402727bc\nmov     rcx, [rcx+298h]                                                ; +0x5d, 0x1402727bd\nmov     [rsp+28h+arg_0], rdi                                           ; +0x64, 0x1402727c4\nmov     edi, ebp                                                       ; +0x69, 0x1402727c9\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6b, 0x1402727cb\ntest    eax, eax                                                       ; +0x71, 0x1402727d1\njz      short loc_140272818                                            ; +0x73, 0x1402727d3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x75, 0x1402727d5\nmov     rcx, [rbx+298h]                                                ; +0x80, 0x1402727e0\nmov     edx, edi                                                       ; +0x87, 0x1402727e7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x1402727e9\nmov     ecx, [rbx+3F0h]                                                ; +0x8f, 0x1402727ef\ntest    ecx, ecx                                                       ; +0x95, 0x1402727f5\ncmovs   ecx, ebp                                                       ; +0x97, 0x1402727f7\ncmp     ecx, esi                                                       ; +0x9a, 0x1402727fa\ncmovg   ecx, esi                                                       ; +0x9c, 0x1402727fc\ninc     edi                                                            ; +0x9f, 0x1402727ff\nmov     [rax+5C8h], ecx                                                ; +0xa1, 0x140272801\nmov     rcx, [rbx+298h]                                                ; +0xa7, 0x140272807\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xae, 0x14027280e\ncmp     edi, eax                                                       ; +0xb4, 0x140272814\njb      short loc_1402727E0                                            ; +0xb6, 0x140272816\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xb8, 0x140272818\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbd, 0x14027281d\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xc2, 0x140272822\nadd     rsp, 20h                                                       ; +0xc7, 0x140272827\npop     rsi                                                            ; +0xcb, 0x14027282b\nretn                                                                   ; +0xcc, 0x14027282c", "xrefs": ["GJFollowCommandLayer::onUpdateGroupID @ 0x1402720b5", "GJFollowCommandLayer::textChanged @ 0x1402723f0", "<???> @ 0x1406d0e6c"], "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"}