{"type": "func", "start": 5374769344, "end": 5374769649, "name": "CreateParticlePopup::onSelectParticleTexture", "pseudocode": "// \n// CreateParticlePopup::onSelectParticleTexture from 0x1405c78c0 to 0x1405c79f1 (305 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0x1405c59e8\n// > CreateParticlePopup::init @ 0x1405c5bcf\n// > <???> @ 0x14092e2ec\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:34:51 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onSelectParticleTexture(__int64 a1, __int64 a2)\n{\n  int v4; // eax\n  int v5; // edx\n  cocos2d::CCParticleSystemQuad *v6; // rdi\n  cocos2d::CCString *v7; // rax\n  const char *CString; // rbx\n  __int64 v9; // rdx\n  __int64 v10; // rcx\n  cocos2d::CCSpriteFrameCache *v11; // rax\n  struct cocos2d::CCSpriteFrame *v12; // rax\n  __int64 v13; // rdx\n  __int64 *v14; // r14\n  __int64 v15; // rbp\n  __int64 (__fastcall *v16)(__int64); // rdi\n  __int64 (__fastcall *v17)(__int64 *); // rsi\n  __int64 v18; // rbx\n  __int64 v19; // rax\n  __int64 v20; // rax\n  __int64 v21; // rbx\n  __int64 v22; // rax\n  __int64 v23; // rax\n  char v25; // [rsp+50h] [rbp+8h] BYREF\n  char v26; // [rsp+58h] [rbp+10h] BYREF\n\n  if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) < 0\n    || (v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2), v5 = 361, v4 < 361) )\n  {\n    if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) >= 0 )\n      v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n    else\n      v5 = 0;\n  }\n  v6 = *(cocos2d::CCParticleSystemQuad **)(a1 + 712);\n  *(_DWORD *)(a1 + 992) = v5;\n  v7 = cocos2d::CCString::createWithFormat(\"particle_%02d_001.png\", v5);\n  CString = cocos2d::CCString::getCString(v7);\n  v11 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v10, v9);\n  v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, CString);\n  cocos2d::CCParticleSystemQuad::setDisplayFrame(v6, v12);\n  CreateParticlePopup::updateParticleValueForType(a1, v13, 63, 0);\n  CreateParticlePopup::applyTexturePage(a1);\n  v14 = *(__int64 **)(a1 + 888);\n  v15 = *v14;\n  v16 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 504LL);\n  v17 = *(__int64 (__fastcall **)(__int64 *))(*v14 + 504);\n  v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2);\n  v19 = v16(a2);\n  cocos2d::CCNode::convertToWorldSpace(v19, &v25, v18);\n  v21 = v20;\n  v22 = v17(v14);\n  cocos2d::CCNode::convertToNodeSpace(v22, &v26, v21);\n  return (*(__int64 (__fastcall **)(__int64 *, __int64))(v15 + 184))(v14, v23);\n}", "assembly": "; \n; CreateParticlePopup::onSelectParticleTexture from 0x1405c78c0 to 0x1405c79f1 (305 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0x1405c59e8\n; > CreateParticlePopup::init @ 0x1405c5bcf\n; > <???> @ 0x14092e2ec\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:34:51 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1405c78c0\npush    rbp                                                            ; +0x5, 0x1405c78c5\npush    rsi                                                            ; +0x6, 0x1405c78c6\npush    rdi                                                            ; +0x7, 0x1405c78c7\npush    r14                                                            ; +0x8, 0x1405c78c8\npush    r15                                                            ; +0xa, 0x1405c78ca\nsub     rsp, 20h                                                       ; +0xc, 0x1405c78cc\nmov     rax, [rdx]                                                     ; +0x10, 0x1405c78d0\nmov     r14, rcx                                                       ; +0x13, 0x1405c78d3\nmov     rcx, rdx                                                       ; +0x16, 0x1405c78d6\nmov     r15, rdx                                                       ; +0x19, 0x1405c78d9\ncall    qword ptr [rax+38h]                                            ; +0x1c, 0x1405c78dc\ntest    eax, eax                                                       ; +0x1f, 0x1405c78df\njs      short loc_1405C78F5                                            ; +0x21, 0x1405c78e1\nmov     rax, [r15]                                                     ; +0x23, 0x1405c78e3\nmov     rcx, r15                                                       ; +0x26, 0x1405c78e6\ncall    qword ptr [rax+38h]                                            ; +0x29, 0x1405c78e9\nmov     edx, 169h                                                      ; +0x2c, 0x1405c78ec\ncmp     eax, edx                                                       ; +0x31, 0x1405c78f1\njge     short loc_1405C7911                                            ; +0x33, 0x1405c78f3\nmov     rax, [r15]                                                     ; +0x35, 0x1405c78f5\nmov     rcx, r15                                                       ; +0x38, 0x1405c78f8\ncall    qword ptr [rax+38h]                                            ; +0x3b, 0x1405c78fb\ntest    eax, eax                                                       ; +0x3e, 0x1405c78fe\njns     short loc_1405C7906                                            ; +0x40, 0x1405c7900\nxor     edx, edx                                                       ; +0x42, 0x1405c7902\njmp     short loc_1405C7911                                            ; +0x44, 0x1405c7904\nmov     rax, [r15]                                                     ; +0x46, 0x1405c7906\nmov     rcx, r15                                                       ; +0x49, 0x1405c7909\ncall    qword ptr [rax+38h]                                            ; +0x4c, 0x1405c790c\nmov     edx, eax                                                       ; +0x4f, 0x1405c790f\nmov     rdi, [r14+2C8h]                                                ; +0x51, 0x1405c7911\nlea     rcx, aParticle02d001; \"particle_%02d_001.png\"                  ; +0x58, 0x1405c7918\nmov     [r14+3E0h], edx                                                ; +0x5f, 0x1405c791f\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x66, 0x1405c7926\nmov     rcx, rax                                                       ; +0x6c, 0x1405c792c\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x6f, 0x1405c792f\nmov     rbx, rax                                                       ; +0x75, 0x1405c7935\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x78, 0x1405c7938\nmov     rcx, rax                                                       ; +0x7e, 0x1405c793e\nmov     rdx, rbx                                                       ; +0x81, 0x1405c7941\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x84, 0x1405c7944\nmov     rdx, rax                                                       ; +0x8a, 0x1405c794a\nmov     rcx, rdi                                                       ; +0x8d, 0x1405c794d\ncall    cs:?setDisplayFrame@CCParticleSystemQuad@cocos2d@@QEAAXPEAVCCSpriteFrame@2@@Z; cocos2d::CCParticleSystemQuad::setDisplayFrame(cocos2d::CCSpriteFrame *) ; +0x90, 0x1405c7950\nmovd    xmm1, dword ptr [r14+3E0h]                                     ; +0x96, 0x1405c7956\nxor     r9d, r9d                                                       ; +0x9f, 0x1405c795f\ncvtdq2ps xmm1, xmm1                                                    ; +0xa2, 0x1405c7962\nmov     r8d, 3Fh ; '?'                                                 ; +0xa5, 0x1405c7965\nmov     rcx, r14                                                       ; +0xab, 0x1405c796b\ncall    CreateParticlePopup__updateParticleValueForType                ; +0xae, 0x1405c796e\nmov     rcx, r14                                                       ; +0xb3, 0x1405c7973\ncall    CreateParticlePopup__applyTexturePage                          ; +0xb6, 0x1405c7976\nmov     rax, [r15]                                                     ; +0xbb, 0x1405c797b\nmov     rcx, r15                                                       ; +0xbe, 0x1405c797e\nmov     r14, [r14+378h]                                                ; +0xc1, 0x1405c7981\nmov     rdx, [rax+0C8h]                                                ; +0xc8, 0x1405c7988\nmov     rbp, [r14]                                                     ; +0xcf, 0x1405c798f\nmov     rdi, [rax+1F8h]                                                ; +0xd2, 0x1405c7992\nmov     rsi, [rbp+1F8h]                                                ; +0xd9, 0x1405c7999\ncall    rdx                                                            ; +0xe0, 0x1405c79a0\nmov     rcx, r15                                                       ; +0xe2, 0x1405c79a2\nmov     rbx, rax                                                       ; +0xe5, 0x1405c79a5\ncall    rdi                                                            ; +0xe8, 0x1405c79a8\nmov     rcx, rax                                                       ; +0xea, 0x1405c79aa\nlea     rdx, [rsp+48h+arg_0]                                           ; +0xed, 0x1405c79ad\nmov     r8, rbx                                                        ; +0xf2, 0x1405c79b2\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xf5, 0x1405c79b5\nmov     rcx, r14                                                       ; +0xfb, 0x1405c79bb\nmov     rbx, rax                                                       ; +0xfe, 0x1405c79be\ncall    rsi                                                            ; +0x101, 0x1405c79c1\nmov     rcx, rax                                                       ; +0x103, 0x1405c79c3\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x106, 0x1405c79c6\nmov     r8, rbx                                                        ; +0x10b, 0x1405c79cb\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x10e, 0x1405c79ce\nmov     rdx, rax                                                       ; +0x114, 0x1405c79d4\nmov     rcx, r14                                                       ; +0x117, 0x1405c79d7\ncall    qword ptr [rbp+0B8h]                                           ; +0x11a, 0x1405c79da\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x120, 0x1405c79e0\nadd     rsp, 20h                                                       ; +0x125, 0x1405c79e5\npop     r15                                                            ; +0x129, 0x1405c79e9\npop     r14                                                            ; +0x12b, 0x1405c79eb\npop     rdi                                                            ; +0x12d, 0x1405c79ed\npop     rsi                                                            ; +0x12e, 0x1405c79ee\npop     rbp                                                            ; +0x12f, 0x1405c79ef\nretn                                                                   ; +0x130, 0x1405c79f0", "xrefs": ["CreateParticlePopup::init @ 0x1405c59e8", "CreateParticlePopup::init @ 0x1405c5bcf", "<???> @ 0x14092e2ec"], "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"}