{"type": "func", "start": 4296960952, "end": 4296961416, "name": "GJBaseGameLayer::animateInDualGroundNew", "pseudocode": "// \n// GJBaseGameLayer::animateInDualGroundNew from 0x1001e6bb8 to 0x1001e6d88 (464 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateDualGround @ 0x1001e67a0\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 __fastcall GJBaseGameLayer::animateInDualGroundNew(\n        GJBaseGameLayer *a1,\n        GameObject *a2,\n        float a3,\n        bool a4,\n        float a5)\n{\n  _BOOL4 v5; // w20\n  __n128 v8; // q1\n  int v9; // s9\n  float v10; // s11\n  __n128 v11; // q0\n  float v12; // s0\n  float v13; // s10\n  float m_unkFloat9; // s0\n  cocos2d::CCDirector *v15; // x0\n  float v16; // s2\n  float v17; // s3\n  int v18; // [xsp+8h] [xbp-38h] BYREF\n  float v19; // [xsp+Ch] [xbp-34h]\n  cocos2d::CCPoint v20; // 0:s0.4,4:s1.4\n\n  v5 = a4;\n  *(float *)&v9 = GJBaseGameLayer::getTargetFlyCameraY(a1, a2);\n  v10 = a3 * 0.5;\n  v11.n128_f32[0] = *(float *)&v9 - (float)(a3 * 0.5);\n  if ( !a1->m_gameState.m_unkBool9 )\n    v11.n128_f32[0] = floorf(v11.n128_f32[0] / 30.0) * 30.0;\n  *(float *)&a1->m_gameState.m_unkInt14 = v10 + fmaxf(v11.n128_f32[0], 90.0);\n  if ( a1->m_gameState.m_isDualMode || (v12 = 0.5, a1->m_gameState.m_unkBool7) )\n    v12 = 0.4;\n  if ( v5 )\n    v13 = 0.0;\n  else\n    v13 = v12;\n  if ( v13 <= 0.0 )\n  {\n    v18 = 25;\n    sub_10001B104(&a1->m_gameState.m_tweenActions.__table_.__bucket_list_.__ptr_.__value_, &v18);\n    a1->m_gameState.m_unkFloat9 = 1.0;\n  }\n  else if ( !a1->m_gameState.m_unkBool7 || *(float *)&a1->m_gameState.m_unkInt11 != a3 )\n  {\n    m_unkFloat9 = a1->m_gameState.m_unkFloat9;\n    if ( m_unkFloat9 >= 0.0 )\n    {\n      if ( m_unkFloat9 > 0.0 )\n      {\n        v15 = cocos2d::CCDirector::sharedDirector();\n        cocos2d::CCDirector::getWinSize(v15);\n        m_unkFloat9 = (float)(a1->m_gameState.m_unkFloat9\n                            * (float)((float)(v19 * 0.5)\n                                    + (float)(1.0 - (float)(*(float *)&a1->m_gameState.m_unkInt11 * 0.5))))\n                    / (float)((float)(1.0 - v10) + (float)(v19 * 0.5));\n        a1->m_gameState.m_unkFloat9 = m_unkFloat9;\n      }\n    }\n    else\n    {\n      a1->m_gameState.m_unkFloat9 = 0.0;\n      m_unkFloat9 = 0.0;\n    }\n    GJGameState::tweenValue(&a1->m_gameState, m_unkFloat9, 1.0, 25, v13, 1, 2.0, -1, -1);\n  }\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 )\n  {\n    v8.n128_u32[0] = a1->m_gameState.m_unkInt14;\n    v11.n128_u32[0] = 0;\n    sub_100022980(v11, v8, &v18);\n    v20.y = 2.0;\n    v20.x = v13;\n    GJBaseGameLayer::updateStaticCameraPos(a1, v20, (bool)&v18, 0, 1, v16, 0, v17);\n    a1->m_gameState.m_unkBool1 = 1;\n  }\n  a1->m_gameState.m_unkBool7 = 1;\n  *(float *)&a1->m_gameState.m_unkInt11 = a3;\n  a1->m_gameState.m_unkInt10 = v9;\n}", "assembly": "; \n; GJBaseGameLayer::animateInDualGroundNew from 0x1001e6bb8 to 0x1001e6d88 (464 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateDualGround @ 0x1001e67a0\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1001e6bb8\nSTP             D11, D10, [SP,#0x40+var_30]                            ; +0x4, 0x1001e6bbc\nSTP             D9, D8, [SP,#0x40+var_20]                              ; +0x8, 0x1001e6bc0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001e6bc4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001e6bc8\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001e6bcc\nMOV             X20, X2                                                ; +0x18, 0x1001e6bd0\nFMOV            S8, S0                                                 ; +0x1c, 0x1001e6bd4\nMOV             X19, X0                                                ; +0x20, 0x1001e6bd8\nBL              GJBaseGameLayer__getTargetFlyCameraY                   ; +0x24, 0x1001e6bdc\nFMOV            S9, S0                                                 ; +0x28, 0x1001e6be0\nFMOV            S0, #0.5                                               ; +0x2c, 0x1001e6be4\nFMUL            S11, S8, S0                                            ; +0x30, 0x1001e6be8\nFSUB            S0, S9, S11                                            ; +0x34, 0x1001e6bec\nLDRB            W8, [X19,#0x312]                                       ; +0x38, 0x1001e6bf0\nTBNZ            W8, #0, loc_1001E6C08                                  ; +0x3c, 0x1001e6bf4\nFMOV            S1, #30.0                                              ; +0x40, 0x1001e6bf8\nFDIV            S0, S0, S1                                             ; +0x44, 0x1001e6bfc\nFRINTM          S0, S0                                                 ; +0x48, 0x1001e6c00\nFMUL            S0, S0, S1                                             ; +0x4c, 0x1001e6c04\nMOV             W8, #0x42B40000                                        ; +0x50, 0x1001e6c08\nFMOV            S1, W8                                                 ; +0x54, 0x1001e6c0c\nFMAXNM          S0, S0, S1                                             ; +0x58, 0x1001e6c10\nFADD            S0, S11, S0                                            ; +0x5c, 0x1001e6c14\nSTR             S0, [X19,#0x308]                                       ; +0x60, 0x1001e6c18\nLDRB            W8, [X19,#0x3F2]                                       ; +0x64, 0x1001e6c1c\nTBNZ            W8, #0, loc_1001E6C34                                  ; +0x68, 0x1001e6c20\nLDRB            W8, [X19,#0x310]                                       ; +0x6c, 0x1001e6c24\nFMOV            S0, #0.5                                               ; +0x70, 0x1001e6c28\nCMP             W8, #1                                                 ; +0x74, 0x1001e6c2c\nB.NE            loc_1001E6C3C                                          ; +0x78, 0x1001e6c30\nADRP            X8, #dword_10063537C@PAGE                              ; +0x7c, 0x1001e6c34\nLDR             S0, [X8,#dword_10063537C@PAGEOFF]                      ; +0x80, 0x1001e6c38\nCMP             W20, #0                                                ; +0x84, 0x1001e6c3c\nFMOV            S1, WZR                                                ; +0x88, 0x1001e6c40\nFCSEL           S10, S1, S0, NE                                        ; +0x8c, 0x1001e6c44\nFCMP            S10, #0.0                                              ; +0x90, 0x1001e6c48\nB.LS            loc_1001E6C80                                          ; +0x94, 0x1001e6c4c\nLDRB            W8, [X19,#0x310]                                       ; +0x98, 0x1001e6c50\nCMP             W8, #1                                                 ; +0x9c, 0x1001e6c54\nB.NE            loc_1001E6C68                                          ; +0xa0, 0x1001e6c58\nLDR             S0, [X19,#0x2EC]                                       ; +0xa4, 0x1001e6c5c\nFCMP            S0, S8                                                 ; +0xa8, 0x1001e6c60\nB.EQ            loc_1001E6D0C                                          ; +0xac, 0x1001e6c64\nLDR             S0, [X19,#0x3F4]                                       ; +0xb0, 0x1001e6c68\nFCMP            S0, #0.0                                               ; +0xb4, 0x1001e6c6c\nB.PL            loc_1001E6CA0                                          ; +0xb8, 0x1001e6c70\nSTR             WZR, [X19,#0x3F4]                                      ; +0xbc, 0x1001e6c74\nFMOV            S0, WZR                                                ; +0xc0, 0x1001e6c78\nB               loc_1001E6CE8                                          ; +0xc4, 0x1001e6c7c\nMOV             W8, #0x19                                              ; +0xc8, 0x1001e6c80\nSTR             W8, [SP,#0x40+var_38]                                  ; +0xcc, 0x1001e6c84\nADD             X0, X19, #0x3F8                                        ; +0xd0, 0x1001e6c88\nADD             X1, SP, #0x40+var_38                                   ; +0xd4, 0x1001e6c8c\nBL              sub_10001B104                                          ; +0xd8, 0x1001e6c90\nMOV             W8, #0x3F800000                                        ; +0xdc, 0x1001e6c94\nSTR             W8, [X19,#0x3F4]                                       ; +0xe0, 0x1001e6c98\nB               loc_1001E6D0C                                          ; +0xe4, 0x1001e6c9c\nB.LE            loc_1001E6CE8                                          ; +0xe8, 0x1001e6ca0\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xec, 0x1001e6ca4\nADD             X8, SP, #0x40+var_38                                   ; +0xf0, 0x1001e6ca8\nBL              cocos2d__CCDirector__getWinSize                        ; +0xf4, 0x1001e6cac\nLDR             S0, [SP,#0x40+var_34]                                  ; +0xf8, 0x1001e6cb0\nFMOV            S1, #0.5                                               ; +0xfc, 0x1001e6cb4\nFMUL            S0, S0, S1                                             ; +0x100, 0x1001e6cb8\nLDR             S2, [X19,#0x2EC]                                       ; +0x104, 0x1001e6cbc\nFMUL            S1, S2, S1                                             ; +0x108, 0x1001e6cc0\nFMOV            S2, #1.0                                               ; +0x10c, 0x1001e6cc4\nFSUB            S1, S2, S1                                             ; +0x110, 0x1001e6cc8\nFADD            S1, S0, S1                                             ; +0x114, 0x1001e6ccc\nLDR             S3, [X19,#0x3F4]                                       ; +0x118, 0x1001e6cd0\nFMUL            S1, S3, S1                                             ; +0x11c, 0x1001e6cd4\nFSUB            S2, S2, S11                                            ; +0x120, 0x1001e6cd8\nFADD            S0, S2, S0                                             ; +0x124, 0x1001e6cdc\nFDIV            S0, S1, S0                                             ; +0x128, 0x1001e6ce0\nSTR             S0, [X19,#0x3F4]                                       ; +0x12c, 0x1001e6ce4\nADD             X0, X19, #0x1A8                                        ; +0x130, 0x1001e6ce8\nFMOV            S1, #1.0                                               ; +0x134, 0x1001e6cec\nFMOV            S3, #2.0                                               ; +0x138, 0x1001e6cf0\nMOV             W1, #0x19                                              ; +0x13c, 0x1001e6cf4\nFMOV            S2, S10                                                ; +0x140, 0x1001e6cf8\nMOV             W2, #1                                                 ; +0x144, 0x1001e6cfc\nMOV             W3, #0xFFFFFFFF                                        ; +0x148, 0x1001e6d00\nMOV             W4, #0xFFFFFFFF                                        ; +0x14c, 0x1001e6d04\nBL              GJGameState__tweenValue                                ; +0x150, 0x1001e6d08\nLDR             S0, [X19,#0x23C]                                       ; +0x154, 0x1001e6d0c\nFCMP            S0, #0.0                                               ; +0x158, 0x1001e6d10\nB.EQ            loc_1001E6D24                                          ; +0x15c, 0x1001e6d14\nLDRB            W8, [X19,#0x2A0]                                       ; +0x160, 0x1001e6d18\nCMP             W8, #1                                                 ; +0x164, 0x1001e6d1c\nB.NE            loc_1001E6D60                                          ; +0x168, 0x1001e6d20\nLDR             S1, [X19,#0x308]                                       ; +0x16c, 0x1001e6d24\nADD             X0, SP, #0x40+var_38                                   ; +0x170, 0x1001e6d28\nFMOV            S0, WZR                                                ; +0x174, 0x1001e6d2c\nBL              sub_100022980                                          ; +0x178, 0x1001e6d30\nMOV             W20, #1                                                ; +0x17c, 0x1001e6d34\nADD             X1, SP, #0x40+var_38                                   ; +0x180, 0x1001e6d38\nFMOV            S1, #2.0                                               ; +0x184, 0x1001e6d3c\nMOV             X0, X19                                                ; +0x188, 0x1001e6d40\nMOV             W2, #0                                                 ; +0x18c, 0x1001e6d44\nMOV             W3, #1                                                 ; +0x190, 0x1001e6d48\nMOV             W4, #0                                                 ; +0x194, 0x1001e6d4c\nFMOV            S0, S10                                                ; +0x198, 0x1001e6d50\nMOV             W5, #1                                                 ; +0x19c, 0x1001e6d54\nBL              GJBaseGameLayer__updateStaticCameraPos                 ; +0x1a0, 0x1001e6d58\nSTRB            W20, [X19,#0x2A0]                                      ; +0x1a4, 0x1001e6d5c\nMOV             W8, #1                                                 ; +0x1a8, 0x1001e6d60\nSTRB            W8, [X19,#0x310]                                       ; +0x1ac, 0x1001e6d64\nSTR             S8, [X19,#0x2EC]                                       ; +0x1b0, 0x1001e6d68\nSTR             S9, [X19,#0x2E8]                                       ; +0x1b4, 0x1001e6d6c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x1b8, 0x1001e6d70\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x1bc, 0x1001e6d74\nLDP             D9, D8, [SP,#0x40+var_20]                              ; +0x1c0, 0x1001e6d78\nLDP             D11, D10, [SP,#0x40+var_30]                            ; +0x1c4, 0x1001e6d7c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x1c8, 0x1001e6d80\nRET                                                                    ; +0x1cc, 0x1001e6d84", "xrefs": ["GJBaseGameLayer::updateDualGround @ 0x1001e67a0"], "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"}