	.file	"extr_ubsec.c_ubsec_setup_mackey.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ubsec_setup_mackey, @function
ubsec_setup_mackey:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	ecx, ecx
	jle	.L2
	mov	rax, rdx
	lea	edx, -1[rcx]
	lea	rcx, 4[rbx+rdx*4]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR HMAC_IPAD_VAL[rip]
	xor	DWORD PTR [rax], edx
	add	rax, 4
	cmp	rax, rcx
	jne	.L3
.L2:
	cmp	DWORD PTR CRYPTO_MD5_HMAC[rip], r13d
	je	.L20
	lea	r14, 4[rsp]
	mov	rdi, r14
	call	SHA1Init@PLT
	mov	edx, ebp
	mov	rsi, rbx
	mov	rdi, r14
	call	SHA1Update@PLT
	mov	edx, DWORD PTR SHA1_BLOCK_LEN[rip]
	mov	rsi, QWORD PTR hmac_ipad_buffer[rip]
	mov	rdi, r14
	sub	edx, ebp
	call	SHA1Update@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	edi, DWORD PTR 4[rsp]
	mov	edx, 4
	call	bcopy@PLT
.L7:
	test	ebp, ebp
	jle	.L6
	lea	edx, -1[rbp]
	mov	rax, rbx
	lea	rcx, 4[rbx+rdx*4]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR HMAC_IPAD_VAL[rip]
	xor	edx, DWORD PTR HMAC_OPAD_VAL[rip]
	xor	DWORD PTR [rax], edx
	add	rax, 4
	cmp	rcx, rax
	jne	.L8
.L6:
	cmp	DWORD PTR CRYPTO_MD5_HMAC[rip], r13d
	je	.L21
	lea	r13, 4[rsp]
	mov	rdi, r13
	call	SHA1Init@PLT
	mov	edx, ebp
	mov	rsi, rbx
	mov	rdi, r13
	call	SHA1Update@PLT
	mov	edx, DWORD PTR SHA1_BLOCK_LEN[rip]
	mov	rsi, QWORD PTR hmac_opad_buffer[rip]
	mov	rdi, r13
	sub	edx, ebp
	call	SHA1Update@PLT
	mov	esi, DWORD PTR [r12]
	mov	edi, DWORD PTR 4[rsp]
	mov	edx, 4
	call	bcopy@PLT
.L12:
	test	ebp, ebp
	jle	.L1
	lea	eax, -1[rbp]
	mov	rdx, rbx
	lea	rcx, 4[rbx+rax*4]
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR HMAC_OPAD_VAL[rip]
	xor	DWORD PTR [rdx], eax
	add	rdx, 4
	cmp	rdx, rcx
	jne	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L20:
	.cfi_restore_state
	mov	r14, rsp
	mov	rdi, r14
	call	MD5Init@PLT
	mov	edx, ebp
	mov	rsi, rbx
	mov	rdi, r14
	call	MD5Update@PLT
	mov	edx, DWORD PTR MD5_BLOCK_LEN[rip]
	mov	rsi, QWORD PTR hmac_ipad_buffer[rip]
	mov	rdi, r14
	sub	edx, ebp
	call	MD5Update@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	edi, DWORD PTR [rsp]
	mov	edx, 4
	call	bcopy@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r13, rsp
	mov	rdi, r13
	call	MD5Init@PLT
	mov	edx, ebp
	mov	rsi, rbx
	mov	rdi, r13
	call	MD5Update@PLT
	mov	edx, DWORD PTR MD5_BLOCK_LEN[rip]
	mov	rsi, QWORD PTR hmac_opad_buffer[rip]
	mov	rdi, r13
	sub	edx, ebp
	call	MD5Update@PLT
	mov	esi, DWORD PTR [r12]
	mov	edi, DWORD PTR [rsp]
	mov	edx, 4
	call	bcopy@PLT
	jmp	.L12
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ubsec_setup_mackey, .-ubsec_setup_mackey
	.comm	hmac_opad_buffer,8,8
	.comm	hmac_ipad_buffer,8,8
	.comm	SHA1_BLOCK_LEN,4,4
	.comm	MD5_BLOCK_LEN,4,4
	.comm	HMAC_OPAD_VAL,4,4
	.comm	HMAC_IPAD_VAL,4,4
	.comm	CRYPTO_MD5_HMAC,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_ubsec.c_ubsec_setup_mackey.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ubsec_setup_mackey, %function
ubsec_setup_mackey:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	subs	r5, r3, #0
	ldr	r3, .L23
	sub	sp, sp, #20
	mov	r6, r0
	mov	r7, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ble	.L2
	sub	r2, r2, #4
	ldr	r1, .L23+4
	add	ip, r2, r5, lsl #2
.L3:
	ldr	r3, [r2, #4]!
	ldr	r0, [r1]
	cmp	r2, ip
	eor	r3, r3, r0
	str	r3, [r2]
	bne	.L3
.L2:
	ldr	r8, .L23+8
	ldr	r3, [r8]
	cmp	r3, r7
	beq	.L20
	add	r0, sp, #8
	bl	SHA1Init
	mov	r2, r5
	mov	r1, r4
	add	r0, sp, #8
	bl	SHA1Update
	ldr	r2, .L23+12
	ldr	r3, .L23+16
	ldr	r2, [r2]
	ldr	r1, [r3]
	sub	r2, r2, r5
	add	r0, sp, #8
	bl	SHA1Update
	mov	r2, #4
	ldr	r1, [r6, #4]
	ldr	r0, [sp, #8]
	bl	bcopy
.L7:
	cmp	r5, #0
	ble	.L6
	sub	r2, r4, #4
	ldr	r1, .L23+4
	ldr	r0, .L23+20
	add	r9, r2, r5, lsl #2
.L8:
	ldr	lr, [r1]
	ldr	r3, [r0]
	ldr	ip, [r2, #4]!
	eor	lr, lr, r3
	eor	ip, ip, lr
	cmp	r9, r2
	str	ip, [r2]
	bne	.L8
.L6:
	ldr	r3, [r8]
	cmp	r3, r7
	beq	.L21
	add	r0, sp, #8
	bl	SHA1Init
	mov	r2, r5
	mov	r1, r4
	add	r0, sp, #8
	bl	SHA1Update
	ldr	r2, .L23+12
	ldr	r3, .L23+24
	ldr	r2, [r2]
	ldr	r1, [r3]
	sub	r2, r2, r5
	add	r0, sp, #8
	bl	SHA1Update
	mov	r2, #4
	ldr	r1, [r6]
	ldr	r0, [sp, #8]
	bl	bcopy
.L12:
	cmp	r5, #0
	ble	.L1
	sub	r2, r4, #4
	ldr	r0, .L23+20
	add	r5, r2, r5, lsl #2
.L13:
	ldr	r1, [r2, #4]!
	ldr	r3, [r0]
	cmp	r2, r5
	eor	r1, r1, r3
	str	r1, [r2]
	bne	.L13
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L20:
	add	r0, sp, #4
	bl	MD5Init
	mov	r2, r5
	mov	r1, r4
	add	r0, sp, #4
	bl	MD5Update
	ldr	r2, .L23+28
	ldr	r3, .L23+16
	ldr	r2, [r2]
	ldr	r1, [r3]
	sub	r2, r2, r5
	add	r0, sp, #4
	bl	MD5Update
	mov	r2, #4
	ldr	r1, [r6, #4]
	ldr	r0, [sp, #4]
	bl	bcopy
	b	.L7
.L21:
	add	r0, sp, #4
	bl	MD5Init
	mov	r2, r5
	mov	r1, r4
	add	r0, sp, #4
	bl	MD5Update
	ldr	r2, .L23+28
	ldr	r3, .L23+24
	ldr	r2, [r2]
	ldr	r1, [r3]
	sub	r2, r2, r5
	add	r0, sp, #4
	bl	MD5Update
	mov	r2, #4
	ldr	r1, [r6]
	ldr	r0, [sp, #4]
	bl	bcopy
	b	.L12
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	HMAC_IPAD_VAL
	.word	CRYPTO_MD5_HMAC
	.word	SHA1_BLOCK_LEN
	.word	hmac_ipad_buffer
	.word	HMAC_OPAD_VAL
	.word	hmac_opad_buffer
	.word	MD5_BLOCK_LEN
	.size	ubsec_setup_mackey, .-ubsec_setup_mackey
	.comm	hmac_opad_buffer,4,4
	.comm	hmac_ipad_buffer,4,4
	.comm	SHA1_BLOCK_LEN,4,4
	.comm	MD5_BLOCK_LEN,4,4
	.comm	HMAC_OPAD_VAL,4,4
	.comm	HMAC_IPAD_VAL,4,4
	.comm	CRYPTO_MD5_HMAC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
