{"type": "func", "start": 5373006976, "end": 5373007162, "name": "SetupCollisionTriggerPopup::onTargetP2", "pseudocode": "// \n// SetupCollisionTriggerPopup::onTargetP2 from 0x140419480 to 0x14041953a (186 bytes)\n// \n// 4 xrefs:\n// > SetupCollisionTriggerPopup::init @ 0x1404190b5\n// > <???> @ 0x14069fe58\n// > <???> @ 0x14069fe68\n// > <???> @ 0x1406d9104\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::onTargetP2(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_targetP2;\n  a1->m_targetP2 = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_targetPlayer2 = 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          BYTE1(v7[30].m_uReference) = a1->m_targetP2;\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::onTargetP2 from 0x140419480 to 0x14041953a (186 bytes)\n; \n; 4 xrefs:\n; > SetupCollisionTriggerPopup::init @ 0x1404190b5\n; > <???> @ 0x14069fe58\n; > <???> @ 0x14069fe68\n; > <???> @ 0x1406d9104\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, 0x140419480\nsub     rsp, 20h                                                       ; +0x2, 0x140419482\ncmp     byte ptr [rcx+3CFh], 0                                         ; +0x6, 0x140419486\nmov     rbx, rcx                                                       ; +0xd, 0x14041948d\nsetz    al                                                             ; +0x10, 0x140419490\nmovzx   ecx, al                                                        ; +0x13, 0x140419493\nmov     [rbx+3CFh], al                                                 ; +0x16, 0x140419496\nmov     rax, [rbx+290h]                                                ; +0x1c, 0x14041949c\ntest    rax, rax                                                       ; +0x23, 0x1404194a3\njz      short loc_1404194B0                                            ; +0x26, 0x1404194a6\nmov     [rax+6A5h], cl                                                 ; +0x28, 0x1404194a8\njmp     short loc_140419504                                            ; +0x2e, 0x1404194ae\nmov     rcx, [rbx+298h]                                                ; +0x30, 0x1404194b0\ntest    rcx, rcx                                                       ; +0x37, 0x1404194b7\njz      short loc_140419504                                            ; +0x3a, 0x1404194ba\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3c, 0x1404194bc\nxor     edi, edi                                                       ; +0x41, 0x1404194c1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x43, 0x1404194c3\ntest    eax, eax                                                       ; +0x49, 0x1404194c9\njz      short loc_1404194FF                                            ; +0x4b, 0x1404194cb\nnop     dword ptr [rax]                                                ; +0x4d, 0x1404194cd\nmov     rcx, [rbx+298h]                                                ; +0x50, 0x1404194d0\nmov     edx, edi                                                       ; +0x57, 0x1404194d7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x1404194d9\nmovzx   ecx, byte ptr [rbx+3CFh]                                       ; +0x5f, 0x1404194df\ninc     edi                                                            ; +0x66, 0x1404194e6\nmov     [rax+6A5h], cl                                                 ; +0x68, 0x1404194e8\nmov     rcx, [rbx+298h]                                                ; +0x6e, 0x1404194ee\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x75, 0x1404194f5\ncmp     edi, eax                                                       ; +0x7b, 0x1404194fb\njb      short loc_1404194D0                                            ; +0x7d, 0x1404194fd\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7f, 0x1404194ff\nmov     rcx, rbx                                                       ; +0x84, 0x140419504\ncall    SetupCollisionTriggerPopup__updateItemIDInputLabel             ; +0x87, 0x140419507\ncmp     byte ptr [rbx+3CFh], 0                                         ; +0x8c, 0x14041950c\njnz     short loc_140419522                                            ; +0x93, 0x140419513\ncmp     byte ptr [rbx+3CEh], 0                                         ; +0x95, 0x140419515\njnz     short loc_140419522                                            ; +0x9c, 0x14041951c\nmov     dl, 1                                                          ; +0x9e, 0x14041951e\njmp     short loc_140419524                                            ; +0xa0, 0x140419520\nxor     edx, edx                                                       ; +0xa2, 0x140419522\nmov     rcx, [rbx+3A8h]                                                ; +0xa4, 0x140419524\nmov     rax, [rcx]                                                     ; +0xab, 0x14041952b\nadd     rsp, 20h                                                       ; +0xae, 0x14041952e\npop     rbx                                                            ; +0xb2, 0x140419532\njmp     qword ptr [rax+388h]                                           ; +0xb3, 0x140419533", "xrefs": ["SetupCollisionTriggerPopup::init @ 0x1404190b5", "<???> @ 0x14069fe58", "<???> @ 0x14069fe68", "<???> @ 0x1406d9104"], "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"}