{"type": "func", "start": 6890616, "end": 6890840, "name": "CCPartAnimSprite::setBlendFunc", "pseudocode": "// \n// CCPartAnimSprite::setBlendFunc from 0x692478 to 0x692558 (224 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x69255c\n// > <???> @ 0x74b60\n// > <???> @ 0x14175f8\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 12:50:36 +0000\n// \n\n__int64 __fastcall CCPartAnimSprite::setBlendFunc(_DWORD *a1, __int64 a2)\n{\n  __int64 v4; // x1\n  __int64 result; // x0\n  __int64 *v6; // x19\n  __int64 v7; // x2\n  __int64 v8; // x1\n  _DWORD *v9; // x0\n  __int64 v10; // x20\n  unsigned __int64 i; // x20\n\n  a1[102] = HIDWORD(a2);\n  v4 = *(_QWORD *)a1;\n  a1[101] = a2;\n  result = (*(__int64 (**)(void))(v4 + 488))();\n  if ( result )\n  {\n    result = **(unsigned int **)((*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 488LL))(a1) + 56);\n    if ( (_DWORD)result )\n    {\n      v6 = *(__int64 **)(*(_QWORD *)((*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 488LL))(a1) + 56) + 16LL);\n      v7 = *(_QWORD *)((*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 488LL))(a1) + 56);\n      v8 = *(_QWORD *)a1;\n      v9 = a1;\n      v10 = *(_QWORD *)(v7 + 16);\n      result = *(_QWORD *)((*(__int64 (__fastcall **)(_DWORD *))(v8 + 488))(v9) + 56);\n      for ( i = v10 + 8LL * *(unsigned int *)result - 8;\n            i >= (unsigned __int64)v6;\n            result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 1080LL))(result, a2) )\n      {\n        result = *v6;\n        if ( !*v6 )\n          break;\n        ++v6;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setBlendFunc from 0x692478 to 0x692558 (224 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x69255c\n; > <???> @ 0x74b60\n; > <???> @ 0x14175f8\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 12:50:36 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x692478\nLSR             X2, X1, #0x20 ; ' '                                    ; +0x4, 0x69247c\nMOV             X29, SP                                                ; +0x8, 0x692480\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x692484\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x10, 0x692488\nMOV             X21, X1                                                ; +0x14, 0x69248c\nSTR             W2, [X0,#0x198]                                        ; +0x18, 0x692490\nMOV             X20, X0                                                ; +0x1c, 0x692494\nLDR             X1, [X0]                                               ; +0x20, 0x692498\nSTR             W21, [X0,#0x194]                                       ; +0x24, 0x69249c\nLDR             X1, [X1,#0x1E8]                                        ; +0x28, 0x6924a0\nBLR             X1                                                     ; +0x2c, 0x6924a4\nCBZ             X0, loc_692548                                         ; +0x30, 0x6924a8\nLDR             X1, [X20]                                              ; +0x34, 0x6924ac\nMOV             X0, X20                                                ; +0x38, 0x6924b0\nLDR             X1, [X1,#0x1E8]                                        ; +0x3c, 0x6924b4\nBLR             X1                                                     ; +0x40, 0x6924b8\nLDR             X0, [X0,#0x38]                                         ; +0x44, 0x6924bc\nLDR             W0, [X0]                                               ; +0x48, 0x6924c0\nCBZ             W0, loc_692548                                         ; +0x4c, 0x6924c4\nLDR             X1, [X20]                                              ; +0x50, 0x6924c8\nMOV             X0, X20                                                ; +0x54, 0x6924cc\nLDR             X1, [X1,#0x1E8]                                        ; +0x58, 0x6924d0\nBLR             X1                                                     ; +0x5c, 0x6924d4\nLDR             X2, [X0,#0x38]                                         ; +0x60, 0x6924d8\nLDR             X1, [X20]                                              ; +0x64, 0x6924dc\nMOV             X0, X20                                                ; +0x68, 0x6924e0\nLDR             X19, [X2,#0x10]                                        ; +0x6c, 0x6924e4\nLDR             X1, [X1,#0x1E8]                                        ; +0x70, 0x6924e8\nBLR             X1                                                     ; +0x74, 0x6924ec\nLDR             X2, [X0,#0x38]                                         ; +0x78, 0x6924f0\nLDR             X1, [X20]                                              ; +0x7c, 0x6924f4\nMOV             X0, X20                                                ; +0x80, 0x6924f8\nLDR             X20, [X2,#0x10]                                        ; +0x84, 0x6924fc\nLDR             X1, [X1,#0x1E8]                                        ; +0x88, 0x692500\nBLR             X1                                                     ; +0x8c, 0x692504\nLDR             X0, [X0,#0x38]                                         ; +0x90, 0x692508\nMOV             X1, #0xFFFFFFFFFFFFFFF8                                ; +0x94, 0x69250c\nLDR             W2, [X0]                                               ; +0x98, 0x692510\nADD             X1, X1, W2,UXTW#3                                      ; +0x9c, 0x692514\nADD             X20, X20, X1                                           ; +0xa0, 0x692518\nCMP             X19, X20                                               ; +0xa4, 0x69251c\nB.HI            loc_692548                                             ; +0xa8, 0x692520\nLDR             X0, [X19]                                              ; +0xac, 0x692524\nCBZ             X0, loc_692548                                         ; +0xb0, 0x692528\nLDR             X2, [X0]                                               ; +0xb4, 0x69252c\nMOV             X1, X21                                                ; +0xb8, 0x692530\nADD             X19, X19, #8                                           ; +0xbc, 0x692534\nLDR             X2, [X2,#0x438]                                        ; +0xc0, 0x692538\nBLR             X2                                                     ; +0xc4, 0x69253c\nCMP             X20, X19                                               ; +0xc8, 0x692540\nB.CS            loc_692524                                             ; +0xcc, 0x692544\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xd0, 0x692548\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xd4, 0x69254c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xd8, 0x692550\nRET                                                                    ; +0xdc, 0x692554", "xrefs": ["`non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x69255c", "<???> @ 0x74b60", "<???> @ 0x14175f8"], "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"}