{"type": "func", "start": 4300076612, "end": 4300076692, "name": "GridSettingsLayer::valueDidChange", "pseudocode": "// \n// GridSettingsLayer::valueDidChange from 0x1004df644 to 0x1004df694 (80 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100992310\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:06:36 +0000\n// \n\n__int64 __fastcall GridSettingsLayer::valueDidChange(__int64 result, int a2, float a3)\n{\n  float v3; // s2\n  float v4; // s0\n\n  if ( a2 == -2 )\n  {\n    result = *(_QWORD *)(result + 1016);\n    if ( result )\n    {\n      v3 = 120.0;\n      if ( a3 <= 120.0 )\n        v3 = a3;\n      if ( a3 >= 5.0 )\n        v4 = v3;\n      else\n        v4 = 5.0;\n      return sub_100475084(result, v4);\n    }\n  }\n  else if ( a2 == -1 )\n  {\n    result = *(_QWORD *)(result + 1016);\n    if ( result )\n      return sub_1004750EC(result, a3 != 0.0);\n  }\n  return result;\n}", "assembly": "; \n; GridSettingsLayer::valueDidChange from 0x1004df644 to 0x1004df694 (80 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100992310\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:06:36 +0000\n; \nCMN             W1, #2                                                 ; +0x0, 0x1004df644\nB.EQ            loc_1004DF668                                          ; +0x4, 0x1004df648\nCMN             W1, #1                                                 ; +0x8, 0x1004df64c\nB.NE            locret_1004DF690                                       ; +0xc, 0x1004df650\nLDR             X0, [X0,#0x3F8]                                        ; +0x10, 0x1004df654\nCBZ             X0, locret_1004DF690                                   ; +0x14, 0x1004df658\nFCMP            S0, #0.0                                               ; +0x18, 0x1004df65c\nCSET            W1, NE                                                 ; +0x1c, 0x1004df660\nB               sub_1004750EC                                          ; +0x20, 0x1004df664\nLDR             X0, [X0,#0x3F8]                                        ; +0x24, 0x1004df668\nCBZ             X0, locret_1004DF690                                   ; +0x28, 0x1004df66c\nFMOV            S1, #5.0                                               ; +0x2c, 0x1004df670\nMOV             W8, #0x42F00000                                        ; +0x30, 0x1004df674\nFMOV            S2, W8                                                 ; +0x34, 0x1004df678\nFCMP            S0, S2                                                 ; +0x38, 0x1004df67c\nFCSEL           S2, S0, S2, LE                                         ; +0x3c, 0x1004df680\nFCMP            S0, S1                                                 ; +0x40, 0x1004df684\nFCSEL           S0, S1, S2, MI                                         ; +0x44, 0x1004df688\nB               sub_100475084                                          ; +0x48, 0x1004df68c\nRET                                                                    ; +0x4c, 0x1004df690", "xrefs": ["<???> @ 0x100992310"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}