{"type": "func", "start": 727668, "end": 727784, "name": "sub_B1A74", "pseudocode": "// \n// sub_B1A74 from 0xb1a74 to 0xb1ae8 (116 bytes)\n// \n// 1 xrefs:\n// > sub_B1C1C @ 0xb1c20\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\n__int64 __fastcall sub_B1A74(__int64 a1, int a2, int a3)\n{\n  if ( a2 == 1 )\n  {\n    *(_DWORD *)(a1 + 34008) = a3;\n    return 0;\n  }\n  else if ( !a2\n         && (a3 == 128\n          || a3 == 256\n          || a3 == 512\n          || a3 == 1024\n          || a3 == 2048\n          || a3 == 4096\n          || a3 == 0x4000\n          || a3 == 0x2000) )\n  {\n    *(_DWORD *)(a1 + 34004) = a3;\n    return 0;\n  }\n  else\n  {\n    return 31;\n  }\n}", "assembly": "; \n; sub_B1A74 from 0xb1a74 to 0xb1ae8 (116 bytes)\n; \n; 1 xrefs:\n; > sub_B1C1C @ 0xb1c20\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\nMOV             W8, #0x84D4                                            ; +0x0, 0xb1a74\nCMP             W1, #1                                                 ; +0x4, 0xb1a78\nADD             X8, X0, X8                                             ; +0x8, 0xb1a7c\nB.EQ            loc_B1ADC                                              ; +0xc, 0xb1a80\nCBNZ            W1, loc_B1AD4                                          ; +0x10, 0xb1a84\nCMP             W2, #0x80                                              ; +0x14, 0xb1a88\nB.EQ            loc_B1AC8                                              ; +0x18, 0xb1a8c\nCMP             W2, #0x100                                             ; +0x1c, 0xb1a90\nB.EQ            loc_B1AC8                                              ; +0x20, 0xb1a94\nCMP             W2, #0x200                                             ; +0x24, 0xb1a98\nB.EQ            loc_B1AC8                                              ; +0x28, 0xb1a9c\nCMP             W2, #0x400                                             ; +0x2c, 0xb1aa0\nB.EQ            loc_B1AC8                                              ; +0x30, 0xb1aa4\nCMP             W2, #0x800                                             ; +0x34, 0xb1aa8\nB.EQ            loc_B1AC8                                              ; +0x38, 0xb1aac\nCMP             W2, #1,LSL#12                                          ; +0x3c, 0xb1ab0\nB.EQ            loc_B1AC8                                              ; +0x40, 0xb1ab4\nCMP             W2, #4,LSL#12                                          ; +0x44, 0xb1ab8\nB.EQ            loc_B1AC8                                              ; +0x48, 0xb1abc\nCMP             W2, #2,LSL#12                                          ; +0x4c, 0xb1ac0\nB.NE            loc_B1AD4                                              ; +0x50, 0xb1ac4\nMOV             W0, WZR                                                ; +0x54, 0xb1ac8\nSTR             W2, [X8]                                               ; +0x58, 0xb1acc\nRET                                                                    ; +0x5c, 0xb1ad0\nMOV             W0, #0x1F                                              ; +0x60, 0xb1ad4\nRET                                                                    ; +0x64, 0xb1ad8\nMOV             W0, WZR                                                ; +0x68, 0xb1adc\nSTR             W2, [X8,#4]                                            ; +0x6c, 0xb1ae0\nRET                                                                    ; +0x70, 0xb1ae4", "xrefs": ["sub_B1C1C @ 0xb1c20"], "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"}