	.file	"extr_sm_make_chunk.c_sctp_make_auth.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sctp_make_auth
	.type	sctp_make_auth, @function
sctp_make_auth:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	sctp_auth_asoc_get_hmac@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbx, rax
	sete	dil
	xor	r12d, r12d
	call	unlikely@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR SCTP_CID_AUTH[rip]
	xor	edx, edx
	mov	rdi, rbp
	lea	rcx, 4[rax]
	call	sctp_make_chunk@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, QWORD PTR 8[rbx]
	call	htons@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	QWORD PTR 8[rsp], rax
	call	htons@PLT
	mov	rdx, rsp
	mov	esi, 4
	mov	rdi, r12
	mov	QWORD PTR [rsp], rax
	call	sctp_addto_chunk@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR [r12]
	mov	DWORD PTR 16[r12], eax
	call	skb_put@PLT
	mov	rdx, QWORD PTR [rbx]
	xor	esi, esi
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR [rax]
	call	ntohs@PLT
	add	rax, QWORD PTR [rbx]
	mov	rbp, QWORD PTR 8[r12]
	mov	rdi, rax
	call	htons@PLT
	mov	edi, DWORD PTR [r12]
	mov	QWORD PTR 0[rbp], rax
	call	skb_tail_pointer@PLT
	mov	DWORD PTR 4[r12], eax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sctp_make_auth, .-sctp_make_auth
	.comm	SCTP_CID_AUTH,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_sm_make_chunk.c_sctp_make_auth.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sctp_make_auth
	.syntax unified
	.arm
	.fpu softvfp
	.type	sctp_make_auth, %function
sctp_make_auth:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L11
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r7, r0
	bl	sctp_auth_asoc_get_hmac
	mov	r6, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r5, r0, #0
	movne	r4, #0
	bne	.L1
	ldr	r3, [r6]
	ldr	r2, .L11+4
	mov	r0, r7
	ldr	r1, [r2]
	add	r3, r3, #4
	mov	r2, r5
	bl	sctp_make_chunk
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, [r6, #4]
	bl	htons
	mov	r3, r0
	ldr	r0, [r7]
	str	r3, [sp, #8]
	bl	htons
	mov	r3, r0
	add	r2, sp, #4
	mov	r1, #4
	mov	r0, r4
	str	r3, [sp, #4]
	bl	sctp_addto_chunk
	ldr	r1, [r6]
	str	r0, [r4, #12]
	ldr	r0, [r4]
	bl	skb_put
	mov	r1, r5
	ldr	r2, [r6]
	bl	memset
	ldr	r3, [r4, #8]
	ldr	r0, [r3]
	bl	ntohs
	ldr	r3, [r6]
	ldr	r5, [r4, #8]
	add	r0, r0, r3
	bl	htons
	mov	r3, r0
	ldr	r0, [r4]
	str	r3, [r5]
	bl	skb_tail_pointer
	str	r0, [r4, #4]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	SCTP_CID_AUTH
	.size	sctp_make_auth, .-sctp_make_auth
	.comm	SCTP_CID_AUTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
