{"type": "func", "start": 4300125968, "end": 4300126086, "name": "BrowseSmartKeyLayer::onButton", "pseudocode": "// \n// BrowseSmartKeyLayer::onButton from 0x1004eb710 to 0x1004eb786 (118 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartKeyLayer::init @ 0x1004eb350\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 BrowseSmartKeyLayer::onButton(BrowseSmartKeyLayer *a1, cocos2d::CCObject *a2)\n{\n  switch ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) )\n  {\n    case 1u:\n      BrowseSmartKeyLayer::createTemplateObjects(a1);\n      break;\n    case 2u:\n      BrowseSmartKeyLayer::deletedSelectedItems(a1);\n      break;\n    case 3u:\n      BrowseSmartKeyLayer::addChanceToSelected(a1, 0, 1);\n      break;\n    case 4u:\n      BrowseSmartKeyLayer::addChanceToSelected(a1, 10, 0);\n      break;\n    default:\n      return;\n  }\n}", "assembly": "; \n; BrowseSmartKeyLayer::onButton from 0x1004eb710 to 0x1004eb786 (118 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartKeyLayer::init @ 0x1004eb350\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\npush    rbp                                                            ; +0x0, 0x1004eb710\nmov     rbp, rsp                                                       ; +0x1, 0x1004eb711\npush    rbx                                                            ; +0x4, 0x1004eb714\npush    rax                                                            ; +0x5, 0x1004eb715\nmov     rbx, rdi                                                       ; +0x6, 0x1004eb716\nmov     rax, [rsi]                                                     ; +0x9, 0x1004eb719\nmov     rdi, rsi                                                       ; +0xc, 0x1004eb71c\ncall    qword ptr [rax+40h]                                            ; +0xf, 0x1004eb71f\ndec     eax; switch 4 cases                                            ; +0x12, 0x1004eb722\ncmp     eax, 3                                                         ; +0x14, 0x1004eb724\nja      short def_1004EB737; jumptable 00000001004EB737 default case   ; +0x17, 0x1004eb727\nlea     rcx, jpt_1004EB737                                             ; +0x19, 0x1004eb729\nmovsxd  rax, (jpt_1004EB737 - 1004EB788h)[rcx+rax*4]                   ; +0x20, 0x1004eb730\nadd     rax, rcx                                                       ; +0x24, 0x1004eb734\njmp     rax; switch jump                                               ; +0x27, 0x1004eb737\nmov     rdi, rbx; jumptable 00000001004EB737 case 1                    ; +0x29, 0x1004eb739\nadd     rsp, 8                                                         ; +0x2c, 0x1004eb73c\npop     rbx                                                            ; +0x30, 0x1004eb740\npop     rbp                                                            ; +0x31, 0x1004eb741\njmp     BrowseSmartKeyLayer__createTemplateObjects                     ; +0x32, 0x1004eb742\nmov     rdi, rbx; jumptable 00000001004EB737 case 3                    ; +0x37, 0x1004eb747\nxor     esi, esi                                                       ; +0x3a, 0x1004eb74a\nmov     edx, 1                                                         ; +0x3c, 0x1004eb74c\nadd     rsp, 8                                                         ; +0x41, 0x1004eb751\npop     rbx                                                            ; +0x45, 0x1004eb755\npop     rbp                                                            ; +0x46, 0x1004eb756\njmp     BrowseSmartKeyLayer__addChanceToSelected                       ; +0x47, 0x1004eb757\nmov     rdi, rbx; jumptable 00000001004EB737 case 4                    ; +0x4c, 0x1004eb75c\nmov     esi, 0Ah                                                       ; +0x4f, 0x1004eb75f\nxor     edx, edx                                                       ; +0x54, 0x1004eb764\nadd     rsp, 8                                                         ; +0x56, 0x1004eb766\npop     rbx                                                            ; +0x5a, 0x1004eb76a\npop     rbp                                                            ; +0x5b, 0x1004eb76b\njmp     BrowseSmartKeyLayer__addChanceToSelected                       ; +0x5c, 0x1004eb76c\nmov     rdi, rbx; jumptable 00000001004EB737 case 2                    ; +0x61, 0x1004eb771\nadd     rsp, 8                                                         ; +0x64, 0x1004eb774\npop     rbx                                                            ; +0x68, 0x1004eb778\npop     rbp                                                            ; +0x69, 0x1004eb779\njmp     BrowseSmartKeyLayer__deletedSelectedItems                      ; +0x6a, 0x1004eb77a\nadd     rsp, 8; jumptable 00000001004EB737 default case                ; +0x6f, 0x1004eb77f\npop     rbx                                                            ; +0x73, 0x1004eb783\npop     rbp                                                            ; +0x74, 0x1004eb784\nretn                                                                   ; +0x75, 0x1004eb785", "xrefs": ["BrowseSmartKeyLayer::init @ 0x1004eb350"], "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"}