{"type": "func", "start": 489988, "end": 490044, "name": "sub_77A04", "pseudocode": "// \n// sub_77A04 from 0x77a04 to 0x77a3c (56 bytes)\n// \n// 6 xrefs:\n// > sub_77C5C @ 0x77db0\n// > sub_77C5C @ 0x77dda\n// > sub_77C5C @ 0x77e04\n// > sub_77C5C @ 0x77e90\n// > sub_77C5C @ 0x77eb8\n// > sub_77C5C @ 0x77ee0\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_77A04(int a1, int a2, int a3)\n{\n  int v3; // r4\n  int i; // r5\n  int v5; // r6\n\n  v3 = 0;\n  for ( i = 0; ; ++i )\n  {\n    if ( i >= *(_DWORD *)(a1 + 556) )\n      return 31;\n    v5 = *(_DWORD *)(a1 + 560);\n    if ( *(unsigned __int16 *)(v5 + v3) == a2 && *(unsigned __int16 *)(v5 + v3 + 4) == a3 )\n      break;\n    v3 += 12;\n  }\n  return 0;\n}", "assembly": "; \n; sub_77A04 from 0x77a04 to 0x77a3c (56 bytes)\n; \n; 6 xrefs:\n; > sub_77C5C @ 0x77db0\n; > sub_77C5C @ 0x77dda\n; > sub_77C5C @ 0x77e04\n; > sub_77C5C @ 0x77e90\n; > sub_77C5C @ 0x77eb8\n; > sub_77C5C @ 0x77ee0\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-R7,LR}                                             ; +0x0, 0x77a04\nADD             R7, SP, #0xC                                           ; +0x2, 0x77a06\nPUSH.W          {R11}                                                  ; +0x4, 0x77a08\nLDR.W           R12, [R0,#0x22C]                                       ; +0x8, 0x77a0c\nMOVS            R4, #0                                                 ; +0xc, 0x77a10\nMOVS            R5, #0                                                 ; +0xe, 0x77a12\nCMP             R5, R12                                                ; +0x10, 0x77a14\nBGE             loc_77A30                                              ; +0x12, 0x77a16\nLDR.W           R6, [R0,#0x230]                                        ; +0x14, 0x77a18\nLDRH            R3, [R6,R4]                                            ; +0x18, 0x77a1c\nCMP             R3, R1                                                 ; +0x1a, 0x77a1e\nBNE             loc_77A2A                                              ; +0x1c, 0x77a20\nADDS            R3, R6, R4                                             ; +0x1e, 0x77a22\nLDRH            R3, [R3,#4]                                            ; +0x20, 0x77a24\nCMP             R3, R2                                                 ; +0x22, 0x77a26\nBEQ             loc_77A34                                              ; +0x24, 0x77a28\nADDS            R4, #0xC                                               ; +0x26, 0x77a2a\nADDS            R5, #1                                                 ; +0x28, 0x77a2c\nB               loc_77A14                                              ; +0x2a, 0x77a2e\nMOVS            R0, #0x1F                                              ; +0x2c, 0x77a30\nB               loc_77A36                                              ; +0x2e, 0x77a32\nMOVS            R0, #0                                                 ; +0x30, 0x77a34\nPOP.W           {R11}                                                  ; +0x32, 0x77a36\nPOP             {R4-R7,PC}                                             ; +0x36, 0x77a3a", "xrefs": ["sub_77C5C @ 0x77db0", "sub_77C5C @ 0x77dda", "sub_77C5C @ 0x77e04", "sub_77C5C @ 0x77e90", "sub_77C5C @ 0x77eb8", "sub_77C5C @ 0x77ee0"], "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"}