{"type": "func", "start": 5370301920, "end": 5370302218, "name": "EditorSFXActionConfigLayer::ccTouchBegan", "pseudocode": "// \n// EditorSFXActionConfigLayer::ccTouchBegan from 0x140184de0 to 0x140184f0a (298 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14074ad38\n// > <???> @ 0x140918d94\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:27:38 +0000\n// \n\nchar __fastcall EditorSFXActionConfigLayer::ccTouchBegan(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n  char result; // al\n  _BYTE v9[8]; // [rsp+30h] [rbp-28h] BYREF\n  _BYTE v10[32]; // [rsp+38h] [rbp-20h] BYREF\n  float v11; // [rsp+60h] [rbp+8h] BYREF\n  float v12; // [rsp+64h] [rbp+Ch]\n  float v13; // [rsp+78h] [rbp+20h] BYREF\n  float v14; // [rsp+7Ch] [rbp+24h]\n\n  if ( *(_QWORD *)(a1 + 712) )\n  {\n    cocos2d::CCTouch::getLocation(a2, v9);\n    cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 712), &v13, &unk_14090A5A8);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v11, (const struct cocos2d::CCSize *)(*(_QWORD *)(a1 + 712) + 424LL));\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v10, v13, v14, v11, v12);\n    if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v10, (const struct cocos2d::CCPoint *)v9) )\n    {\n      v6 = *(_QWORD *)(a1 + 712);\n      if ( v6 )\n        ScrollableContentLayer::handleTouchBegan(v6, a2);\n      v7 = *(_QWORD *)(a1 + 720);\n      if ( v7 )\n      {\n        if ( (*(unsigned __int8 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)(v7 + 320) + 8LL))(\n               v7 + 320,\n               a2,\n               a3) )\n        {\n          FLAlertLayer::ccTouchBegan(a1, a2, a3);\n          *(_BYTE *)(a1 + 728) = 1;\n          return 1;\n        }\n      }\n    }\n  }\n  result = FLAlertLayer::ccTouchBegan(a1, a2, a3);\n  *(_BYTE *)(a1 + 728) = 0;\n  if ( result )\n    return 1;\n  return result;\n}", "assembly": "; \n; EditorSFXActionConfigLayer::ccTouchBegan from 0x140184de0 to 0x140184f0a (298 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14074ad38\n; > <???> @ 0x140918d94\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:27:38 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140184de0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140184de5\npush    rdi                                                            ; +0xa, 0x140184dea\nsub     rsp, 50h                                                       ; +0xb, 0x140184deb\ncmp     qword ptr [rcx+2C8h], 0                                        ; +0xf, 0x140184def\nmov     rsi, r8                                                        ; +0x17, 0x140184df7\nmov     rdi, rdx                                                       ; +0x1a, 0x140184dfa\nmov     rbx, rcx                                                       ; +0x1d, 0x140184dfd\njz      loc_140184EE1                                                  ; +0x20, 0x140184e00\nlea     rdx, [rsp+58h+var_28]                                          ; +0x26, 0x140184e06\nmov     rcx, rdi                                                       ; +0x2b, 0x140184e0b\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x2e, 0x140184e0e\nmov     rcx, [rbx+2C8h]                                                ; +0x34, 0x140184e14\nlea     r8, unk_14090A5A8                                              ; +0x3b, 0x140184e1b\nlea     rdx, [rsp+58h+arg_18]                                          ; +0x42, 0x140184e22\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x47, 0x140184e27\nmov     rdx, [rbx+2C8h]                                                ; +0x4d, 0x140184e2d\nlea     rcx, [rsp+58h+arg_0]                                           ; +0x54, 0x140184e34\nadd     rdx, 1A8h                                                      ; +0x59, 0x140184e39\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0x60, 0x140184e40\nmovss   xmm0, [rsp+58h+arg_4]                                          ; +0x66, 0x140184e46\nlea     rcx, [rsp+58h+var_20]                                          ; +0x6c, 0x140184e4c\nmovss   xmm3, [rsp+58h+arg_0]                                          ; +0x71, 0x140184e51\nmovss   xmm2, [rsp+58h+arg_1C]                                         ; +0x77, 0x140184e57\nmovss   xmm1, [rsp+58h+arg_18]                                         ; +0x7d, 0x140184e5d\nmovss   [rsp+58h+var_38], xmm0                                         ; +0x83, 0x140184e63\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x89, 0x140184e69\nlea     rdx, [rsp+58h+var_28]                                          ; +0x8f, 0x140184e6f\nlea     rcx, [rsp+58h+var_20]                                          ; +0x94, 0x140184e74\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x99, 0x140184e79\ntest    al, al                                                         ; +0x9f, 0x140184e7f\njz      short loc_140184EE1                                            ; +0xa1, 0x140184e81\nmov     rcx, [rbx+2C8h]                                                ; +0xa3, 0x140184e83\ntest    rcx, rcx                                                       ; +0xaa, 0x140184e8a\njz      short loc_140184E97                                            ; +0xad, 0x140184e8d\nmov     rdx, rdi                                                       ; +0xaf, 0x140184e8f\ncall    ScrollableContentLayer__handleTouchBegan                       ; +0xb2, 0x140184e92\nmov     rcx, [rbx+2D0h]                                                ; +0xb7, 0x140184e97\ntest    rcx, rcx                                                       ; +0xbe, 0x140184e9e\njz      short loc_140184EE1                                            ; +0xc1, 0x140184ea1\nadd     rcx, 140h                                                      ; +0xc3, 0x140184ea3\nmov     r8, rsi                                                        ; +0xca, 0x140184eaa\nmov     rdx, rdi                                                       ; +0xcd, 0x140184ead\nmov     rax, [rcx]                                                     ; +0xd0, 0x140184eb0\ncall    qword ptr [rax+8]                                              ; +0xd3, 0x140184eb3\ntest    al, al                                                         ; +0xd6, 0x140184eb6\njz      short loc_140184EE1                                            ; +0xd8, 0x140184eb8\nmov     r8, rsi                                                        ; +0xda, 0x140184eba\nmov     rdx, rdi                                                       ; +0xdd, 0x140184ebd\nmov     rcx, rbx                                                       ; +0xe0, 0x140184ec0\ncall    FLAlertLayer__ccTouchBegan                                     ; +0xe3, 0x140184ec3\nmov     byte ptr [rbx+2D8h], 1                                         ; +0xe8, 0x140184ec8\nmov     al, 1                                                          ; +0xef, 0x140184ecf\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xf1, 0x140184ed1\nmov     rsi, [rsp+58h+arg_10]                                          ; +0xf6, 0x140184ed6\nadd     rsp, 50h                                                       ; +0xfb, 0x140184edb\npop     rdi                                                            ; +0xff, 0x140184edf\nretn                                                                   ; +0x100, 0x140184ee0\nmov     r8, rsi                                                        ; +0x101, 0x140184ee1\nmov     rdx, rdi                                                       ; +0x104, 0x140184ee4\nmov     rcx, rbx                                                       ; +0x107, 0x140184ee7\ncall    FLAlertLayer__ccTouchBegan                                     ; +0x10a, 0x140184eea\nmov     byte ptr [rbx+2D8h], 0                                         ; +0x10f, 0x140184eef\ntest    al, al                                                         ; +0x116, 0x140184ef6\njnz     short loc_140184ECF                                            ; +0x118, 0x140184ef8\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x11a, 0x140184efa\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x11f, 0x140184eff\nadd     rsp, 50h                                                       ; +0x124, 0x140184f04\npop     rdi                                                            ; +0x128, 0x140184f08\nretn                                                                   ; +0x129, 0x140184f09", "xrefs": ["<???> @ 0x14074ad38", "<???> @ 0x140918d94"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}