{"type": "func", "start": 8311348, "end": 8311476, "name": "EditLevelLayer::setIDPopupClosed", "pseudocode": "// \n// EditLevelLayer::setIDPopupClosed from 0x7ed234 to 0x7ed2b4 (128 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::setIDPopupClosed @ 0x7ed2bc\n// > <???> @ 0x100060\n// > <???> @ 0x143c940\n// \n// This function is hookable on this platform (idp: arm, 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 12:54:33 +0000\n// \n\n__int64 __fastcall EditLevelLayer::setIDPopupClosed(EditLevelLayer *this, SetIDPopup *a2, int a3)\n{\n  __int64 v4; // x20\n  void (__fastcall *v5)(__int64, __int64); // x21\n  cocos2d::CCString *v6; // x0\n  __int64 CString; // x0\n\n  if ( a3 < 0 )\n  {\n    a3 = 0;\n  }\n  else if ( a3 >= 1000 )\n  {\n    a3 = 999;\n  }\n  *(_DWORD *)(*((_QWORD *)this + 59) + 916LL) = a3;\n  v4 = *((_QWORD *)this + 61);\n  v5 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 928LL);\n  v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%i\",\n                              (const char *)(unsigned int)a3);\n  CString = cocos2d::CCString::getCString(v6);\n  v5(v4, CString);\n  return cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 61), 24.0, 0.55, 0.0);\n}", "assembly": "; \n; EditLevelLayer::setIDPopupClosed from 0x7ed234 to 0x7ed2b4 (128 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::setIDPopupClosed @ 0x7ed2bc\n; > <???> @ 0x100060\n; > <???> @ 0x143c940\n; \n; This function is hookable on this platform (idp: arm, 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 12:54:33 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7ed234\nMOV             X29, SP                                                ; +0x4, 0x7ed238\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x7ed23c\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x7ed240\nMOV             X19, X0                                                ; +0x10, 0x7ed244\nTBNZ            W2, #0x1F, loc_7ED2AC                                  ; +0x14, 0x7ed248\nCMP             W2, #0x3E8                                             ; +0x18, 0x7ed24c\nMOV             W0, #0x3E7                                             ; +0x1c, 0x7ed250\nCSEL            W2, W2, W0, LT                                         ; +0x20, 0x7ed254\nLDR             X3, [X19,#0x1D8]                                       ; +0x24, 0x7ed258\nMOV             W1, W2; char *                                         ; +0x28, 0x7ed25c\nADRL            X0, (aSongidI+8); this                                 ; +0x2c, 0x7ed260\nSTR             W2, [X3,#0x394]                                        ; +0x34, 0x7ed268\nLDR             X20, [X19,#0x1E8]                                      ; +0x38, 0x7ed26c\nLDR             X2, [X20]                                              ; +0x3c, 0x7ed270\nLDR             X21, [X2,#0x3A0]                                       ; +0x40, 0x7ed274\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x44, 0x7ed278\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x48, 0x7ed27c\nMOV             X1, X0                                                 ; +0x4c, 0x7ed280\nMOV             X0, X20                                                ; +0x50, 0x7ed284\nBLR             X21                                                    ; +0x54, 0x7ed288\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x58, 0x7ed28c\nLDR             S1, flt_7ED2B4; float                                  ; +0x5c, 0x7ed290\nLDR             X0, [X19,#0x1E8]; this                                 ; +0x60, 0x7ed294\nFMOV            S2, WZR; float                                         ; +0x64, 0x7ed298\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x68, 0x7ed29c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x6c, 0x7ed2a0\nFMOV            S0, #24.0; float                                       ; +0x70, 0x7ed2a4\nB               _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x74, 0x7ed2a8\nMOV             W2, #0                                                 ; +0x78, 0x7ed2ac\nB               loc_7ED258                                             ; +0x7c, 0x7ed2b0", "xrefs": ["`non-virtual thunk to'EditLevelLayer::setIDPopupClosed @ 0x7ed2bc", "<???> @ 0x100060", "<???> @ 0x143c940"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}