{"type": "func", "start": 8309176, "end": 8309212, "name": "GJMGLayer::defaultYOffsetForBG2", "pseudocode": "// \n// GJMGLayer::defaultYOffsetForBG2 from 0x7ec9b8 to 0x7ec9dc (36 bytes)\n// \n// 2 xrefs:\n// > GJMGLayer::init @ 0x7ecdb4\n// > <???> @ 0x384d8\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\nfloat GJMGLayer::defaultYOffsetForBG2(int a1)\n{\n  unsigned int v1; // w0\n  float result; // s0\n\n  v1 = a1 - 1;\n  result = 0.0;\n  if ( v1 <= 2 )\n    return flt_ED4720[v1];\n  return result;\n}", "assembly": "; \n; GJMGLayer::defaultYOffsetForBG2 from 0x7ec9b8 to 0x7ec9dc (36 bytes)\n; \n; 2 xrefs:\n; > GJMGLayer::init @ 0x7ecdb4\n; > <???> @ 0x384d8\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             W0, W0, #1                                             ; +0x0, 0x7ec9b8\nCMP             W0, #2                                                 ; +0x4, 0x7ec9bc\nFMOV            S0, WZR                                                ; +0x8, 0x7ec9c0\nB.HI            locret_7EC9D8                                          ; +0xc, 0x7ec9c4\nADRL            X1, unk_ED4710                                         ; +0x10, 0x7ec9c8\nADD             X1, X1, #(flt_ED4720 - 0xED4710)                       ; +0x18, 0x7ec9d0\nLDR             S0, [X1,W0,UXTW#2]                                     ; +0x1c, 0x7ec9d4\nRET                                                                    ; +0x20, 0x7ec9d8", "xrefs": ["GJMGLayer::init @ 0x7ecdb4", "<???> @ 0x384d8"], "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"}