{"type": "func", "start": 5373020016, "end": 5373020153, "name": "SetupCountTriggerPopup::updateTargetCount", "pseudocode": "// \n// SetupCountTriggerPopup::updateTargetCount from 0x14041c770 to 0x14041c7f9 (137 bytes)\n// \n// 6 xrefs:\n// > SetupCountTriggerPopup::onTargetCountArrow @ 0x14041c27a\n// > SetupCountTriggerPopup::textChanged @ 0x14041c4d5\n// > SetupInstantCountPopup::textChanged @ 0x140423645\n// > <???> @ 0x1406a0194\n// > <???> @ 0x1406a01a4\n// > <???> @ 0x1406d935c\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\n// Merged with: SetupCountTriggerPopup::updateTargetCount, SetupInstantCountPopup::updateTargetCount\nvoid __fastcall SetupCountTriggerPopup::updateTargetCount(__int64 a1)\n{\n  __int64 v2; // rcx\n  cocos2d::CCArray *v3; // rcx\n  unsigned int v4; // edi\n  struct cocos2d::CCObject *v5; // rax\n\n  v2 = *(_QWORD *)(a1 + 656);\n  if ( v2 )\n  {\n    *(_DWORD *)(v2 + 1856) = *(_DWORD *)(a1 + 968);\n  }\n  else\n  {\n    v3 = *(cocos2d::CCArray **)(a1 + 664);\n    if ( v3 )\n    {\n      v4 = 0;\n      if ( cocos2d::CCArray::count(v3) )\n      {\n        do\n        {\n          v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 664), v4++);\n          v5[33].m_uID = *(_DWORD *)(a1 + 968);\n        }\n        while ( v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664)) );\n      }\n    }\n  }\n}", "assembly": "; \n; SetupCountTriggerPopup::updateTargetCount from 0x14041c770 to 0x14041c7f9 (137 bytes)\n; \n; 6 xrefs:\n; > SetupCountTriggerPopup::onTargetCountArrow @ 0x14041c27a\n; > SetupCountTriggerPopup::textChanged @ 0x14041c4d5\n; > SetupInstantCountPopup::textChanged @ 0x140423645\n; > <???> @ 0x1406a0194\n; > <???> @ 0x1406a01a4\n; > <???> @ 0x1406d935c\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\npush    rbx                                                            ; +0x0, 0x14041c770\nsub     rsp, 20h                                                       ; +0x2, 0x14041c772\nmov     rbx, rcx                                                       ; +0x6, 0x14041c776\nmov     rcx, [rcx+290h]                                                ; +0x9, 0x14041c779\ntest    rcx, rcx                                                       ; +0x10, 0x14041c780\njz      short loc_14041C797                                            ; +0x13, 0x14041c783\nmov     eax, [rbx+3C8h]                                                ; +0x15, 0x14041c785\nmov     [rcx+740h], eax                                                ; +0x1b, 0x14041c78b\nadd     rsp, 20h                                                       ; +0x21, 0x14041c791\npop     rbx                                                            ; +0x25, 0x14041c795\nretn                                                                   ; +0x26, 0x14041c796\nmov     rcx, [rbx+298h]                                                ; +0x27, 0x14041c797\ntest    rcx, rcx                                                       ; +0x2e, 0x14041c79e\njz      short loc_14041C7F3                                            ; +0x31, 0x14041c7a1\nmov     [rsp+28h+arg_0], rdi                                           ; +0x33, 0x14041c7a3\nxor     edi, edi                                                       ; +0x38, 0x14041c7a8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3a, 0x14041c7aa\ntest    eax, eax                                                       ; +0x40, 0x14041c7b0\njz      short loc_14041C7EE                                            ; +0x42, 0x14041c7b2\nnop     dword ptr [rax+00h]                                            ; +0x44, 0x14041c7b4\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x14041c7b8\nmov     rcx, [rbx+298h]                                                ; +0x50, 0x14041c7c0\nmov     edx, edi                                                       ; +0x57, 0x14041c7c7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x14041c7c9\nmov     ecx, [rbx+3C8h]                                                ; +0x5f, 0x14041c7cf\ninc     edi                                                            ; +0x65, 0x14041c7d5\nmov     [rax+740h], ecx                                                ; +0x67, 0x14041c7d7\nmov     rcx, [rbx+298h]                                                ; +0x6d, 0x14041c7dd\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x14041c7e4\ncmp     edi, eax                                                       ; +0x7a, 0x14041c7ea\njb      short loc_14041C7C0                                            ; +0x7c, 0x14041c7ec\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7e, 0x14041c7ee\nadd     rsp, 20h                                                       ; +0x83, 0x14041c7f3\npop     rbx                                                            ; +0x87, 0x14041c7f7\nretn                                                                   ; +0x88, 0x14041c7f8", "xrefs": ["SetupCountTriggerPopup::onTargetCountArrow @ 0x14041c27a", "SetupCountTriggerPopup::textChanged @ 0x14041c4d5", "SetupInstantCountPopup::textChanged @ 0x140423645", "<???> @ 0x1406a0194", "<???> @ 0x1406a01a4", "<???> @ 0x1406d935c"], "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"}