{"type": "func", "start": 4299435528, "end": 4299435780, "name": "MenuGameLayer::ccTouchBegan", "pseudocode": "// \n// MenuGameLayer::ccTouchBegan from 0x100442e08 to 0x100442f04 (252 bytes)\n// \n// 2 xrefs:\n// > sub_100442F04 @ 0x100442f10\n// > <???> @ 0x1009641d0\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:05:13 +0000\n// \n\n__int64 __fastcall MenuGameLayer::ccTouchBegan(__int64 a1, float32x2_t *a2)\n{\n  float32x2_t *v3; // x0\n  __int64 v4; // x8\n  int v5; // w8\n  char *v6; // x20\n  __int64 v7; // x0\n  __int64 v9; // [xsp+0h] [xbp-20h] BYREF\n  float32x2_t v10; // [xsp+8h] [xbp-18h] BYREF\n\n  cocos2d::CCTouch::getLocation(a2, (float *)&v10);\n  cocos2d::CCNode::convertToNodeSpace(a1, (__int64)&v10, &v9);\n  sub_10002630C(&v10, (double *)&v9);\n  if ( v10.f32[0] > 50.0 )\n  {\n    v3 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 432) + 192LL))(\n                          *(_QWORD *)(a1 + 432),\n                          v10.f32[0]);\n    if ( cocos2d::ccpDistance(v3, &v10) <= 30.0 )\n    {\n      if ( (PlayerObject::isFlying(*(_BYTE **)(a1 + 432)) & 1) != 0 )\n        goto LABEL_12;\n      v4 = *(_QWORD *)(a1 + 432);\n      if ( (*(_BYTE *)(v4 + 2419) & 1) != 0 || (*(_BYTE *)(v4 + 2421) & 1) != 0 || *(float *)(v4 + 2472) != 1.0 )\n        goto LABEL_12;\n      v5 = *(_DWORD *)(v4 + 1560);\n      if ( v5 == 55 )\n      {\n        v6 = \"geometry.ach.secret11\";\n      }\n      else\n      {\n        if ( v5 != 50 )\n        {\nLABEL_12:\n          MenuGameLayer::destroyPlayer(a1);\n          return 1;\n        }\n        v6 = \"geometry.ach.secret12\";\n      }\n      v7 = GameManager::sharedState();\n      GameManager::reportAchievementWithID(v7, v6, 100, 0);\n      goto LABEL_12;\n    }\n  }\n  return 1;\n}", "assembly": "; \n; MenuGameLayer::ccTouchBegan from 0x100442e08 to 0x100442f04 (252 bytes)\n; \n; 2 xrefs:\n; > sub_100442F04 @ 0x100442f10\n; > <???> @ 0x1009641d0\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:05:13 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x100442e08\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100442e0c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100442e10\nADD             X29, SP, #0x20                                         ; +0xc, 0x100442e14\nMOV             X19, X0                                                ; +0x10, 0x100442e18\nADD             X8, SP, #0x20+var_18                                   ; +0x14, 0x100442e1c\nMOV             X0, X1                                                 ; +0x18, 0x100442e20\nBL              cocos2d__CCTouch__getLocation                          ; +0x1c, 0x100442e24\nMOV             X8, SP                                                 ; +0x20, 0x100442e28\nADD             X1, SP, #0x20+var_18                                   ; +0x24, 0x100442e2c\nMOV             X0, X19                                                ; +0x28, 0x100442e30\nBL              cocos2d__CCNode__convertToNodeSpace                    ; +0x2c, 0x100442e34\nADD             X0, SP, #0x20+var_18                                   ; +0x30, 0x100442e38\nMOV             X1, SP                                                 ; +0x34, 0x100442e3c\nBL              sub_10002630C                                          ; +0x38, 0x100442e40\nLDR             S0, [SP,#0x20+var_18]                                  ; +0x3c, 0x100442e44\nMOV             W8, #0x42480000                                        ; +0x40, 0x100442e48\nFMOV            S1, W8                                                 ; +0x44, 0x100442e4c\nFCMP            S0, S1                                                 ; +0x48, 0x100442e50\nB.LE            loc_100442EF0                                          ; +0x4c, 0x100442e54\nLDR             X0, [X19,#0x1B0]                                       ; +0x50, 0x100442e58\nLDR             X8, [X0]                                               ; +0x54, 0x100442e5c\nLDR             X8, [X8,#0xC0]                                         ; +0x58, 0x100442e60\nBLR             X8                                                     ; +0x5c, 0x100442e64\nADD             X1, SP, #0x20+var_18                                   ; +0x60, 0x100442e68\nBL              cocos2d__ccpDistance                                   ; +0x64, 0x100442e6c\nFMOV            S1, #30.0                                              ; +0x68, 0x100442e70\nFCMP            S0, S1                                                 ; +0x6c, 0x100442e74\nB.HI            loc_100442EF0                                          ; +0x70, 0x100442e78\nLDR             X0, [X19,#0x1B0]                                       ; +0x74, 0x100442e7c\nBL              PlayerObject__isFlying                                 ; +0x78, 0x100442e80\nTBNZ            W0, #0, loc_100442EE8                                  ; +0x7c, 0x100442e84\nLDR             X8, [X19,#0x1B0]                                       ; +0x80, 0x100442e88\nLDRB            W9, [X8,#0x973]                                        ; +0x84, 0x100442e8c\nTBNZ            W9, #0, loc_100442EE8                                  ; +0x88, 0x100442e90\nLDRB            W9, [X8,#0x975]                                        ; +0x8c, 0x100442e94\nTBNZ            W9, #0, loc_100442EE8                                  ; +0x90, 0x100442e98\nLDR             S0, [X8,#0x9A8]                                        ; +0x94, 0x100442e9c\nFMOV            S1, #1.0                                               ; +0x98, 0x100442ea0\nFCMP            S0, S1                                                 ; +0x9c, 0x100442ea4\nB.NE            loc_100442EE8                                          ; +0xa0, 0x100442ea8\nLDR             W8, [X8,#0x618]                                        ; +0xa4, 0x100442eac\nCMP             W8, #0x37 ; '7'                                        ; +0xa8, 0x100442eb0\nB.EQ            loc_100442ECC                                          ; +0xac, 0x100442eb4\nCMP             W8, #0x32 ; '2'                                        ; +0xb0, 0x100442eb8\nB.NE            loc_100442EE8                                          ; +0xb4, 0x100442ebc\nADRL            X20, aGeometryAchSec_12; \"geometry.ach.secret12\"       ; +0xb8, 0x100442ec0\nB               loc_100442ED4                                          ; +0xc0, 0x100442ec8\nADRL            X20, aGeometryAchSec_11; \"geometry.ach.secret11\"       ; +0xc4, 0x100442ecc\nBL              GameManager__sharedState                               ; +0xcc, 0x100442ed4\nMOV             X1, X20                                                ; +0xd0, 0x100442ed8\nMOV             W2, #0x64 ; 'd'                                        ; +0xd4, 0x100442edc\nMOV             W3, #0                                                 ; +0xd8, 0x100442ee0\nBL              GameManager__reportAchievementWithID                   ; +0xdc, 0x100442ee4\nMOV             X0, X19                                                ; +0xe0, 0x100442ee8\nBL              MenuGameLayer__destroyPlayer                           ; +0xe4, 0x100442eec\nMOV             W0, #1                                                 ; +0xe8, 0x100442ef0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xec, 0x100442ef4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xf0, 0x100442ef8\nADD             SP, SP, #0x30 ; '0'                                    ; +0xf4, 0x100442efc\nRET                                                                    ; +0xf8, 0x100442f00", "xrefs": ["sub_100442F04 @ 0x100442f10", "<???> @ 0x1009641d0"], "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"}