{"type": "func", "start": 6767116, "end": 6767186, "name": "BrowseSmartKeyLayer::onButton", "pseudocode": "// \n// BrowseSmartKeyLayer::onButton from 0x67420c to 0x674252 (70 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:55:54 +0000\n// \n\nint __fastcall BrowseSmartKeyLayer::onButton(cocos2d::CCArray **this, cocos2d::CCObject *a2)\n{\n  int result; // r0\n\n  result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) - 1;\n  switch ( result )\n  {\n    case 0:\n      result = BrowseSmartKeyLayer::createTemplateObjects(this);\n      break;\n    case 1:\n      result = BrowseSmartKeyLayer::deletedSelectedItems(this);\n      break;\n    case 2:\n      result = BrowseSmartKeyLayer::addChanceToSelected(this, 0, 1);\n      break;\n    case 3:\n      result = BrowseSmartKeyLayer::addChanceToSelected(this, 10, 0);\n      break;\n    default:\n      return result;\n  }\n  return result;\n}", "assembly": "; \n; BrowseSmartKeyLayer::onButton from 0x67420c to 0x674252 (70 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:55:54 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x67420c\nMOV             R4, R0                                                 ; +0x2, 0x67420e\nLDR             R3, [R1]                                               ; +0x4, 0x674210\nMOV             R0, R1                                                 ; +0x6, 0x674212\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x674214\nBLX             R3                                                     ; +0xa, 0x674216\nSUBS            R0, #1; switch 4 cases                                 ; +0xc, 0x674218\nCMP             R0, #3                                                 ; +0xe, 0x67421a\nBHI             def_67421E; jumptable 0067421E default case            ; +0x10, 0x67421c\nTBB.W           [PC,R0]; switch jump                                   ; +0x12, 0x67421e\nDCB 2; jump table for switch statement                                 ; +0x16, 0x674222\nDCB 7                                                                  ; +0x17, 0x674223\nDCB 0xC                                                                ; +0x18, 0x674224\nDCB 0x10                                                               ; +0x19, 0x674225\nMOV             R0, R4; jumptable 0067421E case 1                      ; +0x1a, 0x674226\nPOP.W           {R4,LR}                                                ; +0x1c, 0x674228\nB.W             _ZN19BrowseSmartKeyLayer21createTemplateObjectsEv; BrowseSmartKeyLayer::createTemplateObjects(void) ; +0x20, 0x67422c\nMOV             R0, R4; jumptable 0067421E case 2                      ; +0x24, 0x674230\nPOP.W           {R4,LR}                                                ; +0x26, 0x674232\nB.W             _ZN19BrowseSmartKeyLayer20deletedSelectedItemsEv; BrowseSmartKeyLayer::deletedSelectedItems(void) ; +0x2a, 0x674236\nMOV             R0, R4; jumptable 0067421E case 3                      ; +0x2e, 0x67423a\nMOVS            R1, #0                                                 ; +0x30, 0x67423c\nMOVS            R2, #1                                                 ; +0x32, 0x67423e\nB               loc_674248                                             ; +0x34, 0x674240\nMOV             R0, R4; jumptable 0067421E case 4                      ; +0x36, 0x674242\nMOVS            R1, #0xA; int                                          ; +0x38, 0x674244\nMOVS            R2, #0; bool                                           ; +0x3a, 0x674246\nPOP.W           {R4,LR}                                                ; +0x3c, 0x674248\nB.W             _ZN19BrowseSmartKeyLayer19addChanceToSelectedEib; BrowseSmartKeyLayer::addChanceToSelected(int,bool) ; +0x40, 0x67424c\nPOP             {R4,PC}; jumptable 0067421E default case               ; +0x44, 0x674250", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}