{"type": "func", "start": 5371581040, "end": 5371581353, "name": "InfoLayer::onCopyLevelID", "pseudocode": "// \n// InfoLayer::onCopyLevelID from 0x1402bd270 to 0x1402bd3a9 (313 bytes)\n// \n// 2 xrefs:\n// > InfoLayer::setupLevelInfo @ 0x1402bcc79\n// > <???> @ 0x1406d2810\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\n// Hidden C++ exception states: #wind=1\nvoid InfoLayer::onCopyLevelID(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GJUserScore *m_score; // rax\n  int m_userID; // eax\n  GJLevelList *m_levelList; // rax\n  GJGameLevel *m_level; // rcx\n  unsigned int v7; // edx\n  _QWORD *v8; // rax\n  InfoLayer_vtbl *v9; // rbx\n  __int64 v10; // rdx\n  __int64 v11; // r8\n  cocos2d::CCNode *v12; // rax\n  __int128 v13; // [rsp+30h] [rbp-48h] BYREF\n  __int64 v14; // [rsp+40h] [rbp-38h]\n  __int64 v15; // [rsp+48h] [rbp-30h]\n  __int128 v16; // [rsp+50h] [rbp-28h] BYREF\n  __int64 v17; // [rsp+60h] [rbp-18h]\n  __int64 v18; // [rsp+68h] [rbp-10h]\n\n  m_score = a1->m_score;\n  if ( m_score )\n  {\n    m_userID = m_score->m_userID;\n  }\n  else\n  {\n    m_levelList = a1->m_levelList;\n    if ( m_levelList )\n    {\n      m_userID = -m_levelList->m_listID;\n    }\n    else\n    {\n      m_level = a1->m_level;\n      if ( m_level )\n        m_userID = m_level->m_levelID.random - m_level->m_levelID.seed;\n      else\n        m_userID = 0;\n    }\n  }\n  v7 = -m_userID;\n  if ( m_userID > 0 )\n    v7 = m_userID;\n  v8 = GameToolbox::intToString(&v16, v7);\n  PlatformToolbox::copyToClipboard(v8);\n  v16 = 0;\n  v17 = 0;\n  v18 = 15;\n  LOBYTE(v16) = 0;\n  v13 = 0;\n  *(_QWORD *)&v13 = sub_14003AA10(0x20u);\n  v14 = 19;\n  v15 = 31;\n  strcpy((char *)v13, \"Copied to clipboard\");\n  v9 = a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v12 = TextAlertPopup::create((__int64)&v13, v10, v11, 150, (__int64)&v16);\n  v9->addChild_0(a1, v12, 100);\n}", "assembly": "; \n; InfoLayer::onCopyLevelID from 0x1402bd270 to 0x1402bd3a9 (313 bytes)\n; \n; 2 xrefs:\n; > InfoLayer::setupLevelInfo @ 0x1402bcc79\n; > <???> @ 0x1406d2810\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_8], rbx                                               ; +0x0, 0x1402bd270\npush    rdi                                                            ; +0x5, 0x1402bd275\nsub     rsp, 70h                                                       ; +0x6, 0x1402bd276\nmov     rdi, rcx                                                       ; +0xa, 0x1402bd27a\nmov     rax, [rcx+298h]                                                ; +0xd, 0x1402bd27d\nxor     ebx, ebx                                                       ; +0x14, 0x1402bd284\ntest    rax, rax                                                       ; +0x16, 0x1402bd286\njz      short loc_1402BD293                                            ; +0x19, 0x1402bd289\nmov     eax, [rax+184h]                                                ; +0x1b, 0x1402bd28b\njmp     short loc_1402BD2C5                                            ; +0x21, 0x1402bd291\nmov     rax, [rcx+2A0h]                                                ; +0x23, 0x1402bd293\ntest    rax, rax                                                       ; +0x2a, 0x1402bd29a\njz      short loc_1402BD2A9                                            ; +0x2d, 0x1402bd29d\nmov     eax, [rax+158h]                                                ; +0x2f, 0x1402bd29f\nneg     eax                                                            ; +0x35, 0x1402bd2a5\njmp     short loc_1402BD2C5                                            ; +0x37, 0x1402bd2a7\nmov     rcx, [rcx+290h]                                                ; +0x39, 0x1402bd2a9\ntest    rcx, rcx                                                       ; +0x40, 0x1402bd2b0\njz      short loc_1402BD2C3                                            ; +0x43, 0x1402bd2b3\nmov     eax, [rcx+148h]                                                ; +0x45, 0x1402bd2b5\nsub     eax, [rcx+14Ch]                                                ; +0x4b, 0x1402bd2bb\njmp     short loc_1402BD2C5                                            ; +0x51, 0x1402bd2c1\nmov     eax, ebx                                                       ; +0x53, 0x1402bd2c3\nmov     edx, eax                                                       ; +0x55, 0x1402bd2c5\nneg     edx                                                            ; +0x57, 0x1402bd2c7\ncmovs   edx, eax                                                       ; +0x59, 0x1402bd2c9\nlea     rcx, [rsp+78h+var_28]                                          ; +0x5c, 0x1402bd2cc\ncall    GameToolbox__intToString                                       ; +0x61, 0x1402bd2d1\nmov     rcx, rax; Src                                                  ; +0x66, 0x1402bd2d6\ncall    PlatformToolbox__copyToClipboard                               ; +0x69, 0x1402bd2d9\nlea     rax, [rsp+78h+var_28]                                          ; +0x6e, 0x1402bd2de\nmov     [rsp+78h+arg_0], rax                                           ; +0x73, 0x1402bd2e3\nxorps   xmm0, xmm0                                                     ; +0x7b, 0x1402bd2eb\nmovups  [rsp+78h+var_28], xmm0                                         ; +0x7e, 0x1402bd2ee\nmov     [rsp+78h+var_18], rbx                                          ; +0x83, 0x1402bd2f3\nmov     [rsp+78h+var_10], 0Fh                                          ; +0x88, 0x1402bd2f8\nmov     byte ptr [rsp+78h+var_28], bl                                  ; +0x91, 0x1402bd301\nmovups  [rsp+78h+var_48], xmm0                                         ; +0x95, 0x1402bd305\nmov     [rsp+78h+var_38], rbx                                          ; +0x9a, 0x1402bd30a\nmov     [rsp+78h+var_30], 0Fh                                          ; +0x9f, 0x1402bd30f\nmov     ecx, 20h ; ' '                                                 ; +0xa8, 0x1402bd318\ncall    sub_14003AA10                                                  ; +0xad, 0x1402bd31d\nmov     qword ptr [rsp+78h+var_48], rax                                ; +0xb2, 0x1402bd322\nmov     [rsp+78h+var_38], 13h                                          ; +0xb7, 0x1402bd327\nmov     [rsp+78h+var_30], 1Fh                                          ; +0xc0, 0x1402bd330\nmovups  xmm0, cs:xmmword_1405813F8                                     ; +0xc9, 0x1402bd339\nmovups  xmmword ptr [rax], xmm0                                        ; +0xd0, 0x1402bd340\nmovzx   ecx, cs:word_140581408                                         ; +0xd3, 0x1402bd343\nmov     [rax+10h], cx                                                  ; +0xda, 0x1402bd34a\nmovzx   ecx, cs:byte_14058140A                                         ; +0xde, 0x1402bd34e\nmov     [rax+12h], cl                                                  ; +0xe5, 0x1402bd355\nmov     byte ptr [rax+13h], 0                                          ; +0xe8, 0x1402bd358\nmov     rbx, [rdi]                                                     ; +0xec, 0x1402bd35c\nlea     rax, [rsp+78h+var_28]                                          ; +0xef, 0x1402bd35f\nmov     [rsp+78h+var_58], rax                                          ; +0xf4, 0x1402bd364\nmov     r9d, 96h                                                       ; +0xf9, 0x1402bd369\nmovss   xmm2, cs:dword_140622B38                                       ; +0xff, 0x1402bd36f\nmovss   xmm1, cs:dword_140622B08                                       ; +0x107, 0x1402bd377\nlea     rcx, [rsp+78h+var_48]                                          ; +0x10f, 0x1402bd37f\ncall    TextAlertPopup__create                                         ; +0x114, 0x1402bd384\nmov     rdx, rax                                                       ; +0x119, 0x1402bd389\nmov     r8d, 64h ; 'd'                                                 ; +0x11c, 0x1402bd38c\nmov     rcx, rdi                                                       ; +0x122, 0x1402bd392\ncall    qword ptr [rbx+1B8h]                                           ; +0x125, 0x1402bd395\nmov     rbx, [rsp+78h+arg_8]                                           ; +0x12b, 0x1402bd39b\nadd     rsp, 70h                                                       ; +0x133, 0x1402bd3a3\npop     rdi                                                            ; +0x137, 0x1402bd3a7\nretn                                                                   ; +0x138, 0x1402bd3a8", "xrefs": ["InfoLayer::setupLevelInfo @ 0x1402bcc79", "<???> @ 0x1406d2810"], "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"}