{"type": "func", "start": 4296090992, "end": 4296091116, "name": "EditLevelLayer::setIDPopupClosed", "pseudocode": "// \n// EditLevelLayer::setIDPopupClosed from 0x100112570 to 0x1001125ec (124 bytes)\n// \n// 2 xrefs:\n// > sub_1001125EC @ 0x1001125f0\n// > <???> @ 0x1008d0138\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 10:59:09 +0000\n// \n\ndouble __fastcall EditLevelLayer::setIDPopupClosed(__int64 a1, __int64 a2, int a3)\n{\n  int v4; // w8\n  __int64 v5; // x20\n  __int64 v6; // x0\n  __int64 CString; // x0\n  double result; // d0\n\n  v4 = a3 & ~(a3 >> 31);\n  if ( v4 >= 999 )\n    v4 = 999;\n  *(_DWORD *)(*(_QWORD *)(a1 + 472) + 916LL) = v4;\n  v5 = *(_QWORD *)(a1 + 488);\n  v6 = sub_1003065B0(\"%i\", v4);\n  CString = cocos2d::CCString::getCString(v6);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 928LL))(v5, CString);\n  *(_QWORD *)&result = cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 488), 24.0, 0.55, 0.0).n128_u64[0];\n  return result;\n}", "assembly": "; \n; EditLevelLayer::setIDPopupClosed from 0x100112570 to 0x1001125ec (124 bytes)\n; \n; 2 xrefs:\n; > sub_1001125EC @ 0x1001125f0\n; > <???> @ 0x1008d0138\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 10:59:09 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x100112570\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100112574\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100112578\nADD             X29, SP, #0x20                                         ; +0xc, 0x10011257c\nMOV             X19, X0                                                ; +0x10, 0x100112580\nBIC             W8, W2, W2,ASR#31                                      ; +0x14, 0x100112584\nCMP             W8, #0x3E7                                             ; +0x18, 0x100112588\nMOV             W9, #0x3E7                                             ; +0x1c, 0x10011258c\nCSEL            W8, W8, W9, LT                                         ; +0x20, 0x100112590\nLDR             X9, [X0,#0x1D8]                                        ; +0x24, 0x100112594\nSTR             W8, [X9,#0x394]                                        ; +0x28, 0x100112598\nLDR             X20, [X0,#0x1E8]                                       ; +0x2c, 0x10011259c\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x30, 0x1001125a0\nADRL            X0, aI; \"%i\"                                           ; +0x34, 0x1001125a4\nBL              sub_1003065B0                                          ; +0x3c, 0x1001125ac\nBL              cocos2d__CCString__getCString                          ; +0x40, 0x1001125b0\nMOV             X1, X0                                                 ; +0x44, 0x1001125b4\nLDR             X8, [X20]                                              ; +0x48, 0x1001125b8\nLDR             X8, [X8,#0x3A0]                                        ; +0x4c, 0x1001125bc\nMOV             X0, X20                                                ; +0x50, 0x1001125c0\nBLR             X8                                                     ; +0x54, 0x1001125c4\nLDR             X0, [X19,#0x1E8]                                       ; +0x58, 0x1001125c8\nADRP            X8, #dword_10075C614@PAGE                              ; +0x5c, 0x1001125cc\nLDR             S1, [X8,#dword_10075C614@PAGEOFF]                      ; +0x60, 0x1001125d0\nFMOV            S0, #24.0                                              ; +0x64, 0x1001125d4\nFMOV            S2, WZR                                                ; +0x68, 0x1001125d8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x6c, 0x1001125dc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x70, 0x1001125e0\nADD             SP, SP, #0x30 ; '0'                                    ; +0x74, 0x1001125e4\nB               cocos2d__CCLabelBMFont__limitLabelWidth                ; +0x78, 0x1001125e8", "xrefs": ["sub_1001125EC @ 0x1001125f0", "<???> @ 0x1008d0138"], "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"}