{"type": "func", "start": 5371063872, "end": 5371064874, "name": "GJBaseGameLayer::updateStaticCameraPosToGroup", "pseudocode": "// \n// GJBaseGameLayer::updateStaticCameraPosToGroup from 0x14023ee40 to 0x14023f22a (1002 bytes)\n// \n// 4 xrefs:\n// > CameraTriggerGameObject::triggerObject @ 0x1404bd9f3\n// > <???> @ 0x140681a60\n// > <???> @ 0x140681aac\n// > <???> @ 0x1406ce334\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 GJBaseGameLayer::updateStaticCameraPosToGroup(\n        GJBaseGameLayer *a1,\n        int a2,\n        bool a3,\n        bool a4,\n        bool a5,\n        float a6,\n        float a7,\n        int a8,\n        float a9,\n        bool a10,\n        float a11)\n{\n  GameObject *MainObject; // rax\n  float v16; // xmm8_4\n  bool v17; // di\n  cocos2d::CCPoint v18; // rax\n  cocos2d::CCPoint v19; // [rsp+50h] [rbp-78h] BYREF\n  _BYTE v20[8]; // [rsp+58h] [rbp-70h] BYREF\n\n  MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2);\n  if ( MainObject )\n  {\n    ((void (__fastcall *)(GameObject *, _BYTE *))MainObject->getRealPosition)(MainObject, v20);\n    v16 = fmaxf(1.0, a6);\n    if ( a3 )\n    {\n      LODWORD(v19.x) = 21;\n      a1->m_gameState.m_unkPoint15.x = (float)a5;\n      a1->m_gameState.m_unkPoint22.x = (float)a10;\n      a1->m_gameState.m_unkPoint23.x = a11;\n      a1->m_gameState.m_unkPoint16.x = (float)a2;\n      a1->m_gameState.m_unkPoint14.x = v16;\n      sub_14024AC30(&a1->m_gameState.m_tweenActions, &v19);\n      if ( a1->m_gameState.m_unkPoint15.x != 0.0 || a1->m_gameState.m_unkPoint22.x != 0.0 )\n      {\n        if ( a7 <= 0.0 )\n        {\n          a1->m_gameState.m_unkPoint12.x = 1.0;\n          a1->m_gameState.m_unkPoint13.x = 1.0;\n        }\n        else\n        {\n          a1->m_gameState.m_unkPoint12.x = 0.0;\n          a1->m_gameState.m_unkPoint13.x = 0.0;\n          GJGameState::tweenValue(&a1->m_gameState, 0.0, 1.0, 21, a7, a8, a9, -1, -1);\n        }\n      }\n    }\n    if ( a4 )\n    {\n      a1->m_gameState.m_unkPoint15.y = (float)a5;\n      a1->m_gameState.m_unkPoint22.y = (float)a10;\n      a1->m_gameState.m_unkPoint23.y = a11;\n      LODWORD(v19.x) = 22;\n      a1->m_gameState.m_unkPoint16.y = (float)a2;\n      a1->m_gameState.m_unkPoint14.y = v16;\n      sub_14024AC30(&a1->m_gameState.m_tweenActions, &v19);\n      if ( a1->m_gameState.m_unkPoint15.y != 0.0 || a1->m_gameState.m_unkPoint22.y != 0.0 )\n      {\n        if ( a7 <= 0.0 )\n        {\n          a1->m_gameState.m_unkPoint12.y = 1.0;\n          a1->m_gameState.m_unkPoint13.y = 1.0;\n        }\n        else\n        {\n          a1->m_gameState.m_unkPoint12.y = 0.0;\n          a1->m_gameState.m_unkPoint13.y = 0.0;\n          GJGameState::tweenValue(&a1->m_gameState, 0.0, 1.0, 22, a7, a8, a9, -1, -1);\n        }\n      }\n    }\n    v17 = a5 || a10;\n    cocos2d::CCPoint::CCPoint(&v19);\n    GJBaseGameLayer::updateStaticCameraPos(a1, v18, a3, a4, v17, a7, a8, a9);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateStaticCameraPosToGroup from 0x14023ee40 to 0x14023f22a (1002 bytes)\n; \n; 4 xrefs:\n; > CameraTriggerGameObject::triggerObject @ 0x1404bd9f3\n; > <???> @ 0x140681a60\n; > <???> @ 0x140681aac\n; > <???> @ 0x1406ce334\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_10], rbx                                              ; +0x0, 0x14023ee40\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x14023ee45\npush    r12                                                            ; +0xa, 0x14023ee4a\npush    r13                                                            ; +0xc, 0x14023ee4c\npush    r15                                                            ; +0xe, 0x14023ee4e\nsub     rsp, 0B0h                                                      ; +0x10, 0x14023ee50\nmovzx   r15d, [rsp+0C8h+arg_48]                                        ; +0x17, 0x14023ee57\nmovzx   r12d, r9b                                                      ; +0x20, 0x14023ee60\nmovzx   r13d, r8b                                                      ; +0x24, 0x14023ee64\nmov     esi, edx                                                       ; +0x28, 0x14023ee68\nmov     rbx, rcx                                                       ; +0x2a, 0x14023ee6a\ncall    GJBaseGameLayer__tryGetMainObject                              ; +0x2d, 0x14023ee6d\ntest    rax, rax                                                       ; +0x32, 0x14023ee72\njz      loc_14023F210                                                  ; +0x35, 0x14023ee75\nmov     r8, [rax]                                                      ; +0x3b, 0x14023ee7b\nlea     rdx, [rsp+0C8h+var_70]                                         ; +0x3e, 0x14023ee7e\nmov     [rsp+0C8h+arg_0], rbp                                          ; +0x43, 0x14023ee83\nmov     rcx, rax                                                       ; +0x4b, 0x14023ee8b\nmov     [rsp+0C8h+arg_8], rdi                                          ; +0x4e, 0x14023ee8e\nmovaps  [rsp+0C8h+var_28], xmm6                                        ; +0x56, 0x14023ee96\nmovaps  [rsp+0C8h+var_38], xmm7                                        ; +0x5e, 0x14023ee9e\nmovaps  [rsp+0C8h+var_48], xmm8                                        ; +0x66, 0x14023eea6\nmovaps  [rsp+0C8h+var_58], xmm9                                        ; +0x6f, 0x14023eeaf\nmovaps  [rsp+0C8h+var_68], xmm11                                       ; +0x75, 0x14023eeb5\ncall    qword ptr [r8+4A8h]                                            ; +0x7b, 0x14023eebb\nmovss   xmm8, cs:flt_140622C24                                         ; +0x82, 0x14023eec2\nxor     edx, edx                                                       ; +0x8b, 0x14023eecb\nmovss   xmm11, [rsp+0C8h+arg_50]                                       ; +0x8d, 0x14023eecd\nxorps   xmm6, xmm6                                                     ; +0x97, 0x14023eed7\nmovss   xmm9, [rsp+0C8h+arg_40]                                        ; +0x9a, 0x14023eeda\nmov     ebp, [rsp+0C8h+arg_38]                                         ; +0xa4, 0x14023eee4\nmovss   xmm7, [rsp+0C8h+arg_30]                                        ; +0xab, 0x14023eeeb\nmaxss   xmm8, [rsp+0C8h+arg_28]                                        ; +0xb4, 0x14023eef4\ntest    r13b, r13b                                                     ; +0xbe, 0x14023eefe\njz      loc_14023EFED                                                  ; +0xc1, 0x14023ef01\nmovzx   eax, [rsp+0C8h+arg_20]                                         ; +0xc7, 0x14023ef07\nlea     rcx, [rbx+428h]                                                ; +0xcf, 0x14023ef0f\nmov     edi, edx                                                       ; +0xd6, 0x14023ef16\nlea     rdx, [rsp+0C8h+var_78]                                         ; +0xd8, 0x14023ef18\nadd     edi, 15h                                                       ; +0xdd, 0x14023ef1d\nmov     dword ptr [rsp+0C8h+var_78], edi                               ; +0xe0, 0x14023ef20\nmovd    xmm0, eax                                                      ; +0xe4, 0x14023ef24\ncvtdq2ps xmm0, xmm0                                                    ; +0xe8, 0x14023ef28\nmovss   dword ptr [rbx+228h], xmm0                                     ; +0xeb, 0x14023ef2b\nmovd    xmm0, r15d                                                     ; +0xf3, 0x14023ef33\ncvtdq2ps xmm0, xmm0                                                    ; +0xf8, 0x14023ef38\nmovss   dword ptr [rbx+260h], xmm0                                     ; +0xfb, 0x14023ef3b\nmovss   dword ptr [rbx+268h], xmm11                                    ; +0x103, 0x14023ef43\nmovd    xmm0, esi                                                      ; +0x10c, 0x14023ef4c\ncvtdq2ps xmm0, xmm0                                                    ; +0x110, 0x14023ef50\nmovss   dword ptr [rbx+230h], xmm0                                     ; +0x113, 0x14023ef53\nmovss   dword ptr [rbx+220h], xmm8                                     ; +0x11b, 0x14023ef5b\ncall    sub_14024AC30                                                  ; +0x124, 0x14023ef64\nmovss   xmm0, dword ptr [rbx+228h]                                     ; +0x129, 0x14023ef69\nucomiss xmm0, xmm6                                                     ; +0x131, 0x14023ef71\njp      short loc_14023EF87                                            ; +0x134, 0x14023ef74\njnz     short loc_14023EF87                                            ; +0x136, 0x14023ef76\nmovss   xmm0, dword ptr [rbx+260h]                                     ; +0x138, 0x14023ef78\nucomiss xmm0, xmm6                                                     ; +0x140, 0x14023ef80\njp      short loc_14023EF87                                            ; +0x143, 0x14023ef83\njz      short loc_14023EFEB                                            ; +0x145, 0x14023ef85\ncomiss  xmm7, xmm6                                                     ; +0x147, 0x14023ef87\njbe     short loc_14023EFD7                                            ; +0x14a, 0x14023ef8a\nmovss   xmm2, cs:flt_140622C24                                         ; +0x14c, 0x14023ef8c\nlea     rcx, [rbx+1A8h]                                                ; +0x154, 0x14023ef94\nmov     [rsp+0C8h+var_88], 0FFFFFFFFh                                  ; +0x15b, 0x14023ef9b\nxor     eax, eax                                                       ; +0x163, 0x14023efa3\nmov     [rsp+0C8h+var_90], 0FFFFFFFFh                                  ; +0x165, 0x14023efa5\nmov     r9d, edi                                                       ; +0x16d, 0x14023efad\nmovss   [rsp+0C8h+var_98], xmm9                                        ; +0x170, 0x14023efb0\nxorps   xmm1, xmm1                                                     ; +0x177, 0x14023efb7\nmov     [rbx+210h], eax                                                ; +0x17a, 0x14023efba\nmov     [rsp+0C8h+var_A0], ebp                                         ; +0x180, 0x14023efc0\nmovss   [rsp+0C8h+var_A8], xmm7                                        ; +0x184, 0x14023efc4\nmov     [rbx+218h], eax                                                ; +0x18a, 0x14023efca\ncall    GJGameState__tweenValue                                        ; +0x190, 0x14023efd0\njmp     short loc_14023EFEB                                            ; +0x195, 0x14023efd5\nmov     dword ptr [rbx+210h], 3F800000h                                ; +0x197, 0x14023efd7\nmov     dword ptr [rbx+218h], 3F800000h                                ; +0x1a1, 0x14023efe1\nxor     edx, edx                                                       ; +0x1ab, 0x14023efeb\nmov     ecx, 1                                                         ; +0x1ad, 0x14023efed\nmov     edi, ecx                                                       ; +0x1b2, 0x14023eff2\ntest    r12b, r12b                                                     ; +0x1b4, 0x14023eff4\njz      loc_14023F18C                                                  ; +0x1b7, 0x14023eff7\nmovzx   eax, [rsp+0C8h+arg_20]                                         ; +0x1bd, 0x14023effd\nmovd    xmm0, eax                                                      ; +0x1c5, 0x14023f005\ncvtdq2ps xmm0, xmm0                                                    ; +0x1c9, 0x14023f009\ntest    ecx, ecx                                                       ; +0x1cc, 0x14023f00c\njnz     short loc_14023F073                                            ; +0x1ce, 0x14023f00e\nmovss   dword ptr [rbx+228h], xmm0                                     ; +0x1d0, 0x14023f010\ntest    ecx, ecx                                                       ; +0x1d8, 0x14023f018\nmovd    xmm0, r15d                                                     ; +0x1da, 0x14023f01a\nlea     rcx, [rbx+428h]                                                ; +0x1df, 0x14023f01f\ncvtdq2ps xmm0, xmm0                                                    ; +0x1e6, 0x14023f026\nmovss   dword ptr [rbx+260h], xmm0                                     ; +0x1e9, 0x14023f029\nmovd    xmm0, esi                                                      ; +0x1f1, 0x14023f031\nmov     esi, edx                                                       ; +0x1f5, 0x14023f035\nmovss   dword ptr [rbx+268h], xmm11                                    ; +0x1f7, 0x14023f037\nlea     rdx, [rsp+0C8h+var_78]                                         ; +0x200, 0x14023f040\ncvtdq2ps xmm0, xmm0                                                    ; +0x205, 0x14023f045\nsetnz   sil                                                            ; +0x208, 0x14023f048\nadd     esi, 15h                                                       ; +0x20c, 0x14023f04c\nmov     dword ptr [rsp+0C8h+var_78], esi                               ; +0x20f, 0x14023f04f\nmovss   dword ptr [rbx+230h], xmm0                                     ; +0x213, 0x14023f053\nmovss   dword ptr [rbx+220h], xmm8                                     ; +0x21b, 0x14023f05b\ncall    sub_14024AC30                                                  ; +0x224, 0x14023f064\nmovss   xmm0, dword ptr [rbx+228h]                                     ; +0x229, 0x14023f069\njmp     short loc_14023F0D4                                            ; +0x231, 0x14023f071\nmovss   dword ptr [rbx+22Ch], xmm0                                     ; +0x233, 0x14023f073\ntest    ecx, ecx                                                       ; +0x23b, 0x14023f07b\nmovd    xmm0, r15d                                                     ; +0x23d, 0x14023f07d\nlea     rcx, [rbx+428h]                                                ; +0x242, 0x14023f082\ncvtdq2ps xmm0, xmm0                                                    ; +0x249, 0x14023f089\nmovss   dword ptr [rbx+264h], xmm0                                     ; +0x24c, 0x14023f08c\nmovd    xmm0, esi                                                      ; +0x254, 0x14023f094\nmov     esi, edx                                                       ; +0x258, 0x14023f098\nmovss   dword ptr [rbx+26Ch], xmm11                                    ; +0x25a, 0x14023f09a\nlea     rdx, [rsp+0C8h+var_78]                                         ; +0x263, 0x14023f0a3\ncvtdq2ps xmm0, xmm0                                                    ; +0x268, 0x14023f0a8\nsetnz   sil                                                            ; +0x26b, 0x14023f0ab\nadd     esi, 15h                                                       ; +0x26f, 0x14023f0af\nmov     dword ptr [rsp+0C8h+var_78], esi                               ; +0x272, 0x14023f0b2\nmovss   dword ptr [rbx+234h], xmm0                                     ; +0x276, 0x14023f0b6\nmovss   dword ptr [rbx+224h], xmm8                                     ; +0x27e, 0x14023f0be\ncall    sub_14024AC30                                                  ; +0x287, 0x14023f0c7\nmovss   xmm0, dword ptr [rbx+22Ch]                                     ; +0x28c, 0x14023f0cc\nucomiss xmm0, xmm6                                                     ; +0x294, 0x14023f0d4\njp      short loc_14023F0FC                                            ; +0x297, 0x14023f0d7\njnz     short loc_14023F0FC                                            ; +0x299, 0x14023f0d9\ntest    edi, edi                                                       ; +0x29b, 0x14023f0db\njnz     short loc_14023F0E9                                            ; +0x29d, 0x14023f0dd\nmovss   xmm0, dword ptr [rbx+260h]                                     ; +0x29f, 0x14023f0df\njmp     short loc_14023F0F1                                            ; +0x2a7, 0x14023f0e7\nmovss   xmm0, dword ptr [rbx+264h]                                     ; +0x2a9, 0x14023f0e9\nucomiss xmm0, xmm6                                                     ; +0x2b1, 0x14023f0f1\njp      short loc_14023F0FC                                            ; +0x2b4, 0x14023f0f4\njz      loc_14023F18C                                                  ; +0x2b6, 0x14023f0f6\ncomiss  xmm7, xmm6                                                     ; +0x2bc, 0x14023f0fc\njbe     short loc_14023F15E                                            ; +0x2bf, 0x14023f0ff\nxor     eax, eax                                                       ; +0x2c1, 0x14023f101\ntest    edi, edi                                                       ; +0x2c3, 0x14023f103\njnz     short loc_14023F115                                            ; +0x2c5, 0x14023f105\nmov     [rbx+210h], eax                                                ; +0x2c7, 0x14023f107\nmov     [rbx+218h], eax                                                ; +0x2cd, 0x14023f10d\njmp     short loc_14023F121                                            ; +0x2d3, 0x14023f113\nmov     [rbx+214h], eax                                                ; +0x2d5, 0x14023f115\nmov     [rbx+21Ch], eax                                                ; +0x2db, 0x14023f11b\nmovss   xmm2, cs:flt_140622C24                                         ; +0x2e1, 0x14023f121\nlea     rcx, [rbx+1A8h]                                                ; +0x2e9, 0x14023f129\nmov     [rsp+0C8h+var_88], 0FFFFFFFFh                                  ; +0x2f0, 0x14023f130\nmov     r9d, esi                                                       ; +0x2f8, 0x14023f138\nmov     [rsp+0C8h+var_90], 0FFFFFFFFh                                  ; +0x2fb, 0x14023f13b\nxorps   xmm1, xmm1                                                     ; +0x303, 0x14023f143\nmovss   [rsp+0C8h+var_98], xmm9                                        ; +0x306, 0x14023f146\nmov     [rsp+0C8h+var_A0], ebp                                         ; +0x30d, 0x14023f14d\nmovss   [rsp+0C8h+var_A8], xmm7                                        ; +0x311, 0x14023f151\ncall    GJGameState__tweenValue                                        ; +0x317, 0x14023f157\njmp     short loc_14023F18C                                            ; +0x31c, 0x14023f15c\ntest    edi, edi                                                       ; +0x31e, 0x14023f15e\njnz     short loc_14023F178                                            ; +0x320, 0x14023f160\nmov     dword ptr [rbx+210h], 3F800000h                                ; +0x322, 0x14023f162\nmov     dword ptr [rbx+218h], 3F800000h                                ; +0x32c, 0x14023f16c\njmp     short loc_14023F18C                                            ; +0x336, 0x14023f176\nmov     dword ptr [rbx+214h], 3F800000h                                ; +0x338, 0x14023f178\nmov     dword ptr [rbx+21Ch], 3F800000h                                ; +0x342, 0x14023f182\ncmp     [rsp+0C8h+arg_20], 0                                           ; +0x34c, 0x14023f18c\nmovaps  xmm11, [rsp+0C8h+var_68]                                       ; +0x354, 0x14023f194\nmovaps  xmm8, [rsp+0C8h+var_48]                                        ; +0x35a, 0x14023f19a\nmovaps  xmm6, [rsp+0C8h+var_28]                                        ; +0x363, 0x14023f1a3\njnz     short loc_14023F1B6                                            ; +0x36b, 0x14023f1ab\ntest    r15b, r15b                                                     ; +0x36d, 0x14023f1ad\njnz     short loc_14023F1B6                                            ; +0x370, 0x14023f1b0\nxor     edi, edi                                                       ; +0x372, 0x14023f1b2\njmp     short loc_14023F1B9                                            ; +0x374, 0x14023f1b4\nmov     dil, 1                                                         ; +0x376, 0x14023f1b6\nlea     rdx, [rsp+0C8h+var_70]                                         ; +0x379, 0x14023f1b9\nlea     rcx, [rsp+0C8h+var_78]                                         ; +0x37e, 0x14023f1be\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x383, 0x14023f1c3\nmovss   [rsp+0C8h+var_90], xmm9                                        ; +0x389, 0x14023f1c9\nmovzx   r9d, r12b                                                      ; +0x390, 0x14023f1d0\nmov     [rsp+0C8h+var_98], ebp                                         ; +0x394, 0x14023f1d4\nmov     rdx, rax                                                       ; +0x398, 0x14023f1d8\nmovss   [rsp+0C8h+var_A0], xmm7                                        ; +0x39b, 0x14023f1db\nmovzx   r8d, r13b                                                      ; +0x3a1, 0x14023f1e1\nmov     rcx, rbx                                                       ; +0x3a5, 0x14023f1e5\nmov     byte ptr [rsp+0C8h+var_A8], dil                                ; +0x3a8, 0x14023f1e8\ncall    GJBaseGameLayer__updateStaticCameraPos                         ; +0x3ad, 0x14023f1ed\nmovaps  xmm9, [rsp+0C8h+var_58]                                        ; +0x3b2, 0x14023f1f2\nmovaps  xmm7, [rsp+0C8h+var_38]                                        ; +0x3b8, 0x14023f1f8\nmov     rdi, [rsp+0C8h+arg_8]                                          ; +0x3c0, 0x14023f200\nmov     rbp, [rsp+0C8h+arg_0]                                          ; +0x3c8, 0x14023f208\nlea     r11, [rsp+0C8h+var_18]                                         ; +0x3d0, 0x14023f210\nmov     rbx, [r11+30h]                                                 ; +0x3d8, 0x14023f218\nmov     rsi, [r11+38h]                                                 ; +0x3dc, 0x14023f21c\nmov     rsp, r11                                                       ; +0x3e0, 0x14023f220\npop     r15                                                            ; +0x3e3, 0x14023f223\npop     r13                                                            ; +0x3e5, 0x14023f225\npop     r12                                                            ; +0x3e7, 0x14023f227\nretn                                                                   ; +0x3e9, 0x14023f229", "xrefs": ["CameraTriggerGameObject::triggerObject @ 0x1404bd9f3", "<???> @ 0x140681a60", "<???> @ 0x140681aac", "<???> @ 0x1406ce334"], "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"}