{"type": "func", "start": 5501212, "end": 5501260, "name": "BrowseSmartTemplateLayer::onClick", "pseudocode": "// \n// BrowseSmartTemplateLayer::onClick from 0x53f11c to 0x53f14c (48 bytes)\n// \n// 0 xrefs:\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 BrowseSmartTemplateLayer::onClick(BrowseSmartTemplateLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  BrowseSmartTemplateLayer *v4; // r0\n  int v5; // r1\n\n  v3 = a2->getTag(a2);\n  if ( v3 == 1 )\n  {\n    v4 = a1;\n    v5 = a1->m_page - 1;\nLABEL_6:\n    BrowseSmartTemplateLayer::goToPage(v4, v5);\n    return;\n  }\n  if ( v3 == 2 )\n  {\n    v4 = a1;\n    v5 = a1->m_page + 1;\n    goto LABEL_6;\n  }\n}", "assembly": "; \n; BrowseSmartTemplateLayer::onClick from 0x53f11c to 0x53f14c (48 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, [R1]                                               ; +0x0, 0x53f11c\nPUSH            {R4,LR}                                                ; +0x2, 0x53f11e\nMOV             R4, R0                                                 ; +0x4, 0x53f120\nLDR             R3, [R3,#0x20]                                         ; +0x6, 0x53f122\nMOV             R0, R1                                                 ; +0x8, 0x53f124\nBLX             R3                                                     ; +0xa, 0x53f126\nCMP             R0, #1                                                 ; +0xc, 0x53f128\nBEQ             loc_53F132                                             ; +0xe, 0x53f12a\nCMP             R0, #2                                                 ; +0x10, 0x53f12c\nBEQ             loc_53F13C                                             ; +0x12, 0x53f12e\nPOP             {R4,PC}                                                ; +0x14, 0x53f130\nLDR.W           R1, [R4,#0x1F8]                                        ; +0x16, 0x53f132\nMOV             R0, R4                                                 ; +0x1a, 0x53f136\nSUBS            R1, #1                                                 ; +0x1c, 0x53f138\nB               loc_53F144                                             ; +0x1e, 0x53f13a\nLDR.W           R1, [R4,#0x1F8]                                        ; +0x20, 0x53f13c\nMOV             R0, R4; this                                           ; +0x24, 0x53f140\nADDS            R1, #1; int                                            ; +0x26, 0x53f142\nPOP.W           {R4,LR}                                                ; +0x28, 0x53f144\nB.W             _ZN24BrowseSmartTemplateLayer8goToPageEi; BrowseSmartTemplateLayer::goToPage(int) ; +0x2c, 0x53f148", "xrefs": [], "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"}