{"type": "func", "start": 4295523352, "end": 4295523564, "name": "CCPartAnimSprite::setBlendFunc", "pseudocode": "// \n// CCPartAnimSprite::setBlendFunc from 0x100087c18 to 0x100087cec (212 bytes)\n// \n// 2 xrefs:\n// > sub_100087CEC @ 0x100087cf0\n// > <???> @ 0x1008c7d28\n// \n// This function is hookable on this platform (idp: arm, 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 10:58:19 +0000\n// \n\nunsigned int **__fastcall CCPartAnimSprite::setBlendFunc(__int64 a1, __int64 a2)\n{\n  unsigned int **result; // x0\n  unsigned int ***v5; // x21\n  __int64 v6; // x22\n  unsigned __int64 v7; // x20\n\n  *(_QWORD *)(a1 + 404) = a2;\n  result = (unsigned int **)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);\n  if ( result )\n  {\n    result = (unsigned int **)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);\n    if ( *result[7] )\n    {\n      v5 = *(unsigned int ****)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56) + 16LL);\n      v6 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56) + 16LL);\n      result = (unsigned int **)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);\n      v7 = v6 + 8LL * *result[7] - 8;\n      while ( (unsigned __int64)v5 <= v7 )\n      {\n        result = *v5;\n        if ( !*v5 )\n          break;\n        result = (unsigned int **)(*((__int64 (__fastcall **)(unsigned int **, __int64))*result + 135))(result, a2);\n        ++v5;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setBlendFunc from 0x100087c18 to 0x100087cec (212 bytes)\n; \n; 2 xrefs:\n; > sub_100087CEC @ 0x100087cf0\n; > <???> @ 0x1008c7d28\n; \n; This function is hookable on this platform (idp: arm, 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 10:58:19 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100087c18\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100087c1c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100087c20\nADD             X29, SP, #0x20                                         ; +0xc, 0x100087c24\nMOV             X19, X1                                                ; +0x10, 0x100087c28\nMOV             X20, X0                                                ; +0x14, 0x100087c2c\nADD             X8, X0, #0x194                                         ; +0x18, 0x100087c30\nSTR             X1, [X8]                                               ; +0x1c, 0x100087c34\nLDR             X8, [X0]                                               ; +0x20, 0x100087c38\nLDR             X8, [X8,#0x1E8]                                        ; +0x24, 0x100087c3c\nBLR             X8                                                     ; +0x28, 0x100087c40\nCBZ             X0, loc_100087CDC                                      ; +0x2c, 0x100087c44\nLDR             X8, [X20]                                              ; +0x30, 0x100087c48\nLDR             X8, [X8,#0x1E8]                                        ; +0x34, 0x100087c4c\nMOV             X0, X20                                                ; +0x38, 0x100087c50\nBLR             X8                                                     ; +0x3c, 0x100087c54\nLDR             X8, [X0,#0x38]                                         ; +0x40, 0x100087c58\nLDR             W8, [X8]                                               ; +0x44, 0x100087c5c\nCBZ             W8, loc_100087CDC                                      ; +0x48, 0x100087c60\nLDR             X8, [X20]                                              ; +0x4c, 0x100087c64\nLDR             X8, [X8,#0x1E8]                                        ; +0x50, 0x100087c68\nMOV             X0, X20                                                ; +0x54, 0x100087c6c\nBLR             X8                                                     ; +0x58, 0x100087c70\nLDR             X8, [X0,#0x38]                                         ; +0x5c, 0x100087c74\nLDR             X21, [X8,#0x10]                                        ; +0x60, 0x100087c78\nLDR             X8, [X20]                                              ; +0x64, 0x100087c7c\nLDR             X8, [X8,#0x1E8]                                        ; +0x68, 0x100087c80\nMOV             X0, X20                                                ; +0x6c, 0x100087c84\nBLR             X8                                                     ; +0x70, 0x100087c88\nLDR             X8, [X0,#0x38]                                         ; +0x74, 0x100087c8c\nLDR             X22, [X8,#0x10]                                        ; +0x78, 0x100087c90\nLDR             X8, [X20]                                              ; +0x7c, 0x100087c94\nLDR             X8, [X8,#0x1E8]                                        ; +0x80, 0x100087c98\nMOV             X0, X20                                                ; +0x84, 0x100087c9c\nBLR             X8                                                     ; +0x88, 0x100087ca0\nLDR             X8, [X0,#0x38]                                         ; +0x8c, 0x100087ca4\nLDR             W8, [X8]                                               ; +0x90, 0x100087ca8\nADD             X8, X22, X8,LSL#3                                      ; +0x94, 0x100087cac\nSUB             X20, X8, #8                                            ; +0x98, 0x100087cb0\nCMP             X21, X20                                               ; +0x9c, 0x100087cb4\nB.HI            loc_100087CDC                                          ; +0xa0, 0x100087cb8\nLDR             X0, [X21]                                              ; +0xa4, 0x100087cbc\nCBZ             X0, loc_100087CDC                                      ; +0xa8, 0x100087cc0\nLDR             X8, [X0]                                               ; +0xac, 0x100087cc4\nLDR             X8, [X8,#0x438]                                        ; +0xb0, 0x100087cc8\nMOV             X1, X19                                                ; +0xb4, 0x100087ccc\nBLR             X8                                                     ; +0xb8, 0x100087cd0\nADD             X21, X21, #8                                           ; +0xbc, 0x100087cd4\nB               loc_100087CB4                                          ; +0xc0, 0x100087cd8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc4, 0x100087cdc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xc8, 0x100087ce0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xcc, 0x100087ce4\nRET                                                                    ; +0xd0, 0x100087ce8", "xrefs": ["sub_100087CEC @ 0x100087cf0", "<???> @ 0x1008c7d28"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}