{"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 (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 12:14:37 +0000\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 (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 12:14:37 +0000\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_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"}