{"type": "func", "start": 4300048080, "end": 4300048304, "name": "EditorSoundsLayer::ccTouchBegan", "pseudocode": "// \n// EditorSoundsLayer::ccTouchBegan from 0x1004d86d0 to 0x1004d87b0 (224 bytes)\n// \n// 2 xrefs:\n// > sub_1004D87B0 @ 0x1004d87b4\n// > <???> @ 0x10098a9d0\n// \n// This function is hookable on this platform (idp: arm, 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:06:32 +0000\n// \n\n__int64 __fastcall EditorSoundsLayer::ccTouchBegan(__int64 a1, float32x2_t *a2, __int64 a3)\n{\n  __int64 v6; // x0\n  __int64 v7; // x0\n  int v8; // w22\n  int v9; // w0\n  float v11[4]; // [xsp+8h] [xbp-48h] BYREF\n  __int64 v12; // [xsp+18h] [xbp-38h] BYREF\n  __int64 v13; // [xsp+20h] [xbp-30h] BYREF\n  float v14; // [xsp+28h] [xbp-28h] BYREF\n\n  if ( !*(_QWORD *)(a1 + 1152) )\n    goto LABEL_7;\n  cocos2d::CCTouch::getLocation(a2, &v14);\n  cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 1152), (__int64)&unk_1009F80B0, &v13);\n  sub_100026438(&v12, (double *)(*(_QWORD *)(a1 + 1152) + 424LL));\n  sub_1000262CC(v11, *(float *)&v13, *((float *)&v13 + 1), *(float *)&v12, *((float *)&v12 + 1));\n  if ( !sub_1000265E4(v11, &v14) )\n    goto LABEL_7;\n  v6 = *(_QWORD *)(a1 + 1152);\n  if ( v6 )\n    sub_100525210(v6, a2);\n  v7 = *(_QWORD *)(a1 + 1160);\n  if ( v7 )\n    v8 = (*(__int64 (__fastcall **)(__int64, float32x2_t *, __int64))(*(_QWORD *)v7 + 896LL))(v7, a2, a3);\n  else\nLABEL_7:\n    v8 = 0;\n  v9 = FLAlertLayer::ccTouchBegan(a1, (__int64)a2, a3);\n  *(_BYTE *)(a1 + 1168) = v8;\n  return (v8 | v9) & 1;\n}", "assembly": "; \n; EditorSoundsLayer::ccTouchBegan from 0x1004d86d0 to 0x1004d87b0 (224 bytes)\n; \n; 2 xrefs:\n; > sub_1004D87B0 @ 0x1004d87b4\n; > <???> @ 0x10098a9d0\n; \n; This function is hookable on this platform (idp: arm, 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:06:32 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x1004d86d0\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x4, 0x1004d86d4\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x8, 0x1004d86d8\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc, 0x1004d86dc\nADD             X29, SP, #0x50                                         ; +0x10, 0x1004d86e0\nMOV             X20, X2                                                ; +0x14, 0x1004d86e4\nMOV             X21, X1                                                ; +0x18, 0x1004d86e8\nMOV             X19, X0                                                ; +0x1c, 0x1004d86ec\nLDR             X8, [X0,#0x480]                                        ; +0x20, 0x1004d86f0\nCBZ             X8, loc_1004D877C                                      ; +0x24, 0x1004d86f4\nADD             X8, SP, #0x50+var_28                                   ; +0x28, 0x1004d86f8\nMOV             X0, X21                                                ; +0x2c, 0x1004d86fc\nBL              cocos2d__CCTouch__getLocation                          ; +0x30, 0x1004d8700\nLDR             X0, [X19,#0x480]                                       ; +0x34, 0x1004d8704\nADRL            X1, unk_1009F80B0                                      ; +0x38, 0x1004d8708\nADD             X8, SP, #0x50+var_30                                   ; +0x40, 0x1004d8710\nBL              cocos2d__CCNode__convertToWorldSpace                   ; +0x44, 0x1004d8714\nLDR             X8, [X19,#0x480]                                       ; +0x48, 0x1004d8718\nADD             X0, SP, #0x50+var_38                                   ; +0x4c, 0x1004d871c\nADD             X1, X8, #0x1A8                                         ; +0x50, 0x1004d8720\nBL              sub_100026438                                          ; +0x54, 0x1004d8724\nLDP             S0, S1, [SP,#0x50+var_30]                              ; +0x58, 0x1004d8728\nLDP             S2, S3, [SP,#0x50+var_38]                              ; +0x5c, 0x1004d872c\nADD             X0, SP, #0x50+var_48                                   ; +0x60, 0x1004d8730\nBL              sub_1000262CC                                          ; +0x64, 0x1004d8734\nADD             X0, SP, #0x50+var_48                                   ; +0x68, 0x1004d8738\nADD             X1, SP, #0x50+var_28                                   ; +0x6c, 0x1004d873c\nBL              sub_1000265E4                                          ; +0x70, 0x1004d8740\nCBZ             W0, loc_1004D877C                                      ; +0x74, 0x1004d8744\nLDR             X0, [X19,#0x480]                                       ; +0x78, 0x1004d8748\nCBZ             X0, loc_1004D8758                                      ; +0x7c, 0x1004d874c\nMOV             X1, X21                                                ; +0x80, 0x1004d8750\nBL              sub_100525210                                          ; +0x84, 0x1004d8754\nLDR             X0, [X19,#0x488]                                       ; +0x88, 0x1004d8758\nCBZ             X0, loc_1004D877C                                      ; +0x8c, 0x1004d875c\nLDR             X8, [X0]                                               ; +0x90, 0x1004d8760\nLDR             X8, [X8,#0x380]                                        ; +0x94, 0x1004d8764\nMOV             X1, X21                                                ; +0x98, 0x1004d8768\nMOV             X2, X20                                                ; +0x9c, 0x1004d876c\nBLR             X8                                                     ; +0xa0, 0x1004d8770\nMOV             X22, X0                                                ; +0xa4, 0x1004d8774\nB               loc_1004D8780                                          ; +0xa8, 0x1004d8778\nMOV             W22, #0                                                ; +0xac, 0x1004d877c\nMOV             X0, X19                                                ; +0xb0, 0x1004d8780\nMOV             X1, X21                                                ; +0xb4, 0x1004d8784\nMOV             X2, X20                                                ; +0xb8, 0x1004d8788\nBL              FLAlertLayer__ccTouchBegan                             ; +0xbc, 0x1004d878c\nSTRB            W22, [X19,#0x490]                                      ; +0xc0, 0x1004d8790\nORR             W8, W22, W0                                            ; +0xc4, 0x1004d8794\nAND             W0, W8, #1                                             ; +0xc8, 0x1004d8798\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xcc, 0x1004d879c\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xd0, 0x1004d87a0\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xd4, 0x1004d87a4\nADD             SP, SP, #0x60 ; '`'                                    ; +0xd8, 0x1004d87a8\nRET                                                                    ; +0xdc, 0x1004d87ac", "xrefs": ["sub_1004D87B0 @ 0x1004d87b4", "<???> @ 0x10098a9d0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}