{"type": "func", "start": 4299711888, "end": 4299712140, "name": "LevelPage::ccTouchBegan", "pseudocode": "// \n// LevelPage::ccTouchBegan from 0x100486590 to 0x10048668c (252 bytes)\n// \n// 2 xrefs:\n// > sub_10048668C @ 0x100486690\n// > <???> @ 0x10096f0d0\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:49 +0000\n// \n\n__int64 __fastcall LevelPage::ccTouchBegan(_QWORD **a1, float32x2_t *a2)\n{\n  _QWORD *v2; // x8\n  double v5; // d0\n  float32x2_t *v6; // x0\n  __int64 v7; // x0\n  __int64 v8; // x0\n  int v9; // w0\n  __int64 v10; // [xsp+0h] [xbp-20h] BYREF\n  float32x2_t v11; // [xsp+8h] [xbp-18h] BYREF\n\n  v2 = a1[53];\n  if ( !v2 )\n    return 0;\n  if ( !a1[70] || *((_DWORD *)v2 + 82) - *((_DWORD *)v2 + 83) != -1 )\n    return 0;\n  cocos2d::CCTouch::getLocation(a2, (float *)&v11);\n  cocos2d::CCNode::convertToNodeSpace((__int64)a1, (__int64)&v11, &v10);\n  v5 = sub_10002630C(&v11, (double *)&v10);\n  v6 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD *, double))(*a1[70] + 192LL))(a1[70], v5);\n  if ( cocos2d::ccpDistance(v6, &v11) <= 30.0 )\n  {\n    ((void (__fastcall *)(_QWORD **, _QWORD))(*a1)[125])(a1, 0);\n    sub_10048595C(a1);\n    v7 = GameManager::sharedState();\n    GameManager::reportAchievementWithID(v7, \"geometry.ach.secret04\", 100, 0);\n    v8 = GameStatsManager::sharedState();\n    sub_1003D002C(v8, \"secret04\");\n    v9 = GameStatsManager::sharedState();\n    GameStatsManager::incrementStat_1(v9, \"8\");\n  }\n  return 1;\n}", "assembly": "; \n; LevelPage::ccTouchBegan from 0x100486590 to 0x10048668c (252 bytes)\n; \n; 2 xrefs:\n; > sub_10048668C @ 0x100486690\n; > <???> @ 0x10096f0d0\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:49 +0000\n; \nLDR             X8, [X0,#0x1A8]                                        ; +0x0, 0x100486590\nCBZ             X8, loc_1004865D0                                      ; +0x4, 0x100486594\nSUB             SP, SP, #0x30                                          ; +0x8, 0x100486598\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0xc, 0x10048659c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x10, 0x1004865a0\nADD             X29, SP, #0x20                                         ; +0x14, 0x1004865a4\nMOV             X19, X0                                                ; +0x18, 0x1004865a8\nLDR             X9, [X0,#0x230]                                        ; +0x1c, 0x1004865ac\nCBZ             X9, loc_1004865C8                                      ; +0x20, 0x1004865b0\nLDR             W9, [X8,#0x148]                                        ; +0x24, 0x1004865b4\nLDR             W8, [X8,#0x14C]                                        ; +0x28, 0x1004865b8\nSUB             W8, W9, W8                                             ; +0x2c, 0x1004865bc\nCMN             W8, #1                                                 ; +0x30, 0x1004865c0\nB.EQ            loc_1004865D8                                          ; +0x34, 0x1004865c4\nMOV             W0, #0                                                 ; +0x38, 0x1004865c8\nB               loc_10048667C                                          ; +0x3c, 0x1004865cc\nMOV             W0, #0                                                 ; +0x40, 0x1004865d0\nRET                                                                    ; +0x44, 0x1004865d4\nADD             X8, SP, #0x20+var_18                                   ; +0x48, 0x1004865d8\nMOV             X0, X1                                                 ; +0x4c, 0x1004865dc\nBL              cocos2d__CCTouch__getLocation                          ; +0x50, 0x1004865e0\nMOV             X8, SP                                                 ; +0x54, 0x1004865e4\nADD             X1, SP, #0x20+var_18                                   ; +0x58, 0x1004865e8\nMOV             X0, X19                                                ; +0x5c, 0x1004865ec\nBL              cocos2d__CCNode__convertToNodeSpace                    ; +0x60, 0x1004865f0\nADD             X0, SP, #0x20+var_18                                   ; +0x64, 0x1004865f4\nMOV             X1, SP                                                 ; +0x68, 0x1004865f8\nBL              sub_10002630C                                          ; +0x6c, 0x1004865fc\nLDR             X0, [X19,#0x230]                                       ; +0x70, 0x100486600\nLDR             X8, [X0]                                               ; +0x74, 0x100486604\nLDR             X8, [X8,#0xC0]                                         ; +0x78, 0x100486608\nBLR             X8                                                     ; +0x7c, 0x10048660c\nADD             X1, SP, #0x20+var_18                                   ; +0x80, 0x100486610\nBL              cocos2d__ccpDistance                                   ; +0x84, 0x100486614\nFMOV            S1, #30.0                                              ; +0x88, 0x100486618\nFCMP            S0, S1                                                 ; +0x8c, 0x10048661c\nB.HI            loc_100486678                                          ; +0x90, 0x100486620\nLDR             X8, [X19]                                              ; +0x94, 0x100486624\nLDR             X8, [X8,#0x3E8]                                        ; +0x98, 0x100486628\nMOV             X0, X19                                                ; +0x9c, 0x10048662c\nMOV             W1, #0                                                 ; +0xa0, 0x100486630\nBLR             X8                                                     ; +0xa4, 0x100486634\nMOV             X0, X19                                                ; +0xa8, 0x100486638\nBL              sub_10048595C                                          ; +0xac, 0x10048663c\nBL              GameManager__sharedState                               ; +0xb0, 0x100486640\nADRL            X1, aGeometryAchSec_4; \"geometry.ach.secret04\"         ; +0xb4, 0x100486644\nMOV             W2, #0x64 ; 'd'                                        ; +0xbc, 0x10048664c\nMOV             W3, #0                                                 ; +0xc0, 0x100486650\nBL              GameManager__reportAchievementWithID                   ; +0xc4, 0x100486654\nBL              GameStatsManager__sharedState                          ; +0xc8, 0x100486658\nADRL            X1, aSecret04; \"secret04\"                              ; +0xcc, 0x10048665c\nBL              sub_1003D002C                                          ; +0xd4, 0x100486664\nBL              GameStatsManager__sharedState                          ; +0xd8, 0x100486668\nADRL            X1, a8; \"8\"                                            ; +0xdc, 0x10048666c\nBL              GameStatsManager__incrementStat_1                      ; +0xe4, 0x100486674\nMOV             W0, #1                                                 ; +0xe8, 0x100486678\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xec, 0x10048667c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xf0, 0x100486680\nADD             SP, SP, #0x30 ; '0'                                    ; +0xf4, 0x100486684\nRET                                                                    ; +0xf8, 0x100486688", "xrefs": ["sub_10048668C @ 0x100486690", "<???> @ 0x10096f0d0"], "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"}