{"type": "func", "start": 5374938800, "end": 5374938876, "name": "BrowseSmartTemplateLayer::onClick", "pseudocode": "// \n// BrowseSmartTemplateLayer::onClick from 0x1405f0eb0 to 0x1405f0efc (76 bytes)\n// \n// 3 xrefs:\n// > BrowseSmartTemplateLayer::baseSetup @ 0x1405f05c9\n// > BrowseSmartTemplateLayer::baseSetup @ 0x1405f0675\n// > <???> @ 0x14092f270\n// \n// This function is hookable on this platform (idp: pc, 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:35:05 +0000\n// \n\nunsigned int __fastcall BrowseSmartTemplateLayer::onClick(__int64 a1, __int64 a2)\n{\n  unsigned int result; // eax\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) - 1;\n  if ( !result )\n    return BrowseSmartTemplateLayer::goToPage(a1, *(_DWORD *)(a1 + 680) - 1);\n  if ( result == 1 )\n    return BrowseSmartTemplateLayer::goToPage(a1, *(_DWORD *)(a1 + 680) + 1);\n  return result;\n}", "assembly": "; \n; BrowseSmartTemplateLayer::onClick from 0x1405f0eb0 to 0x1405f0efc (76 bytes)\n; \n; 3 xrefs:\n; > BrowseSmartTemplateLayer::baseSetup @ 0x1405f05c9\n; > BrowseSmartTemplateLayer::baseSetup @ 0x1405f0675\n; > <???> @ 0x14092f270\n; \n; This function is hookable on this platform (idp: pc, 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:35:05 +0000\n; \npush    rbx                                                            ; +0x0, 0x1405f0eb0\nsub     rsp, 20h                                                       ; +0x2, 0x1405f0eb2\nmov     rax, [rdx]                                                     ; +0x6, 0x1405f0eb6\nmov     rbx, rcx                                                       ; +0x9, 0x1405f0eb9\nmov     rcx, rdx                                                       ; +0xc, 0x1405f0ebc\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x1405f0ebf\nsub     eax, 1                                                         ; +0x12, 0x1405f0ec2\njz      short loc_1405F0EE1                                            ; +0x15, 0x1405f0ec5\ncmp     eax, 1                                                         ; +0x17, 0x1405f0ec7\njnz     short loc_1405F0EF6                                            ; +0x1a, 0x1405f0eca\nmov     edx, [rbx+2A8h]                                                ; +0x1c, 0x1405f0ecc\nmov     rcx, rbx                                                       ; +0x22, 0x1405f0ed2\ninc     edx                                                            ; +0x25, 0x1405f0ed5\nadd     rsp, 20h                                                       ; +0x27, 0x1405f0ed7\npop     rbx                                                            ; +0x2b, 0x1405f0edb\njmp     BrowseSmartTemplateLayer__goToPage                             ; +0x2c, 0x1405f0edc\nmov     edx, [rbx+2A8h]                                                ; +0x31, 0x1405f0ee1\nmov     rcx, rbx                                                       ; +0x37, 0x1405f0ee7\ndec     edx                                                            ; +0x3a, 0x1405f0eea\nadd     rsp, 20h                                                       ; +0x3c, 0x1405f0eec\npop     rbx                                                            ; +0x40, 0x1405f0ef0\njmp     BrowseSmartTemplateLayer__goToPage                             ; +0x41, 0x1405f0ef1\nadd     rsp, 20h                                                       ; +0x46, 0x1405f0ef6\npop     rbx                                                            ; +0x4a, 0x1405f0efa\nretn                                                                   ; +0x4b, 0x1405f0efb", "xrefs": ["BrowseSmartTemplateLayer::baseSetup @ 0x1405f05c9", "BrowseSmartTemplateLayer::baseSetup @ 0x1405f0675", "<???> @ 0x14092f270"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}