	.file	"extr_sm_make_chunk.c_sctp_make_asconf_set_prim.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sctp_make_asconf_set_prim
	.type	sctp_make_asconf_set_prim, @function
sctp_make_asconf_set_prim:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r14, 8[rsp]
	call	sctp_get_af_specific@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	test	eax, eax
	je	.L1
	lea	ebx, 16[rax]
	mov	rsi, rbp
	mov	rdi, r15
	mov	r13d, eax
	mov	edx, ebx
	call	sctp_make_asconf@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR SCTP_PARAM_SET_PRIMARY[rip]
	mov	edi, ebx
	mov	DWORD PTR 28[rsp], eax
	call	htons@PLT
	lea	rdx, 16[rsp]
	mov	esi, 16
	mov	rdi, r12
	mov	DWORD PTR 24[rsp], eax
	mov	QWORD PTR 16[rsp], 0
	call	sctp_addto_chunk@PLT
	mov	rdx, r14
	mov	esi, r13d
	mov	rdi, r12
	call	sctp_addto_chunk@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sctp_make_asconf_set_prim, .-sctp_make_asconf_set_prim
	.comm	SCTP_PARAM_SET_PRIMARY,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_asconf_set_prim.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sctp_make_asconf_set_prim
	.syntax unified
	.arm
	.fpu softvfp
	.type	sctp_make_asconf_set_prim, %function
sctp_make_asconf_set_prim:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L11
	sub	sp, sp, #28
	mov	r5, r0
	ldr	r0, [r1]
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	sctp_get_af_specific
	mov	r1, sp
	ldr	r3, [r0]
	mov	r0, r4
	blx	r3
	subs	r6, r0, #0
	moveq	r4, r6
	beq	.L1
	add	r7, r6, #12
	mov	r1, r4
	mov	r0, r5
	mov	r2, r7
	bl	sctp_make_asconf
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, .L11+4
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [sp, #16]
	bl	htons
	mov	r3, #0
	mov	r1, #12
	add	r2, sp, #8
	str	r0, [sp, #12]
	mov	r0, r4
	str	r3, [sp, #8]
	bl	sctp_addto_chunk
	mov	r2, sp
	mov	r1, r6
	mov	r0, r4
	bl	sctp_addto_chunk
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	SCTP_PARAM_SET_PRIMARY
	.size	sctp_make_asconf_set_prim, .-sctp_make_asconf_set_prim
	.comm	SCTP_PARAM_SET_PRIMARY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
