{"type": "func", "start": 4300232800, "end": 4300233168, "name": "GJRateLevelLayer::dGJRateLevelLayer", "pseudocode": "// \n// GJRateLevelLayer::dGJRateLevelLayer from 0x100505860 to 0x1005059d0 (368 bytes)\n// \n// 4 xrefs:\n// > sub_1005059E0 @ 0x1005059e5\n// > sub_1005059F0 @ 0x1005059fc\n// > sub_100505A10 @ 0x100505a19\n// > sub_100505A30 @ 0x100505a43\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__int64 __fastcall GJRateLevelLayer::dGJRateLevelLayer(__int64 a1)\n{\n  cocos2d::CCObject *v2; // rdi\n  cocos2d::CCObject *v3; // rdi\n  cocos2d::CCObject *v4; // rdi\n\n  *(_QWORD *)a1 = off_100959C80;\n  *(_QWORD *)(a1 + 320) = off_10095A280;\n  *(_QWORD *)(a1 + 328) = &off_10095A2F0;\n  *(_QWORD *)(a1 + 336) = off_10095A308;\n  *(_QWORD *)(a1 + 344) = off_10095A328;\n  *(_QWORD *)(a1 + 352) = off_10095A348;\n  *(_QWORD *)(a1 + 408) = off_10095A370;\n  *(_QWORD *)(a1 + 432) = off_10095A3F0;\n  *(_QWORD *)(a1 + 632) = off_10095A410;\n  *(_QWORD *)(a1 + 640) = &off_10095A458;\n  *(_QWORD *)(a1 + 648) = off_10095A470;\n  *(_QWORD *)(a1 + 944) = &off_10095A490;\n  *(_QWORD *)(a1 + 952) = off_10095A4A8;\n  *(_QWORD *)(a1 + 960) = off_10095A4C8;\n  *(_QWORD *)(a1 + 968) = &off_10095A4E8;\n  if ( GameLevelManager::sharedState()->m_uploadActionDelegate == (UploadActionDelegate *)(a1 + 952) )\n    GameLevelManager::sharedState()->m_uploadActionDelegate = nullptr;\n  if ( GameLevelManager::sharedState()->m_levelRateInfoDelegate == (LevelRateInfoDelegate *)(a1 + 960) )\n  {\n    GameLevelManager::sharedState()->m_levelRateInfoDelegate = nullptr;\n    v2 = *(cocos2d::CCObject **)(a1 + 1000);\n    if ( !v2 )\n      goto LABEL_8;\n    goto LABEL_7;\n  }\n  v2 = *(cocos2d::CCObject **)(a1 + 1000);\n  if ( v2 )\nLABEL_7:\n    cocos2d::CCObject::release(v2);\nLABEL_8:\n  v3 = *(cocos2d::CCObject **)(a1 + 976);\n  if ( v3 )\n    cocos2d::CCObject::release(v3);\n  v4 = *(cocos2d::CCObject **)(a1 + 1048);\n  if ( v4 )\n    cocos2d::CCObject::release(v4);\n  return SetupTriggerPopup::dSetupTriggerPopup(a1);\n}", "assembly": "; \n; GJRateLevelLayer::dGJRateLevelLayer from 0x100505860 to 0x1005059d0 (368 bytes)\n; \n; 4 xrefs:\n; > sub_1005059E0 @ 0x1005059e5\n; > sub_1005059F0 @ 0x1005059fc\n; > sub_100505A10 @ 0x100505a19\n; > sub_100505A30 @ 0x100505a43\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, 0x100505860\nmov     rbp, rsp                                                       ; +0x1, 0x100505861\npush    rbx                                                            ; +0x4, 0x100505864\npush    rax                                                            ; +0x5, 0x100505865\nmov     rbx, rdi                                                       ; +0x6, 0x100505866\nlea     rax, off_100959C80                                             ; +0x9, 0x100505869\nmov     [rdi], rax                                                     ; +0x10, 0x100505870\nlea     rax, off_10095A280                                             ; +0x13, 0x100505873\nmov     [rdi+140h], rax                                                ; +0x1a, 0x10050587a\nlea     rax, off_10095A2F0                                             ; +0x21, 0x100505881\nmov     [rdi+148h], rax                                                ; +0x28, 0x100505888\nlea     rax, off_10095A308                                             ; +0x2f, 0x10050588f\nmov     [rdi+150h], rax                                                ; +0x36, 0x100505896\nlea     rax, off_10095A328                                             ; +0x3d, 0x10050589d\nmov     [rdi+158h], rax                                                ; +0x44, 0x1005058a4\nlea     rax, off_10095A348                                             ; +0x4b, 0x1005058ab\nmov     [rdi+160h], rax                                                ; +0x52, 0x1005058b2\nlea     rax, off_10095A370                                             ; +0x59, 0x1005058b9\nmov     [rdi+198h], rax                                                ; +0x60, 0x1005058c0\nlea     rax, off_10095A3F0                                             ; +0x67, 0x1005058c7\nmov     [rdi+1B0h], rax                                                ; +0x6e, 0x1005058ce\nlea     rax, off_10095A410                                             ; +0x75, 0x1005058d5\nmov     [rdi+278h], rax                                                ; +0x7c, 0x1005058dc\nlea     rax, off_10095A458                                             ; +0x83, 0x1005058e3\nmov     [rdi+280h], rax                                                ; +0x8a, 0x1005058ea\nlea     rax, off_10095A470                                             ; +0x91, 0x1005058f1\nmov     [rdi+288h], rax                                                ; +0x98, 0x1005058f8\nlea     rax, off_10095A490                                             ; +0x9f, 0x1005058ff\nmov     [rdi+3B0h], rax                                                ; +0xa6, 0x100505906\nlea     rax, off_10095A4A8                                             ; +0xad, 0x10050590d\nmov     [rdi+3B8h], rax                                                ; +0xb4, 0x100505914\nlea     rax, off_10095A4C8                                             ; +0xbb, 0x10050591b\nmov     [rdi+3C0h], rax                                                ; +0xc2, 0x100505922\nlea     rax, off_10095A4E8                                             ; +0xc9, 0x100505929\nmov     [rdi+3C8h], rax                                                ; +0xd0, 0x100505930\ncall    GameLevelManager__sharedState                                  ; +0xd7, 0x100505937\nlea     rcx, [rbx+3B8h]                                                ; +0xdc, 0x10050593c\ncmp     [rax+328h], rcx                                                ; +0xe3, 0x100505943\njnz     short loc_10050595C                                            ; +0xea, 0x10050594a\ncall    GameLevelManager__sharedState                                  ; +0xec, 0x10050594c\nmov     qword ptr [rax+328h], 0                                        ; +0xf1, 0x100505951\ncall    GameLevelManager__sharedState                                  ; +0xfc, 0x10050595c\nlea     rcx, [rbx+3C0h]                                                ; +0x101, 0x100505961\ncmp     [rax+380h], rcx                                                ; +0x108, 0x100505968\njz      short loc_10050597F                                            ; +0x10f, 0x10050596f\nmov     rdi, [rbx+3E8h]                                                ; +0x111, 0x100505971\ntest    rdi, rdi                                                       ; +0x118, 0x100505978\njnz     short loc_10050599B                                            ; +0x11b, 0x10050597b\njmp     short loc_1005059A0                                            ; +0x11d, 0x10050597d\ncall    GameLevelManager__sharedState                                  ; +0x11f, 0x10050597f\nmov     qword ptr [rax+380h], 0                                        ; +0x124, 0x100505984\nmov     rdi, [rbx+3E8h]                                                ; +0x12f, 0x10050598f\ntest    rdi, rdi                                                       ; +0x136, 0x100505996\njz      short loc_1005059A0                                            ; +0x139, 0x100505999\ncall    cocos2d__CCObject__release                                     ; +0x13b, 0x10050599b\nmov     rdi, [rbx+3D0h]                                                ; +0x140, 0x1005059a0\ntest    rdi, rdi                                                       ; +0x147, 0x1005059a7\njz      short loc_1005059B1                                            ; +0x14a, 0x1005059aa\ncall    cocos2d__CCObject__release                                     ; +0x14c, 0x1005059ac\nmov     rdi, [rbx+418h]                                                ; +0x151, 0x1005059b1\ntest    rdi, rdi                                                       ; +0x158, 0x1005059b8\njz      short loc_1005059C2                                            ; +0x15b, 0x1005059bb\ncall    cocos2d__CCObject__release                                     ; +0x15d, 0x1005059bd\nmov     rdi, rbx                                                       ; +0x162, 0x1005059c2\nadd     rsp, 8                                                         ; +0x165, 0x1005059c5\npop     rbx                                                            ; +0x169, 0x1005059c9\npop     rbp                                                            ; +0x16a, 0x1005059ca\njmp     SetupTriggerPopup__dSetupTriggerPopup                          ; +0x16b, 0x1005059cb", "xrefs": ["sub_1005059E0 @ 0x1005059e5", "sub_1005059F0 @ 0x1005059fc", "sub_100505A10 @ 0x100505a19", "sub_100505A30 @ 0x100505a43"], "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"}