{"type": "func", "start": 4300228544, "end": 4300228904, "name": "GJRateLevelLayer::create", "pseudocode": "// \n// GJRateLevelLayer::create from 0x1005047c0 to 0x100504928 (360 bytes)\n// \n// 1 xrefs:\n// > LevelInfoLayer::onRateStarsMod @ 0x1002ae9fe\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 12:31:31 +0000\n// \n\nchar *__fastcall GJRateLevelLayer::create(__int64 a1)\n{\n  char *v1; // rbx\n\n  v1 = (char *)operator new(0x470u);\n  SetupTriggerPopup::SetupTriggerPopup((__int64)v1);\n  *(_QWORD *)v1 = off_100B65348;\n  *((_QWORD *)v1 + 40) = off_100B65968;\n  *((_QWORD *)v1 + 41) = &off_100B659D8;\n  *((_QWORD *)v1 + 42) = off_100B659F0;\n  *((_QWORD *)v1 + 43) = off_100B65A10;\n  *((_QWORD *)v1 + 44) = off_100B65A38;\n  *((_QWORD *)v1 + 51) = off_100B65A68;\n  *((_QWORD *)v1 + 54) = off_100B65AE8;\n  *((_QWORD *)v1 + 68) = off_100B65B08;\n  *((_QWORD *)v1 + 83) = &off_100B65B50;\n  *((_QWORD *)v1 + 84) = off_100B65B68;\n  *((_QWORD *)v1 + 127) = &off_100B65B88;\n  *((_QWORD *)v1 + 128) = off_100B65BA0;\n  *((_QWORD *)v1 + 129) = off_100B65BC0;\n  *((_QWORD *)v1 + 130) = &off_100B65BE0;\n  *((_QWORD *)v1 + 131) = 0;\n  v1[1056] = 0;\n  *((_QWORD *)v1 + 140) = 0;\n  *(_OWORD *)(v1 + 1064) = 0;\n  *(_QWORD *)(v1 + 1077) = 0;\n  *(_OWORD *)(v1 + 1100) = 0;\n  *((_OWORD *)v1 + 68) = 0;\n  sub_1002782A0((_QWORD *)v1 + 141);\n  if ( (unsigned __int8)GJRateLevelLayer::init(v1, a1) )\n  {\n    cocos2d::CCObject::autorelease((__int64)v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return v1;\n}", "assembly": "; \n; GJRateLevelLayer::create from 0x1005047c0 to 0x100504928 (360 bytes)\n; \n; 1 xrefs:\n; > LevelInfoLayer::onRateStarsMod @ 0x1002ae9fe\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 12:31:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005047c0\nmov     rbp, rsp                                                       ; +0x1, 0x1005047c1\npush    r14                                                            ; +0x4, 0x1005047c4\npush    rbx                                                            ; +0x6, 0x1005047c6\nmov     r14, rdi                                                       ; +0x7, 0x1005047c7\nmov     edi, 470h; __sz                                                ; +0xa, 0x1005047ca\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x1005047cf\nmov     rbx, rax                                                       ; +0x14, 0x1005047d4\nmov     rdi, rax                                                       ; +0x17, 0x1005047d7\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x1a, 0x1005047da\nlea     rax, off_100B65348                                             ; +0x1f, 0x1005047df\nmov     [rbx], rax                                                     ; +0x26, 0x1005047e6\nlea     rax, off_100B65968                                             ; +0x29, 0x1005047e9\nmov     [rbx+140h], rax                                                ; +0x30, 0x1005047f0\nlea     rax, off_100B659D8                                             ; +0x37, 0x1005047f7\nmov     [rbx+148h], rax                                                ; +0x3e, 0x1005047fe\nlea     rax, off_100B659F0                                             ; +0x45, 0x100504805\nmov     [rbx+150h], rax                                                ; +0x4c, 0x10050480c\nlea     rax, off_100B65A10                                             ; +0x53, 0x100504813\nmov     [rbx+158h], rax                                                ; +0x5a, 0x10050481a\nlea     rax, off_100B65A38                                             ; +0x61, 0x100504821\nmov     [rbx+160h], rax                                                ; +0x68, 0x100504828\nlea     rax, off_100B65A68                                             ; +0x6f, 0x10050482f\nmov     [rbx+198h], rax                                                ; +0x76, 0x100504836\nlea     rax, off_100B65AE8                                             ; +0x7d, 0x10050483d\nmov     [rbx+1B0h], rax                                                ; +0x84, 0x100504844\nlea     rax, off_100B65B08                                             ; +0x8b, 0x10050484b\nmov     [rbx+220h], rax                                                ; +0x92, 0x100504852\nlea     rax, off_100B65B50                                             ; +0x99, 0x100504859\nmov     [rbx+298h], rax                                                ; +0xa0, 0x100504860\nlea     rax, off_100B65B68                                             ; +0xa7, 0x100504867\nmov     [rbx+2A0h], rax                                                ; +0xae, 0x10050486e\nlea     rax, off_100B65B88                                             ; +0xb5, 0x100504875\nmov     [rbx+3F8h], rax                                                ; +0xbc, 0x10050487c\nlea     rax, off_100B65BA0                                             ; +0xc3, 0x100504883\nmov     [rbx+400h], rax                                                ; +0xca, 0x10050488a\nlea     rax, off_100B65BC0                                             ; +0xd1, 0x100504891\nmov     [rbx+408h], rax                                                ; +0xd8, 0x100504898\nlea     rax, off_100B65BE0                                             ; +0xdf, 0x10050489f\nmov     [rbx+410h], rax                                                ; +0xe6, 0x1005048a6\nmov     qword ptr [rbx+418h], 0                                        ; +0xed, 0x1005048ad\nmov     byte ptr [rbx+420h], 0                                         ; +0xf8, 0x1005048b8\nmov     qword ptr [rbx+460h], 0                                        ; +0xff, 0x1005048bf\nmov     rdi, rbx                                                       ; +0x10a, 0x1005048ca\nadd     rdi, 468h                                                      ; +0x10d, 0x1005048cd\nxorps   xmm0, xmm0                                                     ; +0x114, 0x1005048d4\nmovups  xmmword ptr [rbx+428h], xmm0                                   ; +0x117, 0x1005048d7\nmov     qword ptr [rbx+435h], 0                                        ; +0x11e, 0x1005048de\nmovups  xmmword ptr [rbx+44Ch], xmm0                                   ; +0x129, 0x1005048e9\nmovups  xmmword ptr [rbx+440h], xmm0                                   ; +0x130, 0x1005048f0\ncall    sub_1002782A0                                                  ; +0x137, 0x1005048f7\nmov     rdi, rbx                                                       ; +0x13c, 0x1005048fc\nmov     rsi, r14                                                       ; +0x13f, 0x1005048ff\ncall    GJRateLevelLayer__init                                         ; +0x142, 0x100504902\ntest    al, al                                                         ; +0x147, 0x100504907\njz      short loc_100504915                                            ; +0x149, 0x100504909\nmov     rdi, rbx                                                       ; +0x14b, 0x10050490b\ncall    cocos2d__CCObject__autorelease                                 ; +0x14e, 0x10050490e\njmp     short loc_100504920                                            ; +0x153, 0x100504913\nmov     rax, [rbx]                                                     ; +0x155, 0x100504915\nmov     rdi, rbx                                                       ; +0x158, 0x100504918\ncall    qword ptr [rax+10h]                                            ; +0x15b, 0x10050491b\nxor     ebx, ebx                                                       ; +0x15e, 0x10050491e\nmov     rax, rbx                                                       ; +0x160, 0x100504920\npop     rbx                                                            ; +0x163, 0x100504923\npop     r14                                                            ; +0x164, 0x100504924\npop     rbp                                                            ; +0x166, 0x100504926\nretn                                                                   ; +0x167, 0x100504927", "xrefs": ["LevelInfoLayer::onRateStarsMod @ 0x1002ae9fe"], "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"}