{"type": "func", "start": 6443021888, "end": 6443022061, "name": "cocos2d::CCSpriteFrameCache::addSpriteFrame", "pseudocode": "// \n// cocos2d::CCSpriteFrameCache::addSpriteFrame from 0x18008b640 to 0x18008b6ed (173 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008dab3\n// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e138\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfbc8\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 11:22:06 +0000\n// \n\n// Alternative name is '?addAnimation@CCAnimationCache@cocos2d@@QEAAXPEAVCCAnimation@2@PEBD@Z'\n// Alternative name is '?addProgram@CCShaderCache@cocos2d@@QEAAXPEAVCCGLProgram@2@PEBD@Z'\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCSpriteFrameCache::addSpriteFrame(\n        cocos2d::CCSpriteFrameCache *this,\n        struct cocos2d::CCSpriteFrame *a2,\n        char *a3)\n{\n  void *v5; // rcx\n  void *Block[3]; // [rsp+30h] [rbp-38h] BYREF\n  unsigned __int64 v7; // [rsp+48h] [rbp-20h]\n\n  sub_180005A10(Block, a3);\n  cocos2d::CCDictionary::setObject(*((_QWORD *)this + 7), a2, (__int64)Block);\n  if ( v7 > 0xF )\n  {\n    v5 = Block[0];\n    if ( v7 + 1 >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v5);\n  }\n}", "assembly": "; \n; cocos2d::CCSpriteFrameCache::addSpriteFrame from 0x18008b640 to 0x18008b6ed (173 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008dab3\n; > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e138\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfbc8\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 11:22:06 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x18008b640\npush    rdi                                                            ; +0x5, 0x18008b645\nsub     rsp, 60h                                                       ; +0x6, 0x18008b646\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x18008b64a\nxor     rax, rsp                                                       ; +0x11, 0x18008b651\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x18008b654\nmov     rdi, rdx                                                       ; +0x19, 0x18008b659\nmov     rbx, rcx                                                       ; +0x1c, 0x18008b65c\nmov     rdx, r8; Str                                                   ; +0x1f, 0x18008b65f\nlea     rcx, [rsp+68h+Block]; void *                                   ; +0x22, 0x18008b662\ncall    sub_180005A10                                                  ; +0x27, 0x18008b667\nnop                                                                    ; +0x2c, 0x18008b66c\nlea     r8, [rsp+68h+Block]                                            ; +0x2d, 0x18008b66d\nmov     rdx, rdi                                                       ; +0x32, 0x18008b672\nmov     rcx, [rbx+38h]                                                 ; +0x35, 0x18008b675\ncall    ?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x39, 0x18008b679\nnop                                                                    ; +0x3e, 0x18008b67e\nmov     rdx, [rsp+68h+var_20]                                          ; +0x3f, 0x18008b67f\ncmp     rdx, 0Fh                                                       ; +0x44, 0x18008b684\njbe     short loc_18008B6D2                                            ; +0x48, 0x18008b688\ninc     rdx                                                            ; +0x4a, 0x18008b68a\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x4d, 0x18008b68d\nmov     rax, rcx                                                       ; +0x52, 0x18008b692\ncmp     rdx, 1000h                                                     ; +0x55, 0x18008b695\njb      short loc_18008B6CD                                            ; +0x5c, 0x18008b69c\nadd     rdx, 27h ; '''                                                 ; +0x5e, 0x18008b69e\nmov     rcx, [rcx-8]                                                   ; +0x62, 0x18008b6a2\nsub     rax, rcx                                                       ; +0x66, 0x18008b6a6\nsub     rax, 8                                                         ; +0x69, 0x18008b6a9\ncmp     rax, 1Fh                                                       ; +0x6d, 0x18008b6ad\njbe     short loc_18008B6CD                                            ; +0x71, 0x18008b6b1\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x73, 0x18008b6b3\nxor     r9d, r9d; LineNo                                               ; +0x7c, 0x18008b6bc\nxor     r8d, r8d; FileName                                             ; +0x7f, 0x18008b6bf\nxor     edx, edx; FunctionName                                         ; +0x82, 0x18008b6c2\nxor     ecx, ecx; Expression                                           ; +0x84, 0x18008b6c4\ncall    cs:_invoke_watson                                              ; +0x86, 0x18008b6c6\ndb 0CCh                                                                ; +0x8c, 0x18008b6cc\ncall    j_j_free_0                                                     ; +0x8d, 0x18008b6cd\nmov     rcx, [rsp+68h+var_18]                                          ; +0x92, 0x18008b6d2\nxor     rcx, rsp; StackCookie                                          ; +0x97, 0x18008b6d7\ncall    __security_check_cookie                                        ; +0x9a, 0x18008b6da\nmov     rbx, [rsp+68h+arg_18]                                          ; +0x9f, 0x18008b6df\nadd     rsp, 60h                                                       ; +0xa7, 0x18008b6e7\npop     rdi                                                            ; +0xab, 0x18008b6eb\nretn                                                                   ; +0xac, 0x18008b6ec", "xrefs": ["cocos2d::CCAnimationCache::parseVersion1 @ 0x18008dab3", "cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e138", "<???> @ 0x18014cf68", "<???> @ 0x1801bfbc8"], "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"}