{"type": "func", "start": 4870604, "end": 4870854, "name": "GJEffectManager::createMoveCommand", "pseudocode": "// \n// GJEffectManager::createMoveCommand from 0x4a51cc to 0x4a52c6 (250 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::triggerMoveCommand @ 0x481bd8\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\n// local variable allocation has failed, the output may be wrong!\nvoid GJEffectManager::createMoveCommand(\n        GJEffectManager *a1,\n        cocos2d::CCPoint a2,\n        int a3,\n        float a4,\n        int a5,\n        float a6,\n        bool a7,\n        bool a8,\n        bool a9,\n        float a10,\n        float a11,\n        float a12,\n        int a13,\n        int a14)\n{\n  float y; // r7\n  float x; // r6\n  std::vector<GroupCommandObject2> *p_m_unkVector560; // r4\n  int v18; // r0\n  GroupCommandObject2 *v19; // r4\n  char *v20; // r1 OVERLAPPED\n  double v21; // r2 OVERLAPPED\n  double v22; // [sp+0h] [bp-44h]\n  double v23; // [sp+20h] [bp-24h]\n  double v24; // [sp+30h] [bp-14h] BYREF\n\n  y = a2.y;\n  x = a2.x;\n  if ( (*(float *)LODWORD(a2.x) != flt_AC6954\n     || *(float *)(LODWORD(a2.x) + 4) != flt_AC6958\n     || LOBYTE(a6)\n     || a7\n     || a8\n     || a9)\n    && SLODWORD(a2.y) > 0 )\n  {\n    p_m_unkVector560 = &a1->m_unkVector560;\n    std::vector<GroupCommandObject2>::emplace_back<>((int)&a1->m_unkVector560);\n    v18 = std::vector<GroupCommandObject2>::back((int)p_m_unkVector560);\n    *(float *)(v18 + 344) = a12;\n    v19 = (GroupCommandObject2 *)v18;\n    *(float *)(v18 + 40) = y;\n    *(_DWORD *)(v18 + 348) = a13;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)((char *)&v24 + 4), (const cocos2d::CCPoint *)LODWORD(x));\n    v20 = (char *)&v24 + 4;\n    *(float *)&v22 = a4;\n    v23 = a10;\n    v21 = *(float *)&a3;\n    GroupCommandObject2::runMoveCommand(\n      v19,\n      *(cocos2d::CCPoint *)&v20,\n      v22,\n      COERCE_UNSIGNED_INT64(*(float *)&a5),\n      COERCE_DOUBLE(__PAIR64__(a7, LOBYTE(a6))),\n      a8,\n      a9,\n      SLOBYTE(v23),\n      SBYTE4(COERCE_UNSIGNED_INT64(a10)),\n      a11,\n      v24);\n  }\n}", "assembly": "; \n; GJEffectManager::createMoveCommand from 0x4a51cc to 0x4a52c6 (250 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::triggerMoveCommand @ 0x481bd8\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\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x4a51cc\nMOV             R7, R2                                                 ; +0x4, 0x4a51d0\nVPUSH           {D8}                                                   ; +0x6, 0x4a51d2\nMOV             R6, R1                                                 ; +0xa, 0x4a51d6\nVMOV            S16, R3                                                ; +0xc, 0x4a51d8\nLDR             R3, =(__stack_chk_guard_ptr - 0x4A51E8)                ; +0x10, 0x4a51dc\nSUB             SP, SP, #0x44                                          ; +0x12, 0x4a51de\nVLDR            S14, [R1]                                              ; +0x14, 0x4a51e0\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x18, 0x4a51e4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x1a, 0x4a51e6\nLDRB.W          R11, [SP,#0x44+arg_8]                                  ; +0x1c, 0x4a51e8\nLDR             R2, [R3]                                               ; +0x20, 0x4a51ec\nMOV             R5, R3                                                 ; +0x22, 0x4a51ee\nLDRB.W          R10, [SP,#0x44+arg_C]                                  ; +0x24, 0x4a51f0\nLDRB.W          R9, [SP,#0x44+arg_10]                                  ; +0x28, 0x4a51f4\nSTR             R2, [SP,#0x44+var_8]                                   ; +0x2c, 0x4a51f8\nLDR             R2, =(flt_AC6944 - 0x4A5204)                           ; +0x2e, 0x4a51fa\nLDRB.W          R8, [SP,#0x44+arg_14]                                  ; +0x30, 0x4a51fc\nADD             R2, PC; flt_AC6944                                     ; +0x34, 0x4a5200\nVLDR            S15, [R2,#(flt_AC6954 - 0xAC6944)]                     ; +0x36, 0x4a5202\nVCMP.F32        S14, S15                                               ; +0x3a, 0x4a5206\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3e, 0x4a520a\nBNE             loc_4A523A                                             ; +0x42, 0x4a520e\nVLDR            S14, [R1,#4]                                           ; +0x44, 0x4a5210\nVLDR            S15, [R2,#(flt_AC6958 - 0xAC6944)]                     ; +0x48, 0x4a5214\nVCMP.F32        S14, S15                                               ; +0x4c, 0x4a5218\nVMRS            APSR_nzcv, FPSCR                                       ; +0x50, 0x4a521c\nBNE             loc_4A523A                                             ; +0x54, 0x4a5220\nCMP.W           R11, #0                                                ; +0x56, 0x4a5222\nBNE             loc_4A523A                                             ; +0x5a, 0x4a5226\nCMP.W           R10, #0                                                ; +0x5c, 0x4a5228\nBNE             loc_4A523A                                             ; +0x60, 0x4a522c\nCMP.W           R9, #0                                                 ; +0x62, 0x4a522e\nBNE             loc_4A523A                                             ; +0x66, 0x4a5232\nCMP.W           R8, #0                                                 ; +0x68, 0x4a5234\nBEQ             loc_4A52B0                                             ; +0x6c, 0x4a5238\nCMP             R7, #0                                                 ; +0x6e, 0x4a523a\nBLE             loc_4A52B0                                             ; +0x70, 0x4a523c\nADD.W           R4, R0, #0x350                                         ; +0x72, 0x4a523e\nMOV             R0, R4                                                 ; +0x76, 0x4a5242\nBL              _ZNSt6vectorI19GroupCommandObject2SaIS0_EE12emplace_backIJEEEvDpOT_; std::vector<GroupCommandObject2>::emplace_back<>() ; +0x78, 0x4a5244\nMOV             R0, R4                                                 ; +0x7c, 0x4a5248\nBL              _ZNSt6vectorI19GroupCommandObject2SaIS0_EE4backEv; std::vector<GroupCommandObject2>::back(void) ; +0x7e, 0x4a524a\nLDR             R3, [SP,#0x44+arg_20]                                  ; +0x82, 0x4a524e\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0x84, 0x4a5250\nSTR.W           R3, [R0,#0x158]                                        ; +0x86, 0x4a5252\nMOV             R4, R0                                                 ; +0x8a, 0x4a5256\nLDR             R3, [SP,#0x44+arg_24]                                  ; +0x8c, 0x4a5258\nSTR             R7, [R0,#0x28]                                         ; +0x8e, 0x4a525a\nADD             R7, SP, #0x44+var_10                                   ; +0x90, 0x4a525c\nSTR.W           R3, [R0,#0x15C]                                        ; +0x92, 0x4a525e\nMOV             R0, R7; this                                           ; +0x96, 0x4a5262\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x98, 0x4a5264\nVLDR            S14, [SP,#0x44+arg_4]                                  ; +0x9c, 0x4a5268\nLDR             R3, [SP,#0x44+arg_0]                                   ; +0xa0, 0x4a526c\nMOV             R0, R4                                                 ; +0xa2, 0x4a526e\nSTR.W           R11, [SP,#0x44+var_34]                                 ; +0xa4, 0x4a5270\nMOV             R1, R7                                                 ; +0xa8, 0x4a5274\nSTR.W           R10, [SP,#0x44+var_30]                                 ; +0xaa, 0x4a5276\nVCVT.F64.F32    D7, S14                                                ; +0xae, 0x4a527a\nSTR             R3, [SP,#0x44+var_44]                                  ; +0xb2, 0x4a527e\nSTR.W           R9, [SP,#0x44+var_2C]                                  ; +0xb4, 0x4a5280\nSTR.W           R8, [SP,#0x44+var_28]                                  ; +0xb8, 0x4a5284\nVSTR            D7, [SP,#0x44+var_3C]                                  ; +0xbc, 0x4a5288\nVLDR            S14, [SP,#0x44+arg_18]                                 ; +0xc0, 0x4a528c\nVCVT.F64.F32    D7, S14                                                ; +0xc4, 0x4a5290\nVSTR            D7, [SP,#0x44+var_24]                                  ; +0xc8, 0x4a5294\nVLDR            S14, [SP,#0x44+arg_1C]                                 ; +0xcc, 0x4a5298\nVCVT.F64.F32    D7, S14                                                ; +0xd0, 0x4a529c\nVSTR            D7, [SP,#0x44+var_1C]                                  ; +0xd4, 0x4a52a0\nVCVT.F64.F32    D7, S16                                                ; +0xd8, 0x4a52a4\nVMOV            R2, R3, D7                                             ; +0xdc, 0x4a52a8\nBL              _ZN19GroupCommandObject214runMoveCommandEN7cocos2d7CCPointEdidbbbbdd; GroupCommandObject2::runMoveCommand(cocos2d::CCPoint,double,int,double,bool,bool,bool,bool,double,double) ; +0xe0, 0x4a52ac\nLDR             R2, [SP,#0x44+var_8]                                   ; +0xe4, 0x4a52b0\nLDR             R3, [R5]                                               ; +0xe6, 0x4a52b2\nCMP             R2, R3                                                 ; +0xe8, 0x4a52b4\nBEQ             loc_4A52BC                                             ; +0xea, 0x4a52b6\nBLX             __stack_chk_fail                                       ; +0xec, 0x4a52b8\nADD             SP, SP, #0x44 ; 'D'                                    ; +0xf0, 0x4a52bc\nVPOP            {D8}                                                   ; +0xf2, 0x4a52be\nPOP.W           {R4-R11,PC}                                            ; +0xf6, 0x4a52c2", "xrefs": ["GJBaseGameLayer::triggerMoveCommand @ 0x481bd8"], "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"}