{"type": "func", "start": 4300235920, "end": 4300236113, "name": "GJRateLevelLayer::getStarsButton", "pseudocode": "// \n// GJRateLevelLayer::getStarsButton from 0x100506490 to 0x100506551 (193 bytes)\n// \n// 0 xrefs:\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\nCCMenuItemSpriteExtra *__fastcall GJRateLevelLayer::getStarsButton(\n        GJRateLevelLayer *a1,\n        int a2,\n        cocos2d::SEL_MenuHandler a3,\n        cocos2d::CCMenu *a4,\n        float a5)\n{\n  size_t adj; // r14\n  void (__cdecl *ptr)(cocos2d::CCObject *); // r15\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n  ButtonSprite *v10; // rax\n  CCMenuItemSpriteExtra *v11; // r14\n  char v13; // [rsp+0h] [rbp-30h]\n\n  adj = a3.adj;\n  ptr = a3.ptr;\n  v8 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v13);\n  CString = cocos2d::CCString::getCString(v8);\n  v10 = ButtonSprite::create_1(CString, 20, 0, 0.5, 1, \"bigFont.fnt\", \"GJ_button_01.png\", 30.0);\n  v11 = CCMenuItemSpriteExtra::create(\n          v10,\n          nullptr,\n          a1,\n          (cocos2d::SEL_MenuHandler)__PAIR128__(adj, (unsigned __int64)ptr));\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, float))v11->setScale)(v11, a5);\n  v11->m_baseScale = a5;\n  if ( a4 )\n    ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a4->addChild)(a4, v11);\n  return v11;\n}", "assembly": "; \n; GJRateLevelLayer::getStarsButton from 0x100506490 to 0x100506551 (193 bytes)\n; \n; 0 xrefs:\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, 0x100506490\nmov     rbp, rsp                                                       ; +0x1, 0x100506491\npush    r15                                                            ; +0x4, 0x100506494\npush    r14                                                            ; +0x6, 0x100506496\npush    r12                                                            ; +0x8, 0x100506498\npush    rbx                                                            ; +0xa, 0x10050649a\nsub     rsp, 10h                                                       ; +0xb, 0x10050649b\nmovss   [rbp+var_24], xmm0                                             ; +0xf, 0x10050649f\nmov     rbx, r8                                                        ; +0x14, 0x1005064a4\nmov     r14, rcx                                                       ; +0x17, 0x1005064a7\nmov     r15, rdx                                                       ; +0x1a, 0x1005064aa\nmov     r12, rdi                                                       ; +0x1d, 0x1005064ad\nlea     rdi, aI; \"%i\"                                                  ; +0x20, 0x1005064b0\nxor     eax, eax                                                       ; +0x27, 0x1005064b7\ncall    sub_1007AB580                                                  ; +0x29, 0x1005064b9\nmov     rdi, rax                                                       ; +0x2e, 0x1005064be\ncall    cocos2d__CCString__getCString                                  ; +0x31, 0x1005064c1\nlea     r8, aBigfontFnt; \"bigFont.fnt\"                                 ; +0x36, 0x1005064c6\nlea     r9, aGjButton01Png; \"GJ_button_01.png\"                         ; +0x3d, 0x1005064cd\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x44, 0x1005064d4\nmovss   xmm1, cs:dword_100814FD0                                       ; +0x4c, 0x1005064dc\nmov     rdi, rax                                                       ; +0x54, 0x1005064e4\nmov     esi, 14h                                                       ; +0x57, 0x1005064e7\nxor     edx, edx                                                       ; +0x5c, 0x1005064ec\nmov     ecx, 1                                                         ; +0x5e, 0x1005064ee\ncall    ButtonSprite__create_1                                         ; +0x63, 0x1005064f3\nmov     rdi, rax                                                       ; +0x68, 0x1005064f8\nxor     esi, esi                                                       ; +0x6b, 0x1005064fb\nmov     rdx, r12                                                       ; +0x6d, 0x1005064fd\nmov     rcx, r15                                                       ; +0x70, 0x100506500\nmov     r8, r14                                                        ; +0x73, 0x100506503\ncall    CCMenuItemSpriteExtra__create                                  ; +0x76, 0x100506506\nmov     r14, rax                                                       ; +0x7b, 0x10050650b\nmov     rax, [rax]                                                     ; +0x7e, 0x10050650e\nmov     rdi, r14                                                       ; +0x81, 0x100506511\nmovss   xmm0, [rbp+var_24]                                             ; +0x84, 0x100506514\ncall    qword ptr [rax+0A0h]                                           ; +0x89, 0x100506519\nmovss   xmm0, [rbp+var_24]                                             ; +0x8f, 0x10050651f\nmovss   dword ptr [r14+194h], xmm0                                     ; +0x94, 0x100506524\ntest    rbx, rbx                                                       ; +0x9d, 0x10050652d\njz      short loc_100506541                                            ; +0xa0, 0x100506530\nmov     rax, [rbx]                                                     ; +0xa2, 0x100506532\nmov     rdi, rbx                                                       ; +0xa5, 0x100506535\nmov     rsi, r14                                                       ; +0xa8, 0x100506538\ncall    qword ptr [rax+1B8h]                                           ; +0xab, 0x10050653b\nmov     rax, r14                                                       ; +0xb1, 0x100506541\nadd     rsp, 10h                                                       ; +0xb4, 0x100506544\npop     rbx                                                            ; +0xb8, 0x100506548\npop     r12                                                            ; +0xb9, 0x100506549\npop     r14                                                            ; +0xbb, 0x10050654b\npop     r15                                                            ; +0xbd, 0x10050654d\npop     rbp                                                            ; +0xbf, 0x10050654f\nretn                                                                   ; +0xc0, 0x100506550", "xrefs": [], "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"}