{"type": "func", "start": 4297739152, "end": 4297739223, "name": "GJDifficultySprite::init", "pseudocode": "// \n// GJDifficultySprite::init from 0x1002a4b90 to 0x1002a4bd7 (71 bytes)\n// \n// 0 xrefs:\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:27:55 +0000\n// \n\n__int64 __fastcall GJDifficultySprite::init(__int64 a1, double a2)\n{\n  std::string::pointer data; // rsi\n  __int64 result; // rax\n  unsigned int v4; // ebx\n  std::string v5; // [rsp+0h] [rbp-20h] BYREF\n\n  GJDifficultySprite::getDifficultyFrame(&v5);\n  if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )\n    data = v5.__r_.__value_.__l.__data_;\n  else\n    data = v5.__r_.__value_.__s.__data_;\n  result = cocos2d::CCSprite::initWithSpriteFrameName(a1, (__int64)data, a2);\n  if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )\n  {\n    v4 = result;\n    operator delete(v5.__r_.__value_.__l.__data_);\n    return v4;\n  }\n  return result;\n}", "assembly": "; \n; GJDifficultySprite::init from 0x1002a4b90 to 0x1002a4bd7 (71 bytes)\n; \n; 0 xrefs:\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:27:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002a4b90\nmov     rbp, rsp                                                       ; +0x1, 0x1002a4b91\npush    rbx                                                            ; +0x4, 0x1002a4b94\nsub     rsp, 18h                                                       ; +0x5, 0x1002a4b95\nmov     rbx, rdi                                                       ; +0x9, 0x1002a4b99\nlea     rdi, [rbp+var_20]; this                                        ; +0xc, 0x1002a4b9c\ncall    GJDifficultySprite__getDifficultyFrame                         ; +0x10, 0x1002a4ba0\ntest    byte ptr [rbp+var_20.__r_.__value_], 1                         ; +0x15, 0x1002a4ba5\njz      short loc_1002A4BB1                                            ; +0x19, 0x1002a4ba9\nmov     rsi, qword ptr [rbp+var_20.__r_.__value_+10h]                  ; +0x1b, 0x1002a4bab\njmp     short loc_1002A4BB5                                            ; +0x1f, 0x1002a4baf\nlea     rsi, [rbp+var_20.__r_.__value_+1]                              ; +0x21, 0x1002a4bb1\nmov     rdi, rbx                                                       ; +0x25, 0x1002a4bb5\ncall    cocos2d__CCSprite__initWithSpriteFrameName                     ; +0x28, 0x1002a4bb8\ntest    byte ptr [rbp+var_20.__r_.__value_], 1                         ; +0x2d, 0x1002a4bbd\njz      short loc_1002A4BD0                                            ; +0x31, 0x1002a4bc1\nmov     rdi, qword ptr [rbp+var_20.__r_.__value_+10h]; __p             ; +0x33, 0x1002a4bc3\nmov     ebx, eax                                                       ; +0x37, 0x1002a4bc7\ncall    __ZdlPv; operator delete(void *)                               ; +0x39, 0x1002a4bc9\nmov     eax, ebx                                                       ; +0x3e, 0x1002a4bce\nadd     rsp, 18h                                                       ; +0x40, 0x1002a4bd0\npop     rbx                                                            ; +0x44, 0x1002a4bd4\npop     rbp                                                            ; +0x45, 0x1002a4bd5\nretn                                                                   ; +0x46, 0x1002a4bd6", "xrefs": [], "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"}