{"type": "func", "start": 742904, "end": 743032, "name": "sub_B55F8", "pseudocode": "// \n// sub_B55F8 from 0xb55f8 to 0xb5678 (128 bytes)\n// \n// 1 xrefs:\n// > sub_B5754 @ 0xb5758\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:38 +0000\n// \n\n__int64 __fastcall sub_B55F8(__int64 a1, int a2, void *src, int a4)\n{\n  __int64 result; // x0\n\n  result = 31;\n  if ( a2 == 2 )\n  {\n    if ( src )\n      return 31;\n    else\n      return 0;\n  }\n  else if ( a2 == 1 )\n  {\n    if ( src )\n    {\n      if ( a4 == 128 )\n      {\n        memcpy((void *)(a1 + 3564), src, 0x80u);\n        *(_WORD *)(a1 + 3560) = 257;\n        *(_BYTE *)(a1 + 3562) = 1;\n        return 0;\n      }\n      else\n      {\n        return 31;\n      }\n    }\n    else\n    {\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_B55F8 from 0xb55f8 to 0xb5678 (128 bytes)\n; \n; 1 xrefs:\n; > sub_B5754 @ 0xb5758\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:38 +0000\n; \nSTR             X19, [SP,#-0x10+var_10]!                               ; +0x0, 0xb55f8\nMOV             X8, X2                                                 ; +0x4, 0xb55fc\nMOV             X19, X0                                                ; +0x8, 0xb5600\nCMP             W1, #2                                                 ; +0xc, 0xb5604\nMOV             W0, #0x1F                                              ; +0x10, 0xb5608\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x14, 0xb560c\nADD             X29, SP, #0x10                                         ; +0x18, 0xb5610\nB.EQ            loc_B5654                                              ; +0x1c, 0xb5614\nCMP             W1, #1                                                 ; +0x20, 0xb5618\nB.NE            loc_B566C                                              ; +0x24, 0xb561c\nCBZ             X8, loc_B5660                                          ; +0x28, 0xb5620\nCMP             W3, #0x80                                              ; +0x2c, 0xb5624\nB.NE            loc_B5668                                              ; +0x30, 0xb5628\nADD             X0, X19, #0xDEC; dest                                  ; +0x34, 0xb562c\nMOV             W2, #0x80; n                                           ; +0x38, 0xb5630\nMOV             X1, X8; src                                            ; +0x3c, 0xb5634\nBL              .memcpy                                                ; +0x40, 0xb5638\nMOV             W8, #0x101                                             ; +0x44, 0xb563c\nMOV             W9, #1                                                 ; +0x48, 0xb5640\nMOV             W0, WZR                                                ; +0x4c, 0xb5644\nSTRH            W8, [X19,#0xDE8]                                       ; +0x50, 0xb5648\nSTRB            W9, [X19,#0xDEA]                                       ; +0x54, 0xb564c\nB               loc_B566C                                              ; +0x58, 0xb5650\nCMP             X8, #0                                                 ; +0x5c, 0xb5654\nCSEL            W0, WZR, W0, EQ                                        ; +0x60, 0xb5658\nB               loc_B566C                                              ; +0x64, 0xb565c\nMOV             W0, WZR                                                ; +0x68, 0xb5660\nB               loc_B566C                                              ; +0x6c, 0xb5664\nMOV             W0, #0x1F                                              ; +0x70, 0xb5668\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0xb566c\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x78, 0xb5670\nRET                                                                    ; +0x7c, 0xb5674", "xrefs": ["sub_B5754 @ 0xb5758"], "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"}