{"type": "func", "start": 3042740, "end": 3042864, "name": "CCPartAnimSprite::setBlendFunc", "pseudocode": "// \n// CCPartAnimSprite::setBlendFunc from 0x2e6db4 to 0x2e6e30 (124 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x2e6e34\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CCPartAnimSprite::setBlendFunc(CCPartAnimSprite *a1, cocos2d::ccBlendFunc a2)\n{\n  cocos2d::CCObject **arr; // r5\n  cocos2d::CCObject **v4; // r7\n  cocos2d::CCObject **v5; // r4\n  int v6; // r0\n  int v7; // t1\n\n  a1->m_sBlendFunc = a2;\n  if ( a1->getChildren(a1) && a1->getChildren(a1)->data->num )\n  {\n    arr = a1->getChildren(a1)->data->arr;\n    v4 = a1->getChildren(a1)->data->arr;\n    v5 = &v4[a1->getChildren(a1)->data->num] + 0x3FFFFFFF;\n    while ( arr <= v5 )\n    {\n      v7 = (int)*arr++;\n      v6 = v7;\n      if ( !v7 )\n        break;\n      (*(void (__fastcall **)(int, GLenum, GLenum))(*(_DWORD *)v6 + 532))(v6, a2.src, a2.dst);\n    }\n  }\n}", "assembly": "; \n; CCPartAnimSprite::setBlendFunc from 0x2e6db4 to 0x2e6e30 (124 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x2e6e34\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x2e6db4\nMOV             R4, R0                                                 ; +0x2, 0x2e6db6\nSTR.W           R1, [R4,#0x144]                                        ; +0x4, 0x2e6db8\nMOV             R6, SP                                                 ; +0x8, 0x2e6dbc\nSTR.W           R2, [R4,#0x148]                                        ; +0xa, 0x2e6dbe\nLDR             R3, [R0]                                               ; +0xe, 0x2e6dc2\nSTMEA.W         SP, {R1,R2}                                            ; +0x10, 0x2e6dc4\nLDR.W           R3, [R3,#0xEC]                                         ; +0x14, 0x2e6dc8\nBLX             R3                                                     ; +0x18, 0x2e6dcc\nCBZ             R0, loc_2E6E2C                                         ; +0x1a, 0x2e6dce\nLDR             R3, [R4]                                               ; +0x1c, 0x2e6dd0\nMOV             R0, R4                                                 ; +0x1e, 0x2e6dd2\nLDR.W           R3, [R3,#0xEC]                                         ; +0x20, 0x2e6dd4\nBLX             R3                                                     ; +0x24, 0x2e6dd8\nLDR             R3, [R0,#0x34]                                         ; +0x26, 0x2e6dda\nLDR             R3, [R3]                                               ; +0x28, 0x2e6ddc\nCBZ             R3, loc_2E6E2C                                         ; +0x2a, 0x2e6dde\nLDR             R3, [R4]                                               ; +0x2c, 0x2e6de0\nMOV             R0, R4                                                 ; +0x2e, 0x2e6de2\nLDR.W           R3, [R3,#0xEC]                                         ; +0x30, 0x2e6de4\nBLX             R3                                                     ; +0x34, 0x2e6de8\nLDR             R3, [R0,#0x34]                                         ; +0x36, 0x2e6dea\nMOV             R0, R4                                                 ; +0x38, 0x2e6dec\nLDR             R5, [R3,#0xC]                                          ; +0x3a, 0x2e6dee\nLDR             R3, [R4]                                               ; +0x3c, 0x2e6df0\nLDR.W           R3, [R3,#0xEC]                                         ; +0x3e, 0x2e6df2\nBLX             R3                                                     ; +0x42, 0x2e6df6\nLDR             R3, [R0,#0x34]                                         ; +0x44, 0x2e6df8\nMOV             R0, R4                                                 ; +0x46, 0x2e6dfa\nLDR             R7, [R3,#0xC]                                          ; +0x48, 0x2e6dfc\nLDR             R3, [R4]                                               ; +0x4a, 0x2e6dfe\nLDR.W           R3, [R3,#0xEC]                                         ; +0x4c, 0x2e6e00\nBLX             R3                                                     ; +0x50, 0x2e6e04\nLDR             R3, [R0,#0x34]                                         ; +0x52, 0x2e6e06\nLDR             R3, [R3]                                               ; +0x54, 0x2e6e08\nADD.W           R3, R3, #0x40000000                                    ; +0x56, 0x2e6e0a\nSUBS            R3, #1                                                 ; +0x5a, 0x2e6e0e\nADD.W           R4, R7, R3,LSL#2                                       ; +0x5c, 0x2e6e10\nCMP             R5, R4                                                 ; +0x60, 0x2e6e14\nBHI             loc_2E6E2C                                             ; +0x62, 0x2e6e16\nLDR.W           R0, [R5],#4                                            ; +0x64, 0x2e6e18\nCBZ             R0, loc_2E6E2C                                         ; +0x68, 0x2e6e1c\nLDR             R3, [R0]                                               ; +0x6a, 0x2e6e1e\nLDM.W           R6, {R1,R2}                                            ; +0x6c, 0x2e6e20\nLDR.W           R3, [R3,#0x214]                                        ; +0x70, 0x2e6e24\nBLX             R3                                                     ; +0x74, 0x2e6e28\nB               loc_2E6E14                                             ; +0x76, 0x2e6e2a\nADD             SP, SP, #0xC                                           ; +0x78, 0x2e6e2c\nPOP             {R4-R7,PC}                                             ; +0x7a, 0x2e6e2e", "xrefs": ["`non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x2e6e34"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}