{"type": "func", "start": 4297409344, "end": 4297409469, "name": "GJBigSprite::loadSpriteAsync", "pseudocode": "// \n// GJBigSprite::loadSpriteAsync from 0x100254340 to 0x1002543bd (125 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:25 +0000\n// \n\n__int64 __fastcall GJBigSprite::loadSpriteAsync(__int64 a1, __int64 a2, unsigned int a3)\n{\n  unsigned __int64 v5; // rcx\n  __int64 result; // rax\n  __int64 v7; // rdx\n  unsigned __int64 v8; // rdi\n  __int64 v9; // r8\n  __int64 v10; // rax\n  __int64 v11; // rsi\n\n  v5 = (int)a3;\n  result = *(_QWORD *)(a1 + 320);\n  v7 = 1LL << a3;\n  v8 = v5 >> 6;\n  v9 = *(_QWORD *)(result + 8 * (v5 >> 6));\n  if ( !_bittest64(&v9, v5) )\n  {\n    *(_QWORD *)(result + 8 * v8) = v7 | v9;\n    v10 = cocos2d::CCTextureCache::sharedTextureCache(v8);\n    if ( (*(_BYTE *)a2 & 1) != 0 )\n      v11 = *(_QWORD *)(a2 + 16);\n    else\n      v11 = a2 + 1;\n    return cocos2d::CCTextureCache::addImageAsync(v10, v11, a1, GJBigSprite::finishedLoadingSpriteAsync, 0, a3, 1);\n  }\n  return result;\n}", "assembly": "; \n; GJBigSprite::loadSpriteAsync from 0x100254340 to 0x1002543bd (125 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:25 +0000\n; \npush    rbp                                                            ; +0x0, 0x100254340\nmov     rbp, rsp                                                       ; +0x1, 0x100254341\npush    r15                                                            ; +0x4, 0x100254344\npush    r14                                                            ; +0x6, 0x100254346\npush    rbx                                                            ; +0x8, 0x100254348\npush    rax                                                            ; +0x9, 0x100254349\nmov     ebx, edx                                                       ; +0xa, 0x10025434a\nmov     r14, rdi                                                       ; +0xc, 0x10025434c\nmovsxd  rcx, edx                                                       ; +0xf, 0x10025434f\nmov     rax, [rdi+140h]                                                ; +0x12, 0x100254352\nmov     edx, 1                                                         ; +0x19, 0x100254359\nshl     rdx, cl                                                        ; +0x1e, 0x10025435e\nmov     rdi, rcx                                                       ; +0x21, 0x100254361\nshr     rdi, 6                                                         ; +0x24, 0x100254364\nmov     r8, [rax+rdi*8]                                                ; +0x28, 0x100254368\nbt      r8, rcx                                                        ; +0x2c, 0x10025436c\njb      short loc_1002543B2                                            ; +0x30, 0x100254370\nor      r8, rdx                                                        ; +0x32, 0x100254372\nmov     [rax+rdi*8], r8                                                ; +0x35, 0x100254375\nmov     r15, rsi                                                       ; +0x39, 0x100254379\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0x3c, 0x10025437c\nmov     rsi, r15                                                       ; +0x41, 0x100254381\ntest    byte ptr [r15], 1                                              ; +0x44, 0x100254384\njnz     short loc_10025438F                                            ; +0x48, 0x100254388\ninc     rsi                                                            ; +0x4a, 0x10025438a\njmp     short loc_100254393                                            ; +0x4d, 0x10025438d\nmov     rsi, [rsi+10h]                                                 ; +0x4f, 0x10025438f\nmov     [rsp+20h+var_20], 1                                            ; +0x53, 0x100254393\nlea     rcx, GJBigSprite__finishedLoadingSpriteAsync                   ; +0x5a, 0x10025439a\nmov     rdi, rax                                                       ; +0x61, 0x1002543a1\nmov     rdx, r14                                                       ; +0x64, 0x1002543a4\nxor     r8d, r8d                                                       ; +0x67, 0x1002543a7\nmov     r9d, ebx                                                       ; +0x6a, 0x1002543aa\ncall    cocos2d__CCTextureCache__addImageAsync                         ; +0x6d, 0x1002543ad\nadd     rsp, 8                                                         ; +0x72, 0x1002543b2\npop     rbx                                                            ; +0x76, 0x1002543b6\npop     r14                                                            ; +0x77, 0x1002543b7\npop     r15                                                            ; +0x79, 0x1002543b9\npop     rbp                                                            ; +0x7b, 0x1002543bb\nretn                                                                   ; +0x7c, 0x1002543bc", "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"}