{"type": "func", "start": 5372153184, "end": 5372154005, "name": "GJBaseGameLayer::updateStaticCameraPosToGroup", "pseudocode": "// \n// GJBaseGameLayer::updateStaticCameraPosToGroup from 0x140348d60 to 0x140349095 (821 bytes)\n// \n// 4 xrefs:\n// > CameraTriggerGameObject::triggerObject @ 0x14065e866\n// > <???> @ 0x1408b7ce0\n// > <???> @ 0x1408b7d30\n// > <???> @ 0x14091fef8\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:43 +0000\n// \n\nstruct cocos2d::CCObject *__fastcall GJBaseGameLayer::updateStaticCameraPosToGroup(\n        __int64 a1,\n        int a2,\n        unsigned __int8 a3,\n        unsigned __int8 a4,\n        unsigned __int8 a5,\n        float a6,\n        int a7,\n        int a8,\n        int a9,\n        unsigned __int8 a10,\n        int a11)\n{\n  struct cocos2d::CCObject *result; // rax\n  float v16; // xmm8_4\n  bool v17; // di\n  int v18; // eax\n  int v19; // [rsp+20h] [rbp-A8h]\n  int v20; // [rsp+50h] [rbp-78h] BYREF\n  _BYTE v21[8]; // [rsp+58h] [rbp-70h] BYREF\n\n  result = GJBaseGameLayer::tryGetMainObject(a1, a2);\n  if ( result )\n  {\n    (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)result + 1208LL))(result, v21);\n    v16 = fmaxf(1.0, a6);\n    if ( a3 )\n    {\n      v20 = 21;\n      *(float *)(a1 + 552) = (float)a5;\n      *(float *)(a1 + 608) = (float)a10;\n      *(_DWORD *)(a1 + 616) = a11;\n      *(float *)(a1 + 560) = (float)a2;\n      *(float *)(a1 + 544) = v16;\n      sub_140355080(a1 + 1064, &v20);\n      if ( *(float *)(a1 + 552) != 0.0 || *(float *)(a1 + 608) != 0.0 )\n      {\n        if ( *(float *)&a7 <= 0.0 )\n        {\n          *(_DWORD *)(a1 + 528) = 1065353216;\n          *(_DWORD *)(a1 + 536) = 1065353216;\n        }\n        else\n        {\n          *(_DWORD *)(a1 + 528) = 0;\n          *(_DWORD *)(a1 + 536) = 0;\n          GJGameState::tweenValue(a1 + 424, 0.0, 1.0, 21, a7, a8, a9, -1, -1);\n        }\n      }\n    }\n    if ( a4 )\n    {\n      v20 = 22;\n      *(float *)(a1 + 556) = (float)a5;\n      *(float *)(a1 + 612) = (float)a10;\n      *(_DWORD *)(a1 + 620) = a11;\n      *(float *)(a1 + 564) = (float)a2;\n      *(float *)(a1 + 548) = v16;\n      sub_140355080(a1 + 1064, &v20);\n      if ( *(float *)(a1 + 556) != 0.0 || *(float *)(a1 + 612) != 0.0 )\n      {\n        if ( *(float *)&a7 <= 0.0 )\n        {\n          *(_DWORD *)(a1 + 532) = 1065353216;\n          *(_DWORD *)(a1 + 540) = 1065353216;\n        }\n        else\n        {\n          *(_DWORD *)(a1 + 532) = 0;\n          *(_DWORD *)(a1 + 540) = 0;\n          GJGameState::tweenValue(a1 + 424, 0.0, 1.0, 22, a7, a8, a9, -1, -1);\n        }\n      }\n    }\n    v17 = a5 || a10;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v20, (const struct cocos2d::CCPoint *)v21);\n    LOBYTE(v19) = v17;\n    return (struct cocos2d::CCObject *)GJBaseGameLayer::updateStaticCameraPos(a1, v18, a3, a4, v19, a7, a8, a9);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::updateStaticCameraPosToGroup from 0x140348d60 to 0x140349095 (821 bytes)\n; \n; 4 xrefs:\n; > CameraTriggerGameObject::triggerObject @ 0x14065e866\n; > <???> @ 0x1408b7ce0\n; > <???> @ 0x1408b7d30\n; > <???> @ 0x14091fef8\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:43 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140348d60\npush    rbp                                                            ; +0x5, 0x140348d65\npush    rdi                                                            ; +0x6, 0x140348d66\npush    r12                                                            ; +0x7, 0x140348d67\nsub     rsp, 0B0h                                                      ; +0x9, 0x140348d69\nmovzx   ebp, r9b                                                       ; +0x10, 0x140348d70\nmovzx   r12d, r8b                                                      ; +0x14, 0x140348d74\nmov     edi, edx                                                       ; +0x18, 0x140348d78\nmov     rbx, rcx                                                       ; +0x1a, 0x140348d7a\ncall    GJBaseGameLayer__tryGetMainObject                              ; +0x1d, 0x140348d7d\ntest    rax, rax                                                       ; +0x22, 0x140348d82\njz      loc_140349081                                                  ; +0x25, 0x140348d85\nmov     r10, [rax]                                                     ; +0x2b, 0x140348d8b\nlea     rdx, [rsp+0C8h+var_70]                                         ; +0x2e, 0x140348d8e\nmov     [rsp+0C8h+arg_0], rsi                                          ; +0x33, 0x140348d93\nmov     rcx, rax                                                       ; +0x3b, 0x140348d9b\nmovaps  [rsp+0C8h+var_28], xmm6                                        ; +0x3e, 0x140348d9e\nmovaps  [rsp+0C8h+var_38], xmm7                                        ; +0x46, 0x140348da6\nmovaps  [rsp+0C8h+var_48], xmm8                                        ; +0x4e, 0x140348dae\nmovaps  [rsp+0C8h+var_58], xmm9                                        ; +0x57, 0x140348db7\nmovaps  [rsp+0C8h+var_68], xmm11                                       ; +0x5d, 0x140348dbd\nmov     [rsp+0C8h+arg_8], r13                                          ; +0x63, 0x140348dc3\ncall    qword ptr [r10+4B8h]                                           ; +0x6b, 0x140348dcb\nmovss   xmm8, cs:flt_140835080                                         ; +0x72, 0x140348dd2\nxorps   xmm6, xmm6                                                     ; +0x7b, 0x140348ddb\nmovss   xmm11, [rsp+0C8h+arg_50]                                       ; +0x7e, 0x140348dde\nmovss   xmm9, [rsp+0C8h+arg_40]                                        ; +0x88, 0x140348de8\nmov     esi, [rsp+0C8h+arg_38]                                         ; +0x92, 0x140348df2\nmovss   xmm7, [rsp+0C8h+arg_30]                                        ; +0x99, 0x140348df9\nmaxss   xmm8, [rsp+0C8h+arg_28]                                        ; +0xa2, 0x140348e02\ntest    r12b, r12b                                                     ; +0xac, 0x140348e0c\njz      loc_140348F02                                                  ; +0xaf, 0x140348e0f\nmovzx   eax, [rsp+0C8h+arg_20]                                         ; +0xb5, 0x140348e15\nlea     rcx, [rbx+428h]                                                ; +0xbd, 0x140348e1d\nmovd    xmm1, edi                                                      ; +0xc4, 0x140348e24\nlea     rdx, [rsp+0C8h+var_78]                                         ; +0xc8, 0x140348e28\ncvtdq2ps xmm1, xmm1                                                    ; +0xcd, 0x140348e2d\nmov     [rsp+0C8h+var_78], 15h                                         ; +0xd0, 0x140348e30\nmovd    xmm0, eax                                                      ; +0xd8, 0x140348e38\nmovzx   eax, [rsp+0C8h+arg_48]                                         ; +0xdc, 0x140348e3c\ncvtdq2ps xmm0, xmm0                                                    ; +0xe4, 0x140348e44\nmovss   dword ptr [rbx+228h], xmm0                                     ; +0xe7, 0x140348e47\nmovd    xmm0, eax                                                      ; +0xef, 0x140348e4f\ncvtdq2ps xmm0, xmm0                                                    ; +0xf3, 0x140348e53\nmovss   dword ptr [rbx+260h], xmm0                                     ; +0xf6, 0x140348e56\nmovss   dword ptr [rbx+268h], xmm11                                    ; +0xfe, 0x140348e5e\nmovss   dword ptr [rbx+230h], xmm1                                     ; +0x107, 0x140348e67\nmovss   dword ptr [rbx+220h], xmm8                                     ; +0x10f, 0x140348e6f\ncall    sub_140355080                                                  ; +0x118, 0x140348e78\nmovss   xmm0, dword ptr [rbx+228h]                                     ; +0x11d, 0x140348e7d\nucomiss xmm0, xmm6                                                     ; +0x125, 0x140348e85\njp      short loc_140348E9B                                            ; +0x128, 0x140348e88\njnz     short loc_140348E9B                                            ; +0x12a, 0x140348e8a\nmovss   xmm0, dword ptr [rbx+260h]                                     ; +0x12c, 0x140348e8c\nucomiss xmm0, xmm6                                                     ; +0x134, 0x140348e94\njp      short loc_140348E9B                                            ; +0x137, 0x140348e97\njz      short loc_140348F02                                            ; +0x139, 0x140348e99\ncomiss  xmm7, xmm6                                                     ; +0x13b, 0x140348e9b\njbe     short loc_140348EEE                                            ; +0x13e, 0x140348e9e\nmovss   xmm2, cs:flt_140835080                                         ; +0x140, 0x140348ea0\nlea     rcx, [rbx+1A8h]                                                ; +0x148, 0x140348ea8\nmov     [rsp+0C8h+var_88], 0FFFFFFFFh                                  ; +0x14f, 0x140348eaf\nxor     eax, eax                                                       ; +0x157, 0x140348eb7\nmov     [rsp+0C8h+var_90], 0FFFFFFFFh                                  ; +0x159, 0x140348eb9\nmov     r9d, 15h                                                       ; +0x161, 0x140348ec1\nmovss   [rsp+0C8h+var_98], xmm9                                        ; +0x167, 0x140348ec7\nxorps   xmm1, xmm1                                                     ; +0x16e, 0x140348ece\nmov     [rbx+210h], eax                                                ; +0x171, 0x140348ed1\nmov     [rsp+0C8h+var_A0], esi                                         ; +0x177, 0x140348ed7\nmovss   [rsp+0C8h+var_A8], xmm7                                        ; +0x17b, 0x140348edb\nmov     [rbx+218h], eax                                                ; +0x181, 0x140348ee1\ncall    GJGameState__tweenValue                                        ; +0x187, 0x140348ee7\njmp     short loc_140348F02                                            ; +0x18c, 0x140348eec\nmov     dword ptr [rbx+210h], 3F800000h                                ; +0x18e, 0x140348eee\nmov     dword ptr [rbx+218h], 3F800000h                                ; +0x198, 0x140348ef8\ntest    bpl, bpl                                                       ; +0x1a2, 0x140348f02\njz      loc_140348FF8                                                  ; +0x1a5, 0x140348f05\nmovzx   eax, [rsp+0C8h+arg_20]                                         ; +0x1ab, 0x140348f0b\nlea     rcx, [rbx+428h]                                                ; +0x1b3, 0x140348f13\nmovd    xmm1, edi                                                      ; +0x1ba, 0x140348f1a\nlea     rdx, [rsp+0C8h+var_78]                                         ; +0x1be, 0x140348f1e\ncvtdq2ps xmm1, xmm1                                                    ; +0x1c3, 0x140348f23\nmov     [rsp+0C8h+var_78], 16h                                         ; +0x1c6, 0x140348f26\nmovd    xmm0, eax                                                      ; +0x1ce, 0x140348f2e\nmovzx   eax, [rsp+0C8h+arg_48]                                         ; +0x1d2, 0x140348f32\ncvtdq2ps xmm0, xmm0                                                    ; +0x1da, 0x140348f3a\nmovss   dword ptr [rbx+22Ch], xmm0                                     ; +0x1dd, 0x140348f3d\nmovd    xmm0, eax                                                      ; +0x1e5, 0x140348f45\ncvtdq2ps xmm0, xmm0                                                    ; +0x1e9, 0x140348f49\nmovss   dword ptr [rbx+264h], xmm0                                     ; +0x1ec, 0x140348f4c\nmovss   dword ptr [rbx+26Ch], xmm11                                    ; +0x1f4, 0x140348f54\nmovss   dword ptr [rbx+234h], xmm1                                     ; +0x1fd, 0x140348f5d\nmovss   dword ptr [rbx+224h], xmm8                                     ; +0x205, 0x140348f65\ncall    sub_140355080                                                  ; +0x20e, 0x140348f6e\nmovss   xmm0, dword ptr [rbx+22Ch]                                     ; +0x213, 0x140348f73\nucomiss xmm0, xmm6                                                     ; +0x21b, 0x140348f7b\njp      short loc_140348F91                                            ; +0x21e, 0x140348f7e\njnz     short loc_140348F91                                            ; +0x220, 0x140348f80\nmovss   xmm0, dword ptr [rbx+264h]                                     ; +0x222, 0x140348f82\nucomiss xmm0, xmm6                                                     ; +0x22a, 0x140348f8a\njp      short loc_140348F91                                            ; +0x22d, 0x140348f8d\njz      short loc_140348FF8                                            ; +0x22f, 0x140348f8f\ncomiss  xmm7, xmm6                                                     ; +0x231, 0x140348f91\njbe     short loc_140348FE4                                            ; +0x234, 0x140348f94\nmovss   xmm2, cs:flt_140835080                                         ; +0x236, 0x140348f96\nlea     rcx, [rbx+1A8h]                                                ; +0x23e, 0x140348f9e\nmov     [rsp+0C8h+var_88], 0FFFFFFFFh                                  ; +0x245, 0x140348fa5\nxor     eax, eax                                                       ; +0x24d, 0x140348fad\nmov     [rsp+0C8h+var_90], 0FFFFFFFFh                                  ; +0x24f, 0x140348faf\nmov     r9d, 16h                                                       ; +0x257, 0x140348fb7\nmovss   [rsp+0C8h+var_98], xmm9                                        ; +0x25d, 0x140348fbd\nxorps   xmm1, xmm1                                                     ; +0x264, 0x140348fc4\nmov     [rbx+214h], eax                                                ; +0x267, 0x140348fc7\nmov     [rsp+0C8h+var_A0], esi                                         ; +0x26d, 0x140348fcd\nmovss   [rsp+0C8h+var_A8], xmm7                                        ; +0x271, 0x140348fd1\nmov     [rbx+21Ch], eax                                                ; +0x277, 0x140348fd7\ncall    GJGameState__tweenValue                                        ; +0x27d, 0x140348fdd\njmp     short loc_140348FF8                                            ; +0x282, 0x140348fe2\nmov     dword ptr [rbx+214h], 3F800000h                                ; +0x284, 0x140348fe4\nmov     dword ptr [rbx+21Ch], 3F800000h                                ; +0x28e, 0x140348fee\ncmp     [rsp+0C8h+arg_20], 0                                           ; +0x298, 0x140348ff8\nmovaps  xmm11, [rsp+0C8h+var_68]                                       ; +0x2a0, 0x140349000\nmovaps  xmm8, [rsp+0C8h+var_48]                                        ; +0x2a6, 0x140349006\nmovaps  xmm6, [rsp+0C8h+var_28]                                        ; +0x2af, 0x14034900f\nmov     r13, [rsp+0C8h+arg_8]                                          ; +0x2b7, 0x140349017\njnz     short loc_14034902F                                            ; +0x2bf, 0x14034901f\ncmp     [rsp+0C8h+arg_48], 0                                           ; +0x2c1, 0x140349021\njnz     short loc_14034902F                                            ; +0x2c9, 0x140349029\nxor     edi, edi                                                       ; +0x2cb, 0x14034902b\njmp     short loc_140349032                                            ; +0x2cd, 0x14034902d\nmov     dil, 1                                                         ; +0x2cf, 0x14034902f\nlea     rdx, [rsp+0C8h+var_70]                                         ; +0x2d2, 0x140349032\nlea     rcx, [rsp+0C8h+var_78]                                         ; +0x2d7, 0x140349037\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x2dc, 0x14034903c\nmovss   [rsp+0C8h+var_90], xmm9                                        ; +0x2e2, 0x140349042\nmovzx   r9d, bpl                                                       ; +0x2e9, 0x140349049\nmov     [rsp+0C8h+var_98], esi                                         ; +0x2ed, 0x14034904d\nmov     rdx, rax                                                       ; +0x2f1, 0x140349051\nmovss   [rsp+0C8h+var_A0], xmm7                                        ; +0x2f4, 0x140349054\nmovzx   r8d, r12b                                                      ; +0x2fa, 0x14034905a\nmov     rcx, rbx                                                       ; +0x2fe, 0x14034905e\nmov     byte ptr [rsp+0C8h+var_A8], dil                                ; +0x301, 0x140349061\ncall    GJBaseGameLayer__updateStaticCameraPos                         ; +0x306, 0x140349066\nmovaps  xmm9, [rsp+0C8h+var_58]                                        ; +0x30b, 0x14034906b\nmovaps  xmm7, [rsp+0C8h+var_38]                                        ; +0x311, 0x140349071\nmov     rsi, [rsp+0C8h+arg_0]                                          ; +0x319, 0x140349079\nmov     rbx, [rsp+0C8h+arg_10]                                         ; +0x321, 0x140349081\nadd     rsp, 0B0h                                                      ; +0x329, 0x140349089\npop     r12                                                            ; +0x330, 0x140349090\npop     rdi                                                            ; +0x332, 0x140349092\npop     rbp                                                            ; +0x333, 0x140349093\nretn                                                                   ; +0x334, 0x140349094", "xrefs": ["CameraTriggerGameObject::triggerObject @ 0x14065e866", "<???> @ 0x1408b7ce0", "<???> @ 0x1408b7d30", "<???> @ 0x14091fef8"], "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"}