	.file	"extr_sdp_main.c_sdp_bind.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sdp_bind, @function
sdp_bind:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR [rsi], 16
	jne	.L4
	mov	rax, QWORD PTR AF_INET[rip]
	mov	rbp, rsi
	cmp	QWORD PTR [rsi], rax
	je	.L10
.L4:
	mov	r12d, DWORD PTR EINVAL[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12, rdi
	mov	edi, DWORD PTR 8[rsi]
	mov	rbx, rdx
	call	ntohl@PLT
	mov	edi, eax
	call	IN_MULTICAST@PLT
	test	rax, rax
	je	.L5
	mov	r12d, DWORD PTR EAFNOSUPPORT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r12
	call	sdp_sk@PLT
	mov	r13, rax
	mov	rdi, rax
	call	SDP_WLOCK@PLT
	mov	eax, DWORD PTR SDP_TIMEWAIT[rip]
	mov	r12d, DWORD PTR EINVAL[rip]
	or	eax, DWORD PTR SDP_DROPPED[rip]
	test	DWORD PTR 0[r13], eax
	je	.L11
.L7:
	mov	rdi, r13
	call	SDP_WUNLOCK@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR [rbx]
	mov	rsi, rbp
	mov	rdi, r13
	call	sdp_pcbbind@PLT
	mov	r12d, eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	sdp_bind, .-sdp_bind
	.comm	SDP_TIMEWAIT,4,4
	.comm	SDP_DROPPED,4,4
	.comm	EINVAL,4,4
	.comm	EAFNOSUPPORT,4,4
	.comm	AF_INET,8,8
	.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_sdp_main.c_sdp_bind.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdp_bind, %function
sdp_bind:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, lr}
	cmp	r3, #8
	bne	.L4
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, #8
	beq	.L10
.L4:
	ldr	r3, .L11+4
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	mov	r5, r0
	ldr	r0, [r1, #4]
	mov	r4, r1
	mov	r6, r2
	bl	ntohl
	bl	IN_MULTICAST
	cmp	r0, #0
	ldrne	r3, .L11+8
	ldrne	r4, [r3]
	bne	.L1
.L5:
	mov	r0, r5
	bl	sdp_sk
	mov	r5, r0
	bl	SDP_WLOCK
	ldr	r2, .L11+12
	ldr	r3, .L11+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r5]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L6
	ldr	r3, .L11+4
	ldr	r4, [r3]
.L7:
	mov	r0, r5
	bl	SDP_WUNLOCK
	b	.L1
.L6:
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r6]
	bl	sdp_pcbbind
	mov	r4, r0
	b	.L7
.L12:
	.align	2
.L11:
	.word	AF_INET
	.word	EINVAL
	.word	EAFNOSUPPORT
	.word	SDP_DROPPED
	.word	SDP_TIMEWAIT
	.size	sdp_bind, .-sdp_bind
	.comm	SDP_TIMEWAIT,4,4
	.comm	SDP_DROPPED,4,4
	.comm	EINVAL,4,4
	.comm	EAFNOSUPPORT,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
