{"type": "func", "start": 4298499984, "end": 4298500166, "name": "CCPartAnimSprite::setBlendFunc", "pseudocode": "// \n// CCPartAnimSprite::setBlendFunc from 0x10035e790 to 0x10035e846 (182 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b25dd0\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:28:55 +0000\n// \n\n__int64 __fastcall CCPartAnimSprite::setBlendFunc(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  _QWORD *v3; // r15\n  __int64 v4; // r12\n  unsigned __int64 i; // r14\n\n  *(_QWORD *)(a1 + 404) = a2;\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);\n  if ( result )\n  {\n    result = *(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56);\n    if ( *(_DWORD *)result )\n    {\n      v3 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56) + 16LL);\n      v4 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56) + 16LL);\n      result = **(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56);\n      for ( i = v4 + 8 * result - 8; (unsigned __int64)v3 <= i; ++v3 )\n      {\n        if ( !*v3 )\n          break;\n        result = (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v3 + 1080LL))(*v3, a2);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setBlendFunc from 0x10035e790 to 0x10035e846 (182 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b25dd0\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:28:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x10035e790\nmov     rbp, rsp                                                       ; +0x1, 0x10035e791\npush    r15                                                            ; +0x4, 0x10035e794\npush    r14                                                            ; +0x6, 0x10035e796\npush    r12                                                            ; +0x8, 0x10035e798\npush    rbx                                                            ; +0xa, 0x10035e79a\nmov     rbx, rsi                                                       ; +0xb, 0x10035e79b\nmov     r14, rdi                                                       ; +0xe, 0x10035e79e\nmov     [rdi+194h], rsi                                                ; +0x11, 0x10035e7a1\nmov     rax, [rdi]                                                     ; +0x18, 0x10035e7a8\ncall    qword ptr [rax+1E8h]                                           ; +0x1b, 0x10035e7ab\ntest    rax, rax                                                       ; +0x21, 0x10035e7b1\njz      loc_10035E83D                                                  ; +0x24, 0x10035e7b4\nmov     rax, [r14]                                                     ; +0x2a, 0x10035e7ba\nmov     rdi, r14                                                       ; +0x2d, 0x10035e7bd\ncall    qword ptr [rax+1E8h]                                           ; +0x30, 0x10035e7c0\nmov     rax, [rax+38h]                                                 ; +0x36, 0x10035e7c6\ncmp     dword ptr [rax], 0                                             ; +0x3a, 0x10035e7ca\njz      short loc_10035E83D                                            ; +0x3d, 0x10035e7cd\nmov     rax, [r14]                                                     ; +0x3f, 0x10035e7cf\nmov     rdi, r14                                                       ; +0x42, 0x10035e7d2\ncall    qword ptr [rax+1E8h]                                           ; +0x45, 0x10035e7d5\nmov     rax, [rax+38h]                                                 ; +0x4b, 0x10035e7db\nmov     r15, [rax+10h]                                                 ; +0x4f, 0x10035e7df\nmov     rax, [r14]                                                     ; +0x53, 0x10035e7e3\nmov     rdi, r14                                                       ; +0x56, 0x10035e7e6\ncall    qword ptr [rax+1E8h]                                           ; +0x59, 0x10035e7e9\nmov     rax, [rax+38h]                                                 ; +0x5f, 0x10035e7ef\nmov     r12, [rax+10h]                                                 ; +0x63, 0x10035e7f3\nmov     rax, [r14]                                                     ; +0x67, 0x10035e7f7\nmov     rdi, r14                                                       ; +0x6a, 0x10035e7fa\ncall    qword ptr [rax+1E8h]                                           ; +0x6d, 0x10035e7fd\nmov     rax, [rax+38h]                                                 ; +0x73, 0x10035e803\nmov     eax, [rax]                                                     ; +0x77, 0x10035e807\nlea     r14, [r12+rax*8]                                               ; +0x79, 0x10035e809\nadd     r14, 0FFFFFFFFFFFFFFF8h                                        ; +0x7d, 0x10035e80d\ncmp     r15, r14                                                       ; +0x81, 0x10035e811\nja      short loc_10035E83D                                            ; +0x84, 0x10035e814\nnop     word ptr [rax+rax+00000000h]                                   ; +0x86, 0x10035e816\nmov     rdi, [r15]                                                     ; +0x90, 0x10035e820\ntest    rdi, rdi                                                       ; +0x93, 0x10035e823\njz      short loc_10035E83D                                            ; +0x96, 0x10035e826\nmov     rax, [rdi]                                                     ; +0x98, 0x10035e828\nmov     rsi, rbx                                                       ; +0x9b, 0x10035e82b\ncall    qword ptr [rax+438h]                                           ; +0x9e, 0x10035e82e\nadd     r15, 8                                                         ; +0xa4, 0x10035e834\ncmp     r15, r14                                                       ; +0xa8, 0x10035e838\njbe     short loc_10035E820                                            ; +0xab, 0x10035e83b\npop     rbx                                                            ; +0xad, 0x10035e83d\npop     r12                                                            ; +0xae, 0x10035e83e\npop     r14                                                            ; +0xb0, 0x10035e840\npop     r15                                                            ; +0xb2, 0x10035e842\npop     rbp                                                            ; +0xb4, 0x10035e844\nretn                                                                   ; +0xb5, 0x10035e845", "xrefs": ["<???> @ 0x100b25dd0"], "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"}