{"type": "func", "start": 4298592960, "end": 4298593142, "name": "CCPartAnimSprite::setBlendFunc", "pseudocode": "// \n// CCPartAnimSprite::setBlendFunc from 0x1003752c0 to 0x100375376 (182 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10091db28\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\nvoid __fastcall CCPartAnimSprite::setBlendFunc(CCPartAnimSprite *a1, cocos2d::ccBlendFunc a2)\n{\n  _QWORD *v2; // r15\n  __int64 v3; // r12\n  unsigned __int64 i; // r14\n\n  a1->m_sBlendFunc = a2;\n  if ( ((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) )\n  {\n    if ( **(_DWORD **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) )\n    {\n      v2 = *(_QWORD **)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);\n      v3 = *(_QWORD *)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);\n      for ( i = v3\n              + 8LL * **(unsigned int **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56)\n              - 8; (unsigned __int64)v2 <= i; ++v2 )\n      {\n        if ( !*v2 )\n          break;\n        (*(void (__fastcall **)(_QWORD, cocos2d::ccBlendFunc))(*(_QWORD *)*v2 + 1064LL))(*v2, a2);\n      }\n    }\n  }\n}", "assembly": "; \n; CCPartAnimSprite::setBlendFunc from 0x1003752c0 to 0x100375376 (182 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10091db28\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, 0x1003752c0\nmov     rbp, rsp                                                       ; +0x1, 0x1003752c1\npush    r15                                                            ; +0x4, 0x1003752c4\npush    r14                                                            ; +0x6, 0x1003752c6\npush    r12                                                            ; +0x8, 0x1003752c8\npush    rbx                                                            ; +0xa, 0x1003752ca\nmov     rbx, rsi                                                       ; +0xb, 0x1003752cb\nmov     r14, rdi                                                       ; +0xe, 0x1003752ce\nmov     [rdi+194h], rsi                                                ; +0x11, 0x1003752d1\nmov     rax, [rdi]                                                     ; +0x18, 0x1003752d8\ncall    qword ptr [rax+1D8h]                                           ; +0x1b, 0x1003752db\ntest    rax, rax                                                       ; +0x21, 0x1003752e1\njz      loc_10037536D                                                  ; +0x24, 0x1003752e4\nmov     rax, [r14]                                                     ; +0x2a, 0x1003752ea\nmov     rdi, r14                                                       ; +0x2d, 0x1003752ed\ncall    qword ptr [rax+1D8h]                                           ; +0x30, 0x1003752f0\nmov     rax, [rax+38h]                                                 ; +0x36, 0x1003752f6\ncmp     dword ptr [rax], 0                                             ; +0x3a, 0x1003752fa\njz      short loc_10037536D                                            ; +0x3d, 0x1003752fd\nmov     rax, [r14]                                                     ; +0x3f, 0x1003752ff\nmov     rdi, r14                                                       ; +0x42, 0x100375302\ncall    qword ptr [rax+1D8h]                                           ; +0x45, 0x100375305\nmov     rax, [rax+38h]                                                 ; +0x4b, 0x10037530b\nmov     r15, [rax+10h]                                                 ; +0x4f, 0x10037530f\nmov     rax, [r14]                                                     ; +0x53, 0x100375313\nmov     rdi, r14                                                       ; +0x56, 0x100375316\ncall    qword ptr [rax+1D8h]                                           ; +0x59, 0x100375319\nmov     rax, [rax+38h]                                                 ; +0x5f, 0x10037531f\nmov     r12, [rax+10h]                                                 ; +0x63, 0x100375323\nmov     rax, [r14]                                                     ; +0x67, 0x100375327\nmov     rdi, r14                                                       ; +0x6a, 0x10037532a\ncall    qword ptr [rax+1D8h]                                           ; +0x6d, 0x10037532d\nmov     rax, [rax+38h]                                                 ; +0x73, 0x100375333\nmov     eax, [rax]                                                     ; +0x77, 0x100375337\nlea     r14, [r12+rax*8]                                               ; +0x79, 0x100375339\nadd     r14, 0FFFFFFFFFFFFFFF8h                                        ; +0x7d, 0x10037533d\ncmp     r15, r14                                                       ; +0x81, 0x100375341\nja      short loc_10037536D                                            ; +0x84, 0x100375344\nnop     word ptr [rax+rax+00000000h]                                   ; +0x86, 0x100375346\nmov     rdi, [r15]                                                     ; +0x90, 0x100375350\ntest    rdi, rdi                                                       ; +0x93, 0x100375353\njz      short loc_10037536D                                            ; +0x96, 0x100375356\nmov     rax, [rdi]                                                     ; +0x98, 0x100375358\nmov     rsi, rbx                                                       ; +0x9b, 0x10037535b\ncall    qword ptr [rax+428h]                                           ; +0x9e, 0x10037535e\nadd     r15, 8                                                         ; +0xa4, 0x100375364\ncmp     r15, r14                                                       ; +0xa8, 0x100375368\njbe     short loc_100375350                                            ; +0xab, 0x10037536b\npop     rbx                                                            ; +0xad, 0x10037536d\npop     r12                                                            ; +0xae, 0x10037536e\npop     r14                                                            ; +0xb0, 0x100375370\npop     r15                                                            ; +0xb2, 0x100375372\npop     rbp                                                            ; +0xb4, 0x100375374\nretn                                                                   ; +0xb5, 0x100375375", "xrefs": ["<???> @ 0x10091db28"], "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"}