{"type": "func", "start": 4297077676, "end": 4297077808, "name": "GJBaseGameLayer::shakeCamera", "pseudocode": "// \n// GJBaseGameLayer::shakeCamera from 0x1002033ac to 0x100203430 (132 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::showCompleteEffect @ 0x10011a598\n// > PlayLayer::destroyPlayer @ 0x10011ea7c\n// > EffectGameObject::triggerObject @ 0x10038613c\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::shakeCamera(GJBaseGameLayer *a1, float a2, float a3, float a4)\n{\n  int *p_m_activeGradients; // x20\n  float v8; // s10\n\n  if ( a2 > 0.0 && a3 > 0.0 )\n  {\n    p_m_activeGradients = &a1->m_activeGradients;\n    if ( !a1->m_skipCameraShake )\n    {\n      if ( a3 <= 100.0 )\n        v8 = a3;\n      else\n        v8 = 100.0;\n      a1->m_gameState.m_unkUint64_1 = 0.0;\n      sub_1000229D0(&a1->m_gameState.m_unkPoint34, (double *)&qword_10086C9A0);\n      a1->m_gameState.m_cameraShakeFactor = a2;\n      a1->m_gameState.m_unkUint16 = a4;\n      *((_BYTE *)p_m_activeGradients + 216) = 0;\n      a1->m_gameState.m_unkUint15 = v8;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::shakeCamera from 0x1002033ac to 0x100203430 (132 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::showCompleteEffect @ 0x10011a598\n; > PlayLayer::destroyPlayer @ 0x10011ea7c\n; > EffectGameObject::triggerObject @ 0x10038613c\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\nFCMP            S0, #0.0                                               ; +0x0, 0x1002033ac\nB.LS            locret_10020342C                                       ; +0x4, 0x1002033b0\nFCMP            S1, #0.0                                               ; +0x8, 0x1002033b4\nB.LS            locret_10020342C                                       ; +0xc, 0x1002033b8\nSTP             D11, D10, [SP,#var_40]!                                ; +0x10, 0x1002033bc\nSTP             D9, D8, [SP,#0x40+var_30]                              ; +0x14, 0x1002033c0\nSTP             X20, X19, [SP,#0x40+var_20]                            ; +0x18, 0x1002033c4\nSTP             X29, X30, [SP,#0x40+var_10]                            ; +0x1c, 0x1002033c8\nADD             X29, SP, #0x40+var_10                                  ; +0x20, 0x1002033cc\nMOV             X19, X0                                                ; +0x24, 0x1002033d0\nADD             X20, X0, #3,LSL#12                                     ; +0x28, 0x1002033d4\nLDRB            W8, [X20,#0xD9]                                        ; +0x2c, 0x1002033d8\nTBNZ            W8, #0, loc_10020341C                                  ; +0x30, 0x1002033dc\nFMOV            S8, S2                                                 ; +0x34, 0x1002033e0\nFMOV            S9, S0                                                 ; +0x38, 0x1002033e4\nMOV             W8, #0x42C80000                                        ; +0x3c, 0x1002033e8\nFMOV            S0, W8                                                 ; +0x40, 0x1002033ec\nFCMP            S1, S0                                                 ; +0x44, 0x1002033f0\nFCSEL           S10, S0, S1, GT                                        ; +0x48, 0x1002033f4\nSTR             XZR, [X19,#0x4D8]                                      ; +0x4c, 0x1002033f8\nADRL            X1, qword_10086C9A0                                    ; +0x50, 0x1002033fc\nADD             X0, X19, #0x4E0                                        ; +0x58, 0x100203404\nBL              sub_1000229D0                                          ; +0x5c, 0x100203408\nSTR             S9, [X19,#0x4C8]                                       ; +0x60, 0x10020340c\nSTR             S8, [X19,#0x4D0]                                       ; +0x64, 0x100203410\nSTRB            WZR, [X20,#0xD8]                                       ; +0x68, 0x100203414\nSTR             S10, [X19,#0x4CC]                                      ; +0x6c, 0x100203418\nLDP             X29, X30, [SP,#0x40+var_10]                            ; +0x70, 0x10020341c\nLDP             X20, X19, [SP,#0x40+var_20]                            ; +0x74, 0x100203420\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0x78, 0x100203424\nLDP             D11, D10, [SP+0x40+var_40],#0x40                       ; +0x7c, 0x100203428\nRET                                                                    ; +0x80, 0x10020342c", "xrefs": ["PlayLayer::showCompleteEffect @ 0x10011a598", "PlayLayer::destroyPlayer @ 0x10011ea7c", "EffectGameObject::triggerObject @ 0x10038613c"], "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"}