{"type": "func", "start": 10649040, "end": 10649108, "name": "CRYPTO_ccm128_tag", "pseudocode": "// \n// CRYPTO_ccm128_tag from 0xa27dd0 to 0xa27e14 (68 bytes)\n// \n// 5 xrefs:\n// > sub_A11D2C @ 0xa11e4c\n// > sub_A11F9C @ 0xa121b0\n// > sub_A11F9C @ 0xa12278\n// > sub_A11F9C @ 0xa12300\n// > <???> @ 0x7c69c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:07:59 +0000\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 0xa27dd0 to 0xa27e14 (68 bytes)\n; \n; 5 xrefs:\n; > sub_A11D2C @ 0xa11e4c\n; > sub_A11F9C @ 0xa121b0\n; > sub_A11F9C @ 0xa12278\n; > sub_A11F9C @ 0xa12300\n; > <???> @ 0x7c69c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:07:59 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0xa27dd0\nLDRB            R4, [R0]                                               ; +0x4, 0xa27dd4\nMOV             R3, #2                                                 ; +0x8, 0xa27dd8\nMOV             R4, R4,LSR#3                                           ; +0xc, 0xa27ddc\nAND             R4, R4, #7                                             ; +0x10, 0xa27de0\nSMLABB          R4, R3, R4, R3                                         ; +0x14, 0xa27de4\nCMP             R4, R2                                                 ; +0x18, 0xa27de8\nBLS             loc_A27DF8                                             ; +0x1c, 0xa27dec\nMOV             R0, #0                                                 ; +0x20, 0xa27df0\nPOP             {R4,PC}                                                ; +0x24, 0xa27df4\nMOV             R3, R0                                                 ; +0x28, 0xa27df8\nMOV             R2, R4; size_t                                         ; +0x2c, 0xa27dfc\nMOV             R0, R1; void *                                         ; +0x30, 0xa27e00\nADD             R1, R3, #0x10; void *                                  ; +0x34, 0xa27e04\nBL              memcpy                                                 ; +0x38, 0xa27e08\nMOV             R0, R4                                                 ; +0x3c, 0xa27e0c\nPOP             {R4,PC}                                                ; +0x40, 0xa27e10", "xrefs": ["sub_A11D2C @ 0xa11e4c", "sub_A11F9C @ 0xa121b0", "sub_A11F9C @ 0xa12278", "sub_A11F9C @ 0xa12300", "<???> @ 0x7c69c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}