{"type": "func", "start": 725552, "end": 725588, "name": "sub_B1230", "pseudocode": "// \n// sub_B1230 from 0xb1230 to 0xb1254 (36 bytes)\n// \n// 2 xrefs:\n// > sub_B10D8 @ 0xb115c\n// > sub_B13B4 @ 0xb14fc\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_B1230(__int64 a1, unsigned int a2, int a3)\n{\n  __int64 result; // x0\n\n  for ( result = 0; a3; a2 >>= 1 )\n  {\n    --a3;\n    result = a2 & 1 | (2 * (_DWORD)result);\n  }\n  return result;\n}", "assembly": "; \n; sub_B1230 from 0xb1230 to 0xb1254 (36 bytes)\n; \n; 2 xrefs:\n; > sub_B10D8 @ 0xb115c\n; > sub_B13B4 @ 0xb14fc\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             W0, WZR                                                ; +0x0, 0xb1230\nCBZ             W2, locret_B1250                                       ; +0x4, 0xb1234\nLSR             W8, W1, #1                                             ; +0x8, 0xb1238\nBFI             W1, W0, #1, #0x1F                                      ; +0xc, 0xb123c\nSUB             W2, W2, #1                                             ; +0x10, 0xb1240\nMOV             W0, W1                                                 ; +0x14, 0xb1244\nMOV             W1, W8                                                 ; +0x18, 0xb1248\nCBNZ            W2, loc_B1238                                          ; +0x1c, 0xb124c\nRET                                                                    ; +0x20, 0xb1250", "xrefs": ["sub_B10D8 @ 0xb115c", "sub_B13B4 @ 0xb14fc"], "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"}