{"type": "func", "start": 4657448, "end": 4657760, "name": "GJBaseGameLayer::triggerTransformCommand", "pseudocode": "// \n// GJBaseGameLayer::triggerTransformCommand from 0x471128 to 0x471260 (312 bytes)\n// \n// 1 xrefs:\n// > TransformTriggerGameObject::triggerObject @ 0x3ee5d4\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::triggerTransformCommand(GJBaseGameLayer *a1, TransformTriggerGameObject *a2)\n{\n  double m_objectScaleX; // d8\n  double m_objectScaleY; // d9\n  GameObject *MainObject; // r0\n  double v7; // d6\n  double v8; // d7\n\n  m_objectScaleX = a2->m_objectScaleX;\n  m_objectScaleY = a2->m_objectScaleY;\n  if ( m_objectScaleX == 0.0 )\n    m_objectScaleX = 1.0;\n  if ( m_objectScaleY == 0.0 )\n    m_objectScaleY = 1.0;\n  if ( a2->m_divideX )\n    m_objectScaleX = 1.0 / m_objectScaleX;\n  if ( a2->m_divideY )\n    m_objectScaleY = 1.0 / m_objectScaleY;\n  if ( a2->m_relativeScale )\n  {\n    MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2->m_centerGroupID);\n    if ( MainObject )\n    {\n      v7 = (float)(MainObject->m_scaleX / MainObject->m_startScaleX);\n      v8 = (float)(MainObject->m_scaleY / MainObject->m_startScaleY);\n      if ( v7 != 0.0 )\n        m_objectScaleX = (m_objectScaleX - 1.0) / v7 + 1.0;\n      if ( v8 != 0.0 )\n        m_objectScaleY = (m_objectScaleY - 1.0) / v8 + 1.0;\n    }\n  }\n  GJEffectManager::createTransformCommand(\n    a1->m_effectManager,\n    m_objectScaleX,\n    m_objectScaleY,\n    a2->m_property450,\n    a2->m_property451,\n    a2->m_onlyMove,\n    a2->m_duration,\n    a2->m_targetGroupID,\n    a2->m_centerGroupID,\n    a2->m_easingType,\n    a2->m_easingRate,\n    0,\n    a2->m_relativeRotation,\n    a2->m_uniqueID,\n    a2->m_controlID);\n}", "assembly": "; \n; GJBaseGameLayer::triggerTransformCommand from 0x471128 to 0x471260 (312 bytes)\n; \n; 1 xrefs:\n; > TransformTriggerGameObject::triggerObject @ 0x3ee5d4\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\nADDW            R3, R1, #0x664                                         ; +0x0, 0x471128\nVMOV.F64        D7, #1.0                                               ; +0x4, 0x47112c\nPUSH            {R4,R5,LR}                                             ; +0x8, 0x471130\nMOV             R5, R0                                                 ; +0xa, 0x471132\nVPUSH           {D8-D9}                                                ; +0xc, 0x471134\nMOV             R4, R1                                                 ; +0x10, 0x471138\nVLDR            S16, [R3]                                              ; +0x12, 0x47113a\nADD.W           R3, R1, #0x668                                         ; +0x16, 0x47113e\nSUB             SP, SP, #0x44; double                                  ; +0x1a, 0x471142\nVLDR            S18, [R3]                                              ; +0x1c, 0x471144\nLDRB.W          R3, [R1,#0x675]                                        ; +0x20, 0x471148\nVCVT.F64.F32    D8, S16                                                ; +0x24, 0x47114c\nVCVT.F64.F32    D9, S18                                                ; +0x28, 0x471150\nVCMP.F64        D8, #0.0                                               ; +0x2c, 0x471154\nVMRS            APSR_nzcv, FPSCR                                       ; +0x30, 0x471158\nVCMP.F64        D9, #0.0                                               ; +0x34, 0x47115c\nIT EQ                                                                  ; +0x38, 0x471160\nVMOVEQ.F64      D8, D7                                                 ; +0x3a, 0x471162\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3e, 0x471166\nIT EQ                                                                  ; +0x42, 0x47116a\nVMOVEQ.F64      D9, D7                                                 ; +0x44, 0x47116c\nCBZ             R3, loc_471176                                         ; +0x48, 0x471170\nVDIV.F64        D8, D7, D8                                             ; +0x4a, 0x471172\nLDRB.W          R3, [R4,#0x676]                                        ; +0x4e, 0x471176\nCBZ             R3, loc_471184                                         ; +0x52, 0x47117a\nVMOV.F64        D7, #1.0                                               ; +0x54, 0x47117c\nVDIV.F64        D9, D7, D9                                             ; +0x58, 0x471180\nLDRB.W          R3, [R4,#0x678]                                        ; +0x5c, 0x471184\nCBZ             R3, loc_4711EA                                         ; +0x60, 0x471188\nMOV             R0, R5; this                                           ; +0x62, 0x47118a\nLDR.W           R1, [R4,#0x500]; int                                   ; +0x64, 0x47118c\nBL              _ZN15GJBaseGameLayer16tryGetMainObjectEi; GJBaseGameLayer::tryGetMainObject(int) ; +0x68, 0x471190\nCBZ             R0, loc_4711EA                                         ; +0x6c, 0x471194\nVLDR            S15, [R0,#0x3E8]                                       ; +0x6e, 0x471196\nVLDR            S12, [R0,#0x344]                                       ; +0x72, 0x47119a\nVLDR            S14, [R0,#0x3EC]                                       ; +0x76, 0x47119e\nVDIV.F32        S12, S15, S12                                          ; +0x7a, 0x4711a2\nVLDR            S15, [R0,#0x348]                                       ; +0x7e, 0x4711a6\nVDIV.F32        S14, S14, S15                                          ; +0x82, 0x4711aa\nVCVT.F64.F32    D6, S12                                                ; +0x86, 0x4711ae\nVCMP.F64        D6, #0.0                                               ; +0x8a, 0x4711b2\nVCVT.F64.F32    D7, S14                                                ; +0x8e, 0x4711b6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x92, 0x4711ba\nBEQ             loc_4711D0                                             ; +0x96, 0x4711be\nVMOV.F64        D5, #1.0                                               ; +0x98, 0x4711c0\nVSUB.F64        D8, D8, D5                                             ; +0x9c, 0x4711c4\nVDIV.F64        D6, D8, D6                                             ; +0xa0, 0x4711c8\nVADD.F64        D8, D6, D5                                             ; +0xa4, 0x4711cc\nVCMP.F64        D7, #0.0                                               ; +0xa8, 0x4711d0\nVMRS            APSR_nzcv, FPSCR                                       ; +0xac, 0x4711d4\nBEQ             loc_4711EA                                             ; +0xb0, 0x4711d8\nVMOV.F64        D6, #1.0                                               ; +0xb2, 0x4711da\nVSUB.F64        D9, D9, D6                                             ; +0xb6, 0x4711de\nVDIV.F64        D7, D9, D7                                             ; +0xba, 0x4711e2\nVADD.F64        D9, D7, D6                                             ; +0xbe, 0x4711e6\nVSTR            D9, [SP,#0x44+var_44]                                  ; +0xc2, 0x4711ea\nADDW            R3, R4, #0x66C                                         ; +0xc6, 0x4711ee\nLDR.W           R0, [R5,#0x690]; this                                  ; +0xca, 0x4711f2\nVLDR            S14, [R3]                                              ; +0xce, 0x4711f6\nADD.W           R3, R4, #0x670                                         ; +0xd2, 0x4711fa\nVCVT.F64.F32    D7, S14                                                ; +0xd6, 0x4711fe\nVSTR            D7, [SP,#0x44+var_3C]                                  ; +0xda, 0x471202\nVLDR            S14, [R3]                                              ; +0xde, 0x471206\nLDRB.W          R3, [R4,#0x674]                                        ; +0xe2, 0x47120a\nVCVT.F64.F32    D7, S14                                                ; +0xe6, 0x47120e\nSTR             R3, [SP,#0x44+var_2C]; bool                            ; +0xea, 0x471212\nADD.W           R3, R4, #0x4F0                                         ; +0xec, 0x471214\nVSTR            D7, [SP,#0x44+var_34]                                  ; +0xf0, 0x471218\nLDR             R3, [R3]                                               ; +0xf4, 0x47121c\nSTR             R3, [SP,#0x44+var_28]; float                           ; +0xf6, 0x47121e\nLDR.W           R3, [R4,#0x4FC]                                        ; +0xf8, 0x471220\nSTR             R3, [SP,#0x44+var_24]; int                             ; +0xfc, 0x471224\nLDR.W           R3, [R4,#0x500]                                        ; +0xfe, 0x471226\nSTR             R3, [SP,#0x44+var_20]; int                             ; +0x102, 0x47122a\nLDR.W           R3, [R4,#0x51C]                                        ; +0x104, 0x47122c\nSTR             R3, [SP,#0x44+var_1C]; int                             ; +0x108, 0x471230\nADD.W           R3, R4, #0x520                                         ; +0x10a, 0x471232\nLDR             R3, [R3]                                               ; +0x10e, 0x471236\nSTR             R3, [SP,#0x44+var_18]; float                           ; +0x110, 0x471238\nMOVS            R3, #0                                                 ; +0x112, 0x47123a\nSTR             R3, [SP,#0x44+var_14]; bool                            ; +0x114, 0x47123c\nLDRB.W          R3, [R4,#0x677]                                        ; +0x116, 0x47123e\nSTR             R3, [SP,#0x44+var_10]; bool                            ; +0x11a, 0x471242\nLDR.W           R3, [R4,#0x304]                                        ; +0x11c, 0x471244\nSTR             R3, [SP,#0x44+var_C]; int                              ; +0x120, 0x471248\nLDR.W           R3, [R4,#0x5CC]                                        ; +0x122, 0x47124a\nSTR             R3, [SP,#0x44+var_8]; int                              ; +0x126, 0x47124e\nVMOV            R2, R3, D8; double                                     ; +0x128, 0x471250\nBL              _ZN15GJEffectManager22createTransformCommandEddddbfiiifbbii; GJEffectManager::createTransformCommand(double,double,double,double,bool,float,int,int,int,float,bool,bool,int,int) ; +0x12c, 0x471254\nADD             SP, SP, #0x44 ; 'D'                                    ; +0x130, 0x471258\nVPOP            {D8-D9}                                                ; +0x132, 0x47125a\nPOP             {R4,R5,PC}                                             ; +0x136, 0x47125e", "xrefs": ["TransformTriggerGameObject::triggerObject @ 0x3ee5d4"], "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"}