{"type": "func", "start": 5371394016, "end": 5371394214, "name": "SetupEnterTriggerPopup::determineStartValues", "pseudocode": "// \n// SetupEnterTriggerPopup::determineStartValues from 0x14028f7e0 to 0x14028f8a6 (198 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405736a0\n// > <???> @ 0x140688b88\n// > <???> @ 0x140688b98\n// > <???> @ 0x1406d18e0\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 SetupEnterTriggerPopup::determineStartValues(SetupEnterTriggerPopup *a1)\n{\n  __int64 v2; // rcx\n  cocos2d::CCArray *m_gameObjects; // rsi\n  unsigned int v4; // edi\n  struct cocos2d::CCObject *v5; // rax\n  int m_enterType; // edx\n  int m_uID; // ecx\n\n  SetupTriggerPopup::determineStartValues(a1);\n  if ( a1->m_gameObject )\n  {\n    m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);\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      v4 = 0;\n      for ( a1->m_enterType = -1; v4 < cocos2d::CCArray::count(m_gameObjects); ++v4 )\n      {\n        v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4);\n        m_enterType = a1->m_enterType;\n        m_uID = v5[33].m_uID;\n        if ( m_enterType >= 0 )\n        {\n          if ( m_enterType != m_uID )\n            a1->m_enterType = 0;\n        }\n        else\n        {\n          a1->m_enterType = m_uID;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; SetupEnterTriggerPopup::determineStartValues from 0x14028f7e0 to 0x14028f8a6 (198 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405736a0\n; > <???> @ 0x140688b88\n; > <???> @ 0x140688b98\n; > <???> @ 0x1406d18e0\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_10], rbx                                              ; +0x0, 0x14028f7e0\npush    rsi                                                            ; +0x5, 0x14028f7e5\nsub     rsp, 20h                                                       ; +0x6, 0x14028f7e6\nmov     rbx, rcx                                                       ; +0xa, 0x14028f7ea\ncall    SetupTriggerPopup__determineStartValues                        ; +0xd, 0x14028f7ed\ncmp     qword ptr [rbx+290h], 0                                        ; +0x12, 0x14028f7f2\njz      short loc_14028F817                                            ; +0x1a, 0x14028f7fa\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x1c, 0x14028f7fc\nmov     rdx, [rbx+290h]                                                ; +0x22, 0x14028f802\nmov     rcx, rax                                                       ; +0x29, 0x14028f809\nmov     rsi, rax                                                       ; +0x2c, 0x14028f80c\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2f, 0x14028f80f\njmp     short loc_14028F81E                                            ; +0x35, 0x14028f815\nmov     rsi, [rbx+298h]                                                ; +0x37, 0x14028f817\ntest    rsi, rsi                                                       ; +0x3e, 0x14028f81e\njz      short loc_14028F89B                                            ; +0x41, 0x14028f821\nmov     rcx, rsi                                                       ; +0x43, 0x14028f823\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x46, 0x14028f826\ntest    eax, eax                                                       ; +0x4c, 0x14028f82c\njz      short loc_14028F89B                                            ; +0x4e, 0x14028f82e\nmov     [rsp+28h+arg_0], rbp                                           ; +0x50, 0x14028f830\nmov     rcx, rsi                                                       ; +0x55, 0x14028f835\nxor     ebp, ebp                                                       ; +0x58, 0x14028f838\nmov     [rsp+28h+arg_8], rdi                                           ; +0x5a, 0x14028f83a\nmov     edi, ebp                                                       ; +0x5f, 0x14028f83f\nmov     dword ptr [rbx+3B8h], 0FFFFFFFFh                               ; +0x61, 0x14028f841\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6b, 0x14028f84b\ntest    eax, eax                                                       ; +0x71, 0x14028f851\njz      short loc_14028F891                                            ; +0x73, 0x14028f853\nmov     edx, edi                                                       ; +0x75, 0x14028f855\nmov     rcx, rsi                                                       ; +0x77, 0x14028f857\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x7a, 0x14028f85a\nmov     edx, [rbx+3B8h]                                                ; +0x80, 0x14028f860\nmov     ecx, [rax+740h]                                                ; +0x86, 0x14028f866\ntest    edx, edx                                                       ; +0x8c, 0x14028f86c\njns     short loc_14028F878                                            ; +0x8e, 0x14028f86e\nmov     [rbx+3B8h], ecx                                                ; +0x90, 0x14028f870\njmp     short loc_14028F882                                            ; +0x96, 0x14028f876\ncmp     edx, ecx                                                       ; +0x98, 0x14028f878\njz      short loc_14028F882                                            ; +0x9a, 0x14028f87a\nmov     [rbx+3B8h], ebp                                                ; +0x9c, 0x14028f87c\nmov     rcx, rsi                                                       ; +0xa2, 0x14028f882\ninc     edi                                                            ; +0xa5, 0x14028f885\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa7, 0x14028f887\ncmp     edi, eax                                                       ; +0xad, 0x14028f88d\njb      short loc_14028F855                                            ; +0xaf, 0x14028f88f\nmov     rbp, [rsp+28h+arg_0]                                           ; +0xb1, 0x14028f891\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xb6, 0x14028f896\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xbb, 0x14028f89b\nadd     rsp, 20h                                                       ; +0xc0, 0x14028f8a0\npop     rsi                                                            ; +0xc4, 0x14028f8a4\nretn                                                                   ; +0xc5, 0x14028f8a5", "xrefs": ["<???> @ 0x1405736a0", "<???> @ 0x140688b88", "<???> @ 0x140688b98", "<???> @ 0x1406d18e0"], "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"}