{"type": "func", "start": 5504360, "end": 5504430, "name": "BrowseSmartKeyLayer::onButton", "pseudocode": "// \n// BrowseSmartKeyLayer::onButton from 0x53fd68 to 0x53fdae (70 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 BrowseSmartKeyLayer::onButton(BrowseSmartKeyLayer *a1, cocos2d::CCObject *a2)\n{\n  switch ( a2->getTag(a2) )\n  {\n    case 1:\n      BrowseSmartKeyLayer::createTemplateObjects(a1);\n      break;\n    case 2:\n      BrowseSmartKeyLayer::deletedSelectedItems(a1);\n      break;\n    case 3:\n      BrowseSmartKeyLayer::addChanceToSelected(a1, 0, 1);\n      break;\n    case 4:\n      BrowseSmartKeyLayer::addChanceToSelected(a1, 10, 0);\n      break;\n    default:\n      return;\n  }\n}", "assembly": "; \n; BrowseSmartKeyLayer::onButton from 0x53fd68 to 0x53fdae (70 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, 0x53fd68\nPUSH            {R4,LR}                                                ; +0x2, 0x53fd6a\nMOV             R4, R0                                                 ; +0x4, 0x53fd6c\nLDR             R3, [R3,#0x20]                                         ; +0x6, 0x53fd6e\nMOV             R0, R1                                                 ; +0x8, 0x53fd70\nBLX             R3                                                     ; +0xa, 0x53fd72\nSUBS            R0, #1; switch 4 cases                                 ; +0xc, 0x53fd74\nCMP             R0, #3                                                 ; +0xe, 0x53fd76\nBHI             def_53FD7A; jumptable 0053FD7A default case            ; +0x10, 0x53fd78\nTBB.W           [PC,R0]; switch jump                                   ; +0x12, 0x53fd7a\nDCB 2; jump table for switch statement                                 ; +0x16, 0x53fd7e\nDCB 7                                                                  ; +0x17, 0x53fd7f\nDCB 0xC                                                                ; +0x18, 0x53fd80\nDCB 0x10                                                               ; +0x19, 0x53fd81\nMOV             R0, R4; jumptable 0053FD7A case 1                      ; +0x1a, 0x53fd82\nPOP.W           {R4,LR}                                                ; +0x1c, 0x53fd84\nB.W             _ZN19BrowseSmartKeyLayer21createTemplateObjectsEv; BrowseSmartKeyLayer::createTemplateObjects(void) ; +0x20, 0x53fd88\nMOV             R0, R4; jumptable 0053FD7A case 2                      ; +0x24, 0x53fd8c\nPOP.W           {R4,LR}                                                ; +0x26, 0x53fd8e\nB.W             _ZN19BrowseSmartKeyLayer20deletedSelectedItemsEv; BrowseSmartKeyLayer::deletedSelectedItems(void) ; +0x2a, 0x53fd92\nMOV             R0, R4; jumptable 0053FD7A case 3                      ; +0x2e, 0x53fd96\nMOVS            R1, #0                                                 ; +0x30, 0x53fd98\nMOVS            R2, #1                                                 ; +0x32, 0x53fd9a\nB               loc_53FDA4                                             ; +0x34, 0x53fd9c\nMOV             R0, R4; jumptable 0053FD7A case 4                      ; +0x36, 0x53fd9e\nMOVS            R1, #0xA; int                                          ; +0x38, 0x53fda0\nMOVS            R2, #0; bool                                           ; +0x3a, 0x53fda2\nPOP.W           {R4,LR}                                                ; +0x3c, 0x53fda4\nB.W             _ZN19BrowseSmartKeyLayer19addChanceToSelectedEib; BrowseSmartKeyLayer::addChanceToSelected(int,bool) ; +0x40, 0x53fda8\nPOP             {R4,PC}; jumptable 0053FD7A default case               ; +0x44, 0x53fdac", "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"}