{"type": "func", "start": 5372154016, "end": 5372154883, "name": "GJBaseGameLayer::updateStaticCameraPos", "pseudocode": "// \n// GJBaseGameLayer::updateStaticCameraPos from 0x1403490a0 to 0x140349403 (867 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::animateInDualGroundNew @ 0x14031a920\n// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x140349066\n// > PlayLayer::playEndAnimationToPos @ 0x14050a4b1\n// > <???> @ 0x1408b7d64\n// > <???> @ 0x1408b7d8c\n// > <???> @ 0x14091ff34\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:30:44 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::updateStaticCameraPos(\n        __int64 a1,\n        _DWORD *a2,\n        char a3,\n        char a4,\n        int a5,\n        float a6,\n        int a7,\n        int a8)\n{\n  float v8; // xmm3_4\n  float *v9; // rdi\n  __int64 v14; // rax\n  __int64 v15; // rax\n  float v16; // xmm6_4\n  int v17; // xmm0_4\n  cocos2d *v18; // rcx\n  float v19; // xmm0_4\n  int v20; // xmm1_4\n  float *v21; // rbp\n  int v22; // xmm0_4\n  cocos2d *v23; // rcx\n  float v24; // xmm0_4\n  int v25; // xmm1_4\n  float *v26; // rsi\n  int v27; // xmm7_4\n  int v28; // edi\n  __int64 v29; // r14\n  int v30; // [rsp+50h] [rbp-88h] BYREF\n  int v31; // [rsp+54h] [rbp-84h]\n  float v32[2]; // [rsp+58h] [rbp-80h] BYREF\n  __int64 v33; // [rsp+60h] [rbp-78h]\n  int v34; // [rsp+E0h] [rbp+8h] BYREF\n  char v35; // [rsp+F0h] [rbp+18h]\n\n  v35 = a3;\n  v9 = (float *)(a1 + 424);\n  v33 = a1 + 424;\n  *(_BYTE *)(a1 + 672) = 0;\n  v14 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v14, v32);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v34, (float)(v32[0] * 0.5) / *v9, (float)(v32[1] * 0.5) / *v9);\n  cocos2d::CCPoint::operator+(a1 + 1292, &v30, v15);\n  cocos2d::CCPoint::operator-(&v30, &v34, v9 + 2);\n  cocos2d::CCPoint::operator=(&v30, &v34);\n  v16 = a6;\n  if ( a3 )\n  {\n    v17 = v30;\n    *(_DWORD *)(a1 + 568) = 1065353216;\n    *(_DWORD *)(a1 + 480) = v17;\n    *(_DWORD *)(a1 + 496) = 0;\n    v34 = 12;\n    sub_140355080(a1 + 1064, &v34);\n    v19 = cocos2d::clampf(v18, -10000.0, 10000.0, v8);\n    v20 = v30;\n    *(float *)(a1 + 512) = v19;\n    *(float *)(a1 + 520) = v16;\n    *(_DWORD *)(a1 + 472) = v20;\n    *(_DWORD *)(a1 + 488) = *a2;\n  }\n  v21 = (float *)(a1 + 484);\n  if ( a4 )\n  {\n    v22 = v31;\n    *(_DWORD *)(a1 + 572) = 1065353216;\n    *(_DWORD *)v21 = v22;\n    *(_DWORD *)(a1 + 500) = 0;\n    v34 = 13;\n    sub_140355080(a1 + 1064, &v34);\n    v24 = cocos2d::clampf(v23, -10000.0, 10000.0, v8);\n    v25 = v31;\n    v26 = (float *)(a1 + 492);\n    *(float *)(a1 + 516) = v24;\n    *(float *)(a1 + 524) = v16;\n    *(_DWORD *)(a1 + 476) = v25;\n    *(_DWORD *)(a1 + 492) = a2[1];\n  }\n  else\n  {\n    v26 = (float *)(a1 + 492);\n  }\n  if ( !(_BYTE)a5 )\n  {\n    if ( v16 <= 0.0 )\n    {\n      if ( v35 )\n      {\n        a5 = 10;\n        sub_140355080(a1 + 1064, &a5);\n        *(_DWORD *)(a1 + 480) = *(_DWORD *)(a1 + 488);\n      }\n      if ( a4 )\n      {\n        a5 = 11;\n        sub_140355080(a1 + 1064, &a5);\n        *v21 = *v26;\n      }\n    }\n    else\n    {\n      v27 = a8;\n      v28 = a7;\n      if ( v35 )\n      {\n        v29 = a1 + 424;\n        GJGameState::tweenValue(a1 + 424, *(float *)(a1 + 480), *(float *)(a1 + 488), 10, SLODWORD(v16), a7, a8, -1, -1);\n        v26 = (float *)(a1 + 492);\n      }\n      else\n      {\n        v29 = v33;\n      }\n      if ( a4 )\n        GJGameState::tweenValue(v29, *v21, *v26, 11, SLODWORD(v16), v28, v27, -1, -1);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateStaticCameraPos from 0x1403490a0 to 0x140349403 (867 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::animateInDualGroundNew @ 0x14031a920\n; > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x140349066\n; > PlayLayer::playEndAnimationToPos @ 0x14050a4b1\n; > <???> @ 0x1408b7d64\n; > <???> @ 0x1408b7d8c\n; > <???> @ 0x14091ff34\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:30:44 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x1403490a0\nmov     [rax+18h], r8b                                                 ; +0x3, 0x1403490a3\npush    rbx                                                            ; +0x7, 0x1403490a7\npush    rsi                                                            ; +0x8, 0x1403490a8\npush    rdi                                                            ; +0x9, 0x1403490a9\npush    r12                                                            ; +0xa, 0x1403490aa\npush    r13                                                            ; +0xc, 0x1403490ac\npush    r14                                                            ; +0xe, 0x1403490ae\npush    r15                                                            ; +0x10, 0x1403490b0\nsub     rsp, 0A0h                                                      ; +0x12, 0x1403490b2\nmovaps  xmmword ptr [rax-48h], xmm6                                    ; +0x19, 0x1403490b9\nlea     rdi, [rcx+1A8h]                                                ; +0x1d, 0x1403490bd\nmovaps  xmmword ptr [rax-58h], xmm7                                    ; +0x24, 0x1403490c4\nmovzx   r12d, r9b                                                      ; +0x28, 0x1403490c8\nmovaps  xmmword ptr [rax-68h], xmm8                                    ; +0x2c, 0x1403490cc\nmovzx   esi, r8b                                                       ; +0x31, 0x1403490d1\nmov     [rsp+0D8h+var_78], rdi                                         ; +0x35, 0x1403490d5\nmov     r13, rdx                                                       ; +0x3a, 0x1403490da\nmov     byte ptr [rdi+0F8h], 0                                         ; +0x3d, 0x1403490dd\nmov     rbx, rcx                                                       ; +0x44, 0x1403490e4\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x47, 0x1403490e7\nmov     rcx, rax                                                       ; +0x4d, 0x1403490ed\nlea     rdx, [rsp+0D8h+var_80]                                         ; +0x50, 0x1403490f0\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x55, 0x1403490f5\nmovss   xmm2, [rsp+0D8h+var_7C]                                        ; +0x5b, 0x1403490fb\nlea     rcx, [rsp+0D8h+arg_0]                                          ; +0x61, 0x140349101\nmovss   xmm1, [rsp+0D8h+var_80]                                        ; +0x69, 0x140349109\nmulss   xmm2, cs:dword_140834F20                                       ; +0x6f, 0x14034910f\nmulss   xmm1, cs:dword_140834F20                                       ; +0x77, 0x140349117\ndivss   xmm2, dword ptr [rdi]                                          ; +0x7f, 0x14034911f\ndivss   xmm1, dword ptr [rdi]                                          ; +0x83, 0x140349123\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x87, 0x140349127\nmov     r8, rax                                                        ; +0x8d, 0x14034912d\nlea     rcx, [rbx+50Ch]                                                ; +0x90, 0x140349130\nlea     rdx, [rsp+0D8h+var_88]                                         ; +0x97, 0x140349137\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x9c, 0x14034913c\nlea     r8, [rdi+8]                                                    ; +0xa2, 0x140349142\nlea     rdx, [rsp+0D8h+arg_0]                                          ; +0xa6, 0x140349146\nlea     rcx, [rsp+0D8h+var_88]                                         ; +0xae, 0x14034914e\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0xb3, 0x140349153\nlea     rdx, [rsp+0D8h+arg_0]                                          ; +0xb9, 0x140349159\nlea     rcx, [rsp+0D8h+var_88]                                         ; +0xc1, 0x140349161\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xc6, 0x140349166\nmovss   xmm6, [rsp+0D8h+arg_28]                                        ; +0xcc, 0x14034916c\nmovss   xmm7, cs:dword_140835BAC                                       ; +0xd5, 0x140349175\nmovss   xmm8, cs:dword_1408360C0                                       ; +0xdd, 0x14034917d\ntest    sil, sil                                                       ; +0xe6, 0x140349186\njz      short loc_140349209                                            ; +0xe9, 0x140349189\nmovss   xmm0, [rsp+0D8h+var_88]                                        ; +0xeb, 0x14034918b\nlea     rdx, [rsp+0D8h+arg_0]                                          ; +0xf1, 0x140349191\nmov     dword ptr [rbx+238h], 3F800000h                                ; +0xf9, 0x140349199\nlea     rcx, [rbx+428h]                                                ; +0x103, 0x1403491a3\nmovss   dword ptr [rbx+1E0h], xmm0                                     ; +0x10a, 0x1403491aa\nmov     dword ptr [rbx+1F0h], 0                                        ; +0x112, 0x1403491b2\nmov     [rsp+0D8h+arg_0], 0Ch                                          ; +0x11c, 0x1403491bc\ncall    sub_140355080                                                  ; +0x127, 0x1403491c7\nmovss   xmm0, dword ptr [rbx+1D0h]                                     ; +0x12c, 0x1403491cc\nmovaps  xmm2, xmm7                                                     ; +0x134, 0x1403491d4\nmovaps  xmm1, xmm8                                                     ; +0x137, 0x1403491d7\ncall    cs:?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x13b, 0x1403491db\nmovss   xmm1, [rsp+0D8h+var_88]                                        ; +0x141, 0x1403491e1\nmovss   dword ptr [rbx+200h], xmm0                                     ; +0x147, 0x1403491e7\nmovss   dword ptr [rbx+208h], xmm6                                     ; +0x14f, 0x1403491ef\nmovss   dword ptr [rbx+1D8h], xmm1                                     ; +0x157, 0x1403491f7\nmov     eax, [r13+0]                                                   ; +0x15f, 0x1403491ff\nmov     [rbx+1E8h], eax                                                ; +0x163, 0x140349203\nmov     [rsp+0D8h+arg_8], rbp                                          ; +0x169, 0x140349209\nlea     rbp, [rbx+1E4h]                                                ; +0x171, 0x140349211\ntest    r12b, r12b                                                     ; +0x178, 0x140349218\njz      loc_1403492A1                                                  ; +0x17b, 0x14034921b\nmovss   xmm0, [rsp+0D8h+var_84]                                        ; +0x181, 0x140349221\nlea     rdx, [rsp+0D8h+arg_0]                                          ; +0x187, 0x140349227\nmov     dword ptr [rbx+23Ch], 3F800000h                                ; +0x18f, 0x14034922f\nlea     rcx, [rbx+428h]                                                ; +0x199, 0x140349239\nmovss   dword ptr [rbp+0], xmm0                                        ; +0x1a0, 0x140349240\nmov     dword ptr [rbx+1F4h], 0                                        ; +0x1a5, 0x140349245\nmov     [rsp+0D8h+arg_0], 0Dh                                          ; +0x1af, 0x14034924f\ncall    sub_140355080                                                  ; +0x1ba, 0x14034925a\nmovss   xmm0, dword ptr [rbx+1D4h]                                     ; +0x1bf, 0x14034925f\nmovaps  xmm2, xmm7                                                     ; +0x1c7, 0x140349267\nmovaps  xmm1, xmm8                                                     ; +0x1ca, 0x14034926a\ncall    cs:?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x1ce, 0x14034926e\nmovss   xmm1, [rsp+0D8h+var_84]                                        ; +0x1d4, 0x140349274\nlea     rsi, [rbx+1ECh]                                                ; +0x1da, 0x14034927a\nmovss   dword ptr [rbx+204h], xmm0                                     ; +0x1e1, 0x140349281\nmovss   dword ptr [rbx+20Ch], xmm6                                     ; +0x1e9, 0x140349289\nmovss   dword ptr [rbx+1DCh], xmm1                                     ; +0x1f1, 0x140349291\nmov     eax, [r13+4]                                                   ; +0x1f9, 0x140349299\nmov     [rsi], eax                                                     ; +0x1fd, 0x14034929d\njmp     short loc_1403492A8                                            ; +0x1ff, 0x14034929f\nlea     rsi, [rbx+1ECh]                                                ; +0x201, 0x1403492a1\ncmp     byte ptr [rsp+0D8h+arg_20], 0                                  ; +0x208, 0x1403492a8\nlea     r13, [rbx+428h]                                                ; +0x210, 0x1403492b0\nmovaps  xmm8, [rsp+0D8h+var_68]                                        ; +0x217, 0x1403492b7\njnz     loc_1403493D8                                                  ; +0x21d, 0x1403492bd\nxorps   xmm0, xmm0                                                     ; +0x223, 0x1403492c3\ncomiss  xmm6, xmm0                                                     ; +0x226, 0x1403492c6\njbe     loc_14034937E                                                  ; +0x229, 0x1403492c9\ncmp     [rsp+0D8h+arg_10], 0                                           ; +0x22f, 0x1403492cf\nmovss   xmm7, [rsp+0D8h+arg_38]                                        ; +0x237, 0x1403492d7\nmov     edi, [rsp+0D8h+arg_30]                                         ; +0x240, 0x1403492e0\njz      short loc_140349337                                            ; +0x247, 0x1403492e7\nmovss   xmm2, dword ptr [rbx+1E8h]                                     ; +0x249, 0x1403492e9\nlea     r14, [rbx+1A8h]                                                ; +0x251, 0x1403492f1\nmovss   xmm1, dword ptr [rbx+1E0h]                                     ; +0x258, 0x1403492f8\nmov     r9d, 0Ah                                                       ; +0x260, 0x140349300\nmov     [rsp+0D8h+var_98], 0FFFFFFFFh                                  ; +0x266, 0x140349306\nmov     rcx, r14                                                       ; +0x26e, 0x14034930e\nmov     [rsp+0D8h+var_A0], 0FFFFFFFFh                                  ; +0x271, 0x140349311\nmovss   [rsp+0D8h+var_A8], xmm7                                        ; +0x279, 0x140349319\nmov     [rsp+0D8h+var_B0], edi                                         ; +0x27f, 0x14034931f\nmovss   [rsp+0D8h+var_B8], xmm6                                        ; +0x283, 0x140349323\ncall    GJGameState__tweenValue                                        ; +0x289, 0x140349329\nlea     rsi, [rbx+1ECh]                                                ; +0x28e, 0x14034932e\njmp     short loc_14034933C                                            ; +0x295, 0x140349335\nmov     r14, [rsp+0D8h+var_78]                                         ; +0x297, 0x140349337\ntest    r12b, r12b                                                     ; +0x29c, 0x14034933c\njz      loc_1403493D8                                                  ; +0x29f, 0x14034933f\nmovss   xmm2, dword ptr [rsi]                                          ; +0x2a5, 0x140349345\nmov     r9d, 0Bh                                                       ; +0x2a9, 0x140349349\nmovss   xmm1, dword ptr [rbp+0]                                        ; +0x2af, 0x14034934f\nmov     rcx, r14                                                       ; +0x2b4, 0x140349354\nmov     [rsp+0D8h+var_98], 0FFFFFFFFh                                  ; +0x2b7, 0x140349357\nmov     [rsp+0D8h+var_A0], 0FFFFFFFFh                                  ; +0x2bf, 0x14034935f\nmovss   [rsp+0D8h+var_A8], xmm7                                        ; +0x2c7, 0x140349367\nmov     [rsp+0D8h+var_B0], edi                                         ; +0x2cd, 0x14034936d\nmovss   [rsp+0D8h+var_B8], xmm6                                        ; +0x2d1, 0x140349371\ncall    GJGameState__tweenValue                                        ; +0x2d7, 0x140349377\njmp     short loc_1403493D8                                            ; +0x2dc, 0x14034937c\ncmp     [rsp+0D8h+arg_10], 0                                           ; +0x2de, 0x14034937e\njz      short loc_1403493B3                                            ; +0x2e6, 0x140349386\nlea     rdx, [rsp+0D8h+arg_20]                                         ; +0x2e8, 0x140349388\nmov     [rsp+0D8h+arg_20], 0Ah                                         ; +0x2f0, 0x140349390\nlea     rcx, [rbx+428h]                                                ; +0x2fb, 0x14034939b\ncall    sub_140355080                                                  ; +0x302, 0x1403493a2\nmov     eax, [rbx+1E8h]                                                ; +0x307, 0x1403493a7\nmov     [rbx+1E0h], eax                                                ; +0x30d, 0x1403493ad\ntest    r12b, r12b                                                     ; +0x313, 0x1403493b3\njz      short loc_1403493D8                                            ; +0x316, 0x1403493b6\nlea     rdx, [rsp+0D8h+arg_20]                                         ; +0x318, 0x1403493b8\nmov     [rsp+0D8h+arg_20], 0Bh                                         ; +0x320, 0x1403493c0\nmov     rcx, r13                                                       ; +0x32b, 0x1403493cb\ncall    sub_140355080                                                  ; +0x32e, 0x1403493ce\nmov     eax, [rsi]                                                     ; +0x333, 0x1403493d3\nmov     [rbp+0], eax                                                   ; +0x335, 0x1403493d5\nmov     rbp, [rsp+0D8h+arg_8]                                          ; +0x338, 0x1403493d8\nmovaps  xmm6, [rsp+0D8h+var_48]                                        ; +0x340, 0x1403493e0\nmovaps  xmm7, [rsp+0D8h+var_58]                                        ; +0x348, 0x1403493e8\nadd     rsp, 0A0h                                                      ; +0x350, 0x1403493f0\npop     r15                                                            ; +0x357, 0x1403493f7\npop     r14                                                            ; +0x359, 0x1403493f9\npop     r13                                                            ; +0x35b, 0x1403493fb\npop     r12                                                            ; +0x35d, 0x1403493fd\npop     rdi                                                            ; +0x35f, 0x1403493ff\npop     rsi                                                            ; +0x360, 0x140349400\npop     rbx                                                            ; +0x361, 0x140349401\nretn                                                                   ; +0x362, 0x140349402", "xrefs": ["GJBaseGameLayer::animateInDualGroundNew @ 0x14031a920", "GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x140349066", "PlayLayer::playEndAnimationToPos @ 0x14050a4b1", "<???> @ 0x1408b7d64", "<???> @ 0x1408b7d8c", "<???> @ 0x14091ff34"], "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"}