{"type": "func", "start": 5371579120, "end": 5371579617, "name": "InfoLayer::setupLevelInfo", "pseudocode": "// \n// InfoLayer::setupLevelInfo from 0x1402bcaf0 to 0x1402bcce1 (497 bytes)\n// \n// 3 xrefs:\n// > InfoLayer::init @ 0x1402bb884\n// > InfoLayer::init @ 0x1402bbbce\n// > <???> @ 0x1406d27ec\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 InfoLayer::setupLevelInfo(InfoLayer *a1)\n{\n  float v1; // xmm0_4\n  cocos2d::CCDirector *v3; // rax\n  GJLevelList *m_levelList; // rbx\n  int m_listVersion; // edx\n  int m_listID; // ebx\n  GJGameLevel *m_level; // rax\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n  struct cocos2d::CCLabelBMFont *v10; // rsi\n  __int64 v11; // rcx\n  cocos2d::CCNode *v12; // r14\n  const char *v13; // rax\n  cocos2d::CCString *v14; // rax\n  struct cocos2d::CCLabelBMFont *v15; // rbx\n  double v16; // xmm0_8\n  CCMenuItemSpriteExtra *v17; // rax\n  float v18; // xmm0_4\n  float v19; // [rsp+50h] [rbp+8h]\n  char v20; // [rsp+58h] [rbp+10h] BYREF\n  char v21; // [rsp+60h] [rbp+18h] BYREF\n\n  v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v3);\n  m_levelList = a1->m_levelList;\n  if ( m_levelList )\n  {\n    m_listVersion = m_levelList->m_listVersion;\n    m_listID = m_levelList->m_listID;\n  }\n  else\n  {\n    m_level = a1->m_level;\n    m_listID = m_level->m_levelID.random - m_level->m_levelID.seed;\n    m_listVersion = m_level->m_levelVersion;\n  }\n  v8 = cocos2d::CCString::createWithFormat(\"Version: %i\", m_listVersion);\n  CString = cocos2d::CCString::getCString(v8);\n  v10 = cocos2d::CCLabelBMFont::create(CString, \"goldFont.fnt\");\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v10, 2);\n  v12 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v11);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v12, 2);\n  v13 = \"ID: na\";\n  if ( m_listID )\n  {\n    v14 = cocos2d::CCString::createWithFormat(\"ID: %i\", m_listID);\n    v13 = cocos2d::CCString::getCString(v14);\n  }\n  v15 = cocos2d::CCLabelBMFont::create(v13, \"goldFont.fnt\");\n  v16 = cocos2d::CCPoint::CCPoint(v1, v19 * 0.5);\n  cocos2d::CCPoint::CCPoint(*(float *)&v16, -50.0);\n  cocos2d::CCPoint::operator+(&v20, &v21);\n  v10->setPosition_0(v10, (const cocos2d::CCPoint *)&v21);\n  ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v10->setScale_0)(v10);\n  ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v15->setScale_0)(v15);\n  v17 = CCMenuItemSpriteExtra::create(v15, nullptr, a1, (cocos2d::SEL_MenuHandler *)InfoLayer::onCopyLevelID);\n  v18 = ((float (__fastcall *)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))v12->addChild_1)(v12, v17);\n  cocos2d::CCPoint::CCPoint(v18, 50.0);\n  cocos2d::CCPoint::operator+(&v20, &v21);\n  v12->setPosition_0(v12, (const cocos2d::CCPoint *)&v21);\n}", "assembly": "; \n; InfoLayer::setupLevelInfo from 0x1402bcaf0 to 0x1402bcce1 (497 bytes)\n; \n; 3 xrefs:\n; > InfoLayer::init @ 0x1402bb884\n; > InfoLayer::init @ 0x1402bbbce\n; > <???> @ 0x1406d27ec\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\npush    rbx                                                            ; +0x0, 0x1402bcaf0\npush    rsi                                                            ; +0x2, 0x1402bcaf2\npush    rdi                                                            ; +0x3, 0x1402bcaf3\npush    r14                                                            ; +0x4, 0x1402bcaf4\nsub     rsp, 28h                                                       ; +0x6, 0x1402bcaf6\nmov     rdi, rcx                                                       ; +0xa, 0x1402bcafa\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1402bcafd\nmov     rcx, rax                                                       ; +0x13, 0x1402bcb03\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x16, 0x1402bcb06\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x1b, 0x1402bcb0b\nmov     rbx, [rdi+2A0h]                                                ; +0x21, 0x1402bcb11\ntest    rbx, rbx                                                       ; +0x28, 0x1402bcb18\njz      short loc_1402BCB2B                                            ; +0x2b, 0x1402bcb1b\nmov     edx, [rbx+15Ch]                                                ; +0x2d, 0x1402bcb1d\nmov     ebx, [rbx+158h]                                                ; +0x33, 0x1402bcb23\njmp     short loc_1402BCB44                                            ; +0x39, 0x1402bcb29\nmov     rax, [rdi+290h]                                                ; +0x3b, 0x1402bcb2b\nmov     ebx, [rax+148h]                                                ; +0x42, 0x1402bcb32\nsub     ebx, [rax+14Ch]                                                ; +0x48, 0x1402bcb38\nmov     edx, [rax+2E8h]                                                ; +0x4e, 0x1402bcb3e\nlea     rcx, aVersionI; \"Version: %i\"                                  ; +0x54, 0x1402bcb44\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x5b, 0x1402bcb4b\nmov     rcx, rax                                                       ; +0x61, 0x1402bcb51\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x64, 0x1402bcb54\nmov     rcx, rax                                                       ; +0x6a, 0x1402bcb5a\nlea     rdx, aGoldfontFnt; \"goldFont.fnt\"                              ; +0x6d, 0x1402bcb5d\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x74, 0x1402bcb64\nmov     rcx, [rdi+240h]                                                ; +0x7a, 0x1402bcb6a\nmov     r8d, 2                                                         ; +0x81, 0x1402bcb71\nmov     rdx, rax                                                       ; +0x87, 0x1402bcb77\nmov     rsi, rax                                                       ; +0x8a, 0x1402bcb7a\nmov     r9, [rcx]                                                      ; +0x8d, 0x1402bcb7d\ncall    qword ptr [r9+1B8h]                                            ; +0x90, 0x1402bcb80\ncall    cs:?create@CCMenu@cocos2d@@SAPEAV12@XZ; cocos2d::CCMenu::create(void) ; +0x97, 0x1402bcb87\nmov     rcx, [rdi+240h]                                                ; +0x9d, 0x1402bcb8d\nmov     r8d, 2                                                         ; +0xa4, 0x1402bcb94\nmov     rdx, rax                                                       ; +0xaa, 0x1402bcb9a\nmov     r14, rax                                                       ; +0xad, 0x1402bcb9d\nmov     r9, [rcx]                                                      ; +0xb0, 0x1402bcba0\ncall    qword ptr [r9+1B8h]                                            ; +0xb3, 0x1402bcba3\nlea     rax, aIdNa; \"ID: na\"                                           ; +0xba, 0x1402bcbaa\ntest    ebx, ebx                                                       ; +0xc1, 0x1402bcbb1\njz      short loc_1402BCBCD                                            ; +0xc3, 0x1402bcbb3\nmov     edx, ebx                                                       ; +0xc5, 0x1402bcbb5\nlea     rcx, aIdI; \"ID: %i\"                                            ; +0xc7, 0x1402bcbb7\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xce, 0x1402bcbbe\nmov     rcx, rax                                                       ; +0xd4, 0x1402bcbc4\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd7, 0x1402bcbc7\nlea     rdx, aGoldfontFnt; \"goldFont.fnt\"                              ; +0xdd, 0x1402bcbcd\nmov     rcx, rax                                                       ; +0xe4, 0x1402bcbd4\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0xe7, 0x1402bcbd7\nmovss   xmm2, [rsp+48h+arg_4]                                          ; +0xed, 0x1402bcbdd\nlea     rcx, [rsp+48h+arg_8]                                           ; +0xf3, 0x1402bcbe3\nmulss   xmm2, cs:dword_140622B08                                       ; +0xf8, 0x1402bcbe8\nmov     rbx, rax                                                       ; +0x100, 0x1402bcbf0\nmovss   xmm1, [rsp+48h+arg_0]                                          ; +0x103, 0x1402bcbf3\nmulss   xmm1, cs:dword_140622B08                                       ; +0x109, 0x1402bcbf9\nsubss   xmm2, cs:dword_140623348                                       ; +0x111, 0x1402bcc01\naddss   xmm2, cs:dword_1406230BC                                       ; +0x119, 0x1402bcc09\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x121, 0x1402bcc11\nmovss   xmm1, cs:dword_140623944                                       ; +0x127, 0x1402bcc17\nlea     rcx, [rsp+48h+arg_18]                                          ; +0x12f, 0x1402bcc1f\nxorps   xmm2, xmm2                                                     ; +0x134, 0x1402bcc24\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x137, 0x1402bcc27\nmov     r8, rax                                                        ; +0x13d, 0x1402bcc2d\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x140, 0x1402bcc30\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x145, 0x1402bcc35\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x14a, 0x1402bcc3a\nmov     rax, [rsi]                                                     ; +0x150, 0x1402bcc40\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x153, 0x1402bcc43\nmov     rcx, rsi                                                       ; +0x158, 0x1402bcc48\ncall    qword ptr [rax+0B8h]                                           ; +0x15b, 0x1402bcc4b\nmov     rax, [rsi]                                                     ; +0x161, 0x1402bcc51\nmov     rcx, rsi                                                       ; +0x164, 0x1402bcc54\nmovss   xmm1, cs:dword_140622B38                                       ; +0x167, 0x1402bcc57\ncall    qword ptr [rax+0A0h]                                           ; +0x16f, 0x1402bcc5f\nmov     rax, [rbx]                                                     ; +0x175, 0x1402bcc65\nmov     rcx, rbx                                                       ; +0x178, 0x1402bcc68\nmovss   xmm1, cs:dword_140622B38                                       ; +0x17b, 0x1402bcc6b\ncall    qword ptr [rax+0A0h]                                           ; +0x183, 0x1402bcc73\nlea     r9, InfoLayer__onCopyLevelID                                   ; +0x189, 0x1402bcc79\nmov     r8, rdi                                                        ; +0x190, 0x1402bcc80\nxor     edx, edx                                                       ; +0x193, 0x1402bcc83\nmov     rcx, rbx                                                       ; +0x195, 0x1402bcc85\ncall    CCMenuItemSpriteExtra__create                                  ; +0x198, 0x1402bcc88\nmov     r8, [r14]                                                      ; +0x19d, 0x1402bcc8d\nmov     rdx, rax                                                       ; +0x1a0, 0x1402bcc90\nmov     rcx, r14                                                       ; +0x1a3, 0x1402bcc93\ncall    qword ptr [r8+1C0h]                                            ; +0x1a6, 0x1402bcc96\nmovss   xmm1, cs:dword_1406231E0                                       ; +0x1ad, 0x1402bcc9d\nlea     rcx, [rsp+48h+arg_18]                                          ; +0x1b5, 0x1402bcca5\nxorps   xmm2, xmm2                                                     ; +0x1ba, 0x1402bccaa\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1bd, 0x1402bccad\nmov     r8, rax                                                        ; +0x1c3, 0x1402bccb3\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x1c6, 0x1402bccb6\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x1cb, 0x1402bccbb\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x1d0, 0x1402bccc0\nmov     rax, [r14]                                                     ; +0x1d6, 0x1402bccc6\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x1d9, 0x1402bccc9\nmov     rcx, r14                                                       ; +0x1de, 0x1402bccce\ncall    qword ptr [rax+0B8h]                                           ; +0x1e1, 0x1402bccd1\nadd     rsp, 28h                                                       ; +0x1e7, 0x1402bccd7\npop     r14                                                            ; +0x1eb, 0x1402bccdb\npop     rdi                                                            ; +0x1ed, 0x1402bccdd\npop     rsi                                                            ; +0x1ee, 0x1402bccde\npop     rbx                                                            ; +0x1ef, 0x1402bccdf\nretn                                                                   ; +0x1f0, 0x1402bcce0", "xrefs": ["InfoLayer::init @ 0x1402bb884", "InfoLayer::init @ 0x1402bbbce", "<???> @ 0x1406d27ec"], "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"}