{"type": "func", "start": 4300048480, "end": 4300048616, "name": "EditorSoundsLayer::ccTouchEnded", "pseudocode": "// \n// EditorSoundsLayer::ccTouchEnded from 0x1004d8860 to 0x1004d88e8 (136 bytes)\n// \n// 2 xrefs:\n// > sub_1004D88E8 @ 0x1004d88ec\n// > <???> @ 0x10098a9e0\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::ccTouchEnded(__int64 a1, __int64 a2)\n{\n  __int64 v4; // x0\n  char v5; // w22\n  __int64 v6; // x8\n\n  v4 = *(_QWORD *)(a1 + 1152);\n  if ( v4 )\n  {\n    v5 = *(_BYTE *)(v4 + 480);\n    sub_100525820(v4, a2);\n    if ( (*(_BYTE *)(a1 + 1168) & 1) != 0 )\n    {\n      if ( (v5 & 1) != 0 )\n      {\n        v6 = 920;\nLABEL_7:\n        (*(void (**)(void))(**(_QWORD **)(a1 + 1160) + v6))();\n        *(_BYTE *)(a1 + 1168) = 0;\n        return FLAlertLayer::ccTouchEnded(a1, a2);\n      }\nLABEL_6:\n      v6 = 912;\n      goto LABEL_7;\n    }\n  }\n  else if ( (*(_BYTE *)(a1 + 1168) & 1) != 0 )\n  {\n    goto LABEL_6;\n  }\n  return FLAlertLayer::ccTouchEnded(a1, a2);\n}", "assembly": "; \n; EditorSoundsLayer::ccTouchEnded from 0x1004d8860 to 0x1004d88e8 (136 bytes)\n; \n; 2 xrefs:\n; > sub_1004D88E8 @ 0x1004d88ec\n; > <???> @ 0x10098a9e0\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; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1004d8860\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1004d8864\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1004d8868\nADD             X29, SP, #0x20                                         ; +0xc, 0x1004d886c\nMOV             X19, X2                                                ; +0x10, 0x1004d8870\nMOV             X20, X1                                                ; +0x14, 0x1004d8874\nMOV             X21, X0                                                ; +0x18, 0x1004d8878\nLDR             X0, [X0,#0x480]                                        ; +0x1c, 0x1004d887c\nCBZ             X0, loc_1004D88A4                                      ; +0x20, 0x1004d8880\nLDRB            W22, [X0,#0x1E0]                                       ; +0x24, 0x1004d8884\nMOV             X1, X20                                                ; +0x28, 0x1004d8888\nBL              sub_100525820                                          ; +0x2c, 0x1004d888c\nLDRB            W8, [X21,#0x490]                                       ; +0x30, 0x1004d8890\nTBZ             W8, #0, loc_1004D88CC                                  ; +0x34, 0x1004d8894\nTBZ             W22, #0, loc_1004D88AC                                 ; +0x38, 0x1004d8898\nMOV             W8, #0x398                                             ; +0x3c, 0x1004d889c\nB               loc_1004D88B0                                          ; +0x40, 0x1004d88a0\nLDRB            W8, [X21,#0x490]                                       ; +0x44, 0x1004d88a4\nTBZ             W8, #0, loc_1004D88CC                                  ; +0x48, 0x1004d88a8\nMOV             W8, #0x390                                             ; +0x4c, 0x1004d88ac\nLDR             X0, [X21,#0x488]                                       ; +0x50, 0x1004d88b0\nLDR             X9, [X0]                                               ; +0x54, 0x1004d88b4\nLDR             X8, [X9,X8]                                            ; +0x58, 0x1004d88b8\nMOV             X1, X20                                                ; +0x5c, 0x1004d88bc\nMOV             X2, X19                                                ; +0x60, 0x1004d88c0\nBLR             X8                                                     ; +0x64, 0x1004d88c4\nSTRB            WZR, [X21,#0x490]                                      ; +0x68, 0x1004d88c8\nMOV             X0, X21                                                ; +0x6c, 0x1004d88cc\nMOV             X1, X20                                                ; +0x70, 0x1004d88d0\nMOV             X2, X19                                                ; +0x74, 0x1004d88d4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x78, 0x1004d88d8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x7c, 0x1004d88dc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x80, 0x1004d88e0\nB               FLAlertLayer__ccTouchEnded                             ; +0x84, 0x1004d88e4", "xrefs": ["sub_1004D88E8 @ 0x1004d88ec", "<???> @ 0x10098a9e0"], "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"}