{"type": "func", "start": 5373006240, "end": 5373006636, "name": "SetupCollisionTriggerPopup::determineStartValues", "pseudocode": "// \n// SetupCollisionTriggerPopup::determineStartValues from 0x1404191a0 to 0x14041932c (396 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1405e10b8\n// > <???> @ 0x14069fdec\n// > <???> @ 0x14069fdfc\n// > <???> @ 0x1406d908c\n// > <???> @ 0x1406d9098\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 SetupCollisionTriggerPopup::determineStartValues(SetupCollisionTriggerPopup *a1)\n{\n  __int64 v2; // rcx\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int v4; // esi\n  struct cocos2d::CCObject *v5; // rax\n  int m_blockAID; // edx\n  int m_nTag; // ecx\n  int m_blockBID; // edx\n  int v9; // ecx\n  int m_targetID; // edx\n  int m_uAutoReleaseCount; // 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      *(_QWORD *)&a1->m_blockAID = -1;\n      a1->m_targetID = -1;\n      *(_DWORD *)&a1->m_activateGroup = 16843009;\n      for ( a1->m_targetPP = 1; v4 < cocos2d::CCArray::count(m_gameObjects); ++v4 )\n      {\n        v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4);\n        if ( !BYTE1(v5[29].m_eObjType) )\n          a1->m_activateGroup = 0;\n        if ( !BYTE3(v5[30].__vftable) )\n          a1->m_triggerOnExit = 0;\n        if ( !LOBYTE(v5[30].m_uReference) )\n          a1->m_targetP1 = 0;\n        if ( !BYTE1(v5[30].m_uReference) )\n          a1->m_targetP2 = 0;\n        if ( !BYTE2(v5[30].m_uReference) )\n          a1->m_targetPP = 0;\n        m_blockAID = a1->m_blockAID;\n        m_nTag = v5[30].m_nTag;\n        if ( m_blockAID == -1 )\n        {\n          a1->m_blockAID = m_nTag;\n        }\n        else if ( m_blockAID != m_nTag )\n        {\n          a1->m_blockAID = 0;\n        }\n        m_blockBID = a1->m_blockBID;\n        v9 = HIDWORD(v5[30].__vftable);\n        if ( m_blockBID == -1 )\n        {\n          a1->m_blockBID = v9;\n        }\n        else if ( m_blockBID != v9 )\n        {\n          a1->m_blockBID = 0;\n        }\n        m_targetID = a1->m_targetID;\n        m_uAutoReleaseCount = v5[26].m_uAutoReleaseCount;\n        if ( m_targetID == -1 )\n        {\n          a1->m_targetID = m_uAutoReleaseCount;\n        }\n        else if ( m_targetID != m_uAutoReleaseCount )\n        {\n          a1->m_targetID = 0;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; SetupCollisionTriggerPopup::determineStartValues from 0x1404191a0 to 0x14041932c (396 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1405e10b8\n; > <???> @ 0x14069fdec\n; > <???> @ 0x14069fdfc\n; > <???> @ 0x1406d908c\n; > <???> @ 0x1406d9098\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, 0x1404191a0\npush    rdi                                                            ; +0x5, 0x1404191a5\nsub     rsp, 20h                                                       ; +0x6, 0x1404191a6\nmov     rbx, rcx                                                       ; +0xa, 0x1404191aa\ncall    SetupTriggerPopup__determineStartValues                        ; +0xd, 0x1404191ad\ncmp     qword ptr [rbx+290h], 0                                        ; +0x12, 0x1404191b2\njz      short loc_1404191D7                                            ; +0x1a, 0x1404191ba\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x1c, 0x1404191bc\nmov     rdx, [rbx+290h]                                                ; +0x22, 0x1404191c2\nmov     rcx, rax                                                       ; +0x29, 0x1404191c9\nmov     rdi, rax                                                       ; +0x2c, 0x1404191cc\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2f, 0x1404191cf\njmp     short loc_1404191DE                                            ; +0x35, 0x1404191d5\nmov     rdi, [rbx+298h]                                                ; +0x37, 0x1404191d7\ntest    rdi, rdi                                                       ; +0x3e, 0x1404191de\njz      loc_140419321                                                  ; +0x41, 0x1404191e1\nmov     rcx, rdi                                                       ; +0x47, 0x1404191e7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4a, 0x1404191ea\ntest    eax, eax                                                       ; +0x50, 0x1404191f0\njz      loc_140419321                                                  ; +0x52, 0x1404191f2\nmov     [rsp+28h+arg_0], rbp                                           ; +0x58, 0x1404191f8\nmov     rcx, rdi                                                       ; +0x5d, 0x1404191fd\nxor     ebp, ebp                                                       ; +0x60, 0x140419200\nmov     [rsp+28h+arg_8], rsi                                           ; +0x62, 0x140419202\nmov     esi, ebp                                                       ; +0x67, 0x140419207\nmov     qword ptr [rbx+3C0h], 0FFFFFFFFFFFFFFFFh                       ; +0x69, 0x140419209\nmov     dword ptr [rbx+3C8h], 0FFFFFFFFh                               ; +0x74, 0x140419214\nmov     dword ptr [rbx+3CCh], 1010101h                                 ; +0x7e, 0x14041921e\nmov     byte ptr [rbx+3D0h], 1                                         ; +0x88, 0x140419228\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8f, 0x14041922f\ntest    eax, eax                                                       ; +0x95, 0x140419235\njz      loc_140419317                                                  ; +0x97, 0x140419237\nnop     dword ptr [rax]                                                ; +0x9d, 0x14041923d\nmov     edx, esi                                                       ; +0xa0, 0x140419240\nmov     rcx, rdi                                                       ; +0xa2, 0x140419242\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa5, 0x140419245\ncmp     [rax+675h], bpl                                                ; +0xab, 0x14041924b\njnz     short loc_14041925B                                            ; +0xb2, 0x140419252\nmov     [rbx+3CCh], bpl                                                ; +0xb4, 0x140419254\ncmp     [rax+693h], bpl                                                ; +0xbb, 0x14041925b\njnz     short loc_14041926B                                            ; +0xc2, 0x140419262\nmov     [rbx+3CDh], bpl                                                ; +0xc4, 0x140419264\ncmp     [rax+6A4h], bpl                                                ; +0xcb, 0x14041926b\njnz     short loc_14041927B                                            ; +0xd2, 0x140419272\nmov     [rbx+3CEh], bpl                                                ; +0xd4, 0x140419274\ncmp     [rax+6A5h], bpl                                                ; +0xdb, 0x14041927b\njnz     short loc_14041928B                                            ; +0xe2, 0x140419282\nmov     [rbx+3CFh], bpl                                                ; +0xe4, 0x140419284\ncmp     [rax+6A6h], bpl                                                ; +0xeb, 0x14041928b\njnz     short loc_14041929B                                            ; +0xf2, 0x140419292\nmov     [rbx+3D0h], bpl                                                ; +0xf4, 0x140419294\nmov     edx, [rbx+3C0h]                                                ; +0xfb, 0x14041929b\nmov     ecx, [rax+6A0h]                                                ; +0x101, 0x1404192a1\ncmp     edx, 0FFFFFFFFh                                                ; +0x107, 0x1404192a7\njnz     short loc_1404192B4                                            ; +0x10a, 0x1404192aa\nmov     [rbx+3C0h], ecx                                                ; +0x10c, 0x1404192ac\njmp     short loc_1404192BE                                            ; +0x112, 0x1404192b2\ncmp     edx, ecx                                                       ; +0x114, 0x1404192b4\njz      short loc_1404192BE                                            ; +0x116, 0x1404192b6\nmov     [rbx+3C0h], ebp                                                ; +0x118, 0x1404192b8\nmov     edx, [rbx+3C4h]                                                ; +0x11e, 0x1404192be\nmov     ecx, [rax+694h]                                                ; +0x124, 0x1404192c4\ncmp     edx, 0FFFFFFFFh                                                ; +0x12a, 0x1404192ca\njnz     short loc_1404192D7                                            ; +0x12d, 0x1404192cd\nmov     [rbx+3C4h], ecx                                                ; +0x12f, 0x1404192cf\njmp     short loc_1404192E1                                            ; +0x135, 0x1404192d5\ncmp     edx, ecx                                                       ; +0x137, 0x1404192d7\njz      short loc_1404192E1                                            ; +0x139, 0x1404192d9\nmov     [rbx+3C4h], ebp                                                ; +0x13b, 0x1404192db\nmov     edx, [rbx+3C8h]                                                ; +0x141, 0x1404192e1\nmov     ecx, [rax+5C8h]                                                ; +0x147, 0x1404192e7\ncmp     edx, 0FFFFFFFFh                                                ; +0x14d, 0x1404192ed\njnz     short loc_1404192FA                                            ; +0x150, 0x1404192f0\nmov     [rbx+3C8h], ecx                                                ; +0x152, 0x1404192f2\njmp     short loc_140419304                                            ; +0x158, 0x1404192f8\ncmp     edx, ecx                                                       ; +0x15a, 0x1404192fa\njz      short loc_140419304                                            ; +0x15c, 0x1404192fc\nmov     [rbx+3C8h], ebp                                                ; +0x15e, 0x1404192fe\nmov     rcx, rdi                                                       ; +0x164, 0x140419304\ninc     esi                                                            ; +0x167, 0x140419307\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x169, 0x140419309\ncmp     esi, eax                                                       ; +0x16f, 0x14041930f\njb      loc_140419240                                                  ; +0x171, 0x140419311\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x177, 0x140419317\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x17c, 0x14041931c\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x181, 0x140419321\nadd     rsp, 20h                                                       ; +0x186, 0x140419326\npop     rdi                                                            ; +0x18a, 0x14041932a\nretn                                                                   ; +0x18b, 0x14041932b", "xrefs": ["<???> @ 0x1405e10b8", "<???> @ 0x14069fdec", "<???> @ 0x14069fdfc", "<???> @ 0x1406d908c", "<???> @ 0x1406d9098"], "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"}