{"type": "func", "start": 5373082720, "end": 5373082925, "name": "SetupOpacityPopup::updateTargetID", "pseudocode": "// \n// SetupOpacityPopup::updateTargetID from 0x14042bc60 to 0x14042bd2d (205 bytes)\n// \n// 5 xrefs:\n// > SetupOpacityPopup::onTargetIDArrow @ 0x14042b59a\n// > SetupOpacityPopup::textChanged @ 0x14042b8bb\n// > <???> @ 0x1406a0fe0\n// > <???> @ 0x1406a0ff0\n// > <???> @ 0x1406d9a10\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 SetupOpacityPopup::updateTargetID(SetupOpacityPopup *a1)\n{\n  int m_groupID; // edx\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v5; // edi\n  struct cocos2d::CCObject *v6; // rax\n  int v7; // ecx\n\n  m_groupID = 0;\n  if ( a1->m_groupID >= 0 )\n    m_groupID = a1->m_groupID;\n  m_gameObject = a1->m_gameObject;\n  if ( m_groupID > 9999 )\n    m_groupID = 9999;\n  a1->m_groupID = m_groupID;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_targetGroupID = m_groupID;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v5 = 0;\n      if ( cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v5);\n          v7 = a1->m_groupID;\n          if ( v7 < 0 )\n            v7 = 0;\n          if ( v7 > 9999 )\n            v7 = 9999;\n          ++v5;\n          v6[26].m_uAutoReleaseCount = v7;\n        }\n        while ( v5 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; SetupOpacityPopup::updateTargetID from 0x14042bc60 to 0x14042bd2d (205 bytes)\n; \n; 5 xrefs:\n; > SetupOpacityPopup::onTargetIDArrow @ 0x14042b59a\n; > SetupOpacityPopup::textChanged @ 0x14042b8bb\n; > <???> @ 0x1406a0fe0\n; > <???> @ 0x1406a0ff0\n; > <???> @ 0x1406d9a10\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, 0x14042bc60\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14042bc65\npush    rsi                                                            ; +0xa, 0x14042bc6a\nsub     rsp, 20h                                                       ; +0xb, 0x14042bc6b\nmov     eax, [rcx+3D8h]                                                ; +0xf, 0x14042bc6f\nxor     ebp, ebp                                                       ; +0x15, 0x14042bc75\ntest    eax, eax                                                       ; +0x17, 0x14042bc77\nmov     esi, 270Fh                                                     ; +0x19, 0x14042bc79\nmov     edx, ebp                                                       ; +0x1e, 0x14042bc7e\nmov     rbx, rcx                                                       ; +0x20, 0x14042bc80\ncmovns  edx, eax                                                       ; +0x23, 0x14042bc83\nmov     rax, [rcx+290h]                                                ; +0x26, 0x14042bc86\ncmp     edx, esi                                                       ; +0x2d, 0x14042bc8d\ncmovg   edx, esi                                                       ; +0x2f, 0x14042bc8f\nmov     [rcx+3D8h], edx                                                ; +0x32, 0x14042bc92\ntest    rax, rax                                                       ; +0x38, 0x14042bc98\njz      short loc_14042BCBD                                            ; +0x3b, 0x14042bc9b\ntest    edx, edx                                                       ; +0x3d, 0x14042bc9d\ncmovs   edx, ebp                                                       ; +0x3f, 0x14042bc9f\ncmp     edx, esi                                                       ; +0x42, 0x14042bca2\ncmovg   edx, esi                                                       ; +0x44, 0x14042bca4\nmov     [rax+5C8h], edx                                                ; +0x47, 0x14042bca7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x4d, 0x14042bcad\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x52, 0x14042bcb2\nadd     rsp, 20h                                                       ; +0x57, 0x14042bcb7\npop     rsi                                                            ; +0x5b, 0x14042bcbb\nretn                                                                   ; +0x5c, 0x14042bcbc\nmov     rcx, [rcx+298h]                                                ; +0x5d, 0x14042bcbd\ntest    rcx, rcx                                                       ; +0x64, 0x14042bcc4\njz      short loc_14042BD1D                                            ; +0x67, 0x14042bcc7\nmov     [rsp+28h+arg_0], rdi                                           ; +0x69, 0x14042bcc9\nmov     edi, ebp                                                       ; +0x6e, 0x14042bcce\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x70, 0x14042bcd0\ntest    eax, eax                                                       ; +0x76, 0x14042bcd6\njz      short loc_14042BD18                                            ; +0x78, 0x14042bcd8\nnop     word ptr [rax+rax+00h]                                         ; +0x7a, 0x14042bcda\nmov     rcx, [rbx+298h]                                                ; +0x80, 0x14042bce0\nmov     edx, edi                                                       ; +0x87, 0x14042bce7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x14042bce9\nmov     ecx, [rbx+3D8h]                                                ; +0x8f, 0x14042bcef\ntest    ecx, ecx                                                       ; +0x95, 0x14042bcf5\ncmovs   ecx, ebp                                                       ; +0x97, 0x14042bcf7\ncmp     ecx, esi                                                       ; +0x9a, 0x14042bcfa\ncmovg   ecx, esi                                                       ; +0x9c, 0x14042bcfc\ninc     edi                                                            ; +0x9f, 0x14042bcff\nmov     [rax+5C8h], ecx                                                ; +0xa1, 0x14042bd01\nmov     rcx, [rbx+298h]                                                ; +0xa7, 0x14042bd07\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xae, 0x14042bd0e\ncmp     edi, eax                                                       ; +0xb4, 0x14042bd14\njb      short loc_14042BCE0                                            ; +0xb6, 0x14042bd16\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xb8, 0x14042bd18\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbd, 0x14042bd1d\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xc2, 0x14042bd22\nadd     rsp, 20h                                                       ; +0xc7, 0x14042bd27\npop     rsi                                                            ; +0xcb, 0x14042bd2b\nretn                                                                   ; +0xcc, 0x14042bd2c", "xrefs": ["SetupOpacityPopup::onTargetIDArrow @ 0x14042b59a", "SetupOpacityPopup::textChanged @ 0x14042b8bb", "<???> @ 0x1406a0fe0", "<???> @ 0x1406a0ff0", "<???> @ 0x1406d9a10"], "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"}