{"type": "func", "start": 4295439280, "end": 4295439436, "name": "BrowseSmartKeyLayer::onButton", "pseudocode": "// \n// BrowseSmartKeyLayer::onButton from 0x1000733b0 to 0x10007344c (156 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartKeyLayer::init @ 0x100072ff8\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  int v3; // w0\n  BrowseSmartKeyLayer *v4; // x0\n  int v5; // w1\n  bool v6; // w2\n\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  if ( v3 > 2 )\n  {\n    if ( v3 == 3 )\n    {\n      v4 = a1;\n      v5 = 0;\n      v6 = 1;\n    }\n    else\n    {\n      if ( v3 != 4 )\n        return;\n      v4 = a1;\n      v5 = 10;\n      v6 = 0;\n    }\n    BrowseSmartKeyLayer::addChanceToSelected(v4, v5, v6);\n    return;\n  }\n  if ( v3 == 1 )\n  {\n    BrowseSmartKeyLayer::createTemplateObjects(a1);\n  }\n  else if ( v3 == 2 )\n  {\n    BrowseSmartKeyLayer::deletedSelectedItems(a1);\n  }\n}", "assembly": "; \n; BrowseSmartKeyLayer::onButton from 0x1000733b0 to 0x10007344c (156 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartKeyLayer::init @ 0x100072ff8\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000733b0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000733b4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000733b8\nMOV             X19, X0                                                ; +0xc, 0x1000733bc\nLDR             X8, [X1]                                               ; +0x10, 0x1000733c0\nLDR             X8, [X8,#0x40]                                         ; +0x14, 0x1000733c4\nMOV             X0, X1                                                 ; +0x18, 0x1000733c8\nBLR             X8                                                     ; +0x1c, 0x1000733cc\nCMP             W0, #2                                                 ; +0x20, 0x1000733d0\nB.GT            loc_1000733F8                                          ; +0x24, 0x1000733d4\nCMP             W0, #1                                                 ; +0x28, 0x1000733d8\nB.EQ            loc_100073424                                          ; +0x2c, 0x1000733dc\nCMP             W0, #2                                                 ; +0x30, 0x1000733e0\nB.NE            loc_100073418                                          ; +0x34, 0x1000733e4\nMOV             X0, X19                                                ; +0x38, 0x1000733e8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x1000733ec\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x40, 0x1000733f0\nB               BrowseSmartKeyLayer__deletedSelectedItems              ; +0x44, 0x1000733f4\nCMP             W0, #3                                                 ; +0x48, 0x1000733f8\nB.EQ            loc_100073434                                          ; +0x4c, 0x1000733fc\nCMP             W0, #4                                                 ; +0x50, 0x100073400\nB.NE            loc_100073418                                          ; +0x54, 0x100073404\nMOV             X0, X19                                                ; +0x58, 0x100073408\nMOV             W1, #0xA                                               ; +0x5c, 0x10007340c\nMOV             W2, #0                                                 ; +0x60, 0x100073410\nB               loc_100073440                                          ; +0x64, 0x100073414\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x100073418\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x10007341c\nRET                                                                    ; +0x70, 0x100073420\nMOV             X0, X19                                                ; +0x74, 0x100073424\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x78, 0x100073428\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x7c, 0x10007342c\nB               BrowseSmartKeyLayer__createTemplateObjects             ; +0x80, 0x100073430\nMOV             X0, X19                                                ; +0x84, 0x100073434\nMOV             W1, #0                                                 ; +0x88, 0x100073438\nMOV             W2, #1                                                 ; +0x8c, 0x10007343c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x90, 0x100073440\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x94, 0x100073444\nB               BrowseSmartKeyLayer__addChanceToSelected               ; +0x98, 0x100073448", "xrefs": ["BrowseSmartKeyLayer::init @ 0x100072ff8"], "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"}