{"type": "func", "start": 4303029264, "end": 4303029771, "name": "InfoLayer::setupLevelInfo", "pseudocode": "// \n// InfoLayer::setupLevelInfo from 0x1007b0410 to 0x1007b060b (507 bytes)\n// \n// 1 xrefs:\n// > InfoLayer::init @ 0x1007af01b\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 InfoLayer::setupLevelInfo(InfoLayer *a1)\n{\n  GJLevelList *m_levelList; // rax\n  int m_listID; // r12d\n  int *p_m_listVersion; // rax\n  GJGameLevel *m_level; // rcx\n  char *v5; // rax\n  const char *CString; // rax\n  cocos2d::CCLabelBMFont *v7; // r15\n  cocos2d::CCMenu *v8; // r14\n  char *v9; // rax\n  const char *v10; // rdi\n  cocos2d::CCLabelBMFont *v11; // r13\n  CCMenuItemSpriteExtra *v12; // rax\n  double v13; // [rsp+0h] [rbp-50h] BYREF\n  unsigned __int64 v14; // [rsp+8h] [rbp-48h] BYREF\n  InfoLayer *v15; // [rsp+10h] [rbp-40h]\n  float v16[2]; // [rsp+18h] [rbp-38h] BYREF\n  unsigned __int64 v17[6]; // [rsp+20h] [rbp-30h] BYREF\n  double v18; // 0:xmm0_8.8\n\n  cocos2d::CCDirector::sharedDirector();\n  *(cocos2d::CCSize *)&v18 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v16);\n  m_levelList = a1->m_levelList;\n  if ( m_levelList )\n  {\n    m_listID = m_levelList->m_listID;\n    p_m_listVersion = &m_levelList->m_listVersion;\n  }\n  else\n  {\n    m_level = a1->m_level;\n    p_m_listVersion = &m_level->m_levelVersion;\n    m_listID = m_level->m_levelID.random - m_level->m_levelID.seed;\n  }\n  v5 = sub_1007AB580(\"Version: %i\", *p_m_listVersion);\n  CString = cocos2d::CCString::getCString((cocos2d::CCString *)v5);\n  v7 = cocos2d::CCLabelBMFont::create_3(CString, \"goldFont.fnt\");\n  ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64, double))a1->m_mainLayer->addChild_0)(\n    a1->m_mainLayer,\n    v7,\n    2,\n    v18);\n  v8 = cocos2d::CCMenu::create();\n  ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)(\n    a1->m_mainLayer,\n    v8,\n    2);\n  v15 = a1;\n  if ( m_listID )\n  {\n    v9 = sub_1007AB580(\"ID: %i\", m_listID);\n    v10 = cocos2d::CCString::getCString((cocos2d::CCString *)v9);\n  }\n  else\n  {\n    v10 = \"ID: na\";\n  }\n  v11 = cocos2d::CCLabelBMFont::create_3(v10, \"goldFont.fnt\");\n  sub_10028CBE0((float *)v17, v16[0] * 0.5, (float)((float)(0.5 * v16[1]) + -145.0) + 14.0);\n  sub_10028CBE0((float *)&v14, -50.0, 0.0);\n  sub_10028CCE0(&v13, v17, &v14);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v7->setPosition)(v7, &v13);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v7->setScale)(v7, 0.60000002);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v11->setScale)(v11, 0.60000002);\n  v12 = CCMenuItemSpriteExtra::create(\n          v11,\n          nullptr,\n          v15,\n          (cocos2d::SEL_MenuHandler)(unsigned __int64)InfoLayer::onCopyLevelID);\n  ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v8->addChild)(v8, v12);\n  sub_10028CBE0((float *)&v14, 50.0, 0.0);\n  sub_10028CCE0(&v13, v17, &v14);\n  ((void (__fastcall *)(cocos2d::CCMenu *, double *))v8->setPosition)(v8, &v13);\n}", "assembly": "; \n; InfoLayer::setupLevelInfo from 0x1007b0410 to 0x1007b060b (507 bytes)\n; \n; 1 xrefs:\n; > InfoLayer::init @ 0x1007af01b\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    rbp                                                            ; +0x0, 0x1007b0410\nmov     rbp, rsp                                                       ; +0x1, 0x1007b0411\npush    r15                                                            ; +0x4, 0x1007b0414\npush    r14                                                            ; +0x6, 0x1007b0416\npush    r13                                                            ; +0x8, 0x1007b0418\npush    r12                                                            ; +0xa, 0x1007b041a\npush    rbx                                                            ; +0xc, 0x1007b041c\nsub     rsp, 28h                                                       ; +0xd, 0x1007b041d\nmov     rbx, rdi                                                       ; +0x11, 0x1007b0421\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x14, 0x1007b0424\nlea     rdi, [rbp+var_38]                                              ; +0x19, 0x1007b0429\nmov     rsi, rax                                                       ; +0x1d, 0x1007b042d\ncall    cocos2d__CCDirector__getWinSize                                ; +0x20, 0x1007b0430\nmov     rax, [rbx+2A0h]                                                ; +0x25, 0x1007b0435\ntest    rax, rax                                                       ; +0x2c, 0x1007b043c\njz      short loc_1007B0450                                            ; +0x2f, 0x1007b043f\nmov     r12d, [rax+158h]                                               ; +0x31, 0x1007b0441\nadd     rax, 15Ch                                                      ; +0x38, 0x1007b0448\njmp     short loc_1007B046C                                            ; +0x3e, 0x1007b044e\nmov     rcx, [rbx+290h]                                                ; +0x40, 0x1007b0450\nlea     rax, [rcx+2A0h]                                                ; +0x47, 0x1007b0457\nmov     r12d, [rcx+148h]                                               ; +0x4e, 0x1007b045e\nsub     r12d, [rcx+14Ch]                                               ; +0x55, 0x1007b0465\nmov     esi, [rax]                                                     ; +0x5c, 0x1007b046c\nlea     rdi, aVersionI; \"Version: %i\"                                  ; +0x5e, 0x1007b046e\nxor     eax, eax                                                       ; +0x65, 0x1007b0475\ncall    sub_1007AB580                                                  ; +0x67, 0x1007b0477\nmov     rdi, rax                                                       ; +0x6c, 0x1007b047c\ncall    cocos2d__CCString__getCString                                  ; +0x6f, 0x1007b047f\nlea     rsi, aGoldfontFnt; \"goldFont.fnt\"                              ; +0x74, 0x1007b0484\nmov     rdi, rax                                                       ; +0x7b, 0x1007b048b\ncall    cocos2d__CCLabelBMFont__create_3                               ; +0x7e, 0x1007b048e\nmov     r15, rax                                                       ; +0x83, 0x1007b0493\nmov     rdi, [rbx+240h]                                                ; +0x86, 0x1007b0496\nmov     rax, [rdi]                                                     ; +0x8d, 0x1007b049d\nmov     rsi, r15                                                       ; +0x90, 0x1007b04a0\nmov     edx, 2                                                         ; +0x93, 0x1007b04a3\ncall    qword ptr [rax+1C0h]                                           ; +0x98, 0x1007b04a8\ncall    cocos2d__CCMenu__create                                        ; +0x9e, 0x1007b04ae\nmov     r14, rax                                                       ; +0xa3, 0x1007b04b3\nmov     rdi, [rbx+240h]                                                ; +0xa6, 0x1007b04b6\nmov     rax, [rdi]                                                     ; +0xad, 0x1007b04bd\nmov     rsi, r14                                                       ; +0xb0, 0x1007b04c0\nmov     edx, 2                                                         ; +0xb3, 0x1007b04c3\ncall    qword ptr [rax+1C0h]                                           ; +0xb8, 0x1007b04c8\ntest    r12d, r12d                                                     ; +0xbe, 0x1007b04ce\nmov     [rbp+var_40], rbx                                              ; +0xc1, 0x1007b04d1\njz      short loc_1007B04F5                                            ; +0xc5, 0x1007b04d5\nlea     rdi, aIdI; \"ID: %i\"                                            ; +0xc7, 0x1007b04d7\nmov     esi, r12d                                                      ; +0xce, 0x1007b04de\nxor     eax, eax                                                       ; +0xd1, 0x1007b04e1\ncall    sub_1007AB580                                                  ; +0xd3, 0x1007b04e3\nmov     rdi, rax                                                       ; +0xd8, 0x1007b04e8\ncall    cocos2d__CCString__getCString                                  ; +0xdb, 0x1007b04eb\nmov     rdi, rax                                                       ; +0xe0, 0x1007b04f0\njmp     short loc_1007B04FC                                            ; +0xe3, 0x1007b04f3\nlea     rdi, aIdNa; \"ID: na\"                                           ; +0xe5, 0x1007b04f5\nlea     rsi, aGoldfontFnt; \"goldFont.fnt\"                              ; +0xec, 0x1007b04fc\ncall    cocos2d__CCLabelBMFont__create_3                               ; +0xf3, 0x1007b0503\nmov     r13, rax                                                       ; +0xf8, 0x1007b0508\nmovss   xmm1, cs:dword_100814FA8                                       ; +0xfb, 0x1007b050b\nmovss   xmm0, [rbp+var_38]                                             ; +0x103, 0x1007b0513\nmulss   xmm0, xmm1                                                     ; +0x108, 0x1007b0518\nmulss   xmm1, [rbp+var_34]                                             ; +0x10c, 0x1007b051c\naddss   xmm1, cs:dword_100817A40                                       ; +0x111, 0x1007b0521\naddss   xmm1, cs:dword_10081529C                                       ; +0x119, 0x1007b0529\nlea     rdi, [rbp+var_30]                                              ; +0x121, 0x1007b0531\ncall    sub_10028CBE0                                                  ; +0x125, 0x1007b0535\nlea     r12, [rbp+var_48]                                              ; +0x12a, 0x1007b053a\nmovss   xmm0, cs:dword_100814FC0                                       ; +0x12e, 0x1007b053e\nxorps   xmm1, xmm1                                                     ; +0x136, 0x1007b0546\nmov     rdi, r12                                                       ; +0x139, 0x1007b0549\ncall    sub_10028CBE0                                                  ; +0x13c, 0x1007b054c\nlea     rbx, [rbp+var_50]                                              ; +0x141, 0x1007b0551\nmov     rdi, rbx                                                       ; +0x145, 0x1007b0555\nlea     rsi, [rbp+var_30]                                              ; +0x148, 0x1007b0558\nmov     rdx, r12                                                       ; +0x14c, 0x1007b055c\ncall    sub_10028CCE0                                                  ; +0x14f, 0x1007b055f\nmov     rax, [r15]                                                     ; +0x154, 0x1007b0564\nmov     rdi, r15                                                       ; +0x157, 0x1007b0567\nmov     rsi, rbx                                                       ; +0x15a, 0x1007b056a\ncall    qword ptr [rax+0B8h]                                           ; +0x15d, 0x1007b056d\nmov     rax, [r15]                                                     ; +0x163, 0x1007b0573\nmovss   xmm0, cs:dword_100814FB0                                       ; +0x166, 0x1007b0576\nmov     rdi, r15                                                       ; +0x16e, 0x1007b057e\ncall    qword ptr [rax+0A0h]                                           ; +0x171, 0x1007b0581\nmov     rax, [r13+0]                                                   ; +0x177, 0x1007b0587\nmov     rdi, r13                                                       ; +0x17b, 0x1007b058b\nmovss   xmm0, cs:dword_100814FB0                                       ; +0x17e, 0x1007b058e\ncall    qword ptr [rax+0A0h]                                           ; +0x186, 0x1007b0596\nlea     rcx, InfoLayer__onCopyLevelID                                  ; +0x18c, 0x1007b059c\nmov     rdi, r13                                                       ; +0x193, 0x1007b05a3\nxor     esi, esi                                                       ; +0x196, 0x1007b05a6\nmov     rdx, [rbp+var_40]                                              ; +0x198, 0x1007b05a8\nxor     r8d, r8d                                                       ; +0x19c, 0x1007b05ac\ncall    CCMenuItemSpriteExtra__create                                  ; +0x19f, 0x1007b05af\nmov     rcx, [r14]                                                     ; +0x1a4, 0x1007b05b4\nmov     rdi, r14                                                       ; +0x1a7, 0x1007b05b7\nmov     rsi, rax                                                       ; +0x1aa, 0x1007b05ba\ncall    qword ptr [rcx+1B8h]                                           ; +0x1ad, 0x1007b05bd\nlea     rbx, [rbp+var_48]                                              ; +0x1b3, 0x1007b05c3\nmovss   xmm0, cs:dword_100814FDC                                       ; +0x1b7, 0x1007b05c7\nxorps   xmm1, xmm1                                                     ; +0x1bf, 0x1007b05cf\nmov     rdi, rbx                                                       ; +0x1c2, 0x1007b05d2\ncall    sub_10028CBE0                                                  ; +0x1c5, 0x1007b05d5\nlea     r15, [rbp+var_50]                                              ; +0x1ca, 0x1007b05da\nmov     rdi, r15                                                       ; +0x1ce, 0x1007b05de\nlea     rsi, [rbp+var_30]                                              ; +0x1d1, 0x1007b05e1\nmov     rdx, rbx                                                       ; +0x1d5, 0x1007b05e5\ncall    sub_10028CCE0                                                  ; +0x1d8, 0x1007b05e8\nmov     rax, [r14]                                                     ; +0x1dd, 0x1007b05ed\nmov     rdi, r14                                                       ; +0x1e0, 0x1007b05f0\nmov     rsi, r15                                                       ; +0x1e3, 0x1007b05f3\ncall    qword ptr [rax+0B8h]                                           ; +0x1e6, 0x1007b05f6\nadd     rsp, 28h                                                       ; +0x1ec, 0x1007b05fc\npop     rbx                                                            ; +0x1f0, 0x1007b0600\npop     r12                                                            ; +0x1f1, 0x1007b0601\npop     r13                                                            ; +0x1f3, 0x1007b0603\npop     r14                                                            ; +0x1f5, 0x1007b0605\npop     r15                                                            ; +0x1f7, 0x1007b0607\npop     rbp                                                            ; +0x1f9, 0x1007b0609\nretn                                                                   ; +0x1fa, 0x1007b060a", "xrefs": ["InfoLayer::init @ 0x1007af01b"], "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"}