{"type": "func", "start": 17420456, "end": 17420560, "name": "CMS_RecipientInfo_kari_get0_alg", "pseudocode": "// \n// CMS_RecipientInfo_kari_get0_alg from 0x109d0a8 to 0x109d110 (104 bytes)\n// \n// 5 xrefs:\n// > sub_1004D54 @ 0x1004ef4\n// > sub_1004D54 @ 0x100505c\n// > sub_1009820 @ 0x1009b34\n// > sub_1009820 @ 0x1009ce8\n// > <???> @ 0x61b70\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 13:17:29 +0000\n// \n\n__int64 __fastcall CMS_RecipientInfo_kari_get0_alg(unsigned int *a1, _QWORD *a2, _QWORD *a3)\n{\n  __int64 result; // x0\n\n  result = *a1;\n  if ( (_DWORD)result == 1 )\n  {\n    if ( a2 )\n      *a2 = *(_QWORD *)(*((_QWORD *)a1 + 1) + 24LL);\n    if ( a3 )\n      *a3 = *(_QWORD *)(*((_QWORD *)a1 + 1) + 16LL);\n  }\n  else\n  {\n    ERR_put_error(46, 175, 181, (__int64)\"crypto/cms/cms_kari.c\", 28);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; CMS_RecipientInfo_kari_get0_alg from 0x109d0a8 to 0x109d110 (104 bytes)\n; \n; 5 xrefs:\n; > sub_1004D54 @ 0x1004ef4\n; > sub_1004D54 @ 0x100505c\n; > sub_1009820 @ 0x1009b34\n; > sub_1009820 @ 0x1009ce8\n; > <???> @ 0x61b70\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 13:17:29 +0000\n; \nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0x109d0a8\nMOV             X3, X0                                                 ; +0x4, 0x109d0ac\nMOV             X29, SP                                                ; +0x8, 0x109d0b0\nLDR             W0, [X0]                                               ; +0xc, 0x109d0b4\nCMP             W0, #1                                                 ; +0x10, 0x109d0b8\nB.NE            loc_109D0E8                                            ; +0x14, 0x109d0bc\nCBZ             X1, loc_109D0D0                                        ; +0x18, 0x109d0c0\nLDR             X4, [X3,#8]                                            ; +0x1c, 0x109d0c4\nLDR             X4, [X4,#0x18]                                         ; +0x20, 0x109d0c8\nSTR             X4, [X1]                                               ; +0x24, 0x109d0cc\nCBZ             X2, loc_109D0E0                                        ; +0x28, 0x109d0d0\nLDR             X1, [X3,#8]                                            ; +0x2c, 0x109d0d4\nLDR             X1, [X1,#0x10]                                         ; +0x30, 0x109d0d8\nSTR             X1, [X2]                                               ; +0x34, 0x109d0dc\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x38, 0x109d0e0\nRET                                                                    ; +0x3c, 0x109d0e4\nADRP            X3, #aCryptoCmsCmsKa@PAGE; \"crypto/cms/cms_kari.c\"     ; +0x40, 0x109d0e8\nMOV             W0, #0x2E ; '.'                                        ; +0x44, 0x109d0ec\nMOV             W1, #0xAF                                              ; +0x48, 0x109d0f0\nMOV             W2, #0xB5                                              ; +0x4c, 0x109d0f4\nADD             X3, X3, #aCryptoCmsCmsKa@PAGEOFF; \"crypto/cms/cms_kari.c\" ; +0x50, 0x109d0f8\nMOV             W4, #0x1C                                              ; +0x54, 0x109d0fc\nBL              ERR_put_error                                          ; +0x58, 0x109d100\nMOV             W0, #0                                                 ; +0x5c, 0x109d104\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x60, 0x109d108\nRET                                                                    ; +0x64, 0x109d10c", "xrefs": ["sub_1004D54 @ 0x1004ef4", "sub_1004D54 @ 0x100505c", "sub_1009820 @ 0x1009b34", "sub_1009820 @ 0x1009ce8", "<???> @ 0x61b70"], "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"}