{"type": "func", "start": 5369599360, "end": 5369599491, "name": "EditLevelLayer::setIDPopupClosed", "pseudocode": "// \n// EditLevelLayer::setIDPopupClosed from 0x1400d9580 to 0x1400d9603 (131 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140551768\n// > <???> @ 0x1406c8874\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 EditLevelLayer::setIDPopupClosed(EditLevelLayer *a1, SetIDPopup *a2, int a3)\n{\n  int v3; // edx\n  void (__fastcall **v5)(__int64, const char *); // rbx\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n\n  v3 = 0;\n  if ( a3 >= 0 )\n    v3 = a3;\n  if ( v3 > 999 )\n    v3 = 999;\n  *(_DWORD *)(*(_QWORD *)&a1->m_nTag + 872LL) = v3;\n  v5 = *(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)&a1->m_uIndexInArray + 360LL);\n  v6 = cocos2d::CCString::createWithFormat(\"%i\", v3);\n  CString = cocos2d::CCString::getCString(v6);\n  (*v5)(*(_QWORD *)&a1->m_uIndexInArray + 360LL, CString);\n  cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)&a1->m_uIndexInArray, 24.0, 0.55000001, 0.0);\n}", "assembly": "; \n; EditLevelLayer::setIDPopupClosed from 0x1400d9580 to 0x1400d9603 (131 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140551768\n; > <???> @ 0x1406c8874\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400d9580\npush    rdi                                                            ; +0x5, 0x1400d9585\nsub     rsp, 20h                                                       ; +0x6, 0x1400d9586\nxor     edx, edx                                                       ; +0xa, 0x1400d958a\nmov     eax, 3E7h                                                      ; +0xc, 0x1400d958c\ntest    r8d, r8d                                                       ; +0x11, 0x1400d9591\nmov     rdi, rcx                                                       ; +0x14, 0x1400d9594\ncmovns  edx, r8d                                                       ; +0x17, 0x1400d9597\ncmp     edx, eax                                                       ; +0x1b, 0x1400d959b\ncmovg   edx, eax                                                       ; +0x1d, 0x1400d959d\nmov     rax, [rcx+10h]                                                 ; +0x20, 0x1400d95a0\nmov     [rax+368h], edx                                                ; +0x24, 0x1400d95a4\nmov     rax, [rcx+20h]                                                 ; +0x2a, 0x1400d95aa\nlea     rcx, aI_11; \"%i\"                                               ; +0x2e, 0x1400d95ae\nmov     rbx, [rax+168h]                                                ; +0x35, 0x1400d95b5\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3c, 0x1400d95bc\nmov     rcx, rax                                                       ; +0x42, 0x1400d95c2\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x45, 0x1400d95c5\nmov     rcx, [rdi+20h]                                                 ; +0x4b, 0x1400d95cb\nmov     rdx, rax                                                       ; +0x4f, 0x1400d95cf\nadd     rcx, 168h                                                      ; +0x52, 0x1400d95d2\ncall    qword ptr [rbx]                                                ; +0x59, 0x1400d95d9\nmovss   xmm2, cs:dword_140622B24                                       ; +0x5b, 0x1400d95db\nxorps   xmm3, xmm3                                                     ; +0x63, 0x1400d95e3\nmovss   xmm1, cs:dword_140623140                                       ; +0x66, 0x1400d95e6\nmov     rcx, [rdi+20h]                                                 ; +0x6e, 0x1400d95ee\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x72, 0x1400d95f2\nadd     rsp, 20h                                                       ; +0x77, 0x1400d95f7\npop     rdi                                                            ; +0x7b, 0x1400d95fb\njmp     cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x7c, 0x1400d95fc", "xrefs": ["<???> @ 0x140551768", "<???> @ 0x1406c8874"], "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"}