	.file	"extr_ntlm.c_heim_ntlm_keyex_wrap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	heim_ntlm_keyex_wrap
	.type	heim_ntlm_keyex_wrap, @function
heim_ntlm_keyex_wrap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, QWORD PTR MD4_DIGEST_LENGTH[rip]
	mov	QWORD PTR [rsi], rdi
	call	malloc@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L10
	mov	rdi, QWORD PTR MD4_DIGEST_LENGTH[rip]
	mov	QWORD PTR [r12], rdi
	call	malloc@PLT
	mov	QWORD PTR 8[r12], rax
	test	rax, rax
	je	.L11
	xor	eax, eax
	call	EVP_CIPHER_CTX_new@PLT
	mov	r13, rax
	test	rax, rax
	je	.L12
	mov	r14, QWORD PTR 8[rbx]
	xor	eax, eax
	call	EVP_rc4@PLT
	xor	r8d, r8d
	xor	edx, edx
	mov	r9d, 1
	mov	esi, eax
	mov	rcx, r14
	mov	rdi, r13
	call	EVP_CipherInit_ex@PLT
	cmp	eax, 1
	je	.L6
	mov	rdi, r13
	call	EVP_CIPHER_CTX_free@PLT
	mov	rdi, r12
	call	heim_ntlm_free_buf@PLT
	mov	rdi, rbp
	call	heim_ntlm_free_buf@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR HNTLM_ERR_CRYPTO[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR 0[rbp], 0
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 0[rbp]
	call	RAND_bytes@PLT
	cmp	eax, 1
	je	.L7
	mov	rdi, r13
	call	EVP_CIPHER_CTX_free@PLT
	mov	rdi, r12
	call	heim_ntlm_free_buf@PLT
	mov	rdi, rbp
	call	heim_ntlm_free_buf@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR HNTLM_ERR_RAND[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 8[r12]
	mov	rdi, r13
	mov	rcx, QWORD PTR [r12]
	call	EVP_Cipher@PLT
	mov	rdi, r13
	call	EVP_CIPHER_CTX_free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, r12
	call	heim_ntlm_free_buf@PLT
	mov	rdi, rbp
	call	heim_ntlm_free_buf@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	heim_ntlm_free_buf@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	QWORD PTR [r12], 0
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	heim_ntlm_keyex_wrap, .-heim_ntlm_keyex_wrap
	.comm	MD4_DIGEST_LENGTH,8,8
	.comm	HNTLM_ERR_RAND,4,4
	.comm	HNTLM_ERR_CRYPTO,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ntlm.c_heim_ntlm_keyex_wrap.c"
	.text
	.align	2
	.global	heim_ntlm_keyex_wrap
	.syntax unified
	.arm
	.fpu softvfp
	.type	heim_ntlm_keyex_wrap, %function
heim_ntlm_keyex_wrap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L13
	mov	r7, r0
	ldr	r0, [r6]
	sub	sp, sp, #8
	str	r0, [r1]
	mov	r4, r1
	mov	r5, r2
	bl	malloc
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L10
	ldr	r0, [r6]
	str	r0, [r5]
	bl	malloc
	cmp	r0, #0
	mov	r6, r0
	str	r0, [r5, #4]
	beq	.L11
	bl	EVP_CIPHER_CTX_new
	subs	r8, r0, #0
	beq	.L12
	bl	EVP_rc4
	mov	r6, #0
	mov	r2, #1
	ldr	r3, [r7, #4]
	mov	r1, r0
	str	r2, [sp, #4]
	mov	r0, r8
	mov	r2, r6
	str	r6, [sp]
	bl	EVP_CipherInit_ex
	cmp	r0, #1
	beq	.L6
	mov	r0, r8
	bl	EVP_CIPHER_CTX_free
	mov	r0, r5
	bl	heim_ntlm_free_buf
	mov	r0, r4
	bl	heim_ntlm_free_buf
	ldr	r3, .L13+4
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L13+8
	str	r0, [r4]
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	RAND_bytes
	cmp	r0, #1
	beq	.L7
	mov	r0, r8
	bl	EVP_CIPHER_CTX_free
	mov	r0, r5
	bl	heim_ntlm_free_buf
	mov	r0, r4
	bl	heim_ntlm_free_buf
	ldr	r3, .L13+12
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r2, [r4, #4]
	ldr	r3, [r5]
	ldr	r1, [r5, #4]
	mov	r0, r8
	bl	EVP_Cipher
	mov	r0, r8
	bl	EVP_CIPHER_CTX_free
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r5
	bl	heim_ntlm_free_buf
	mov	r0, r4
	bl	heim_ntlm_free_buf
	ldr	r3, .L13+8
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r0, r4
	bl	heim_ntlm_free_buf
	ldr	r3, .L13+8
	str	r6, [r5]
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	MD4_DIGEST_LENGTH
	.word	HNTLM_ERR_CRYPTO
	.word	ENOMEM
	.word	HNTLM_ERR_RAND
	.size	heim_ntlm_keyex_wrap, .-heim_ntlm_keyex_wrap
	.comm	MD4_DIGEST_LENGTH,4,4
	.comm	HNTLM_ERR_RAND,4,4
	.comm	HNTLM_ERR_CRYPTO,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
