{"type": "func", "start": 5373201648, "end": 5373201913, "name": "SetupSFXPopup::valueDidChange", "pseudocode": "// \n// SetupSFXPopup::valueDidChange from 0x140448cf0 to 0x140448df9 (265 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405ef7d0\n// > <???> @ 0x1406a287c\n// > <???> @ 0x1406a28b4\n// > <???> @ 0x1406da688\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 SetupSFXPopup::valueDidChange(SetupSFXPopup *a1, int a2, float a3)\n{\n  __int64 v5; // rcx\n  cocos2d::CCArray *m_gameObjects; // rbx\n  unsigned int i; // edi\n  unsigned int *p_m_uID; // rax\n\n  SetupAudioTriggerPopup::valueDidChange(a1, a2, a3);\n  if ( a1->m_gameObject )\n  {\n    m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v5);\n    cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n  }\n  if ( m_gameObjects )\n  {\n    if ( cocos2d::CCArray::count(m_gameObjects) )\n    {\n      for ( i = 0; i < cocos2d::CCArray::count(m_gameObjects); ++i )\n      {\n        p_m_uID = &cocos2d::CCArray::objectAtIndex(m_gameObjects, i)[33].m_uID;\n        *((_QWORD *)p_m_uID + 2) = 0;\n        if ( *((_QWORD *)p_m_uID + 3) > 0xFu )\n          p_m_uID = *(unsigned int **)p_m_uID;\n        *(_BYTE *)p_m_uID = 0;\n      }\n    }\n  }\n  if ( a2 == 392 )\n  {\n    a1->m_sfxID = (int)a3;\n    SetupSFXPopup::createSFXWidget(a1);\n  }\n  else if ( a2 == 404 )\n  {\n    SetupSFXPopup::updateLength(a1);\n  }\n}", "assembly": "; \n; SetupSFXPopup::valueDidChange from 0x140448cf0 to 0x140448df9 (265 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405ef7d0\n; > <???> @ 0x1406a287c\n; > <???> @ 0x1406a28b4\n; > <???> @ 0x1406da688\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_18], rbp                                              ; +0x0, 0x140448cf0\npush    rsi                                                            ; +0x5, 0x140448cf5\nsub     rsp, 30h                                                       ; +0x6, 0x140448cf6\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x140448cfa\nmov     ebp, edx                                                       ; +0xf, 0x140448cff\nmov     [rsp+38h+arg_0], rbx                                           ; +0x11, 0x140448d01\nmovaps  xmm6, xmm2                                                     ; +0x16, 0x140448d06\nmov     rsi, rcx                                                       ; +0x19, 0x140448d09\ncall    SetupAudioTriggerPopup__valueDidChange                         ; +0x1c, 0x140448d0c\ncmp     qword ptr [rsi+290h], 0                                        ; +0x21, 0x140448d11\njz      short loc_140448D36                                            ; +0x29, 0x140448d19\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x2b, 0x140448d1b\nmov     rdx, [rsi+290h]                                                ; +0x31, 0x140448d21\nmov     rcx, rax                                                       ; +0x38, 0x140448d28\nmov     rbx, rax                                                       ; +0x3b, 0x140448d2b\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x3e, 0x140448d2e\njmp     short loc_140448D3D                                            ; +0x44, 0x140448d34\nmov     rbx, [rsi+298h]                                                ; +0x46, 0x140448d36\ntest    rbx, rbx                                                       ; +0x4d, 0x140448d3d\njz      short loc_140448DAB                                            ; +0x50, 0x140448d40\nmov     rcx, rbx                                                       ; +0x52, 0x140448d42\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x55, 0x140448d45\ntest    eax, eax                                                       ; +0x5b, 0x140448d4b\njz      short loc_140448DAB                                            ; +0x5d, 0x140448d4d\nmov     [rsp+38h+arg_8], rdi                                           ; +0x5f, 0x140448d4f\nmov     rcx, rbx                                                       ; +0x64, 0x140448d54\nmov     [rsp+38h+arg_10], r14                                          ; +0x67, 0x140448d57\nxor     r14d, r14d                                                     ; +0x6c, 0x140448d5c\nmov     edi, r14d                                                      ; +0x6f, 0x140448d5f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x72, 0x140448d62\ntest    eax, eax                                                       ; +0x78, 0x140448d68\njz      short loc_140448DA1                                            ; +0x7a, 0x140448d6a\nnop     dword ptr [rax+00h]                                            ; +0x7c, 0x140448d6c\nmov     edx, edi                                                       ; +0x80, 0x140448d70\nmov     rcx, rbx                                                       ; +0x82, 0x140448d72\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x85, 0x140448d75\nadd     rax, 740h                                                      ; +0x8b, 0x140448d7b\nmov     [rax+10h], r14                                                 ; +0x91, 0x140448d81\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x95, 0x140448d85\njbe     short loc_140448D8F                                            ; +0x9a, 0x140448d8a\nmov     rax, [rax]                                                     ; +0x9c, 0x140448d8c\nmov     rcx, rbx                                                       ; +0x9f, 0x140448d8f\nmov     [rax], r14b                                                    ; +0xa2, 0x140448d92\ninc     edi                                                            ; +0xa5, 0x140448d95\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa7, 0x140448d97\ncmp     edi, eax                                                       ; +0xad, 0x140448d9d\njb      short loc_140448D70                                            ; +0xaf, 0x140448d9f\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xb1, 0x140448da1\nmov     r14, [rsp+38h+arg_10]                                          ; +0xb6, 0x140448da6\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xbb, 0x140448dab\ncmp     ebp, 188h                                                      ; +0xc0, 0x140448db0\njnz     short loc_140448DD9                                            ; +0xc6, 0x140448db6\ncvttss2si eax, xmm6                                                    ; +0xc8, 0x140448db8\nmov     rcx, rsi                                                       ; +0xcc, 0x140448dbc\nmov     [rsi+3C0h], eax                                                ; +0xcf, 0x140448dbf\nmov     rbp, [rsp+38h+arg_18]                                          ; +0xd5, 0x140448dc5\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xda, 0x140448dca\nadd     rsp, 30h                                                       ; +0xdf, 0x140448dcf\npop     rsi                                                            ; +0xe3, 0x140448dd3\njmp     SetupSFXPopup__createSFXWidget                                 ; +0xe4, 0x140448dd4\ncmp     ebp, 194h                                                      ; +0xe9, 0x140448dd9\njnz     short loc_140448DE9                                            ; +0xef, 0x140448ddf\nmov     rcx, rsi                                                       ; +0xf1, 0x140448de1\ncall    SetupSFXPopup__updateLength                                    ; +0xf4, 0x140448de4\nmov     rbp, [rsp+38h+arg_18]                                          ; +0xf9, 0x140448de9\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xfe, 0x140448dee\nadd     rsp, 30h                                                       ; +0x103, 0x140448df3\npop     rsi                                                            ; +0x107, 0x140448df7\nretn                                                                   ; +0x108, 0x140448df8", "xrefs": ["<???> @ 0x1405ef7d0", "<???> @ 0x1406a287c", "<???> @ 0x1406a28b4", "<???> @ 0x1406da688"], "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"}