{"type": "func", "start": 5373170368, "end": 5373170573, "name": "SetupRandTriggerPopup::updateTargetID2", "pseudocode": "// \n// SetupRandTriggerPopup::updateTargetID2 from 0x1404412c0 to 0x14044138d (205 bytes)\n// \n// 5 xrefs:\n// > SetupRandTriggerPopup::onTargetID2Arrow @ 0x140440b8a\n// > SetupRandTriggerPopup::textChanged @ 0x140440d65\n// > <???> @ 0x1406a20b4\n// > <???> @ 0x1406a20c4\n// > <???> @ 0x1406da3d0\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 SetupRandTriggerPopup::updateTargetID2(SetupRandTriggerPopup *a1)\n{\n  int m_groupID2; // 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_groupID2 = 0;\n  if ( a1->m_groupID2 >= 0 )\n    m_groupID2 = a1->m_groupID2;\n  m_gameObject = a1->m_gameObject;\n  if ( m_groupID2 > 9999 )\n    m_groupID2 = 9999;\n  a1->m_groupID2 = m_groupID2;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_centerGroupID = m_groupID2;\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_groupID2;\n          if ( v7 < 0 )\n            v7 = 0;\n          if ( v7 > 9999 )\n            v7 = 9999;\n          ++v5;\n          v6[26].m_eObjType = v7;\n        }\n        while ( v5 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; SetupRandTriggerPopup::updateTargetID2 from 0x1404412c0 to 0x14044138d (205 bytes)\n; \n; 5 xrefs:\n; > SetupRandTriggerPopup::onTargetID2Arrow @ 0x140440b8a\n; > SetupRandTriggerPopup::textChanged @ 0x140440d65\n; > <???> @ 0x1406a20b4\n; > <???> @ 0x1406a20c4\n; > <???> @ 0x1406da3d0\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, 0x1404412c0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1404412c5\npush    rsi                                                            ; +0xa, 0x1404412ca\nsub     rsp, 20h                                                       ; +0xb, 0x1404412cb\nmov     eax, [rcx+3D4h]                                                ; +0xf, 0x1404412cf\nxor     ebp, ebp                                                       ; +0x15, 0x1404412d5\ntest    eax, eax                                                       ; +0x17, 0x1404412d7\nmov     esi, 270Fh                                                     ; +0x19, 0x1404412d9\nmov     edx, ebp                                                       ; +0x1e, 0x1404412de\nmov     rbx, rcx                                                       ; +0x20, 0x1404412e0\ncmovns  edx, eax                                                       ; +0x23, 0x1404412e3\nmov     rax, [rcx+290h]                                                ; +0x26, 0x1404412e6\ncmp     edx, esi                                                       ; +0x2d, 0x1404412ed\ncmovg   edx, esi                                                       ; +0x2f, 0x1404412ef\nmov     [rcx+3D4h], edx                                                ; +0x32, 0x1404412f2\ntest    rax, rax                                                       ; +0x38, 0x1404412f8\njz      short loc_14044131D                                            ; +0x3b, 0x1404412fb\ntest    edx, edx                                                       ; +0x3d, 0x1404412fd\ncmovs   edx, ebp                                                       ; +0x3f, 0x1404412ff\ncmp     edx, esi                                                       ; +0x42, 0x140441302\ncmovg   edx, esi                                                       ; +0x44, 0x140441304\nmov     [rax+5CCh], edx                                                ; +0x47, 0x140441307\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x4d, 0x14044130d\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x52, 0x140441312\nadd     rsp, 20h                                                       ; +0x57, 0x140441317\npop     rsi                                                            ; +0x5b, 0x14044131b\nretn                                                                   ; +0x5c, 0x14044131c\nmov     rcx, [rcx+298h]                                                ; +0x5d, 0x14044131d\ntest    rcx, rcx                                                       ; +0x64, 0x140441324\njz      short loc_14044137D                                            ; +0x67, 0x140441327\nmov     [rsp+28h+arg_0], rdi                                           ; +0x69, 0x140441329\nmov     edi, ebp                                                       ; +0x6e, 0x14044132e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x70, 0x140441330\ntest    eax, eax                                                       ; +0x76, 0x140441336\njz      short loc_140441378                                            ; +0x78, 0x140441338\nnop     word ptr [rax+rax+00h]                                         ; +0x7a, 0x14044133a\nmov     rcx, [rbx+298h]                                                ; +0x80, 0x140441340\nmov     edx, edi                                                       ; +0x87, 0x140441347\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x140441349\nmov     ecx, [rbx+3D4h]                                                ; +0x8f, 0x14044134f\ntest    ecx, ecx                                                       ; +0x95, 0x140441355\ncmovs   ecx, ebp                                                       ; +0x97, 0x140441357\ncmp     ecx, esi                                                       ; +0x9a, 0x14044135a\ncmovg   ecx, esi                                                       ; +0x9c, 0x14044135c\ninc     edi                                                            ; +0x9f, 0x14044135f\nmov     [rax+5CCh], ecx                                                ; +0xa1, 0x140441361\nmov     rcx, [rbx+298h]                                                ; +0xa7, 0x140441367\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xae, 0x14044136e\ncmp     edi, eax                                                       ; +0xb4, 0x140441374\njb      short loc_140441340                                            ; +0xb6, 0x140441376\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xb8, 0x140441378\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbd, 0x14044137d\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xc2, 0x140441382\nadd     rsp, 20h                                                       ; +0xc7, 0x140441387\npop     rsi                                                            ; +0xcb, 0x14044138b\nretn                                                                   ; +0xcc, 0x14044138c", "xrefs": ["SetupRandTriggerPopup::onTargetID2Arrow @ 0x140440b8a", "SetupRandTriggerPopup::textChanged @ 0x140440d65", "<???> @ 0x1406a20b4", "<???> @ 0x1406a20c4", "<???> @ 0x1406da3d0"], "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"}