{"type": "func", "start": 5370437360, "end": 5370437615, "name": "GJTransformControl::loadValues", "pseudocode": "// \n// GJTransformControl::loadValues from 0x1401a5ef0 to 0x1401a5fef (255 bytes)\n// \n// 5 xrefs:\n// > GJTransformControl::applyFreeRotation @ 0x1401a816b\n// > EditorUI::updateTransformControl @ 0x1402037b9\n// > <???> @ 0x1408a0c14\n// > <???> @ 0x1408a0c24\n// > <???> @ 0x140919bb0\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:50 +0000\n// \n\n__int64 __fastcall GJTransformControl::loadValues(\n        __int64 a1,\n        struct cocos2d::CCObject *a2,\n        cocos2d::CCArray *a3,\n        __int64 a4)\n{\n  cocos2d::CCObject *v5; // rbx\n  struct cocos2d::CCObject *v6; // rdi\n  cocos2d::CCObject *v8; // rcx\n  unsigned int i; // esi\n  struct cocos2d::CCObject *v10; // rdi\n  __int64 v11; // rax\n  _BYTE v13[40]; // [rsp+20h] [rbp-28h] BYREF\n  int v14; // [rsp+50h] [rbp+8h] BYREF\n\n  v5 = a3;\n  v6 = a2;\n  if ( !a2 )\n  {\nLABEL_5:\n    if ( !v5 )\n      goto LABEL_7;\n    goto LABEL_6;\n  }\n  if ( !a3 || !cocos2d::CCArray::count(a3) )\n  {\n    v5 = cocos2d::CCArray::createWithObject(v6);\n    goto LABEL_5;\n  }\nLABEL_6:\n  cocos2d::CCObject::retain(v5);\nLABEL_7:\n  v8 = *(cocos2d::CCObject **)(a1 + 424);\n  if ( v8 )\n    cocos2d::CCObject::release(v8);\n  *(_QWORD *)(a1 + 424) = v5;\n  if ( v5 )\n  {\n    if ( cocos2d::CCArray::count(v5) )\n    {\n      for ( i = 0; i < cocos2d::CCArray::count(v5); ++i )\n      {\n        v10 = cocos2d::CCArray::objectAtIndex(v5, i);\n        GameObject::updateStartPos(v10);\n        v14 = *((_DWORD *)v10 + 231);\n        v11 = sub_1401A8A10(a4, v13, &v14);\n        GameObjectEditorState::loadValues((float *)(*(_QWORD *)v11 + 20LL), (float *)v10);\n      }\n    }\n  }\n  LOBYTE(a2) = 1;\n  return GJTransformControl::updateButtons(a1, a2, 0);\n}", "assembly": "; \n; GJTransformControl::loadValues from 0x1401a5ef0 to 0x1401a5fef (255 bytes)\n; \n; 5 xrefs:\n; > GJTransformControl::applyFreeRotation @ 0x1401a816b\n; > EditorUI::updateTransformControl @ 0x1402037b9\n; > <???> @ 0x1408a0c14\n; > <???> @ 0x1408a0c24\n; > <???> @ 0x140919bb0\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:50 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1401a5ef0\npush    rbp                                                            ; +0x5, 0x1401a5ef5\npush    rdi                                                            ; +0x6, 0x1401a5ef6\npush    r14                                                            ; +0x7, 0x1401a5ef7\nsub     rsp, 30h                                                       ; +0x9, 0x1401a5ef9\nmov     r14, r9                                                        ; +0xd, 0x1401a5efd\nmov     rbx, r8                                                        ; +0x10, 0x1401a5f00\nmov     rdi, rdx                                                       ; +0x13, 0x1401a5f03\nmov     rbp, rcx                                                       ; +0x16, 0x1401a5f06\ntest    rdx, rdx                                                       ; +0x19, 0x1401a5f09\njz      short loc_1401A5F2C                                            ; +0x1c, 0x1401a5f0c\ntest    rbx, rbx                                                       ; +0x1e, 0x1401a5f0e\njz      short loc_1401A5F20                                            ; +0x21, 0x1401a5f11\nmov     rcx, rbx                                                       ; +0x23, 0x1401a5f13\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x26, 0x1401a5f16\ntest    eax, eax                                                       ; +0x2c, 0x1401a5f1c\njnz     short loc_1401A5F31                                            ; +0x2e, 0x1401a5f1e\nmov     rcx, rdi                                                       ; +0x30, 0x1401a5f20\ncall    cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x33, 0x1401a5f23\nmov     rbx, rax                                                       ; +0x39, 0x1401a5f29\ntest    rbx, rbx                                                       ; +0x3c, 0x1401a5f2c\njz      short loc_1401A5F3A                                            ; +0x3f, 0x1401a5f2f\nmov     rcx, rbx                                                       ; +0x41, 0x1401a5f31\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x44, 0x1401a5f34\nmov     rcx, [rbp+1A8h]                                                ; +0x4a, 0x1401a5f3a\ntest    rcx, rcx                                                       ; +0x51, 0x1401a5f41\njz      short loc_1401A5F4C                                            ; +0x54, 0x1401a5f44\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x56, 0x1401a5f46\nmov     [rbp+1A8h], rbx                                                ; +0x5c, 0x1401a5f4c\ntest    rbx, rbx                                                       ; +0x63, 0x1401a5f53\njz      short loc_1401A5FD5                                            ; +0x66, 0x1401a5f56\nmov     rcx, rbx                                                       ; +0x68, 0x1401a5f58\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6b, 0x1401a5f5b\ntest    eax, eax                                                       ; +0x71, 0x1401a5f61\njz      short loc_1401A5FD5                                            ; +0x73, 0x1401a5f63\nmov     [rsp+48h+arg_8], rsi                                           ; +0x75, 0x1401a5f65\nmov     rcx, rbx                                                       ; +0x7a, 0x1401a5f6a\nxor     esi, esi                                                       ; +0x7d, 0x1401a5f6d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7f, 0x1401a5f6f\ntest    eax, eax                                                       ; +0x85, 0x1401a5f75\njz      short loc_1401A5FD0                                            ; +0x87, 0x1401a5f77\nnop     dword ptr [rax+00000000h]                                      ; +0x89, 0x1401a5f79\nmov     edx, esi                                                       ; +0x90, 0x1401a5f80\nmov     rcx, rbx                                                       ; +0x92, 0x1401a5f82\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x95, 0x1401a5f85\nmov     rcx, rax                                                       ; +0x9b, 0x1401a5f8b\nmov     rdi, rax                                                       ; +0x9e, 0x1401a5f8e\ncall    GameObject__updateStartPos                                     ; +0xa1, 0x1401a5f91\nmov     ecx, [rdi+39Ch]                                                ; +0xa6, 0x1401a5f96\nlea     r8, [rsp+48h+arg_0]                                            ; +0xac, 0x1401a5f9c\nmov     [rsp+48h+arg_0], ecx                                           ; +0xb1, 0x1401a5fa1\nlea     rdx, [rsp+48h+var_28]                                          ; +0xb5, 0x1401a5fa5\nmov     rcx, r14                                                       ; +0xba, 0x1401a5faa\ncall    sub_1401A8A10                                                  ; +0xbd, 0x1401a5fad\nmov     rdx, rdi                                                       ; +0xc2, 0x1401a5fb2\nmov     rcx, [rax]                                                     ; +0xc5, 0x1401a5fb5\nadd     rcx, 14h                                                       ; +0xc8, 0x1401a5fb8\ncall    GameObjectEditorState__loadValues                              ; +0xcc, 0x1401a5fbc\nmov     rcx, rbx                                                       ; +0xd1, 0x1401a5fc1\ninc     esi                                                            ; +0xd4, 0x1401a5fc4\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd6, 0x1401a5fc6\ncmp     esi, eax                                                       ; +0xdc, 0x1401a5fcc\njb      short loc_1401A5F80                                            ; +0xde, 0x1401a5fce\nmov     rsi, [rsp+48h+arg_8]                                           ; +0xe0, 0x1401a5fd0\nxor     r8d, r8d                                                       ; +0xe5, 0x1401a5fd5\nmov     dl, 1                                                          ; +0xe8, 0x1401a5fd8\nmov     rcx, rbp                                                       ; +0xea, 0x1401a5fda\nmov     rbx, [rsp+48h+arg_10]                                          ; +0xed, 0x1401a5fdd\nadd     rsp, 30h                                                       ; +0xf2, 0x1401a5fe2\npop     r14                                                            ; +0xf6, 0x1401a5fe6\npop     rdi                                                            ; +0xf8, 0x1401a5fe8\npop     rbp                                                            ; +0xf9, 0x1401a5fe9\njmp     GJTransformControl__updateButtons                              ; +0xfa, 0x1401a5fea", "xrefs": ["GJTransformControl::applyFreeRotation @ 0x1401a816b", "EditorUI::updateTransformControl @ 0x1402037b9", "<???> @ 0x1408a0c14", "<???> @ 0x1408a0c24", "<???> @ 0x140919bb0"], "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"}