{"type": "func", "start": 779092, "end": 779128, "name": "sub_BE354", "pseudocode": "// \n// sub_BE354 from 0xbe354 to 0xbe378 (36 bytes)\n// \n// 1 xrefs:\n// > sub_622EC @ 0x622fa\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\nint __fastcall sub_BE354(int a1, int a2)\n{\n  int i; // r0\n\n  for ( i = sub_BE198(a1); ; --i )\n  {\n    if ( !i )\n      return 0;\n    if ( *(unsigned __int8 *)(a1 - 1 + i) == a2 )\n      break;\n  }\n  return i + a1 - 1;\n}", "assembly": "; \n; sub_BE354 from 0xbe354 to 0xbe378 (36 bytes)\n; \n; 1 xrefs:\n; > sub_622EC @ 0x622fa\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\nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0xbe354\nADD             R7, SP, #8                                             ; +0x2, 0xbe356\nMOV             R5, R1                                                 ; +0x4, 0xbe358\nMOV             R4, R0                                                 ; +0x6, 0xbe35a\nBL              sub_BE198                                              ; +0x8, 0xbe35c\nSUBS            R1, R4, #1                                             ; +0xc, 0xbe360\nCBZ             R0, loc_BE36E                                          ; +0xe, 0xbe362\nLDRB            R2, [R1,R0]                                            ; +0x10, 0xbe364\nCMP             R2, R5                                                 ; +0x12, 0xbe366\nBEQ             loc_BE372                                              ; +0x14, 0xbe368\nSUBS            R0, #1                                                 ; +0x16, 0xbe36a\nB               loc_BE362                                              ; +0x18, 0xbe36c\nMOVS            R0, #0                                                 ; +0x1a, 0xbe36e\nPOP             {R4,R5,R7,PC}                                          ; +0x1c, 0xbe370\nADD             R0, R4                                                 ; +0x1e, 0xbe372\nSUBS            R0, #1                                                 ; +0x20, 0xbe374\nPOP             {R4,R5,R7,PC}                                          ; +0x22, 0xbe376", "xrefs": ["sub_622EC @ 0x622fa"], "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"}