{"type": "func", "start": 5436904, "end": 5437072, "name": "CreateParticlePopup::ccTouchBegan", "pseudocode": "// \n// CreateParticlePopup::ccTouchBegan from 0x52f5e8 to 0x52f690 (168 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CreateParticlePopup::ccTouchBegan @ 0x52f6a4\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::CCParticleSystemQuad *m_particle; // r0\n  int v7; // r0\n  int v8; // r2\n  bool v9; // r3\n  int v10; // r2\n  bool v11; // r3\n  cocos2d::CCPoint v13; // [sp+Ch] [bp-2Ch] BYREF\n  cocos2d::CCPoint v14; // [sp+14h] [bp-24h] BYREF\n  _BYTE v15[8]; // [sp+1Ch] [bp-1Ch] BYREF\n  cocos2d::CCRect v16; // [sp+24h] [bp-14h] BYREF\n\n  cocos2d::CCTouch::getLocation(&v13, a2);\n  cocos2d::CCNode::convertToNodeSpace(&v14, a1->m_previewLayer, &v13);\n  cocos2d::CCRect::CCRect(&v16, 0.0, 0.0, 120.0, 180.0);\n  if ( cocos2d::CCRect::containsPoint(&v16, &v14) )\n  {\n    m_particle = a1->m_particle;\n    a1->m_touchID = a2->m_nId;\n    v7 = (int)m_particle->getPosition(m_particle);\n    cocos2d::CCPoint::operator-(v15, v7, &v14);\n    cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_touchDelta, COERCE_FLOAT(v15), v8, v9);\n    cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_touchDelta, COERCE_FLOAT(&stru_AC7750), v10, v11);\n    a1->ccTouchMoved(a1, a2, a3);\n  }\n  return FLAlertLayer::ccTouchBegan(a1, a2, a3);\n}", "assembly": "; \n; CreateParticlePopup::ccTouchBegan from 0x52f5e8 to 0x52f690 (168 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CreateParticlePopup::ccTouchBegan @ 0x52f6a4\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.W          {R4-R10,LR}                                            ; +0x0, 0x52f5e8\nSUB             SP, SP, #0x38                                          ; +0x4, 0x52f5ec\nLDR             R6, =(__stack_chk_guard_ptr - 0x52F5FC)                ; +0x6, 0x52f5ee\nADD             R5, SP, #0x38+var_2C                                   ; +0x8, 0x52f5f0\nADD.W           R9, SP, #0x38+var_24                                   ; +0xa, 0x52f5f2\nMOV             R4, R0                                                 ; +0xe, 0x52f5f6\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x52f5f8\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x52f5fa\nMOV             R0, R5; this                                           ; +0x14, 0x52f5fc\nMOV             R7, R1                                                 ; +0x16, 0x52f5fe\nMOV             R8, R2                                                 ; +0x18, 0x52f600\nLDR             R3, [R6]                                               ; +0x1a, 0x52f602\nSTR             R3, [SP,#0x38+var_4]                                   ; +0x1c, 0x52f604\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x1e, 0x52f606\nMOV             R2, R5                                                 ; +0x22, 0x52f60a\nMOV             R0, R9; this                                           ; +0x24, 0x52f60c\nLDR.W           R1, [R4,#0x238]; cocos2d::CCPoint *                    ; +0x26, 0x52f60e\nADD             R5, SP, #0x38+var_14                                   ; +0x2a, 0x52f612\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x2c, 0x52f614\nLDR             R3, flt_52F690                                         ; +0x30, 0x52f618\nMOVS            R1, #0; float                                          ; +0x32, 0x52f61a\nMOV             R0, R5; this                                           ; +0x34, 0x52f61c\nMOV             R2, R1; float                                          ; +0x36, 0x52f61e\nSTR             R3, [SP,#0x38+var_38]; float                           ; +0x38, 0x52f620\nLDR             R3, flt_52F694; float                                  ; +0x3a, 0x52f622\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x3c, 0x52f624\nMOV             R0, R5; this                                           ; +0x40, 0x52f628\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0x42, 0x52f62a\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x44, 0x52f62c\nCBZ             R0, loc_52F674                                         ; +0x48, 0x52f630\nLDR             R3, [R7,#0x34]                                         ; +0x4a, 0x52f632\nADD.W           R10, SP, #0x38+var_1C                                  ; +0x4c, 0x52f634\nLDR.W           R0, [R4,#0x20C]                                        ; +0x50, 0x52f638\nADD.W           R5, R4, #0x218                                         ; +0x54, 0x52f63c\nSTR.W           R3, [R4,#0x214]                                        ; +0x58, 0x52f640\nLDR             R3, [R0]                                               ; +0x5c, 0x52f644\nLDR             R3, [R3,#0x60]                                         ; +0x5e, 0x52f646\nBLX             R3                                                     ; +0x60, 0x52f648\nMOV             R2, R9                                                 ; +0x62, 0x52f64a\nMOV             R1, R0                                                 ; +0x64, 0x52f64c\nMOV             R0, R10                                                ; +0x66, 0x52f64e\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x68, 0x52f650\nMOV             R1, R10                                                ; +0x6c, 0x52f654\nMOV             R0, R5                                                 ; +0x6e, 0x52f656\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x70, 0x52f658\nLDR             R1, =(stru_AC7750 - 0x52F664)                          ; +0x74, 0x52f65c\nMOV             R0, R5                                                 ; +0x76, 0x52f65e\nADD             R1, PC; stru_AC7750                                    ; +0x78, 0x52f660\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x7a, 0x52f662\nLDR             R3, [R4]                                               ; +0x7e, 0x52f666\nMOV             R0, R4                                                 ; +0x80, 0x52f668\nMOV             R1, R7                                                 ; +0x82, 0x52f66a\nMOV             R2, R8                                                 ; +0x84, 0x52f66c\nLDR.W           R3, [R3,#0x1BC]                                        ; +0x86, 0x52f66e\nBLX             R3                                                     ; +0x8a, 0x52f672\nMOV             R2, R8                                                 ; +0x8c, 0x52f674\nMOV             R0, R4                                                 ; +0x8e, 0x52f676\nMOV             R1, R7                                                 ; +0x90, 0x52f678\nBL              _ZN12FLAlertLayer12ccTouchBeganEPN7cocos2d7CCTouchEPNS0_7CCEventE; FLAlertLayer::ccTouchBegan(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x92, 0x52f67a\nLDR             R2, [SP,#0x38+var_4]                                   ; +0x96, 0x52f67e\nLDR             R3, [R6]                                               ; +0x98, 0x52f680\nCMP             R2, R3                                                 ; +0x9a, 0x52f682\nBEQ             loc_52F68A                                             ; +0x9c, 0x52f684\nBLX             __stack_chk_fail                                       ; +0x9e, 0x52f686\nADD             SP, SP, #0x38 ; '8'                                    ; +0xa2, 0x52f68a\nPOP.W           {R4-R10,PC}                                            ; +0xa4, 0x52f68c", "xrefs": ["`non-virtual thunk to'CreateParticlePopup::ccTouchBegan @ 0x52f6a4"], "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"}