{"type": "func", "start": 6700452, "end": 6700620, "name": "CreateParticlePopup::ccTouchBegan", "pseudocode": "// \n// CreateParticlePopup::ccTouchBegan from 0x663da4 to 0x663e4c (168 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CreateParticlePopup::ccTouchBegan @ 0x663e60\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:55:39 +0000\n// \n\nint __fastcall CreateParticlePopup::ccTouchBegan(_DWORD *a1, int a2, int a3)\n{\n  int v6; // r0\n  int v7; // r0\n  _BYTE v9[8]; // [sp+Ch] [bp-2Ch] BYREF\n  _BYTE v10[8]; // [sp+14h] [bp-24h] BYREF\n  _BYTE v11[8]; // [sp+1Ch] [bp-1Ch] BYREF\n  _BYTE v12[16]; // [sp+24h] [bp-14h] BYREF\n\n  cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v9);\n  cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v10, (const cocos2d::CCPoint *)a1[147]);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, 0.0, 0.0, 120.0, 180.0);\n  if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v12, (const cocos2d::CCPoint *)v10) )\n  {\n    v6 = a1[136];\n    a1[138] = *(_DWORD *)(a2 + 52);\n    v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 96))(v6);\n    cocos2d::CCPoint::operator-(v11, v7, v10);\n    cocos2d::CCPoint::operator=(a1 + 139, v11);\n    cocos2d::CCPoint::operator=(a1 + 139, &unk_D2D178);\n    (*(void (__fastcall **)(_DWORD *, int, int))(*a1 + 452))(a1, a2, a3);\n  }\n  return FLAlertLayer::ccTouchBegan(a1, a2, a3);\n}", "assembly": "; \n; CreateParticlePopup::ccTouchBegan from 0x663da4 to 0x663e4c (168 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CreateParticlePopup::ccTouchBegan @ 0x663e60\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:55:39 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x663da4\nSUB             SP, SP, #0x38                                          ; +0x4, 0x663da8\nLDR             R6, =(__stack_chk_guard_ptr - 0x663DB8)                ; +0x6, 0x663daa\nADD             R5, SP, #0x38+var_2C                                   ; +0x8, 0x663dac\nADD.W           R9, SP, #0x38+var_24                                   ; +0xa, 0x663dae\nMOV             R4, R0                                                 ; +0xe, 0x663db2\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x663db4\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x663db6\nMOV             R0, R5; this                                           ; +0x14, 0x663db8\nMOV             R7, R1                                                 ; +0x16, 0x663dba\nMOV             R8, R2                                                 ; +0x18, 0x663dbc\nLDR             R3, [R6]                                               ; +0x1a, 0x663dbe\nSTR             R3, [SP,#0x38+var_4]                                   ; +0x1c, 0x663dc0\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x1e, 0x663dc2\nMOV             R2, R5                                                 ; +0x22, 0x663dc6\nMOV             R0, R9; this                                           ; +0x24, 0x663dc8\nLDR.W           R1, [R4,#0x24C]; cocos2d::CCPoint *                    ; +0x26, 0x663dca\nADD             R5, SP, #0x38+var_14                                   ; +0x2a, 0x663dce\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x2c, 0x663dd0\nLDR             R3, flt_663E4C                                         ; +0x30, 0x663dd4\nMOVS            R1, #0; float                                          ; +0x32, 0x663dd6\nMOV             R0, R5; this                                           ; +0x34, 0x663dd8\nMOV             R2, R1; float                                          ; +0x36, 0x663dda\nSTR             R3, [SP,#0x38+var_38]; float                           ; +0x38, 0x663ddc\nLDR             R3, flt_663E50; float                                  ; +0x3a, 0x663dde\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x3c, 0x663de0\nMOV             R0, R5; this                                           ; +0x40, 0x663de4\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0x42, 0x663de6\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x44, 0x663de8\nCBZ             R0, loc_663E30                                         ; +0x48, 0x663dec\nLDR             R3, [R7,#0x34]                                         ; +0x4a, 0x663dee\nADD.W           R10, SP, #0x38+var_1C                                  ; +0x4c, 0x663df0\nLDR.W           R0, [R4,#0x220]                                        ; +0x50, 0x663df4\nADD.W           R5, R4, #0x22C                                         ; +0x54, 0x663df8\nSTR.W           R3, [R4,#0x228]                                        ; +0x58, 0x663dfc\nLDR             R3, [R0]                                               ; +0x5c, 0x663e00\nLDR             R3, [R3,#0x60]                                         ; +0x5e, 0x663e02\nBLX             R3                                                     ; +0x60, 0x663e04\nMOV             R2, R9                                                 ; +0x62, 0x663e06\nMOV             R1, R0                                                 ; +0x64, 0x663e08\nMOV             R0, R10                                                ; +0x66, 0x663e0a\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x68, 0x663e0c\nMOV             R1, R10                                                ; +0x6c, 0x663e10\nMOV             R0, R5                                                 ; +0x6e, 0x663e12\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x70, 0x663e14\nLDR             R1, =(unk_D2D178 - 0x663E20)                           ; +0x74, 0x663e18\nMOV             R0, R5                                                 ; +0x76, 0x663e1a\nADD             R1, PC; unk_D2D178                                     ; +0x78, 0x663e1c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x7a, 0x663e1e\nLDR             R3, [R4]                                               ; +0x7e, 0x663e22\nMOV             R0, R4                                                 ; +0x80, 0x663e24\nMOV             R1, R7                                                 ; +0x82, 0x663e26\nMOV             R2, R8                                                 ; +0x84, 0x663e28\nLDR.W           R3, [R3,#0x1C4]                                        ; +0x86, 0x663e2a\nBLX             R3                                                     ; +0x8a, 0x663e2e\nMOV             R2, R8                                                 ; +0x8c, 0x663e30\nMOV             R0, R4                                                 ; +0x8e, 0x663e32\nMOV             R1, R7                                                 ; +0x90, 0x663e34\nBL              _ZN12FLAlertLayer12ccTouchBeganEPN7cocos2d7CCTouchEPNS0_7CCEventE; FLAlertLayer::ccTouchBegan(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x92, 0x663e36\nLDR             R2, [SP,#0x38+var_4]                                   ; +0x96, 0x663e3a\nLDR             R3, [R6]                                               ; +0x98, 0x663e3c\nCMP             R2, R3                                                 ; +0x9a, 0x663e3e\nBEQ             loc_663E46                                             ; +0x9c, 0x663e40\nBLX             __stack_chk_fail                                       ; +0x9e, 0x663e42\nADD             SP, SP, #0x38 ; '8'                                    ; +0xa2, 0x663e46\nPOP.W           {R4-R10,PC}                                            ; +0xa4, 0x663e48", "xrefs": ["`non-virtual thunk to'CreateParticlePopup::ccTouchBegan @ 0x663e60"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}