{"type": "func", "start": 5371383120, "end": 5371383325, "name": "GJPFollowCommandLayer::updateTargetGroupID", "pseudocode": "// \n// GJPFollowCommandLayer::updateTargetGroupID from 0x14028cd50 to 0x14028ce1d (205 bytes)\n// \n// 3 xrefs:\n// > GJPFollowCommandLayer::onUpdateGroupID @ 0x14028c635\n// > GJPFollowCommandLayer::textChanged @ 0x14028c755\n// > <???> @ 0x1406d16f4\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 GJPFollowCommandLayer::updateTargetGroupID(GJPFollowCommandLayer *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; GJPFollowCommandLayer::updateTargetGroupID from 0x14028cd50 to 0x14028ce1d (205 bytes)\n; \n; 3 xrefs:\n; > GJPFollowCommandLayer::onUpdateGroupID @ 0x14028c635\n; > GJPFollowCommandLayer::textChanged @ 0x14028c755\n; > <???> @ 0x1406d16f4\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, 0x14028cd50\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14028cd55\npush    rsi                                                            ; +0xa, 0x14028cd5a\nsub     rsp, 20h                                                       ; +0xb, 0x14028cd5b\nmov     eax, [rcx+408h]                                                ; +0xf, 0x14028cd5f\nxor     ebp, ebp                                                       ; +0x15, 0x14028cd65\ntest    eax, eax                                                       ; +0x17, 0x14028cd67\nmov     esi, 270Fh                                                     ; +0x19, 0x14028cd69\nmov     edx, ebp                                                       ; +0x1e, 0x14028cd6e\nmov     rbx, rcx                                                       ; +0x20, 0x14028cd70\ncmovns  edx, eax                                                       ; +0x23, 0x14028cd73\nmov     rax, [rcx+290h]                                                ; +0x26, 0x14028cd76\ncmp     edx, esi                                                       ; +0x2d, 0x14028cd7d\ncmovg   edx, esi                                                       ; +0x2f, 0x14028cd7f\nmov     [rcx+408h], edx                                                ; +0x32, 0x14028cd82\ntest    rax, rax                                                       ; +0x38, 0x14028cd88\njz      short loc_14028CDAD                                            ; +0x3b, 0x14028cd8b\ntest    edx, edx                                                       ; +0x3d, 0x14028cd8d\ncmovs   edx, ebp                                                       ; +0x3f, 0x14028cd8f\ncmp     edx, esi                                                       ; +0x42, 0x14028cd92\ncmovg   edx, esi                                                       ; +0x44, 0x14028cd94\nmov     [rax+5C8h], edx                                                ; +0x47, 0x14028cd97\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x4d, 0x14028cd9d\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x52, 0x14028cda2\nadd     rsp, 20h                                                       ; +0x57, 0x14028cda7\npop     rsi                                                            ; +0x5b, 0x14028cdab\nretn                                                                   ; +0x5c, 0x14028cdac\nmov     rcx, [rcx+298h]                                                ; +0x5d, 0x14028cdad\nmov     [rsp+28h+arg_0], rdi                                           ; +0x64, 0x14028cdb4\nmov     edi, ebp                                                       ; +0x69, 0x14028cdb9\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6b, 0x14028cdbb\ntest    eax, eax                                                       ; +0x71, 0x14028cdc1\njz      short loc_14028CE08                                            ; +0x73, 0x14028cdc3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x75, 0x14028cdc5\nmov     rcx, [rbx+298h]                                                ; +0x80, 0x14028cdd0\nmov     edx, edi                                                       ; +0x87, 0x14028cdd7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x14028cdd9\nmov     ecx, [rbx+408h]                                                ; +0x8f, 0x14028cddf\ntest    ecx, ecx                                                       ; +0x95, 0x14028cde5\ncmovs   ecx, ebp                                                       ; +0x97, 0x14028cde7\ncmp     ecx, esi                                                       ; +0x9a, 0x14028cdea\ncmovg   ecx, esi                                                       ; +0x9c, 0x14028cdec\ninc     edi                                                            ; +0x9f, 0x14028cdef\nmov     [rax+5C8h], ecx                                                ; +0xa1, 0x14028cdf1\nmov     rcx, [rbx+298h]                                                ; +0xa7, 0x14028cdf7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xae, 0x14028cdfe\ncmp     edi, eax                                                       ; +0xb4, 0x14028ce04\njb      short loc_14028CDD0                                            ; +0xb6, 0x14028ce06\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xb8, 0x14028ce08\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbd, 0x14028ce0d\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xc2, 0x14028ce12\nadd     rsp, 20h                                                       ; +0xc7, 0x14028ce17\npop     rsi                                                            ; +0xcb, 0x14028ce1b\nretn                                                                   ; +0xcc, 0x14028ce1c", "xrefs": ["GJPFollowCommandLayer::onUpdateGroupID @ 0x14028c635", "GJPFollowCommandLayer::textChanged @ 0x14028c755", "<???> @ 0x1406d16f4"], "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"}