{"type": "func", "start": 5373006784, "end": 5373006970, "name": "SetupCollisionTriggerPopup::onTargetP1", "pseudocode": "// \n// SetupCollisionTriggerPopup::onTargetP1 from 0x1404193c0 to 0x14041947a (186 bytes)\n// \n// 4 xrefs:\n// > SetupCollisionTriggerPopup::init @ 0x140419041\n// > <???> @ 0x14069fe34\n// > <???> @ 0x14069fe44\n// > <???> @ 0x1406d90e0\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::onTargetP1(SetupCollisionTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // cl\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v6; // edi\n  struct cocos2d::CCObject *v7; // rax\n  _BOOL8 v8; // rdx\n\n  v3 = !a1->m_targetP1;\n  a1->m_targetP1 = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_targetPlayer1 = v3;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v6 = 0;\n      if ( cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v6++);\n          LOBYTE(v7[30].m_uReference) = a1->m_targetP1;\n        }\n        while ( v6 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n  SetupCollisionTriggerPopup::updateItemIDInputLabel(a1);\n  if ( a1->m_targetP2 || a1->m_targetP1 )\n    v8 = 0;\n  else\n    LOBYTE(v8) = 1;\n  a1->m_blockAInput->setTouchEnabled(a1->m_blockAInput, v8);\n}", "assembly": "; \n; SetupCollisionTriggerPopup::onTargetP1 from 0x1404193c0 to 0x14041947a (186 bytes)\n; \n; 4 xrefs:\n; > SetupCollisionTriggerPopup::init @ 0x140419041\n; > <???> @ 0x14069fe34\n; > <???> @ 0x14069fe44\n; > <???> @ 0x1406d90e0\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, 0x1404193c0\nsub     rsp, 20h                                                       ; +0x2, 0x1404193c2\ncmp     byte ptr [rcx+3CEh], 0                                         ; +0x6, 0x1404193c6\nmov     rbx, rcx                                                       ; +0xd, 0x1404193cd\nsetz    al                                                             ; +0x10, 0x1404193d0\nmovzx   ecx, al                                                        ; +0x13, 0x1404193d3\nmov     [rbx+3CEh], al                                                 ; +0x16, 0x1404193d6\nmov     rax, [rbx+290h]                                                ; +0x1c, 0x1404193dc\ntest    rax, rax                                                       ; +0x23, 0x1404193e3\njz      short loc_1404193F0                                            ; +0x26, 0x1404193e6\nmov     [rax+6A4h], cl                                                 ; +0x28, 0x1404193e8\njmp     short loc_140419444                                            ; +0x2e, 0x1404193ee\nmov     rcx, [rbx+298h]                                                ; +0x30, 0x1404193f0\ntest    rcx, rcx                                                       ; +0x37, 0x1404193f7\njz      short loc_140419444                                            ; +0x3a, 0x1404193fa\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3c, 0x1404193fc\nxor     edi, edi                                                       ; +0x41, 0x140419401\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x43, 0x140419403\ntest    eax, eax                                                       ; +0x49, 0x140419409\njz      short loc_14041943F                                            ; +0x4b, 0x14041940b\nnop     dword ptr [rax]                                                ; +0x4d, 0x14041940d\nmov     rcx, [rbx+298h]                                                ; +0x50, 0x140419410\nmov     edx, edi                                                       ; +0x57, 0x140419417\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x140419419\nmovzx   ecx, byte ptr [rbx+3CEh]                                       ; +0x5f, 0x14041941f\ninc     edi                                                            ; +0x66, 0x140419426\nmov     [rax+6A4h], cl                                                 ; +0x68, 0x140419428\nmov     rcx, [rbx+298h]                                                ; +0x6e, 0x14041942e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x75, 0x140419435\ncmp     edi, eax                                                       ; +0x7b, 0x14041943b\njb      short loc_140419410                                            ; +0x7d, 0x14041943d\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7f, 0x14041943f\nmov     rcx, rbx                                                       ; +0x84, 0x140419444\ncall    SetupCollisionTriggerPopup__updateItemIDInputLabel             ; +0x87, 0x140419447\ncmp     byte ptr [rbx+3CFh], 0                                         ; +0x8c, 0x14041944c\njnz     short loc_140419462                                            ; +0x93, 0x140419453\ncmp     byte ptr [rbx+3CEh], 0                                         ; +0x95, 0x140419455\njnz     short loc_140419462                                            ; +0x9c, 0x14041945c\nmov     dl, 1                                                          ; +0x9e, 0x14041945e\njmp     short loc_140419464                                            ; +0xa0, 0x140419460\nxor     edx, edx                                                       ; +0xa2, 0x140419462\nmov     rcx, [rbx+3A8h]                                                ; +0xa4, 0x140419464\nmov     rax, [rcx]                                                     ; +0xab, 0x14041946b\nadd     rsp, 20h                                                       ; +0xae, 0x14041946e\npop     rbx                                                            ; +0xb2, 0x140419472\njmp     qword ptr [rax+388h]                                           ; +0xb3, 0x140419473", "xrefs": ["SetupCollisionTriggerPopup::init @ 0x140419041", "<???> @ 0x14069fe34", "<???> @ 0x14069fe44", "<???> @ 0x1406d90e0"], "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"}