	.file	"extr_lowcomms.c_add_sctp_bind_addr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Can't bind to port %d addr number %d"
	.text
	.p2align 4
	.type	add_sctp_bind_addr, @function
add_sctp_bind_addr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR [rdi]
	cmp	ecx, 1
	je	.L7
	mov	r8d, edx
	mov	rcx, rsi
	mov	edx, DWORD PTR SCTP_SOCKOPT_BINDX_ADD[rip]
	mov	esi, DWORD PTR SOL_SCTP[rip]
	call	kernel_setsockopt@PLT
	mov	r12d, eax
	test	r12d, r12d
	js	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	kernel_bind@PLT
	mov	r12d, eax
	test	r12d, r12d
	jns	.L1
.L8:
	mov	esi, DWORD PTR dlm_config[rip]
	mov	edx, r13d
	lea	rdi, .LC0[rip]
	call	log_print@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	add_sctp_bind_addr, .-add_sctp_bind_addr
	.comm	dlm_config,4,4
	.comm	SOL_SCTP,4,4
	.comm	SCTP_SOCKOPT_BINDX_ADD,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_lowcomms.c_add_sctp_bind_addr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Can't bind to port %d addr number %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_sctp_bind_addr, %function
add_sctp_bind_addr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	cmp	r3, #1
	mov	r5, r3
	ldr	r0, [r0]
	sub	sp, sp, #12
	beq	.L7
	mov	ip, r2
	mov	r3, r1
	ldr	r2, .L9
	ldr	r1, .L9+4
	str	ip, [sp]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	kernel_setsockopt
	mov	r4, r0
	cmp	r4, #0
	blt	.L8
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	bl	kernel_bind
	mov	r4, r0
	cmp	r4, #0
	bge	.L1
.L8:
	ldr	r3, .L9+8
	mov	r2, r5
	ldr	r1, [r3]
	ldr	r0, .L9+12
	bl	log_print
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L10:
	.align	2
.L9:
	.word	SCTP_SOCKOPT_BINDX_ADD
	.word	SOL_SCTP
	.word	dlm_config
	.word	.LC0
	.size	add_sctp_bind_addr, .-add_sctp_bind_addr
	.comm	dlm_config,4,4
	.comm	SOL_SCTP,4,4
	.comm	SCTP_SOCKOPT_BINDX_ADD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
