{"type": "func", "start": 5373007168, "end": 5373007397, "name": "SetupCollisionTriggerPopup::onTargetPP", "pseudocode": "// \n// SetupCollisionTriggerPopup::onTargetPP from 0x140419540 to 0x140419625 (229 bytes)\n// \n// 4 xrefs:\n// > SetupCollisionTriggerPopup::init @ 0x14041912d\n// > <???> @ 0x14069fe7c\n// > <???> @ 0x14069fe8c\n// > <???> @ 0x1406d9128\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::onTargetPP(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  _BOOL8 v9; // rdx\n\n  v3 = !a1->m_targetPP;\n  a1->m_targetPP = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_followCPP = 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          BYTE2(v7[30].m_uReference) = a1->m_targetPP;\n        }\n        while ( v6 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n  SetupCollisionTriggerPopup::updateItemIDInputLabel(a1);\n  SetupCollisionTriggerPopup::updateItemID2InputLabel(a1);\n  if ( a1->m_targetP2 || a1->m_targetP1 || a1->m_targetPP )\n    v8 = 0;\n  else\n    LOBYTE(v8) = 1;\n  a1->m_blockAInput->setTouchEnabled(a1->m_blockAInput, v8);\n  LOBYTE(v9) = !a1->m_targetPP;\n  a1->m_blockBInput->setTouchEnabled(a1->m_blockBInput, v9);\n}", "assembly": "; \n; SetupCollisionTriggerPopup::onTargetPP from 0x140419540 to 0x140419625 (229 bytes)\n; \n; 4 xrefs:\n; > SetupCollisionTriggerPopup::init @ 0x14041912d\n; > <???> @ 0x14069fe7c\n; > <???> @ 0x14069fe8c\n; > <???> @ 0x1406d9128\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, 0x140419540\nsub     rsp, 20h                                                       ; +0x2, 0x140419542\ncmp     byte ptr [rcx+3D0h], 0                                         ; +0x6, 0x140419546\nmov     rbx, rcx                                                       ; +0xd, 0x14041954d\nsetz    al                                                             ; +0x10, 0x140419550\nmovzx   ecx, al                                                        ; +0x13, 0x140419553\nmov     [rbx+3D0h], al                                                 ; +0x16, 0x140419556\nmov     rax, [rbx+290h]                                                ; +0x1c, 0x14041955c\ntest    rax, rax                                                       ; +0x23, 0x140419563\njz      short loc_140419570                                            ; +0x26, 0x140419566\nmov     [rax+6A6h], cl                                                 ; +0x28, 0x140419568\njmp     short loc_1404195C4                                            ; +0x2e, 0x14041956e\nmov     rcx, [rbx+298h]                                                ; +0x30, 0x140419570\ntest    rcx, rcx                                                       ; +0x37, 0x140419577\njz      short loc_1404195C4                                            ; +0x3a, 0x14041957a\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3c, 0x14041957c\nxor     edi, edi                                                       ; +0x41, 0x140419581\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x43, 0x140419583\ntest    eax, eax                                                       ; +0x49, 0x140419589\njz      short loc_1404195BF                                            ; +0x4b, 0x14041958b\nnop     dword ptr [rax]                                                ; +0x4d, 0x14041958d\nmov     rcx, [rbx+298h]                                                ; +0x50, 0x140419590\nmov     edx, edi                                                       ; +0x57, 0x140419597\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x140419599\nmovzx   ecx, byte ptr [rbx+3D0h]                                       ; +0x5f, 0x14041959f\ninc     edi                                                            ; +0x66, 0x1404195a6\nmov     [rax+6A6h], cl                                                 ; +0x68, 0x1404195a8\nmov     rcx, [rbx+298h]                                                ; +0x6e, 0x1404195ae\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x75, 0x1404195b5\ncmp     edi, eax                                                       ; +0x7b, 0x1404195bb\njb      short loc_140419590                                            ; +0x7d, 0x1404195bd\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7f, 0x1404195bf\nmov     rcx, rbx                                                       ; +0x84, 0x1404195c4\ncall    SetupCollisionTriggerPopup__updateItemIDInputLabel             ; +0x87, 0x1404195c7\nmov     rcx, rbx                                                       ; +0x8c, 0x1404195cc\ncall    SetupCollisionTriggerPopup__updateItemID2InputLabel            ; +0x8f, 0x1404195cf\ncmp     byte ptr [rbx+3CFh], 0                                         ; +0x94, 0x1404195d4\njnz     short loc_1404195F3                                            ; +0x9b, 0x1404195db\ncmp     byte ptr [rbx+3CEh], 0                                         ; +0x9d, 0x1404195dd\njnz     short loc_1404195F3                                            ; +0xa4, 0x1404195e4\ncmp     byte ptr [rbx+3D0h], 0                                         ; +0xa6, 0x1404195e6\njnz     short loc_1404195F3                                            ; +0xad, 0x1404195ed\nmov     dl, 1                                                          ; +0xaf, 0x1404195ef\njmp     short loc_1404195F5                                            ; +0xb1, 0x1404195f1\nxor     edx, edx                                                       ; +0xb3, 0x1404195f3\nmov     rcx, [rbx+3A8h]                                                ; +0xb5, 0x1404195f5\nmov     rax, [rcx]                                                     ; +0xbc, 0x1404195fc\ncall    qword ptr [rax+388h]                                           ; +0xbf, 0x1404195ff\nmov     rcx, [rbx+3B0h]                                                ; +0xc5, 0x140419605\ncmp     byte ptr [rbx+3D0h], 0                                         ; +0xcc, 0x14041960c\nsetz    dl                                                             ; +0xd3, 0x140419613\nmov     rax, [rcx]                                                     ; +0xd6, 0x140419616\nadd     rsp, 20h                                                       ; +0xd9, 0x140419619\npop     rbx                                                            ; +0xdd, 0x14041961d\njmp     qword ptr [rax+388h]                                           ; +0xde, 0x14041961e", "xrefs": ["SetupCollisionTriggerPopup::init @ 0x14041912d", "<???> @ 0x14069fe7c", "<???> @ 0x14069fe8c", "<???> @ 0x1406d9128"], "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"}