{"type": "func", "start": 5375404176, "end": 5375404797, "name": "ForceBlockGameObject::customObjectSetup", "pseudocode": "// \n// ForceBlockGameObject::customObjectSetup from 0x140662890 to 0x140662afd (621 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1408249d8\n// > <???> @ 0x1408e9ca4\n// > <???> @ 0x1408e9ce0\n// > <???> @ 0x140931b8c\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:35:49 +0000\n// \n\nint __fastcall ForceBlockGameObject::customObjectSetup(__int64 a1, __int64 a2, __int64 a3, float a4)\n{\n  cocos2d *v7; // rcx\n  const char *v8; // rcx\n  float v9; // xmm8_4\n  cocos2d *v10; // rcx\n  const char *v11; // rcx\n  float v12; // xmm8_4\n  cocos2d *v13; // rcx\n  const char *v14; // rcx\n  float v15; // xmm8_4\n  int v16; // eax\n  const char *v17; // rcx\n  int v18; // eax\n  const char *v19; // rcx\n  __int64 v20; // rax\n  const char *v21; // rcx\n\n  EffectGameObject::customObjectSetup(a1, a2, a3);\n  if ( *(_QWORD *)(*(_QWORD *)a3 + 1192LL) )\n  {\n    v8 = (const char *)(*(_QWORD *)a2 + 4768LL);\n    if ( *(_QWORD *)(*(_QWORD *)a2 + 4792LL) > 0xFu )\n      v8 = *(const char **)v8;\n    v9 = atof(v8);\n    isnan(v9);\n  }\n  *(float *)(a1 + 1856) = cocos2d::clampf(v7, -10000.0, 10000.0, a4);\n  if ( *(_QWORD *)(*(_QWORD *)a3 + 4208LL) )\n  {\n    v11 = (const char *)(*(_QWORD *)a2 + 16832LL);\n    if ( *(_QWORD *)(*(_QWORD *)a2 + 16856LL) > 0xFu )\n      v11 = *(const char **)v11;\n    v12 = atof(v11);\n    isnan(v12);\n  }\n  *(float *)(a1 + 1860) = cocos2d::clampf(v10, -10000.0, 10000.0, a4);\n  if ( *(_QWORD *)(*(_QWORD *)a3 + 4216LL) )\n  {\n    v14 = (const char *)(*(_QWORD *)a2 + 16864LL);\n    if ( *(_QWORD *)(*(_QWORD *)a2 + 16888LL) > 0xFu )\n      v14 = *(const char **)v14;\n    v15 = atof(v14);\n    isnan(v15);\n  }\n  *(float *)(a1 + 1864) = cocos2d::clampf(v13, -10000.0, 10000.0, a4);\n  if ( *(_QWORD *)(*(_QWORD *)a3 + 4224LL) )\n  {\n    v17 = (const char *)(*(_QWORD *)a2 + 16896LL);\n    if ( *(_QWORD *)(*(_QWORD *)a2 + 16920LL) > 0xFu )\n      v17 = *(const char **)v17;\n    v16 = atoi(v17);\n  }\n  else\n  {\n    v16 = 0;\n  }\n  *(_BYTE *)(a1 + 1868) = v16 != 0;\n  if ( *(_QWORD *)(*(_QWORD *)a3 + 4232LL) )\n  {\n    v19 = (const char *)(*(_QWORD *)a2 + 16928LL);\n    if ( *(_QWORD *)(*(_QWORD *)a2 + 16952LL) > 0xFu )\n      v19 = *(const char **)v19;\n    v18 = atoi(v19);\n  }\n  else\n  {\n    v18 = 0;\n  }\n  *(_BYTE *)(a1 + 1869) = v18 != 0;\n  v20 = *(_QWORD *)a3;\n  if ( *(_QWORD *)(*(_QWORD *)a3 + 4240LL) )\n  {\n    v21 = (const char *)(*(_QWORD *)a2 + 16960LL);\n    if ( *(_QWORD *)(*(_QWORD *)a2 + 16984LL) > 0xFu )\n      v21 = *(const char **)v21;\n    LODWORD(v20) = atoi(v21);\n    *(_DWORD *)(a1 + 1872) = v20;\n  }\n  else\n  {\n    *(_DWORD *)(a1 + 1872) = 0;\n  }\n  return v20;\n}", "assembly": "; \n; ForceBlockGameObject::customObjectSetup from 0x140662890 to 0x140662afd (621 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1408249d8\n; > <???> @ 0x1408e9ca4\n; > <???> @ 0x1408e9ce0\n; > <???> @ 0x140931b8c\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:35:49 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140662890\npush    rdi                                                            ; +0x5, 0x140662895\nsub     rsp, 50h                                                       ; +0x6, 0x140662896\nmov     [rsp+58h+arg_0], rsi                                           ; +0xa, 0x14066289a\nmov     rdi, rdx                                                       ; +0xf, 0x14066289f\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x12, 0x1406628a2\nmov     rsi, r8                                                        ; +0x17, 0x1406628a7\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x1a, 0x1406628aa\nmov     rbx, rcx                                                       ; +0x1f, 0x1406628af\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x22, 0x1406628b2\ncall    EffectGameObject__customObjectSetup                            ; +0x28, 0x1406628b8\nmov     rax, [rsi]                                                     ; +0x2d, 0x1406628bd\nmovss   xmm7, cs:dword_1408360E0                                       ; +0x30, 0x1406628c0\ncmp     qword ptr [rax+4A8h], 0                                        ; +0x38, 0x1406628c8\njnz     short loc_1406628DA                                            ; +0x40, 0x1406628d0\nxorps   xmm6, xmm6                                                     ; +0x42, 0x1406628d2\nxorps   xmm0, xmm0                                                     ; +0x45, 0x1406628d5\njmp     short loc_140662927                                            ; +0x48, 0x1406628d8\nmov     rcx, [rdi]                                                     ; +0x4a, 0x1406628da\nadd     rcx, 12A0h                                                     ; +0x4d, 0x1406628dd\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x54, 0x1406628e4\njbe     short loc_1406628EE                                            ; +0x59, 0x1406628e9\nmov     rcx, [rcx]; String                                             ; +0x5b, 0x1406628eb\ncall    cs:atof                                                        ; +0x5e, 0x1406628ee\nxorps   xmm8, xmm8                                                     ; +0x64, 0x1406628f4\ncvtsd2ss xmm8, xmm0                                                    ; +0x68, 0x1406628f8\ncvtps2pd xmm0, xmm8; X                                                 ; +0x6d, 0x1406628fd\ncall    cs:_isnan                                                      ; +0x71, 0x140662901\nxorps   xmm6, xmm6                                                     ; +0x77, 0x140662907\ntest    eax, eax                                                       ; +0x7a, 0x14066290a\njz      short loc_140662913                                            ; +0x7c, 0x14066290c\nxorps   xmm0, xmm0                                                     ; +0x7e, 0x14066290e\njmp     short loc_140662927                                            ; +0x81, 0x140662911\nmovss   xmm0, cs:dword_140835C3C                                       ; +0x83, 0x140662913\nmovaps  xmm1, xmm7                                                     ; +0x8b, 0x14066291b\nmaxss   xmm1, xmm8                                                     ; +0x8e, 0x14066291e\nminss   xmm0, xmm1                                                     ; +0x93, 0x140662923\nmovss   xmm2, cs:dword_140835BAC                                       ; +0x97, 0x140662927\nmovss   xmm1, cs:dword_1408360C0                                       ; +0x9f, 0x14066292f\ncall    cs:?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0xa7, 0x140662937\nmovss   dword ptr [rbx+740h], xmm0                                     ; +0xad, 0x14066293d\nmov     rax, [rsi]                                                     ; +0xb5, 0x140662945\ncmp     qword ptr [rax+1070h], 0                                       ; +0xb8, 0x140662948\njnz     short loc_140662957                                            ; +0xc0, 0x140662950\nxorps   xmm0, xmm0                                                     ; +0xc2, 0x140662952\njmp     short loc_1406629A1                                            ; +0xc5, 0x140662955\nmov     rcx, [rdi]                                                     ; +0xc7, 0x140662957\nadd     rcx, 41C0h                                                     ; +0xca, 0x14066295a\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0xd1, 0x140662961\njbe     short loc_14066296B                                            ; +0xd6, 0x140662966\nmov     rcx, [rcx]; String                                             ; +0xd8, 0x140662968\ncall    cs:atof                                                        ; +0xdb, 0x14066296b\nxorps   xmm8, xmm8                                                     ; +0xe1, 0x140662971\ncvtsd2ss xmm8, xmm0                                                    ; +0xe5, 0x140662975\ncvtps2pd xmm0, xmm8; X                                                 ; +0xea, 0x14066297a\ncall    cs:_isnan                                                      ; +0xee, 0x14066297e\ntest    eax, eax                                                       ; +0xf4, 0x140662984\njz      short loc_14066298D                                            ; +0xf6, 0x140662986\nxorps   xmm0, xmm0                                                     ; +0xf8, 0x140662988\njmp     short loc_1406629A1                                            ; +0xfb, 0x14066298b\nmovss   xmm0, cs:dword_140835C3C                                       ; +0xfd, 0x14066298d\nmovaps  xmm1, xmm7                                                     ; +0x105, 0x140662995\nmaxss   xmm1, xmm8                                                     ; +0x108, 0x140662998\nminss   xmm0, xmm1                                                     ; +0x10d, 0x14066299d\nmovss   xmm2, cs:dword_140835BAC                                       ; +0x111, 0x1406629a1\nmovss   xmm1, cs:dword_1408360C0                                       ; +0x119, 0x1406629a9\ncall    cs:?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x121, 0x1406629b1\nmovss   dword ptr [rbx+744h], xmm0                                     ; +0x127, 0x1406629b7\nmov     rax, [rsi]                                                     ; +0x12f, 0x1406629bf\ncmp     qword ptr [rax+1078h], 0                                       ; +0x132, 0x1406629c2\njz      short loc_140662A0E                                            ; +0x13a, 0x1406629ca\nmov     rcx, [rdi]                                                     ; +0x13c, 0x1406629cc\nadd     rcx, 41E0h                                                     ; +0x13f, 0x1406629cf\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x146, 0x1406629d6\njbe     short loc_1406629E0                                            ; +0x14b, 0x1406629db\nmov     rcx, [rcx]; String                                             ; +0x14d, 0x1406629dd\ncall    cs:atof                                                        ; +0x150, 0x1406629e0\nxorps   xmm8, xmm8                                                     ; +0x156, 0x1406629e6\ncvtsd2ss xmm8, xmm0                                                    ; +0x15a, 0x1406629ea\ncvtps2pd xmm0, xmm8; X                                                 ; +0x15f, 0x1406629ef\ncall    cs:_isnan                                                      ; +0x163, 0x1406629f3\ntest    eax, eax                                                       ; +0x169, 0x1406629f9\njnz     short loc_140662A0E                                            ; +0x16b, 0x1406629fb\nmovss   xmm6, cs:dword_140835C3C                                       ; +0x16d, 0x1406629fd\nmaxss   xmm7, xmm8                                                     ; +0x175, 0x140662a05\nminss   xmm6, xmm7                                                     ; +0x17a, 0x140662a0a\nmovss   xmm2, cs:dword_140835BAC                                       ; +0x17e, 0x140662a0e\nmovaps  xmm0, xmm6                                                     ; +0x186, 0x140662a16\nmovss   xmm1, cs:dword_1408360C0                                       ; +0x189, 0x140662a19\ncall    cs:?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x191, 0x140662a21\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x197, 0x140662a27\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x19d, 0x140662a2d\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x1a2, 0x140662a32\nmovss   dword ptr [rbx+748h], xmm0                                     ; +0x1a7, 0x140662a37\nmov     rax, [rsi]                                                     ; +0x1af, 0x140662a3f\ncmp     qword ptr [rax+1080h], 0                                       ; +0x1b2, 0x140662a42\njnz     short loc_140662A50                                            ; +0x1ba, 0x140662a4a\nxor     eax, eax                                                       ; +0x1bc, 0x140662a4c\njmp     short loc_140662A6A                                            ; +0x1be, 0x140662a4e\nmov     rcx, [rdi]                                                     ; +0x1c0, 0x140662a50\nadd     rcx, 4200h                                                     ; +0x1c3, 0x140662a53\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x1ca, 0x140662a5a\njbe     short loc_140662A64                                            ; +0x1cf, 0x140662a5f\nmov     rcx, [rcx]; String                                             ; +0x1d1, 0x140662a61\ncall    cs:atoi                                                        ; +0x1d4, 0x140662a64\ntest    eax, eax                                                       ; +0x1da, 0x140662a6a\nsetnz   al                                                             ; +0x1dc, 0x140662a6c\nmov     [rbx+74Ch], al                                                 ; +0x1df, 0x140662a6f\nmov     rax, [rsi]                                                     ; +0x1e5, 0x140662a75\ncmp     qword ptr [rax+1088h], 0                                       ; +0x1e8, 0x140662a78\njnz     short loc_140662A86                                            ; +0x1f0, 0x140662a80\nxor     eax, eax                                                       ; +0x1f2, 0x140662a82\njmp     short loc_140662AA0                                            ; +0x1f4, 0x140662a84\nmov     rcx, [rdi]                                                     ; +0x1f6, 0x140662a86\nadd     rcx, 4220h                                                     ; +0x1f9, 0x140662a89\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x200, 0x140662a90\njbe     short loc_140662A9A                                            ; +0x205, 0x140662a95\nmov     rcx, [rcx]; String                                             ; +0x207, 0x140662a97\ncall    cs:atoi                                                        ; +0x20a, 0x140662a9a\ntest    eax, eax                                                       ; +0x210, 0x140662aa0\nsetnz   al                                                             ; +0x212, 0x140662aa2\nmov     [rbx+74Dh], al                                                 ; +0x215, 0x140662aa5\nmov     rax, [rsi]                                                     ; +0x21b, 0x140662aab\nmov     rsi, [rsp+58h+arg_0]                                           ; +0x21e, 0x140662aae\ncmp     qword ptr [rax+1090h], 0                                       ; +0x223, 0x140662ab3\njnz     short loc_140662AD2                                            ; +0x22b, 0x140662abb\nmov     dword ptr [rbx+750h], 0                                        ; +0x22d, 0x140662abd\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x237, 0x140662ac7\nadd     rsp, 50h                                                       ; +0x23c, 0x140662acc\npop     rdi                                                            ; +0x240, 0x140662ad0\nretn                                                                   ; +0x241, 0x140662ad1\nmov     rcx, [rdi]                                                     ; +0x242, 0x140662ad2\nadd     rcx, 4240h                                                     ; +0x245, 0x140662ad5\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x24c, 0x140662adc\njbe     short loc_140662AE6                                            ; +0x251, 0x140662ae1\nmov     rcx, [rcx]; String                                             ; +0x253, 0x140662ae3\ncall    cs:atoi                                                        ; +0x256, 0x140662ae6\nmov     [rbx+750h], eax                                                ; +0x25c, 0x140662aec\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x262, 0x140662af2\nadd     rsp, 50h                                                       ; +0x267, 0x140662af7\npop     rdi                                                            ; +0x26b, 0x140662afb\nretn                                                                   ; +0x26c, 0x140662afc", "xrefs": ["<???> @ 0x1408249d8", "<???> @ 0x1408e9ca4", "<???> @ 0x1408e9ce0", "<???> @ 0x140931b8c"], "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"}