	.file	"extr_l_net_berkeley.c_WINS_OpenSocket.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"WINS_OpenSocket: %s\n"
	.text
	.p2align 4
	.globl	WINS_OpenSocket
	.type	WINS_OpenSocket, @function
WINS_OpenSocket:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR IPPROTO_UDP[rip]
	mov	esi, DWORD PTR SOCK_DGRAM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR PF_INET[rip]
	mov	DWORD PTR 8[rsp], 1
	call	socket@PLT
	cmp	DWORD PTR SOCKET_ERROR[rip], eax
	je	.L9
	mov	esi, DWORD PTR FIONBIO[rip]
	lea	rdx, 8[rsp]
	mov	edi, eax
	mov	r12d, eax
	call	ioctlsocket@PLT
	cmp	eax, DWORD PTR SOCKET_ERROR[rip]
	je	.L7
	lea	rbp, 12[rsp]
	xor	esi, esi
	mov	edx, 12
	mov	rdi, rbp
	call	memset@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	mov	edi, r13d
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR INADDR_ANY[rip]
	mov	DWORD PTR 16[rsp], eax
	call	htons@PLT
	mov	edx, 12
	mov	rsi, rbp
	mov	edi, r12d
	mov	DWORD PTR 12[rsp], eax
	call	bind@PLT
	cmp	eax, -1
	je	.L7
.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	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	WSAGetLastError@PLT
	mov	edi, eax
	call	WINS_ErrorMessage@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	WinPrint@PLT
	mov	edi, r12d
	mov	r12d, -1
	call	closesocket@PLT
	jmp	.L1
.L9:
	xor	eax, eax
	mov	r12d, -1
	call	WSAGetLastError@PLT
	mov	edi, eax
	call	WINS_ErrorMessage@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	WinPrint@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	WINS_OpenSocket, .-WINS_OpenSocket
	.comm	SOCK_DGRAM,4,4
	.comm	SOCKET_ERROR,4,4
	.comm	PF_INET,4,4
	.comm	IPPROTO_UDP,4,4
	.comm	INADDR_ANY,4,4
	.comm	FIONBIO,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_l_net_berkeley.c_WINS_OpenSocket.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WINS_OpenSocket: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	WINS_OpenSocket
	.syntax unified
	.arm
	.fpu softvfp
	.type	WINS_OpenSocket, %function
WINS_OpenSocket:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #1
	push	{r4, r5, r6, lr}
	ldr	r2, .L12
	mov	r6, r0
	ldr	r1, .L12+4
	ldr	r0, .L12+8
	ldr	ip, .L12+12
	sub	sp, sp, #24
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r0]
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	str	r3, [sp, #4]
	bl	socket
	ldr	r5, .L12+16
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L8
	ldr	r3, .L12+20
	add	r2, sp, #4
	ldr	r1, [r3]
	mov	r4, r0
	bl	ioctlsocket
	ldr	r3, [r5]
	cmp	r0, r3
	beq	.L9
	mov	r3, #0
	ldr	r1, .L12+24
	ldr	r2, .L12+28
	ldr	r1, [r1]
	ldr	r2, [r2]
	mov	r0, r6
	str	r1, [sp, #16]
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	bl	htons
	mov	r3, r0
	mov	r2, #12
	mov	r0, r4
	add	r1, sp, #8
	str	r3, [sp, #8]
	bl	bind
	cmn	r0, #1
	mov	r5, r0
	beq	.L10
.L1:
	ldr	r3, .L12+12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	bl	WSAGetLastError
	bl	WINS_ErrorMessage
	mov	r1, r0
	ldr	r0, .L12+32
	bl	WinPrint
	mvn	r4, #0
	b	.L1
.L9:
	bl	WSAGetLastError
	bl	WINS_ErrorMessage
	mov	r1, r0
	ldr	r0, .L12+32
	bl	WinPrint
	mov	r0, r4
	bl	closesocket
	mvn	r4, #0
	b	.L1
.L10:
	bl	WSAGetLastError
	bl	WINS_ErrorMessage
	mov	r1, r0
	ldr	r0, .L12+32
	bl	WinPrint
	mov	r0, r4
	bl	closesocket
	mov	r4, r5
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	IPPROTO_UDP
	.word	SOCK_DGRAM
	.word	PF_INET
	.word	.LC1
	.word	SOCKET_ERROR
	.word	FIONBIO
	.word	AF_INET
	.word	INADDR_ANY
	.word	.LC0
	.size	WINS_OpenSocket, .-WINS_OpenSocket
	.comm	SOCK_DGRAM,4,4
	.comm	SOCKET_ERROR,4,4
	.comm	PF_INET,4,4
	.comm	IPPROTO_UDP,4,4
	.comm	INADDR_ANY,4,4
	.comm	FIONBIO,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
