{"type": "func", "start": 5372707088, "end": 5372707617, "name": "InfoLayer::setupLevelInfo", "pseudocode": "// \n// InfoLayer::setupLevelInfo from 0x1403d0110 to 0x1403d0321 (529 bytes)\n// \n// 3 xrefs:\n// > InfoLayer::init @ 0x1403ceb6e\n// > InfoLayer::init @ 0x1403ced94\n// > <???> @ 0x140924680\n// \n// This function is hookable on this platform (idp: pc, 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 11:31:35 +0000\n// \n\n__int64 __fastcall InfoLayer::setupLevelInfo(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rbx\n  int v4; // edx\n  int v5; // ebx\n  __int64 v6; // rbx\n  _DWORD *v7; // rax\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n  struct cocos2d::CCLabelBMFont *v10; // rsi\n  __int64 v11; // rcx\n  __int64 v12; // r14\n  const char *v13; // rax\n  cocos2d::CCString *v14; // rax\n  struct cocos2d::CCLabelBMFont *v15; // rbx\n  __int64 v16; // rax\n  cocos2d::CCObject *v17; // rax\n  __int64 v18; // rax\n  float v20; // [rsp+50h] [rbp+8h] BYREF\n  float v21; // [rsp+54h] [rbp+Ch]\n  char v22; // [rsp+58h] [rbp+10h] BYREF\n  char v23; // [rsp+60h] [rbp+18h] BYREF\n  char v24; // [rsp+68h] [rbp+20h] BYREF\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v2, &v20);\n  v3 = *(_QWORD *)(a1 + 712);\n  if ( v3 )\n  {\n    v4 = *(_DWORD *)(v3 + 348);\n    v5 = *(_DWORD *)(v3 + 344);\n  }\n  else\n  {\n    v6 = *(_QWORD *)(a1 + 720);\n    if ( v6 )\n    {\n      v4 = *(_DWORD *)(v6 + 332);\n      v5 = *(_DWORD *)(v6 + 320);\n    }\n    else\n    {\n      v7 = *(_DWORD **)(a1 + 696);\n      v5 = v7[82] - v7[83];\n      v4 = v7[215];\n    }\n  }\n  v8 = cocos2d::CCString::createWithFormat(\"Version: %i\", v4);\n  CString = cocos2d::CCString::getCString(v8);\n  v10 = cocos2d::CCLabelBMFont::create(CString, \"goldFont.fnt\");\n  (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(\n    *(_QWORD *)(a1 + 584),\n    v10,\n    2);\n  v12 = cocos2d::CCMenu::create(v11);\n  (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v12, 2);\n  v13 = \"ID: na\";\n  if ( v5 )\n  {\n    v14 = cocos2d::CCString::createWithFormat(\"ID: %i\", v5);\n    v13 = cocos2d::CCString::getCString(v14);\n  }\n  v15 = cocos2d::CCLabelBMFont::create(v13, \"goldFont.fnt\");\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, v20 * 0.5, (float)((float)(v21 * 0.5) - 145.0) + 14.0);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, -50.0, 0.0);\n  cocos2d::CCPoint::operator+(&v22, &v23, v16);\n  (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v10 + 184LL))(v10, &v23);\n  (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v10 + 160LL))(v10);\n  (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v15 + 160LL))(v15);\n  v17 = CCMenuItemSpriteExtra::create((int)v15, 0, a1, (__int64)InfoLayer::onCopyLevelID);\n  (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v12 + 464LL))(v12, v17);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, 50.0, 0.0);\n  cocos2d::CCPoint::operator+(&v22, &v23, v18);\n  return (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)v12 + 184LL))(v12, &v23);\n}", "assembly": "; \n; InfoLayer::setupLevelInfo from 0x1403d0110 to 0x1403d0321 (529 bytes)\n; \n; 3 xrefs:\n; > InfoLayer::init @ 0x1403ceb6e\n; > InfoLayer::init @ 0x1403ced94\n; > <???> @ 0x140924680\n; \n; This function is hookable on this platform (idp: pc, 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 11:31:35 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403d0110\npush    rsi                                                            ; +0x2, 0x1403d0112\npush    rdi                                                            ; +0x3, 0x1403d0113\npush    r14                                                            ; +0x4, 0x1403d0114\nsub     rsp, 28h                                                       ; +0x6, 0x1403d0116\nmov     rdi, rcx                                                       ; +0xa, 0x1403d011a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1403d011d\nmov     rcx, rax                                                       ; +0x13, 0x1403d0123\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x16, 0x1403d0126\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x1b, 0x1403d012b\nmov     rbx, [rdi+2C8h]                                                ; +0x21, 0x1403d0131\ntest    rbx, rbx                                                       ; +0x28, 0x1403d0138\njz      short loc_1403D014B                                            ; +0x2b, 0x1403d013b\nmov     edx, [rbx+15Ch]                                                ; +0x2d, 0x1403d013d\nmov     ebx, [rbx+158h]                                                ; +0x33, 0x1403d0143\njmp     short loc_1403D017E                                            ; +0x39, 0x1403d0149\nmov     rbx, [rdi+2D0h]                                                ; +0x3b, 0x1403d014b\ntest    rbx, rbx                                                       ; +0x42, 0x1403d0152\njz      short loc_1403D0165                                            ; +0x45, 0x1403d0155\nmov     edx, [rbx+14Ch]                                                ; +0x47, 0x1403d0157\nmov     ebx, [rbx+140h]                                                ; +0x4d, 0x1403d015d\njmp     short loc_1403D017E                                            ; +0x53, 0x1403d0163\nmov     rax, [rdi+2B8h]                                                ; +0x55, 0x1403d0165\nmov     ebx, [rax+148h]                                                ; +0x5c, 0x1403d016c\nsub     ebx, [rax+14Ch]                                                ; +0x62, 0x1403d0172\nmov     edx, [rax+35Ch]                                                ; +0x68, 0x1403d0178\nlea     rcx, aVersionI; \"Version: %i\"                                  ; +0x6e, 0x1403d017e\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x75, 0x1403d0185\nmov     rcx, rax                                                       ; +0x7b, 0x1403d018b\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x7e, 0x1403d018e\nmov     rcx, rax                                                       ; +0x84, 0x1403d0194\nlea     rdx, aGoldfontFnt; \"goldFont.fnt\"                              ; +0x87, 0x1403d0197\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x8e, 0x1403d019e\nmov     rcx, [rdi+248h]                                                ; +0x94, 0x1403d01a4\nmov     r8d, 2                                                         ; +0x9b, 0x1403d01ab\nmov     rsi, rax                                                       ; +0xa1, 0x1403d01b1\nmov     rdx, [rcx]                                                     ; +0xa4, 0x1403d01b4\nmov     r9, [rdx+1C8h]                                                 ; +0xa7, 0x1403d01b7\nmov     rdx, rax                                                       ; +0xae, 0x1403d01be\ncall    r9                                                             ; +0xb1, 0x1403d01c1\ncall    cs:?create@CCMenu@cocos2d@@SAPEAV12@XZ; cocos2d::CCMenu::create(void) ; +0xb4, 0x1403d01c4\nmov     rcx, [rdi+248h]                                                ; +0xba, 0x1403d01ca\nmov     r8d, 2                                                         ; +0xc1, 0x1403d01d1\nmov     rdx, rax                                                       ; +0xc7, 0x1403d01d7\nmov     r14, rax                                                       ; +0xca, 0x1403d01da\nmov     r9, [rcx]                                                      ; +0xcd, 0x1403d01dd\ncall    qword ptr [r9+1C8h]                                            ; +0xd0, 0x1403d01e0\nlea     rax, aIdNa; \"ID: na\"                                           ; +0xd7, 0x1403d01e7\ntest    ebx, ebx                                                       ; +0xde, 0x1403d01ee\njz      short loc_1403D020A                                            ; +0xe0, 0x1403d01f0\nmov     edx, ebx                                                       ; +0xe2, 0x1403d01f2\nlea     rcx, aIdI; \"ID: %i\"                                            ; +0xe4, 0x1403d01f4\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xeb, 0x1403d01fb\nmov     rcx, rax                                                       ; +0xf1, 0x1403d0201\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xf4, 0x1403d0204\nlea     rdx, aGoldfontFnt; \"goldFont.fnt\"                              ; +0xfa, 0x1403d020a\nmov     rcx, rax                                                       ; +0x101, 0x1403d0211\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x104, 0x1403d0214\nmovss   xmm2, [rsp+48h+arg_4]                                          ; +0x10a, 0x1403d021a\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x110, 0x1403d0220\nmulss   xmm2, cs:dword_140834F20                                       ; +0x115, 0x1403d0225\nmov     rbx, rax                                                       ; +0x11d, 0x1403d022d\nmovss   xmm1, [rsp+48h+arg_0]                                          ; +0x120, 0x1403d0230\nmulss   xmm1, cs:dword_140834F20                                       ; +0x126, 0x1403d0236\nsubss   xmm2, cs:dword_14083584C                                       ; +0x12e, 0x1403d023e\naddss   xmm2, cs:dword_140835530                                       ; +0x136, 0x1403d0246\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x13e, 0x1403d024e\nmovss   xmm1, cs:dword_140835EF8                                       ; +0x144, 0x1403d0254\nlea     rcx, [rsp+48h+arg_18]                                          ; +0x14c, 0x1403d025c\nxorps   xmm2, xmm2                                                     ; +0x151, 0x1403d0261\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x154, 0x1403d0264\nmov     r8, rax                                                        ; +0x15a, 0x1403d026a\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x15d, 0x1403d026d\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x162, 0x1403d0272\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x167, 0x1403d0277\nmov     rax, [rsi]                                                     ; +0x16d, 0x1403d027d\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x170, 0x1403d0280\nmov     rcx, rsi                                                       ; +0x175, 0x1403d0285\ncall    qword ptr [rax+0B8h]                                           ; +0x178, 0x1403d0288\nmov     rax, [rsi]                                                     ; +0x17e, 0x1403d028e\nmov     rcx, rsi                                                       ; +0x181, 0x1403d0291\nmovss   xmm1, cs:dword_140834F64                                       ; +0x184, 0x1403d0294\ncall    qword ptr [rax+0A0h]                                           ; +0x18c, 0x1403d029c\nmov     rax, [rbx]                                                     ; +0x192, 0x1403d02a2\nmov     rcx, rbx                                                       ; +0x195, 0x1403d02a5\nmovss   xmm1, cs:dword_140834F64                                       ; +0x198, 0x1403d02a8\ncall    qword ptr [rax+0A0h]                                           ; +0x1a0, 0x1403d02b0\nlea     r9, InfoLayer__onCopyLevelID                                   ; +0x1a6, 0x1403d02b6\nmov     r8, rdi                                                        ; +0x1ad, 0x1403d02bd\nxor     edx, edx                                                       ; +0x1b0, 0x1403d02c0\nmov     rcx, rbx                                                       ; +0x1b2, 0x1403d02c2\ncall    CCMenuItemSpriteExtra__create                                  ; +0x1b5, 0x1403d02c5\nmov     rcx, [r14]                                                     ; +0x1ba, 0x1403d02ca\nmov     rdx, rax                                                       ; +0x1bd, 0x1403d02cd\nmov     r8, [rcx+1D0h]                                                 ; +0x1c0, 0x1403d02d0\nmov     rcx, r14                                                       ; +0x1c7, 0x1403d02d7\ncall    r8                                                             ; +0x1ca, 0x1403d02da\nmovss   xmm1, cs:dword_1408356B0                                       ; +0x1cd, 0x1403d02dd\nlea     rcx, [rsp+48h+arg_18]                                          ; +0x1d5, 0x1403d02e5\nxorps   xmm2, xmm2                                                     ; +0x1da, 0x1403d02ea\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1dd, 0x1403d02ed\nmov     r8, rax                                                        ; +0x1e3, 0x1403d02f3\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x1e6, 0x1403d02f6\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x1eb, 0x1403d02fb\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x1f0, 0x1403d0300\nmov     rax, [r14]                                                     ; +0x1f6, 0x1403d0306\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x1f9, 0x1403d0309\nmov     rcx, r14                                                       ; +0x1fe, 0x1403d030e\ncall    qword ptr [rax+0B8h]                                           ; +0x201, 0x1403d0311\nadd     rsp, 28h                                                       ; +0x207, 0x1403d0317\npop     r14                                                            ; +0x20b, 0x1403d031b\npop     rdi                                                            ; +0x20d, 0x1403d031d\npop     rsi                                                            ; +0x20e, 0x1403d031e\npop     rbx                                                            ; +0x20f, 0x1403d031f\nretn                                                                   ; +0x210, 0x1403d0320", "xrefs": ["InfoLayer::init @ 0x1403ceb6e", "InfoLayer::init @ 0x1403ced94", "<???> @ 0x140924680"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}