{"type": "func", "start": 5373121168, "end": 5373121416, "name": "CreateParticlePopup::ccTouchBegan", "pseudocode": "// \n// CreateParticlePopup::ccTouchBegan from 0x140435290 to 0x140435388 (248 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405e9690\n// > <???> @ 0x1406a1594\n// > <???> @ 0x1406a15a4\n// > <???> @ 0x1406d9d10\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\nbool CreateParticlePopup::ccTouchBegan(CreateParticlePopup *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCTouchScriptHandlerEntry *m_pScriptTouchHandlerEntry; // rcx\n  __int64 v7; // rax\n  _BYTE v9[8]; // [rsp+30h] [rbp-38h] BYREF\n  cocos2d::CCRect v10[3]; // [rsp+38h] [rbp-30h] BYREF\n  struct cocos2d::CCPoint v11; // [rsp+70h] [rbp+8h] BYREF\n\n  cocos2d::CCTouch::getLocation(a2);\n  cocos2d::CCNode::convertToNodeSpace(*(cocos2d::CCNode **)&a1->m_pSquareVertices[1], &v11);\n  cocos2d::CCRect::CCRect(v10, 0.0, 0.0, 120.0, 180.0);\n  if ( cocos2d::CCRect::containsPoint(v10, &v11) )\n  {\n    m_pScriptTouchHandlerEntry = a1->m_pScriptTouchHandlerEntry;\n    LODWORD(a1->m_pScriptAccelerateHandlerEntry) = a2->m_nId;\n    v7 = ((__int64 (__fastcall *)(cocos2d::CCTouchScriptHandlerEntry *))m_pScriptTouchHandlerEntry->__vftable[2].getTag)(m_pScriptTouchHandlerEntry);\n    cocos2d::CCPoint::operator-(v7, v9, &v11);\n    cocos2d::CCPoint::operator=((char *)&a1->m_pScriptAccelerateHandlerEntry + 4, v9);\n    cocos2d::CCPoint::operator=((char *)&a1->m_pScriptAccelerateHandlerEntry + 4, &stru_1406C2910);\n    ((void (__fastcall *)(CreateParticlePopup *, cocos2d::CCTouch *, cocos2d::CCEvent *))a1->isEqual)(a1, a2, a3);\n  }\n  return FLAlertLayer::ccTouchBegan(a1, a2, a3);\n}", "assembly": "; \n; CreateParticlePopup::ccTouchBegan from 0x140435290 to 0x140435388 (248 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405e9690\n; > <???> @ 0x1406a1594\n; > <???> @ 0x1406a15a4\n; > <???> @ 0x1406d9d10\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    rbp                                                            ; +0x0, 0x140435290\npush    rsi                                                            ; +0x2, 0x140435292\npush    rdi                                                            ; +0x3, 0x140435293\nsub     rsp, 50h                                                       ; +0x4, 0x140435294\nmov     rsi, rdx                                                       ; +0x8, 0x140435298\nmov     rdi, rcx                                                       ; +0xb, 0x14043529b\nmov     rcx, rsi                                                       ; +0xe, 0x14043529e\nlea     rdx, [rsp+68h+arg_18]                                          ; +0x11, 0x1404352a1\nmov     rbp, r8                                                        ; +0x19, 0x1404352a9\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x1c, 0x1404352ac\nmov     rcx, [rdi+1C0h]                                                ; +0x22, 0x1404352b2\nlea     r8, [rsp+68h+arg_18]                                           ; +0x29, 0x1404352b9\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x31, 0x1404352c1\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x36, 0x1404352c6\nmovss   xmm0, cs:dword_1406233A4                                       ; +0x3c, 0x1404352cc\nlea     rcx, [rsp+68h+var_30]                                          ; +0x44, 0x1404352d4\nmovss   xmm3, cs:dword_1406232FC                                       ; +0x49, 0x1404352d9\nxorps   xmm2, xmm2                                                     ; +0x51, 0x1404352e1\nxorps   xmm1, xmm1                                                     ; +0x54, 0x1404352e4\nmovss   [rsp+68h+var_48], xmm0                                         ; +0x57, 0x1404352e7\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x5d, 0x1404352ed\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x63, 0x1404352f3\nlea     rcx, [rsp+68h+var_30]                                          ; +0x68, 0x1404352f8\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x6d, 0x1404352fd\ntest    al, al                                                         ; +0x73, 0x140435303\njz      short loc_140435372                                            ; +0x75, 0x140435305\nmov     eax, [rsi+38h]                                                 ; +0x77, 0x140435307\nmov     rcx, [rdi+170h]                                                ; +0x7a, 0x14043530a\nmov     [rdi+180h], eax                                                ; +0x81, 0x140435311\nmov     [rsp+68h+arg_8], rbx                                           ; +0x87, 0x140435317\nmov     rax, [rcx]                                                     ; +0x8c, 0x14043531c\ncall    qword ptr [rax+0C8h]                                           ; +0x8f, 0x14043531f\nmov     rcx, rax                                                       ; +0x95, 0x140435325\nlea     r8, [rsp+68h+arg_0]                                            ; +0x98, 0x140435328\nlea     rdx, [rsp+68h+var_38]                                          ; +0x9d, 0x14043532d\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0xa2, 0x140435332\nlea     rdx, [rsp+68h+var_38]                                          ; +0xa8, 0x140435338\nlea     rcx, [rdi+184h]                                                ; +0xad, 0x14043533d\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xb4, 0x140435344\nlea     rdx, stru_1406C2910                                            ; +0xba, 0x14043534a\nlea     rcx, [rdi+184h]                                                ; +0xc1, 0x140435351\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xc8, 0x140435358\nmov     rax, [rdi]                                                     ; +0xce, 0x14043535e\nmov     r8, rbp                                                        ; +0xd1, 0x140435361\nmov     rdx, rsi                                                       ; +0xd4, 0x140435364\nmov     rcx, rdi                                                       ; +0xd7, 0x140435367\ncall    qword ptr [rax+10h]                                            ; +0xda, 0x14043536a\nmov     rbx, [rsp+68h+arg_8]                                           ; +0xdd, 0x14043536d\nmov     r8, rbp                                                        ; +0xe2, 0x140435372\nmov     rdx, rsi                                                       ; +0xe5, 0x140435375\nmov     rcx, rdi                                                       ; +0xe8, 0x140435378\ncall    FLAlertLayer__ccTouchBegan                                     ; +0xeb, 0x14043537b\nadd     rsp, 50h                                                       ; +0xf0, 0x140435380\npop     rdi                                                            ; +0xf4, 0x140435384\npop     rsi                                                            ; +0xf5, 0x140435385\npop     rbp                                                            ; +0xf6, 0x140435386\nretn                                                                   ; +0xf7, 0x140435387", "xrefs": ["<???> @ 0x1405e9690", "<???> @ 0x1406a1594", "<???> @ 0x1406a15a4", "<???> @ 0x1406d9d10"], "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"}