{"type": "func", "start": 5370471312, "end": 5370471700, "name": "EditorUI::setCustomGridNodeSize", "pseudocode": "// \n// EditorUI::setCustomGridNodeSize from 0x1401ae390 to 0x1401ae514 (388 bytes)\n// \n// 11 xrefs:\n// > EditorUI::setCustomGridEnabled @ 0x1401ae5aa\n// > EditorUI::cycleCustomGridPreset @ 0x1401ae649\n// > EditorUI::cycleCustomGridPreset @ 0x1401ae69d\n// > EditorUI::cycleCustomGridPreset @ 0x1401ae6dd\n// > EditorUI::cycleCustomGridPreset @ 0x1401ae6ea\n// > EditorUI::adjustCustomGridSize @ 0x1401ae766\n// > EditorUI::adjustCustomGridSize @ 0x1401ae782\n// > GridSettingsLayer::valueDidChange @ 0x1402c9533\n// > GridSettingsLayer::onReset @ 0x1402c955d\n// > <???> @ 0x140919de4\n// > <???> @ 0x140919df0\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:27:54 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall EditorUI::setCustomGridNodeSize(__int64 a1, float a2)\n{\n  float v3; // xmm6_4\n  float v4; // xmm0_4\n  __int64 v5; // rbx\n  __int64 v6; // rbx\n  struct cocos2d::CCString *v7; // rax\n  void *v8; // rcx\n  void *v10; // [rsp+30h] [rbp-48h]\n  void *Block[2]; // [rsp+38h] [rbp-40h] BYREF\n  __int64 v12; // [rsp+48h] [rbp-30h]\n  unsigned __int64 v13; // [rsp+50h] [rbp-28h]\n\n  v3 = 0.0;\n  if ( a2 > 0.0 )\n  {\n    v4 = fminf(300.0, a2);\n    v3 = 5.0;\n    if ( v4 >= 5.0 )\n      v3 = v4;\n  }\n  *(float *)(a1 + 700) = v3;\n  v5 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v10 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v5 = qword_14090BFD0;\n  }\n  *(_OWORD *)Block = 0;\n  v12 = 3;\n  v13 = 15;\n  LODWORD(Block[0]) = 6256231;\n  sub_140044D80(Block, \"0193\", 4u);\n  v6 = *(_QWORD *)(v5 + 432);\n  v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)(int)(float)(v3 * 10.0));\n  cocos2d::CCDictionary::setObject(v6, v7, Block);\n  if ( v13 > 0xF )\n  {\n    v8 = Block[0];\n    if ( v13 + 1 >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v8);\n  }\n  return EditorUI::updateGridNodeSize_1(a1);\n}", "assembly": "; \n; EditorUI::setCustomGridNodeSize from 0x1401ae390 to 0x1401ae514 (388 bytes)\n; \n; 11 xrefs:\n; > EditorUI::setCustomGridEnabled @ 0x1401ae5aa\n; > EditorUI::cycleCustomGridPreset @ 0x1401ae649\n; > EditorUI::cycleCustomGridPreset @ 0x1401ae69d\n; > EditorUI::cycleCustomGridPreset @ 0x1401ae6dd\n; > EditorUI::cycleCustomGridPreset @ 0x1401ae6ea\n; > EditorUI::adjustCustomGridSize @ 0x1401ae766\n; > EditorUI::adjustCustomGridSize @ 0x1401ae782\n; > GridSettingsLayer::valueDidChange @ 0x1402c9533\n; > GridSettingsLayer::onReset @ 0x1402c955d\n; > <???> @ 0x140919de4\n; > <???> @ 0x140919df0\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:27:54 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1401ae390\npush    rdi                                                            ; +0x5, 0x1401ae395\nsub     rsp, 70h                                                       ; +0x6, 0x1401ae396\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0xa, 0x1401ae39a\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1401ae39f\nxor     rax, rsp                                                       ; +0x16, 0x1401ae3a6\nmov     [rsp+78h+var_20], rax                                          ; +0x19, 0x1401ae3a9\nmov     rdi, rcx                                                       ; +0x1e, 0x1401ae3ae\nxorps   xmm6, xmm6                                                     ; +0x21, 0x1401ae3b1\ncomiss  xmm1, xmm6                                                     ; +0x24, 0x1401ae3b4\njbe     short loc_1401AE3D5                                            ; +0x27, 0x1401ae3b7\nmovss   xmm0, cs:dword_1408359A4                                       ; +0x29, 0x1401ae3b9\nminss   xmm0, xmm1                                                     ; +0x31, 0x1401ae3c1\nmovss   xmm6, cs:flt_140835470                                         ; +0x35, 0x1401ae3c5\ncomiss  xmm6, xmm0                                                     ; +0x3d, 0x1401ae3cd\nja      short loc_1401AE3D5                                            ; +0x40, 0x1401ae3d0\nmovaps  xmm6, xmm0                                                     ; +0x42, 0x1401ae3d2\nmovss   dword ptr [rcx+2BCh], xmm6                                     ; +0x45, 0x1401ae3d5\nmov     rbx, cs:qword_14090BFD0                                        ; +0x4d, 0x1401ae3dd\ntest    rbx, rbx                                                       ; +0x54, 0x1401ae3e4\njnz     short loc_1401AE41B                                            ; +0x57, 0x1401ae3e7\nmov     ecx, 6E8h; Size                                                ; +0x59, 0x1401ae3e9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5e, 0x1401ae3ee\nmov     [rsp+78h+var_48], rax                                          ; +0x63, 0x1401ae3f3\nmov     rcx, rax                                                       ; +0x68, 0x1401ae3f8\ncall    GameManager__GameManager                                       ; +0x6b, 0x1401ae3fb\nnop                                                                    ; +0x70, 0x1401ae400\nmov     cs:qword_14090BFD0, rax                                        ; +0x71, 0x1401ae401\nmov     rcx, [rax]                                                     ; +0x78, 0x1401ae408\nmov     rdx, [rcx+48h]                                                 ; +0x7b, 0x1401ae40b\nmov     rcx, rax                                                       ; +0x7f, 0x1401ae40f\ncall    rdx                                                            ; +0x82, 0x1401ae412\nmov     rbx, cs:qword_14090BFD0                                        ; +0x84, 0x1401ae414\nxorps   xmm0, xmm0                                                     ; +0x8b, 0x1401ae41b\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x8e, 0x1401ae41e\nmov     [rsp+78h+var_30], 3                                            ; +0x93, 0x1401ae423\nmov     [rsp+78h+var_28], 0Fh                                          ; +0x9c, 0x1401ae42c\nmov     eax, cs:dword_140757618                                        ; +0xa5, 0x1401ae435\nmov     word ptr [rsp+78h+Block], ax                                   ; +0xab, 0x1401ae43b\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0xb0, 0x1401ae440\nmov     byte ptr [rsp+78h+Block+2], al                                 ; +0xb7, 0x1401ae447\nmov     byte ptr [rsp+78h+Block+3], 0                                  ; +0xbb, 0x1401ae44b\nmov     r8d, 4; Size                                                   ; +0xc0, 0x1401ae450\nlea     rdx, a0193; \"0193\"                                             ; +0xc6, 0x1401ae456\nlea     rcx, [rsp+78h+Block]; Src                                      ; +0xcd, 0x1401ae45d\ncall    sub_140044D80                                                  ; +0xd2, 0x1401ae462\nmov     rbx, [rbx+1B0h]                                                ; +0xd7, 0x1401ae467\nmulss   xmm6, cs:flt_1408354EC                                         ; +0xde, 0x1401ae46e\ncvttss2si edx, xmm6                                                    ; +0xe6, 0x1401ae476\nlea     rcx, word_1406ED6F8                                            ; +0xea, 0x1401ae47a\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xf1, 0x1401ae481\nmov     rdx, rax                                                       ; +0xf7, 0x1401ae487\nlea     r8, [rsp+78h+Block]                                            ; +0xfa, 0x1401ae48a\nmov     rcx, rbx                                                       ; +0xff, 0x1401ae48f\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x102, 0x1401ae492\nnop                                                                    ; +0x108, 0x1401ae498\nmov     rdx, [rsp+78h+var_28]                                          ; +0x109, 0x1401ae499\ncmp     rdx, 0Fh                                                       ; +0x10e, 0x1401ae49e\njbe     short loc_1401AE4EC                                            ; +0x112, 0x1401ae4a2\ninc     rdx                                                            ; +0x114, 0x1401ae4a4\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x117, 0x1401ae4a7\nmov     rax, rcx                                                       ; +0x11c, 0x1401ae4ac\ncmp     rdx, 1000h                                                     ; +0x11f, 0x1401ae4af\njb      short loc_1401AE4E7                                            ; +0x126, 0x1401ae4b6\nadd     rdx, 27h ; '''                                                 ; +0x128, 0x1401ae4b8\nmov     rcx, [rcx-8]                                                   ; +0x12c, 0x1401ae4bc\nsub     rax, rcx                                                       ; +0x130, 0x1401ae4c0\nsub     rax, 8                                                         ; +0x133, 0x1401ae4c3\ncmp     rax, 1Fh                                                       ; +0x137, 0x1401ae4c7\njbe     short loc_1401AE4E7                                            ; +0x13b, 0x1401ae4cb\nmov     [rsp+78h+Reserved], 0; Reserved                                ; +0x13d, 0x1401ae4cd\nxor     r9d, r9d; LineNo                                               ; +0x146, 0x1401ae4d6\nxor     r8d, r8d; FileName                                             ; +0x149, 0x1401ae4d9\nxor     edx, edx; FunctionName                                         ; +0x14c, 0x1401ae4dc\nxor     ecx, ecx; Expression                                           ; +0x14e, 0x1401ae4de\ncall    cs:_invoke_watson                                              ; +0x150, 0x1401ae4e0\ndb 0CCh                                                                ; +0x156, 0x1401ae4e6\ncall    j_j_free                                                       ; +0x157, 0x1401ae4e7\nmov     rcx, rdi                                                       ; +0x15c, 0x1401ae4ec\ncall    EditorUI__updateGridNodeSize_1                                 ; +0x15f, 0x1401ae4ef\nmov     rcx, [rsp+78h+var_20]                                          ; +0x164, 0x1401ae4f4\nxor     rcx, rsp; StackCookie                                          ; +0x169, 0x1401ae4f9\ncall    __security_check_cookie                                        ; +0x16c, 0x1401ae4fc\nmov     rbx, [rsp+78h+arg_10]                                          ; +0x171, 0x1401ae501\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0x179, 0x1401ae509\nadd     rsp, 70h                                                       ; +0x17e, 0x1401ae50e\npop     rdi                                                            ; +0x182, 0x1401ae512\nretn                                                                   ; +0x183, 0x1401ae513", "xrefs": ["EditorUI::setCustomGridEnabled @ 0x1401ae5aa", "EditorUI::cycleCustomGridPreset @ 0x1401ae649", "EditorUI::cycleCustomGridPreset @ 0x1401ae69d", "EditorUI::cycleCustomGridPreset @ 0x1401ae6dd", "EditorUI::cycleCustomGridPreset @ 0x1401ae6ea", "EditorUI::adjustCustomGridSize @ 0x1401ae766", "EditorUI::adjustCustomGridSize @ 0x1401ae782", "GridSettingsLayer::valueDidChange @ 0x1402c9533", "GridSettingsLayer::onReset @ 0x1402c955d", "<???> @ 0x140919de4", "<???> @ 0x140919df0"], "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"}