{"type": "func", "start": 4674368, "end": 4674630, "name": "GJBaseGameLayer::modifyObjectPhysics", "pseudocode": "// \n// GJBaseGameLayer::modifyObjectPhysics from 0x475340 to 0x475446 (262 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::modifyGroupPhysics @ 0x47f1da\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::modifyObjectPhysics(GJBaseGameLayer *a1, AdvancedFollowEditObject *a2, GameObjectPhysics *a3)\n{\n  float m_modX; // s17\n  float m_modXVariance; // s16\n  float v8; // s17\n  float m_modY; // s16\n  float m_modYVariance; // s18\n  float v11; // r0\n  float v12; // s15\n  float m_startSpeed; // s16\n  float m_startSpeedVariance; // s17\n  float v15; // s16\n  float m_startDirection; // s17\n  float m_startDirectionVariance; // s18\n  float v18; // r0\n  cocos2d::CCPoint v19; // [sp+14h] [bp-10h] BYREF\n\n  m_modX = a2->m_modX;\n  m_modXVariance = a2->m_modXVariance;\n  v8 = m_modX + (float)(m_modXVariance * GameToolbox::fast_rand_0_1());\n  m_modY = a2->m_modY;\n  m_modYVariance = a2->m_modYVariance;\n  v11 = GameToolbox::fast_rand_0_1();\n  a3->m_unkPoint1.x = a3->m_unkPoint1.x * v8;\n  v12 = a3->m_unkPoint1.y * (float)(m_modY + (float)(m_modYVariance * v11));\n  m_startSpeed = a2->m_startSpeed;\n  m_startSpeedVariance = a2->m_startSpeedVariance;\n  a3->m_unkPoint1.y = v12;\n  v15 = m_startSpeed + (float)(m_startSpeedVariance * GameToolbox::fast_rand_0_1());\n  if ( v15 != 0.0 )\n  {\n    m_startDirection = a2->m_startDirection;\n    m_startDirectionVariance = a2->m_startDirectionVariance;\n    v18 = GameToolbox::fast_rand_0_1();\n    GJBaseGameLayer::getFollowSpeedVal(\n      &v19,\n      a1,\n      a3->m_gameObject,\n      a2->m_startSpeedReference,\n      a2->m_startDirectionReference,\n      m_startDirection + (float)(m_startDirectionVariance * v18),\n      v15);\n    if ( !a2->m_xOnly )\n      a3->m_unkPoint1.y = a3->m_unkPoint1.y + v19.y;\n    if ( !a2->m_yOnly )\n      a3->m_unkPoint1.x = a3->m_unkPoint1.x + v19.x;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::modifyObjectPhysics from 0x475340 to 0x475446 (262 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::modifyGroupPhysics @ 0x47f1da\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            {R4-R7,LR}                                             ; +0x0, 0x475340\nMOV             R4, R1                                                 ; +0x2, 0x475342\nLDR             R6, =(__stack_chk_guard_ptr - 0x475352)                ; +0x4, 0x475344\nMOV             R5, R2                                                 ; +0x6, 0x475346\nVPUSH           {D8-D9}                                                ; +0x8, 0x475348\nMOV             R7, R0                                                 ; +0xc, 0x47534c\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x47534e\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x475350\nLDR             R3, [R6]                                               ; +0x12, 0x475352\nSUB             SP, SP, #0x24                                          ; +0x14, 0x475354\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x16, 0x475356\nADD.W           R3, R1, #0x758                                         ; +0x18, 0x475358\nVLDR            S17, [R3]                                              ; +0x1c, 0x47535c\nADDW            R3, R1, #0x75C                                         ; +0x20, 0x475360\nVLDR            S16, [R3]                                              ; +0x24, 0x475364\nBL              _ZN11GameToolbox13fast_rand_0_1Ev; GameToolbox::fast_rand_0_1(void) ; +0x28, 0x475368\nADD.W           R3, R4, #0x760                                         ; +0x2c, 0x47536c\nVMOV            S15, R0; this                                          ; +0x30, 0x475370\nVMLA.F32        S17, S16, S15                                          ; +0x34, 0x475374\nVLDR            S16, [R3]                                              ; +0x38, 0x475378\nADDW            R3, R4, #0x764                                         ; +0x3c, 0x47537c\nVLDR            S18, [R3]                                              ; +0x40, 0x475380\nBL              _ZN11GameToolbox13fast_rand_0_1Ev; GameToolbox::fast_rand_0_1(void) ; +0x44, 0x475384\nADDW            R3, R4, #0x66C                                         ; +0x48, 0x475388\nVLDR            S15, [R5,#4]                                           ; +0x4c, 0x47538c\nVMUL.F32        S15, S15, S17                                          ; +0x50, 0x475390\nVSTR            S15, [R5,#4]                                           ; +0x54, 0x475394\nVMOV            S15, R0; this                                          ; +0x58, 0x475398\nVMLA.F32        S16, S18, S15                                          ; +0x5c, 0x47539c\nVLDR            S15, [R5,#8]                                           ; +0x60, 0x4753a0\nVMUL.F32        S15, S15, S16                                          ; +0x64, 0x4753a4\nVLDR            S16, [R3]                                              ; +0x68, 0x4753a8\nADD.W           R3, R4, #0x670                                         ; +0x6c, 0x4753ac\nVLDR            S17, [R3]                                              ; +0x70, 0x4753b0\nVSTR            S15, [R5,#8]                                           ; +0x74, 0x4753b4\nBL              _ZN11GameToolbox13fast_rand_0_1Ev; GameToolbox::fast_rand_0_1(void) ; +0x78, 0x4753b8\nVMOV            S15, R0; this                                          ; +0x7c, 0x4753bc\nVMLA.F32        S16, S17, S15                                          ; +0x80, 0x4753c0\nVCMP.F32        S16, #0.0                                              ; +0x84, 0x4753c4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x88, 0x4753c8\nBEQ             loc_475432                                             ; +0x8c, 0x4753cc\nADD.W           R3, R4, #0x678                                         ; +0x8e, 0x4753ce\nVLDR            S17, [R3]                                              ; +0x92, 0x4753d2\nADDW            R3, R4, #0x67C                                         ; +0x96, 0x4753d6\nVLDR            S18, [R3]                                              ; +0x9a, 0x4753da\nBL              _ZN11GameToolbox13fast_rand_0_1Ev; GameToolbox::fast_rand_0_1(void) ; +0x9e, 0x4753de\nLDR.W           R3, [R4,#0x680]                                        ; +0xa2, 0x4753e2\nMOV             R1, R7; GameObject *                                   ; +0xa6, 0x4753e6\nLDR             R2, [R5]; int                                          ; +0xa8, 0x4753e8\nVSTR            S16, [SP,#0x24+var_1C]                                 ; +0xaa, 0x4753ea\nSTR             R3, [SP,#0x24+var_24]; float                           ; +0xae, 0x4753ee\nLDR.W           R3, [R4,#0x674]; int                                   ; +0xb0, 0x4753f0\nVMOV            S15, R0                                                ; +0xb4, 0x4753f4\nADD             R0, SP, #0x24+var_10; this                             ; +0xb8, 0x4753f8\nVMLA.F32        S17, S18, S15                                          ; +0xba, 0x4753fa\nVSTR            S17, [SP,#0x24+var_20]                                 ; +0xbe, 0x4753fe\nBL              _ZN15GJBaseGameLayer17getFollowSpeedValEP10GameObjectiiff; GJBaseGameLayer::getFollowSpeedVal(GameObject *,int,int,float,float) ; +0xc2, 0x475402\nLDRB.W          R3, [R4,#0x68C]                                        ; +0xc6, 0x475406\nCBNZ            R3, loc_47541C                                         ; +0xca, 0x47540a\nVLDR            S15, [R5,#8]                                           ; +0xcc, 0x47540c\nVLDR            S14, [SP,#0x24+var_C]                                  ; +0xd0, 0x475410\nVADD.F32        S15, S15, S14                                          ; +0xd4, 0x475414\nVSTR            S15, [R5,#8]                                           ; +0xd8, 0x475418\nLDRB.W          R3, [R4,#0x68D]                                        ; +0xdc, 0x47541c\nCBNZ            R3, loc_475432                                         ; +0xe0, 0x475420\nVLDR            S15, [R5,#4]                                           ; +0xe2, 0x475422\nVLDR            S14, [SP,#0x24+var_10]                                 ; +0xe6, 0x475426\nVADD.F32        S15, S15, S14                                          ; +0xea, 0x47542a\nVSTR            S15, [R5,#4]                                           ; +0xee, 0x47542e\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xf2, 0x475432\nLDR             R3, [R6]                                               ; +0xf4, 0x475434\nCMP             R2, R3                                                 ; +0xf6, 0x475436\nBEQ             loc_47543E                                             ; +0xf8, 0x475438\nBLX             __stack_chk_fail                                       ; +0xfa, 0x47543a\nADD             SP, SP, #0x24 ; '$'                                    ; +0xfe, 0x47543e\nVPOP            {D8-D9}                                                ; +0x100, 0x475440\nPOP             {R4-R7,PC}                                             ; +0x104, 0x475444", "xrefs": ["GJBaseGameLayer::modifyGroupPhysics @ 0x47f1da"], "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"}