{"type": "func", "start": 5369449392, "end": 5369449625, "name": "CustomSFXCell::loadFromObject", "pseudocode": "// \n// CustomSFXCell::loadFromObject from 0x1400b4bb0 to 0x1400b4c99 (233 bytes)\n// \n// 3 xrefs:\n// > CustomListView::loadCell @ 0x1400ab796\n// > CustomListView::reloadAll @ 0x1400ac681\n// > <???> @ 0x1406c7b48\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 CustomSFXCell::loadFromObject(CustomSFXCell *a1, SFXInfoObject *a2)\n{\n  SFXInfoObject *v3; // rbx\n  bool v4; // r9\n  CustomSFXDelegate *v5; // rdx\n  CustomSFXWidget *v6; // rdi\n  CustomSFXWidget_vtbl *v7; // rbx\n  const cocos2d::CCPoint *v8; // rax\n  bool v9; // [rsp+20h] [rbp-28h]\n  bool v10; // [rsp+28h] [rbp-20h]\n  cocos2d::CCPoint v11; // [rsp+50h] [rbp+8h] BYREF\n\n  v3 = a2;\n  LOBYTE(a2) = 1;\n  a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, (bool)a2);\n  a1->m_sfxObject = v3;\n  v5 = &a1->CustomSFXDelegate;\n  if ( !a1 )\n    v5 = nullptr;\n  v6 = CustomSFXWidget::create(v3, v5, 1, v4, v9, v10, a1->m_compactMode);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 2);\n  v7 = v6->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(&v11, a1->m_width * 0.5, a1->m_height * 0.5);\n  v7->setPosition_0(v6, v8);\n  a1->m_selected = a1->m_sfxObject->m_sfxID == a1->getActiveSFXID(&a1->CustomSFXDelegate);\n}", "assembly": "; \n; CustomSFXCell::loadFromObject from 0x1400b4bb0 to 0x1400b4c99 (233 bytes)\n; \n; 3 xrefs:\n; > CustomListView::loadCell @ 0x1400ab796\n; > CustomListView::reloadAll @ 0x1400ac681\n; > <???> @ 0x1406c7b48\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400b4bb0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1400b4bb5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1400b4bba\npush    rdi                                                            ; +0xf, 0x1400b4bbf\nsub     rsp, 40h                                                       ; +0x10, 0x1400b4bc0\nmov     rbp, rcx                                                       ; +0x14, 0x1400b4bc4\nmov     rbx, rdx                                                       ; +0x17, 0x1400b4bc7\nmov     rcx, [rcx+220h]                                                ; +0x1a, 0x1400b4bca\nmov     dl, 1                                                          ; +0x21, 0x1400b4bd1\nmov     rax, [rcx]                                                     ; +0x23, 0x1400b4bd3\ncall    qword ptr [rax+230h]                                           ; +0x26, 0x1400b4bd6\nxor     eax, eax                                                       ; +0x2c, 0x1400b4bdc\nmov     [rbp+238h], rbx                                                ; +0x2e, 0x1400b4bde\ntest    rbp, rbp                                                       ; +0x35, 0x1400b4be5\nlea     rdx, [rbp+230h]                                                ; +0x38, 0x1400b4be8\nmov     r8b, 1                                                         ; +0x3f, 0x1400b4bef\nmov     rcx, rbx                                                       ; +0x42, 0x1400b4bf2\ncmovz   rdx, rax                                                       ; +0x45, 0x1400b4bf5\nmovzx   eax, byte ptr [rbp+241h]                                       ; +0x49, 0x1400b4bf9\nmov     [rsp+48h+var_18], al                                           ; +0x50, 0x1400b4c00\ncall    CustomSFXWidget__create                                        ; +0x54, 0x1400b4c04\nmov     rcx, [rbp+220h]                                                ; +0x59, 0x1400b4c09\nmov     r8d, 2                                                         ; +0x60, 0x1400b4c10\nmov     rdx, rax                                                       ; +0x66, 0x1400b4c16\nmov     rdi, rax                                                       ; +0x69, 0x1400b4c19\nmov     r9, [rcx]                                                      ; +0x6c, 0x1400b4c1c\ncall    qword ptr [r9+1B8h]                                            ; +0x6f, 0x1400b4c1f\nmovss   xmm2, dword ptr [rbp+214h]                                     ; +0x76, 0x1400b4c26\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x7e, 0x1400b4c2e\nmovss   xmm1, dword ptr [rbp+210h]                                     ; +0x83, 0x1400b4c33\nmulss   xmm2, cs:dword_140622B08                                       ; +0x8b, 0x1400b4c3b\nmov     rbx, [rdi]                                                     ; +0x93, 0x1400b4c43\nmulss   xmm1, cs:dword_140622B08                                       ; +0x96, 0x1400b4c46\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x9e, 0x1400b4c4e\nmov     rdx, rax                                                       ; +0xa4, 0x1400b4c54\nmov     rcx, rdi                                                       ; +0xa7, 0x1400b4c57\ncall    qword ptr [rbx+0B8h]                                           ; +0xaa, 0x1400b4c5a\nmov     rax, [rbp+230h]                                                ; +0xb0, 0x1400b4c60\nlea     rcx, [rbp+230h]                                                ; +0xb7, 0x1400b4c67\ncall    qword ptr [rax+8]                                              ; +0xbe, 0x1400b4c6e\nmov     rcx, [rbp+238h]                                                ; +0xc1, 0x1400b4c71\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xc8, 0x1400b4c78\nmov     rsi, [rsp+48h+arg_18]                                          ; +0xcd, 0x1400b4c7d\ncmp     [rcx+38h], eax                                                 ; +0xd2, 0x1400b4c82\nsetz    al                                                             ; +0xd5, 0x1400b4c85\nmov     [rbp+240h], al                                                 ; +0xd8, 0x1400b4c88\nmov     rbp, [rsp+48h+arg_10]                                          ; +0xde, 0x1400b4c8e\nadd     rsp, 40h                                                       ; +0xe3, 0x1400b4c93\npop     rdi                                                            ; +0xe7, 0x1400b4c97\nretn                                                                   ; +0xe8, 0x1400b4c98", "xrefs": ["CustomListView::loadCell @ 0x1400ab796", "CustomListView::reloadAll @ 0x1400ac681", "<???> @ 0x1406c7b48"], "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"}