	.file	"extr_alias_db.c_GetSocket.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	GetSocket, @function
GetSocket:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	LIBALIAS_LOCK_ASSERT@PLT
	cmp	DWORD PTR LINK_TCP[rip], ebx
	je	.L12
	cmp	DWORD PTR LINK_UDP[rip], ebx
	je	.L4
.L10:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR SOCK_DGRAM[rip]
	mov	edi, DWORD PTR AF_INET[rip]
	xor	edx, edx
	call	socket@PLT
	mov	r14d, eax
.L3:
	test	r14d, r14d
	js	.L10
	mov	eax, DWORD PTR AF_INET[rip]
	mov	edi, DWORD PTR INADDR_ANY[rip]
	mov	DWORD PTR 20[rsp], eax
	call	htonl@PLT
	lea	rsi, 12[rsp]
	mov	edx, 12
	mov	edi, r14d
	mov	DWORD PTR 16[rsp], eax
	mov	DWORD PTR 12[rsp], r12d
	call	bind@PLT
	test	eax, eax
	jne	.L7
	add	DWORD PTR 0[rbp], 1
	mov	eax, 1
	mov	DWORD PTR 0[r13], r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	edi, DWORD PTR AF_INET[rip]
	xor	edx, edx
	call	socket@PLT
	mov	r14d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, r14d
	call	close@PLT
	jmp	.L10
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	GetSocket, .-GetSocket
	.comm	stderr,4,4
	.comm	SOCK_STREAM,4,4
	.comm	SOCK_DGRAM,4,4
	.comm	LINK_UDP,4,4
	.comm	LINK_TCP,4,4
	.comm	INADDR_ANY,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
	.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_alias_db.c_GetSocket.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetSocket, %function
GetSocket:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	ldr	r3, .L14
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r1
	mov	r7, r2
	mov	r5, r0
	bl	LIBALIAS_LOCK_ASSERT
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, r4
	ldreq	r3, .L14+8
	beq	.L10
	ldr	r3, .L14+12
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L4
.L11:
	mov	r0, #0
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L14+16
.L10:
	ldr	r8, .L14+20
	mov	r2, #0
	ldr	r1, [r3]
	ldr	r0, [r8]
	bl	socket
	cmp	r0, #0
	mov	r4, r0
	blt	.L11
	ldr	r2, .L14+24
	ldr	r3, [r8]
	ldr	r0, [r2]
	str	r3, [sp, #8]
	bl	htonl
	mov	r2, #12
	str	r0, [sp, #4]
	mov	r1, sp
	mov	r0, r4
	str	r6, [sp]
	bl	bind
	cmp	r0, #0
	bne	.L7
	mov	r0, #1
	ldr	r3, [r5]
	add	r3, r3, r0
	str	r3, [r5]
	str	r4, [r7]
	b	.L1
.L7:
	mov	r0, r4
	bl	close
	b	.L11
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	LINK_TCP
	.word	SOCK_STREAM
	.word	LINK_UDP
	.word	SOCK_DGRAM
	.word	AF_INET
	.word	INADDR_ANY
	.size	GetSocket, .-GetSocket
	.comm	stderr,4,4
	.comm	SOCK_STREAM,4,4
	.comm	SOCK_DGRAM,4,4
	.comm	LINK_UDP,4,4
	.comm	LINK_TCP,4,4
	.comm	INADDR_ANY,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
