{"type": "func", "start": 4297812752, "end": 4297812823, "name": "GJDifficultySprite::init", "pseudocode": "// \n// GJDifficultySprite::init from 0x1002b6b10 to 0x1002b6b57 (71 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\nbool __fastcall GJDifficultySprite::init(GJDifficultySprite *a1, int a2, GJDifficultyName a3)\n{\n  const char *data; // rsi\n  bool result; // al\n  bool v5; // bl\n  std::string v6; // [rsp+0h] [rbp-20h] BYREF\n\n  GJDifficultySprite::getDifficultyFrame(&v6);\n  if ( (*(_BYTE *)&v6.__r_.__value_.__s.0 & 1) != 0 )\n    data = v6.__r_.__value_.__l.__data_;\n  else\n    data = v6.__r_.__value_.__s.__data_;\n  result = cocos2d::CCSprite::initWithSpriteFrameName(a1, data);\n  if ( (*(_BYTE *)&v6.__r_.__value_.__s.0 & 1) != 0 )\n  {\n    v5 = result;\n    operator delete(v6.__r_.__value_.__l.__data_);\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; GJDifficultySprite::init from 0x1002b6b10 to 0x1002b6b57 (71 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, 0x1002b6b10\nmov     rbp, rsp                                                       ; +0x1, 0x1002b6b11\npush    rbx                                                            ; +0x4, 0x1002b6b14\nsub     rsp, 18h                                                       ; +0x5, 0x1002b6b15\nmov     rbx, rdi                                                       ; +0x9, 0x1002b6b19\nlea     rdi, [rbp+var_20]; this                                        ; +0xc, 0x1002b6b1c\ncall    GJDifficultySprite__getDifficultyFrame                         ; +0x10, 0x1002b6b20\ntest    byte ptr [rbp+var_20.__r_.__value_], 1                         ; +0x15, 0x1002b6b25\njz      short loc_1002B6B31                                            ; +0x19, 0x1002b6b29\nmov     rsi, qword ptr [rbp+var_20.__r_.__value_+10h]                  ; +0x1b, 0x1002b6b2b\njmp     short loc_1002B6B35                                            ; +0x1f, 0x1002b6b2f\nlea     rsi, [rbp+var_20.__r_.__value_+1]                              ; +0x21, 0x1002b6b31\nmov     rdi, rbx                                                       ; +0x25, 0x1002b6b35\ncall    cocos2d__CCSprite__initWithSpriteFrameName                     ; +0x28, 0x1002b6b38\ntest    byte ptr [rbp+var_20.__r_.__value_], 1                         ; +0x2d, 0x1002b6b3d\njz      short loc_1002B6B50                                            ; +0x31, 0x1002b6b41\nmov     rdi, qword ptr [rbp+var_20.__r_.__value_+10h]; __p             ; +0x33, 0x1002b6b43\nmov     ebx, eax                                                       ; +0x37, 0x1002b6b47\ncall    __ZdlPv; operator delete(void *)                               ; +0x39, 0x1002b6b49\nmov     eax, ebx                                                       ; +0x3e, 0x1002b6b4e\nadd     rsp, 18h                                                       ; +0x40, 0x1002b6b50\npop     rbx                                                            ; +0x44, 0x1002b6b54\npop     rbp                                                            ; +0x45, 0x1002b6b55\nretn                                                                   ; +0x46, 0x1002b6b56", "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"}