{"type": "func", "start": 5369013408, "end": 5369013610, "name": "CCPartAnimSprite::setBlendFunc", "pseudocode": "// \n// CCPartAnimSprite::setBlendFunc from 0x14004a4a0 to 0x14004a56a (202 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14070abe0\n// > <???> @ 0x140885ccc\n// > <???> @ 0x140885cdc\n// > <???> @ 0x14090fcf8\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:25:32 +0000\n// \n\n__int64 __fastcall CCPartAnimSprite::setBlendFunc(__int64 a1, __int64 a2)\n{\n  __int64 v2; // r14\n  __int64 result; // rax\n  unsigned __int64 v5; // rdi\n  __int64 v6; // rsi\n  unsigned __int64 i; // rsi\n\n  v2 = a1 - 344;\n  *(_QWORD *)(a1 + 60) = a2;\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 344) + 480LL))(a1 - 344);\n  if ( result )\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 480LL))(v2);\n    if ( **(_DWORD **)(result + 56) )\n    {\n      v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 480LL))(v2) + 56) + 16LL);\n      v6 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 480LL))(v2) + 56) + 16LL);\n      result = **(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 480LL))(v2) + 56);\n      for ( i = v6 + 8 * result - 8; v5 <= i; v5 += 8LL )\n      {\n        if ( !*(_QWORD *)v5 )\n          break;\n        result = (**(__int64 (__fastcall ***)(__int64, __int64))(*(_QWORD *)v5 + 344LL))(*(_QWORD *)v5 + 344LL, a2);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setBlendFunc from 0x14004a4a0 to 0x14004a56a (202 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14070abe0\n; > <???> @ 0x140885ccc\n; > <???> @ 0x140885cdc\n; > <???> @ 0x14090fcf8\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:25:32 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14004a4a0\npush    r14                                                            ; +0x5, 0x14004a4a5\nsub     rsp, 20h                                                       ; +0x7, 0x14004a4a7\nlea     r14, [rcx-158h]                                                ; +0xb, 0x14004a4ab\nmov     [rcx+3Ch], rdx                                                 ; +0x12, 0x14004a4b2\nmov     rax, [r14]                                                     ; +0x16, 0x14004a4b6\nmov     rcx, r14                                                       ; +0x19, 0x14004a4b9\nmov     rbx, rdx                                                       ; +0x1c, 0x14004a4bc\ncall    qword ptr [rax+1E0h]                                           ; +0x1f, 0x14004a4bf\ntest    rax, rax                                                       ; +0x25, 0x14004a4c5\njz      loc_14004A55E                                                  ; +0x28, 0x14004a4c8\nmov     rax, [r14]                                                     ; +0x2e, 0x14004a4ce\nmov     rcx, r14                                                       ; +0x31, 0x14004a4d1\ncall    qword ptr [rax+1E0h]                                           ; +0x34, 0x14004a4d4\nmov     rcx, [rax+38h]                                                 ; +0x3a, 0x14004a4da\ncmp     dword ptr [rcx], 0                                             ; +0x3e, 0x14004a4de\njbe     short loc_14004A55E                                            ; +0x41, 0x14004a4e1\nmov     rax, [r14]                                                     ; +0x43, 0x14004a4e3\nmov     rcx, r14                                                       ; +0x46, 0x14004a4e6\nmov     [rsp+28h+arg_0], rsi                                           ; +0x49, 0x14004a4e9\nmov     [rsp+28h+arg_8], rdi                                           ; +0x4e, 0x14004a4ee\ncall    qword ptr [rax+1E0h]                                           ; +0x53, 0x14004a4f3\nmov     rcx, r14                                                       ; +0x59, 0x14004a4f9\nmov     rdi, [rax+38h]                                                 ; +0x5c, 0x14004a4fc\nmov     rax, [r14]                                                     ; +0x60, 0x14004a500\nmov     rdi, [rdi+10h]                                                 ; +0x63, 0x14004a503\ncall    qword ptr [rax+1E0h]                                           ; +0x67, 0x14004a507\nmov     rcx, r14                                                       ; +0x6d, 0x14004a50d\nmov     rdx, [rax+38h]                                                 ; +0x70, 0x14004a510\nmov     rax, [r14]                                                     ; +0x74, 0x14004a514\nmov     rsi, [rdx+10h]                                                 ; +0x77, 0x14004a517\ncall    qword ptr [rax+1E0h]                                           ; +0x7b, 0x14004a51b\nmov     rcx, [rax+38h]                                                 ; +0x81, 0x14004a521\nmov     eax, [rcx]                                                     ; +0x85, 0x14004a525\nlea     rsi, [rsi+rax*8]                                               ; +0x87, 0x14004a527\nadd     rsi, 0FFFFFFFFFFFFFFF8h                                        ; +0x8b, 0x14004a52b\ncmp     rdi, rsi                                                       ; +0x8f, 0x14004a52f\nja      short loc_14004A554                                            ; +0x92, 0x14004a532\nmov     rcx, [rdi]                                                     ; +0x94, 0x14004a534\ntest    rcx, rcx                                                       ; +0x97, 0x14004a537\njz      short loc_14004A554                                            ; +0x9a, 0x14004a53a\nadd     rcx, 158h                                                      ; +0x9c, 0x14004a53c\nmov     rdx, rbx                                                       ; +0xa3, 0x14004a543\nmov     rax, [rcx]                                                     ; +0xa6, 0x14004a546\ncall    qword ptr [rax]                                                ; +0xa9, 0x14004a549\nadd     rdi, 8                                                         ; +0xab, 0x14004a54b\ncmp     rdi, rsi                                                       ; +0xaf, 0x14004a54f\njbe     short loc_14004A534                                            ; +0xb2, 0x14004a552\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xb4, 0x14004a554\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xb9, 0x14004a559\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xbe, 0x14004a55e\nadd     rsp, 20h                                                       ; +0xc3, 0x14004a563\npop     r14                                                            ; +0xc7, 0x14004a567\nretn                                                                   ; +0xc9, 0x14004a569", "xrefs": ["<???> @ 0x14070abe0", "<???> @ 0x140885ccc", "<???> @ 0x140885cdc", "<???> @ 0x14090fcf8"], "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"}