{"type": "func", "start": 4295934976, "end": 4295935100, "name": "EditLevelLayer::setIDPopupClosed", "pseudocode": "// \n// EditLevelLayer::setIDPopupClosed from 0x1000ec400 to 0x1000ec47c (124 bytes)\n// \n// 2 xrefs:\n// > sub_1000EC47C @ 0x1000ec480\n// > <???> @ 0x100782488\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 EditLevelLayer::setIDPopupClosed(EditLevelLayer *a1, SetIDPopup *a2, int a3)\n{\n  int v4; // w8\n  cocos2d::CCLabelBMFont *m_folderLabel; // x20\n  cocos2d::CCString *v6; // x0\n  const char *CString; // x0\n\n  v4 = a3 & ~(a3 >> 31);\n  if ( v4 >= 999 )\n    v4 = 999;\n  a1->m_level->m_levelFolder = v4;\n  m_folderLabel = a1->m_folderLabel;\n  v6 = (cocos2d::CCString *)sub_100268F4C(\"%i\", v4);\n  CString = cocos2d::CCString::getCString(v6);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_folderLabel->setString)(m_folderLabel, CString);\n  cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_folderLabel, 24.0, 0.55, 0.0);\n}", "assembly": "; \n; EditLevelLayer::setIDPopupClosed from 0x1000ec400 to 0x1000ec47c (124 bytes)\n; \n; 2 xrefs:\n; > sub_1000EC47C @ 0x1000ec480\n; > <???> @ 0x100782488\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1000ec400\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000ec404\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000ec408\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000ec40c\nMOV             X19, X0                                                ; +0x10, 0x1000ec410\nBIC             W8, W2, W2,ASR#31                                      ; +0x14, 0x1000ec414\nCMP             W8, #0x3E7                                             ; +0x18, 0x1000ec418\nMOV             W9, #0x3E7                                             ; +0x1c, 0x1000ec41c\nCSEL            W8, W8, W9, LT                                         ; +0x20, 0x1000ec420\nLDR             X9, [X0,#0x1C8]                                        ; +0x24, 0x1000ec424\nSTR             W8, [X9,#0x320]                                        ; +0x28, 0x1000ec428\nLDR             X20, [X0,#0x1D8]                                       ; +0x2c, 0x1000ec42c\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x30, 0x1000ec430\nADRL            X0, aI; \"%i\"                                           ; +0x34, 0x1000ec434\nBL              sub_100268F4C                                          ; +0x3c, 0x1000ec43c\nBL              cocos2d__CCString__getCString                          ; +0x40, 0x1000ec440\nMOV             X1, X0                                                 ; +0x44, 0x1000ec444\nLDR             X8, [X20]                                              ; +0x48, 0x1000ec448\nLDR             X8, [X8,#0x390]                                        ; +0x4c, 0x1000ec44c\nMOV             X0, X20                                                ; +0x50, 0x1000ec450\nBLR             X8                                                     ; +0x54, 0x1000ec454\nLDR             X0, [X19,#0x1D8]                                       ; +0x58, 0x1000ec458\nADRP            X8, #dword_100635568@PAGE                              ; +0x5c, 0x1000ec45c\nLDR             S1, [X8,#dword_100635568@PAGEOFF]                      ; +0x60, 0x1000ec460\nFMOV            S0, #24.0                                              ; +0x64, 0x1000ec464\nFMOV            S2, WZR                                                ; +0x68, 0x1000ec468\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x6c, 0x1000ec46c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x70, 0x1000ec470\nADD             SP, SP, #0x30 ; '0'                                    ; +0x74, 0x1000ec474\nB               cocos2d__CCLabelBMFont__limitLabelWidth                ; +0x78, 0x1000ec478", "xrefs": ["sub_1000EC47C @ 0x1000ec480", "<???> @ 0x100782488"], "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"}