{"type": "func", "start": 4297344416, "end": 4297344633, "name": "CustomSFXCell::loadFromObject", "pseudocode": "// \n// CustomSFXCell::loadFromObject from 0x1002445a0 to 0x100244679 (217 bytes)\n// \n// 0 xrefs:\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 __fastcall CustomSFXCell::loadFromObject(CustomSFXCell *a1, SFXInfoObject *a2)\n{\n  CustomSFXWidget *v3; // r14\n  _BYTE v4[32]; // [rsp+10h] [rbp-20h] BYREF\n\n  ((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1);\n  a1->m_sfxObject = a2;\n  v3 = CustomSFXWidget::create(a2, &a1->CustomSFXDelegate, 1, 1, 1, 0, a1->m_compactMode);\n  ((void (__fastcall *)(cocos2d::CCLayer *, CustomSFXWidget *, __int64))a1->m_mainLayer->addChild_0)(\n    a1->m_mainLayer,\n    v3,\n    2);\n  sub_10028CBE0(v4, a1->m_width * 0.5, 0.5 * a1->m_height);\n  ((void (__fastcall *)(CustomSFXWidget *, _BYTE *))v3->setPosition)(v3, v4);\n  LODWORD(v3) = a1->m_sfxObject->m_sfxID;\n  a1->m_selected = (_DWORD)v3 == ((unsigned int (__fastcall *)(CustomSFXCell *))a1->getActiveSFXID)(a1);\n}", "assembly": "; \n; CustomSFXCell::loadFromObject from 0x1002445a0 to 0x100244679 (217 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x1002445a0\nmov     rbp, rsp                                                       ; +0x1, 0x1002445a1\npush    r15                                                            ; +0x4, 0x1002445a4\npush    r14                                                            ; +0x6, 0x1002445a6\npush    rbx                                                            ; +0x8, 0x1002445a8\nsub     rsp, 18h                                                       ; +0x9, 0x1002445a9\nmov     r14, rsi                                                       ; +0xd, 0x1002445ad\nmov     rbx, rdi                                                       ; +0x10, 0x1002445b0\nmov     rdi, [rdi+218h]                                                ; +0x13, 0x1002445b3\nmov     rax, [rdi]                                                     ; +0x1a, 0x1002445ba\nmov     esi, 1                                                         ; +0x1d, 0x1002445bd\ncall    qword ptr [rax+238h]                                           ; +0x22, 0x1002445c2\nmov     [rbx+230h], r14                                                ; +0x28, 0x1002445c8\nlea     rsi, [rbx+228h]                                                ; +0x2f, 0x1002445cf\nmovzx   eax, byte ptr [rbx+239h]                                       ; +0x36, 0x1002445d6\nmov     [rsp+30h+var_30], eax                                          ; +0x3d, 0x1002445dd\nmov     rdi, r14                                                       ; +0x40, 0x1002445e0\nmov     edx, 1                                                         ; +0x43, 0x1002445e3\nmov     ecx, 1                                                         ; +0x48, 0x1002445e8\nmov     r8d, 1                                                         ; +0x4d, 0x1002445ed\nxor     r9d, r9d                                                       ; +0x53, 0x1002445f3\ncall    CustomSFXWidget__create                                        ; +0x56, 0x1002445f6\nmov     r14, rax                                                       ; +0x5b, 0x1002445fb\nmov     rdi, [rbx+218h]                                                ; +0x5e, 0x1002445fe\nmov     rax, [rdi]                                                     ; +0x65, 0x100244605\nmov     rsi, r14                                                       ; +0x68, 0x100244608\nmov     edx, 2                                                         ; +0x6b, 0x10024460b\ncall    qword ptr [rax+1C0h]                                           ; +0x70, 0x100244610\nmovss   xmm1, cs:dword_100814FA8                                       ; +0x76, 0x100244616\nmovss   xmm0, dword ptr [rbx+208h]                                     ; +0x7e, 0x10024461e\nmulss   xmm0, xmm1                                                     ; +0x86, 0x100244626\nmulss   xmm1, dword ptr [rbx+20Ch]                                     ; +0x8a, 0x10024462a\nlea     r15, [rbp+var_20]                                              ; +0x92, 0x100244632\nmov     rdi, r15                                                       ; +0x96, 0x100244636\ncall    sub_10028CBE0                                                  ; +0x99, 0x100244639\nmov     rax, [r14]                                                     ; +0x9e, 0x10024463e\nmov     rdi, r14                                                       ; +0xa1, 0x100244641\nmov     rsi, r15                                                       ; +0xa4, 0x100244644\ncall    qword ptr [rax+0B8h]                                           ; +0xa7, 0x100244647\nmov     rax, [rbx+230h]                                                ; +0xad, 0x10024464d\nmov     r14d, [rax+38h]                                                ; +0xb4, 0x100244654\nmov     rax, [rbx]                                                     ; +0xb8, 0x100244658\nmov     rdi, rbx                                                       ; +0xbb, 0x10024465b\ncall    qword ptr [rax+478h]                                           ; +0xbe, 0x10024465e\ncmp     r14d, eax                                                      ; +0xc4, 0x100244664\nsetz    byte ptr [rbx+238h]                                            ; +0xc7, 0x100244667\nadd     rsp, 18h                                                       ; +0xce, 0x10024466e\npop     rbx                                                            ; +0xd2, 0x100244672\npop     r14                                                            ; +0xd3, 0x100244673\npop     r15                                                            ; +0xd5, 0x100244675\npop     rbp                                                            ; +0xd7, 0x100244677\nretn                                                                   ; +0xd8, 0x100244678", "xrefs": [], "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"}