{"type": "func", "start": 4295435424, "end": 4295435520, "name": "BrowseSmartTemplateLayer::onClick", "pseudocode": "// \n// BrowseSmartTemplateLayer::onClick from 0x1000724a0 to 0x100072500 (96 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartTemplateLayer::baseSetup @ 0x100071b48\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall BrowseSmartTemplateLayer::onClick(BrowseSmartTemplateLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w0\n  int v4; // w8\n\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  if ( v3 == 1 )\n  {\n    v4 = -1;\n  }\n  else\n  {\n    if ( v3 != 2 )\n      return;\n    v4 = 1;\n  }\n  BrowseSmartTemplateLayer::goToPage(a1, a1->m_page + v4);\n}", "assembly": "; \n; BrowseSmartTemplateLayer::onClick from 0x1000724a0 to 0x100072500 (96 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartTemplateLayer::baseSetup @ 0x100071b48\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000724a0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000724a4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000724a8\nMOV             X19, X0                                                ; +0xc, 0x1000724ac\nLDR             X8, [X1]                                               ; +0x10, 0x1000724b0\nLDR             X8, [X8,#0x40]                                         ; +0x14, 0x1000724b4\nMOV             X0, X1                                                 ; +0x18, 0x1000724b8\nBLR             X8                                                     ; +0x1c, 0x1000724bc\nCMP             W0, #1                                                 ; +0x20, 0x1000724c0\nB.EQ            loc_1000724D8                                          ; +0x24, 0x1000724c4\nCMP             W0, #2                                                 ; +0x28, 0x1000724c8\nB.NE            loc_1000724F4                                          ; +0x2c, 0x1000724cc\nMOV             W8, #1                                                 ; +0x30, 0x1000724d0\nB               loc_1000724DC                                          ; +0x34, 0x1000724d4\nMOV             W8, #0xFFFFFFFF                                        ; +0x38, 0x1000724d8\nLDR             W9, [X19,#0x288]                                       ; +0x3c, 0x1000724dc\nADD             W1, W9, W8                                             ; +0x40, 0x1000724e0\nMOV             X0, X19                                                ; +0x44, 0x1000724e4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x48, 0x1000724e8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x4c, 0x1000724ec\nB               BrowseSmartTemplateLayer__goToPage                     ; +0x50, 0x1000724f0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x54, 0x1000724f4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x58, 0x1000724f8\nRET                                                                    ; +0x5c, 0x1000724fc", "xrefs": ["BrowseSmartTemplateLayer::baseSetup @ 0x100071b48"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}