	.file	"extr_sctp_auth.c_sctp_compute_hmac.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sctp_compute_hmac
	.type	sctp_compute_hmac, @function
sctp_compute_hmac:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, r8
	push	r14
	.cfi_offset 14, -32
	mov	r14, rdx
	push	r13
	.cfi_offset 13, -40
	mov	r13d, edi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rcx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR SCTP_AUTH_DIGEST_LEN_MAX[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L19
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L20
.L4:
	mov	QWORD PTR -80[rbp], rsp
	test	rbx, rbx
	je	.L8
	test	r14, r14
	je	.L8
	test	r12, r12
	je	.L8
	test	r15, r15
	je	.L8
	mov	edi, r13d
	call	sctp_get_hmac_digest_len@PLT
	test	rax, rax
	mov	QWORD PTR -72[rbp], rax
	jne	.L21
.L8:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L22
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edi, r13d
	call	sctp_get_hmac_block_len@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	r9, QWORD PTR -72[rbp]
	cmp	rdx, rax
	jg	.L23
.L9:
	mov	esi, DWORD PTR 8[rbx]
	mov	r9, r15
	mov	r8, r12
	mov	rcx, r14
	mov	edi, r13d
	call	sctp_hmac@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rsi, -60[rbp]
	mov	edi, r13d
	mov	QWORD PTR -88[rbp], r9
	mov	QWORD PTR -72[rbp], rsi
	call	sctp_hmac_init@PLT
	mov	rcx, QWORD PTR [rbx]
	mov	edx, DWORD PTR 8[rbx]
	mov	edi, r13d
	mov	rsi, QWORD PTR -72[rbp]
	call	sctp_hmac_update@PLT
	mov	rdx, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	edi, r13d
	call	sctp_hmac_final@PLT
	mov	r9, QWORD PTR -88[rbp]
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, QWORD PTR -80[rbp]
	mov	QWORD PTR [rbx], r9
	mov	rdx, r9
	call	memcpy@PLT
	mov	rdx, QWORD PTR [rbx]
	jmp	.L9
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sctp_compute_hmac, .-sctp_compute_hmac
	.comm	SCTP_AUTH_DIGEST_LEN_MAX,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_sctp_auth.c_sctp_compute_hmac.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sctp_compute_hmac
	.syntax unified
	.arm
	.fpu softvfp
	.type	sctp_compute_hmac, %function
sctp_compute_hmac:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	cmp	r2, #0
	cmpne	r1, #0
	ldr	ip, .L15
	mov	r7, r3
	ldr	ip, [ip]
	ldr	r3, .L15+4
	lsl	ip, ip, #2
	add	ip, ip, #7
	bic	ip, ip, #7
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r8, [fp, #4]
	sub	sp, sp, ip
	beq	.L4
	cmp	r8, #0
	cmpne	r7, #0
	bne	.L12
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r5, r1
	mov	r4, r2
	mov	r6, r0
	bl	sctp_get_hmac_digest_len
	subs	r10, r0, #0
	beq	.L4
	mov	r0, r6
	bl	sctp_get_hmac_block_len
	ldr	r2, [r5]
	cmp	r2, r0
	bgt	.L14
.L5:
	stm	sp, {r7, r8}
	mov	r3, r4
	mov	r0, r6
	ldr	r1, [r5, #4]
	bl	sctp_hmac
	b	.L1
.L14:
	sub	r1, fp, #44
	mov	r0, r6
	bl	sctp_hmac_init
	add	r9, sp, #8
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	sub	r1, fp, #44
	mov	r0, r6
	bl	sctp_hmac_update
	mov	r2, r9
	sub	r1, fp, #44
	mov	r0, r6
	bl	sctp_hmac_final
	mov	r2, r10
	mov	r1, r9
	ldr	r0, [r5, #4]
	str	r10, [r5]
	bl	memcpy
	ldr	r2, [r5]
	b	.L5
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	SCTP_AUTH_DIGEST_LEN_MAX
	.word	.LC0
	.size	sctp_compute_hmac, .-sctp_compute_hmac
	.comm	SCTP_AUTH_DIGEST_LEN_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
