{"type": "func", "start": 4049284, "end": 4049446, "name": "CCTextInputNode::containsTouchPoint", "pseudocode": "// \n// CCTextInputNode::containsTouchPoint from 0x3dc984 to 0x3dca26 (162 bytes)\n// \n// 8 xrefs:\n// > CCTextInputNode::ccTouchBegan @ 0x3e262e\n// > CCTextInputNode::rightClick @ 0x3e2878\n// > GJRotationControl::ccTouchBegan @ 0x6eb866\n// > GJScaleControl::ccTouchBegan @ 0x6ebcfe\n// > GJScaleControl::ccTouchBegan @ 0x6ebd26\n// > GJScaleControl::ccTouchBegan @ 0x6ebd52\n// > EmotePickerPopup::ccTouchBegan @ 0x77882c\n// > EditorWindowPopup::touchIsOnField @ 0x78ce3a\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:46:48 +0000\n// \n\nint __fastcall CCTextInputNode::containsTouchPoint(int a1)\n{\n  const cocos2d::CCSize *v2; // r0\n  const cocos2d::CCPoint *v3; // r0\n  _BYTE v5[8]; // [sp+Ch] [bp-2Ch] BYREF\n  float v6; // [sp+14h] [bp-24h] BYREF\n  float v7; // [sp+18h] [bp-20h]\n  float v8[2]; // [sp+1Ch] [bp-1Ch] BYREF\n  _BYTE v9[16]; // [sp+24h] [bp-14h] BYREF\n\n  cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v5, (const cocos2d::CCPoint *)a1);\n  v2 = (const cocos2d::CCSize *)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 164))(a1);\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v6, v2);\n  v3 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 416) + 152))(*(_DWORD *)(a1 + 416));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v3);\n  cocos2d::CCRect::CCRect(\n    (cocos2d::CCRect *)v9,\n    (float)-(float)(v8[0] * v6) - *(float *)(a1 + 444),\n    (float)-(float)(v8[1] * v7) - *(float *)(a1 + 448),\n    v6 + (float)(*(float *)(a1 + 444) + *(float *)(a1 + 444)),\n    v7 + (float)(*(float *)(a1 + 448) + *(float *)(a1 + 448)));\n  return cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v9, (const cocos2d::CCPoint *)v5);\n}", "assembly": "; \n; CCTextInputNode::containsTouchPoint from 0x3dc984 to 0x3dca26 (162 bytes)\n; \n; 8 xrefs:\n; > CCTextInputNode::ccTouchBegan @ 0x3e262e\n; > CCTextInputNode::rightClick @ 0x3e2878\n; > GJRotationControl::ccTouchBegan @ 0x6eb866\n; > GJScaleControl::ccTouchBegan @ 0x6ebcfe\n; > GJScaleControl::ccTouchBegan @ 0x6ebd26\n; > GJScaleControl::ccTouchBegan @ 0x6ebd52\n; > EmotePickerPopup::ccTouchBegan @ 0x77882c\n; > EditorWindowPopup::touchIsOnField @ 0x78ce3a\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:46:48 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x3dc984\nSUB             SP, SP, #0x38; float                                   ; +0x2, 0x3dc986\nLDR             R5, =(__stack_chk_guard_ptr - 0x3DC994)                ; +0x4, 0x3dc988\nADD             R6, SP, #0x38+var_2C                                   ; +0x6, 0x3dc98a\nMOV             R4, R0                                                 ; +0x8, 0x3dc98c\nMOV             R2, R1                                                 ; +0xa, 0x3dc98e\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3dc990\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x3dc992\nMOV             R1, R4; cocos2d::CCPoint *                             ; +0x10, 0x3dc994\nMOV             R0, R6; this                                           ; +0x12, 0x3dc996\nLDR             R3, [R5]                                               ; +0x14, 0x3dc998\nSTR             R3, [SP,#0x38+var_4]                                   ; +0x16, 0x3dc99a\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x18, 0x3dc99c\nLDR             R3, [R4]                                               ; +0x1c, 0x3dc9a0\nMOV             R0, R4                                                 ; +0x1e, 0x3dc9a2\nLDR.W           R3, [R3,#0xA4]                                         ; +0x20, 0x3dc9a4\nBLX             R3                                                     ; +0x24, 0x3dc9a8\nMOV             R1, R0; cocos2d::CCSize *                              ; +0x26, 0x3dc9aa\nADD             R0, SP, #0x38+var_24; this                             ; +0x28, 0x3dc9ac\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x2a, 0x3dc9ae\nLDR.W           R0, [R4,#0x1A0]                                        ; +0x2e, 0x3dc9b2\nLDR             R3, [R0]                                               ; +0x32, 0x3dc9b6\nLDR.W           R3, [R3,#0x98]                                         ; +0x34, 0x3dc9b8\nBLX             R3                                                     ; +0x38, 0x3dc9bc\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x3a, 0x3dc9be\nADD             R0, SP, #0x38+var_1C; this                             ; +0x3c, 0x3dc9c0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x3e, 0x3dc9c2\nVLDR            S15, [R4,#0x1C0]                                       ; +0x42, 0x3dc9c6\nVLDR            S11, [SP,#0x38+var_20]                                 ; +0x46, 0x3dc9ca\nVADD.F32        S13, S15, S15                                          ; +0x4a, 0x3dc9ce\nVLDR            S14, [R4,#0x1BC]                                       ; +0x4e, 0x3dc9d2\nADD             R4, SP, #0x38+var_14                                   ; +0x52, 0x3dc9d6\nMOV             R0, R4; this                                           ; +0x54, 0x3dc9d8\nVLDR            S12, [SP,#0x38+var_24]                                 ; +0x56, 0x3dc9da\nVADD.F32        S13, S11, S13                                          ; +0x5a, 0x3dc9de\nVSTR            S13, [SP,#0x38+var_38]                                 ; +0x5e, 0x3dc9e2\nVLDR            S13, [SP,#0x38+var_1C]                                 ; +0x62, 0x3dc9e6\nVADD.F32        S10, S14, S14                                          ; +0x66, 0x3dc9ea\nVNMLA.F32       S14, S13, S12                                          ; +0x6a, 0x3dc9ee\nVMOV            R1, S14; float                                         ; +0x6e, 0x3dc9f2\nVLDR            S14, [SP,#0x38+var_18]                                 ; +0x72, 0x3dc9f6\nVNMLA.F32       S15, S14, S11                                          ; +0x76, 0x3dc9fa\nVMOV            R2, S15; float                                         ; +0x7a, 0x3dc9fe\nVADD.F32        S15, S12, S10                                          ; +0x7e, 0x3dca02\nVMOV            R3, S15; float                                         ; +0x82, 0x3dca06\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x86, 0x3dca0a\nMOV             R0, R4; this                                           ; +0x8a, 0x3dca0e\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0x8c, 0x3dca10\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x8e, 0x3dca12\nLDR             R2, [SP,#0x38+var_4]                                   ; +0x92, 0x3dca16\nLDR             R3, [R5]                                               ; +0x94, 0x3dca18\nCMP             R2, R3                                                 ; +0x96, 0x3dca1a\nBEQ             loc_3DCA22                                             ; +0x98, 0x3dca1c\nBLX             __stack_chk_fail                                       ; +0x9a, 0x3dca1e\nADD             SP, SP, #0x38 ; '8'                                    ; +0x9e, 0x3dca22\nPOP             {R4-R6,PC}                                             ; +0xa0, 0x3dca24", "xrefs": ["CCTextInputNode::ccTouchBegan @ 0x3e262e", "CCTextInputNode::rightClick @ 0x3e2878", "GJRotationControl::ccTouchBegan @ 0x6eb866", "GJScaleControl::ccTouchBegan @ 0x6ebcfe", "GJScaleControl::ccTouchBegan @ 0x6ebd26", "GJScaleControl::ccTouchBegan @ 0x6ebd52", "EmotePickerPopup::ccTouchBegan @ 0x77882c", "EditorWindowPopup::touchIsOnField @ 0x78ce3a"], "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"}