{"type": "func", "start": 8466896, "end": 8466964, "name": "CRYPTO_ccm128_tag", "pseudocode": "// \n// CRYPTO_ccm128_tag from 0x8131d0 to 0x813214 (68 bytes)\n// \n// 5 xrefs:\n// > sub_7FD12C @ 0x7fd24c\n// > sub_7FD39C @ 0x7fd5b0\n// > sub_7FD39C @ 0x7fd678\n// > sub_7FD39C @ 0x7fd700\n// > <???> @ 0x62c1c\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\nunsigned int __fastcall CRYPTO_ccm128_tag(_BYTE *a1, void *a2, unsigned int a3)\n{\n  unsigned int v3; // r4\n\n  v3 = 2 * ((*a1 >> 3) & 7) + 2;\n  if ( v3 > a3 )\n    return 0;\n  memcpy(a2, a1 + 16, 2 * ((*a1 >> 3) & 7) + 2);\n  return v3;\n}", "assembly": "; \n; CRYPTO_ccm128_tag from 0x8131d0 to 0x813214 (68 bytes)\n; \n; 5 xrefs:\n; > sub_7FD12C @ 0x7fd24c\n; > sub_7FD39C @ 0x7fd5b0\n; > sub_7FD39C @ 0x7fd678\n; > sub_7FD39C @ 0x7fd700\n; > <???> @ 0x62c1c\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,LR}                                                ; +0x0, 0x8131d0\nLDRB            R4, [R0]                                               ; +0x4, 0x8131d4\nMOV             R3, #2                                                 ; +0x8, 0x8131d8\nMOV             R4, R4,LSR#3                                           ; +0xc, 0x8131dc\nAND             R4, R4, #7                                             ; +0x10, 0x8131e0\nSMLABB          R4, R3, R4, R3                                         ; +0x14, 0x8131e4\nCMP             R4, R2                                                 ; +0x18, 0x8131e8\nBLS             loc_8131F8                                             ; +0x1c, 0x8131ec\nMOV             R0, #0                                                 ; +0x20, 0x8131f0\nPOP             {R4,PC}                                                ; +0x24, 0x8131f4\nMOV             R3, R0                                                 ; +0x28, 0x8131f8\nMOV             R2, R4; size_t                                         ; +0x2c, 0x8131fc\nMOV             R0, R1; void *                                         ; +0x30, 0x813200\nADD             R1, R3, #0x10; void *                                  ; +0x34, 0x813204\nBL              memcpy                                                 ; +0x38, 0x813208\nMOV             R0, R4                                                 ; +0x3c, 0x81320c\nPOP             {R4,PC}                                                ; +0x40, 0x813210", "xrefs": ["sub_7FD12C @ 0x7fd24c", "sub_7FD39C @ 0x7fd5b0", "sub_7FD39C @ 0x7fd678", "sub_7FD39C @ 0x7fd700", "<???> @ 0x62c1c"], "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"}