{"type": "func", "start": 3960672, "end": 3960796, "name": "CCPartAnimSprite::setBlendFunc", "pseudocode": "// \n// CCPartAnimSprite::setBlendFunc from 0x3c6f60 to 0x3c6fdc (124 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x3c6fe0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:35 +0000\n// \n\n_DWORD **__fastcall CCPartAnimSprite::setBlendFunc(_DWORD *a1, int a2, int a3)\n{\n  _DWORD **result; // r0\n  _DWORD *v5; // r5\n  int v6; // r7\n  unsigned int v7; // r4\n  _DWORD **v8; // t1\n\n  a1[81] = a2;\n  a1[82] = a3;\n  result = (_DWORD **)(*(int (__fastcall **)(_DWORD *))(*a1 + 244))(a1);\n  if ( result )\n  {\n    result = (_DWORD **)(*(int (__fastcall **)(_DWORD *))(*a1 + 244))(a1);\n    if ( *result[13] )\n    {\n      v5 = *(_DWORD **)(*(_DWORD *)((*(int (__fastcall **)(_DWORD *))(*a1 + 244))(a1) + 52) + 12);\n      v6 = *(_DWORD *)(*(_DWORD *)((*(int (__fastcall **)(_DWORD *))(*a1 + 244))(a1) + 52) + 12);\n      result = (_DWORD **)(*(int (__fastcall **)(_DWORD *))(*a1 + 244))(a1);\n      v7 = v6 + 4 * (*result[13] + 0x3FFFFFFF);\n      while ( (unsigned int)v5 <= v7 )\n      {\n        v8 = (_DWORD **)*v5++;\n        result = v8;\n        if ( !v8 )\n          break;\n        result = (_DWORD **)((int (__fastcall *)(_DWORD **, int, int))(*result)[135])(result, a2, a3);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setBlendFunc from 0x3c6f60 to 0x3c6fdc (124 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x3c6fe0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:35 +0000\n; \nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x3c6f60\nMOV             R4, R0                                                 ; +0x2, 0x3c6f62\nSTR.W           R1, [R4,#0x144]                                        ; +0x4, 0x3c6f64\nMOV             R6, SP                                                 ; +0x8, 0x3c6f68\nSTR.W           R2, [R4,#0x148]                                        ; +0xa, 0x3c6f6a\nLDR             R3, [R0]                                               ; +0xe, 0x3c6f6e\nSTMEA.W         SP, {R1,R2}                                            ; +0x10, 0x3c6f70\nLDR.W           R3, [R3,#0xF4]                                         ; +0x14, 0x3c6f74\nBLX             R3                                                     ; +0x18, 0x3c6f78\nCBZ             R0, loc_3C6FD8                                         ; +0x1a, 0x3c6f7a\nLDR             R3, [R4]                                               ; +0x1c, 0x3c6f7c\nMOV             R0, R4                                                 ; +0x1e, 0x3c6f7e\nLDR.W           R3, [R3,#0xF4]                                         ; +0x20, 0x3c6f80\nBLX             R3                                                     ; +0x24, 0x3c6f84\nLDR             R3, [R0,#0x34]                                         ; +0x26, 0x3c6f86\nLDR             R3, [R3]                                               ; +0x28, 0x3c6f88\nCBZ             R3, loc_3C6FD8                                         ; +0x2a, 0x3c6f8a\nLDR             R3, [R4]                                               ; +0x2c, 0x3c6f8c\nMOV             R0, R4                                                 ; +0x2e, 0x3c6f8e\nLDR.W           R3, [R3,#0xF4]                                         ; +0x30, 0x3c6f90\nBLX             R3                                                     ; +0x34, 0x3c6f94\nLDR             R3, [R0,#0x34]                                         ; +0x36, 0x3c6f96\nMOV             R0, R4                                                 ; +0x38, 0x3c6f98\nLDR             R5, [R3,#0xC]                                          ; +0x3a, 0x3c6f9a\nLDR             R3, [R4]                                               ; +0x3c, 0x3c6f9c\nLDR.W           R3, [R3,#0xF4]                                         ; +0x3e, 0x3c6f9e\nBLX             R3                                                     ; +0x42, 0x3c6fa2\nLDR             R3, [R0,#0x34]                                         ; +0x44, 0x3c6fa4\nMOV             R0, R4                                                 ; +0x46, 0x3c6fa6\nLDR             R7, [R3,#0xC]                                          ; +0x48, 0x3c6fa8\nLDR             R3, [R4]                                               ; +0x4a, 0x3c6faa\nLDR.W           R3, [R3,#0xF4]                                         ; +0x4c, 0x3c6fac\nBLX             R3                                                     ; +0x50, 0x3c6fb0\nLDR             R3, [R0,#0x34]                                         ; +0x52, 0x3c6fb2\nLDR             R3, [R3]                                               ; +0x54, 0x3c6fb4\nADD.W           R3, R3, #0x40000000                                    ; +0x56, 0x3c6fb6\nSUBS            R3, #1                                                 ; +0x5a, 0x3c6fba\nADD.W           R4, R7, R3,LSL#2                                       ; +0x5c, 0x3c6fbc\nCMP             R5, R4                                                 ; +0x60, 0x3c6fc0\nBHI             loc_3C6FD8                                             ; +0x62, 0x3c6fc2\nLDR.W           R0, [R5],#4                                            ; +0x64, 0x3c6fc4\nCBZ             R0, loc_3C6FD8                                         ; +0x68, 0x3c6fc8\nLDR             R3, [R0]                                               ; +0x6a, 0x3c6fca\nLDM.W           R6, {R1,R2}                                            ; +0x6c, 0x3c6fcc\nLDR.W           R3, [R3,#0x21C]                                        ; +0x70, 0x3c6fd0\nBLX             R3                                                     ; +0x74, 0x3c6fd4\nB               loc_3C6FC0                                             ; +0x76, 0x3c6fd6\nADD             SP, SP, #0xC                                           ; +0x78, 0x3c6fd8\nPOP             {R4-R7,PC}                                             ; +0x7a, 0x3c6fda", "xrefs": ["`non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x3c6fe0"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}