	.file	"extr_socket.c_pgwin32_recv.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not read from ready socket (after retries)"
	.text
	.p2align 4
	.globl	pgwin32_recv
	.type	pgwin32_recv, @function
pgwin32_recv:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edi
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 12[rsp], ecx
	call	pgwin32_poll_signals@PLT
	test	rax, rax
	jne	.L18
	mov	DWORD PTR 16[rsp], r12d
	lea	r14, 12[rsp]
	xor	r9d, r9d
	mov	edi, ebx
	mov	QWORD PTR 24[rsp], rbp
	lea	r13, 8[rsp]
	lea	r12, 16[rsp]
	mov	r8, r14
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rsi, r12
	mov	rcx, r13
	mov	edx, 1
	push	0
	.cfi_def_cfa_offset 112
	call	WSARecv@PLT
	cmp	DWORD PTR SOCKET_ERROR[rip], eax
	pop	rsi
	.cfi_def_cfa_offset 104
	pop	rdi
	.cfi_def_cfa_offset 96
	je	.L4
.L19:
	mov	eax, DWORD PTR 8[rsp]
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 48
	.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
	xor	eax, eax
	call	WSAGetLastError@PLT
	cmp	rax, QWORD PTR WSAEWOULDBLOCK[rip]
	jne	.L9
	cmp	QWORD PTR pgwin32_noblock[rip], 0
	jne	.L17
	mov	ebp, 5
.L6:
	mov	edx, DWORD PTR INFINITE[rip]
	mov	esi, DWORD PTR FD_READ[rip]
	mov	edi, ebx
	or	esi, DWORD PTR FD_CLOSE[rip]
	or	esi, DWORD PTR FD_ACCEPT[rip]
	call	pgwin32_waitforsinglesocket@PLT
	test	rax, rax
	je	.L18
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	xor	r9d, r9d
	mov	rcx, r13
	mov	edx, 1
	push	0
	.cfi_def_cfa_offset 112
	mov	r8, r14
	mov	rsi, r12
	mov	edi, ebx
	call	WSARecv@PLT
	cmp	DWORD PTR SOCKET_ERROR[rip], eax
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	jne	.L19
	xor	eax, eax
	call	WSAGetLastError@PLT
	cmp	rax, QWORD PTR WSAEWOULDBLOCK[rip]
	jne	.L9
	mov	edi, 10000
	call	pg_usleep@PLT
	sub	ebp, 1
	jne	.L6
	lea	rdi, .LC0[rip]
	call	errmsg_internal@PLT
	mov	edi, DWORD PTR NOTICE[rip]
	mov	esi, eax
	call	ereport@PLT
.L17:
	mov	eax, DWORD PTR EWOULDBLOCK[rip]
	mov	DWORD PTR errno[rip], eax
.L18:
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
	call	TranslateSocketError@PLT
	mov	eax, -1
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pgwin32_recv, .-pgwin32_recv
	.comm	pgwin32_noblock,8,8
	.comm	errno,4,4
	.comm	WSAEWOULDBLOCK,8,8
	.comm	SOCKET_ERROR,4,4
	.comm	NOTICE,4,4
	.comm	INFINITE,4,4
	.comm	FD_READ,4,4
	.comm	FD_CLOSE,4,4
	.comm	FD_ACCEPT,4,4
	.comm	EWOULDBLOCK,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_socket.c_pgwin32_recv.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not read from ready socket (after retries)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pgwin32_recv
	.syntax unified
	.arm
	.fpu softvfp
	.type	pgwin32_recv, %function
pgwin32_recv:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #52
	str	r3, [sp, #32]
	ldr	r3, .L22
	mov	r4, r0
	mov	r5, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	pgwin32_poll_signals
	cmp	r0, #0
	bne	.L17
	add	r6, sp, #32
	str	r0, [sp, #8]
	str	r0, [sp, #4]
	add	r3, sp, #28
	mov	r2, #1
	mov	r0, r4
	add	r1, sp, #36
	str	r6, [sp]
	str	r7, [sp, #36]
	str	r5, [sp, #40]
	bl	WSARecv
	ldr	r7, .L22+4
	ldr	r3, [r7]
	cmp	r3, r0
	beq	.L4
.L18:
	ldr	r0, [sp, #28]
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	bl	WSAGetLastError
	ldr	r8, .L22+8
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L9
	ldr	r3, .L22+12
	ldr	r5, [r3]
	cmp	r5, #0
	bne	.L21
	mov	r3, #5
	ldr	fp, .L22+16
	ldr	r10, .L22+20
	ldr	r9, .L22+24
	str	r3, [sp, #20]
.L6:
	ldr	r2, [r10]
	ldr	r3, [fp]
	ldr	r1, [r9]
	orr	r3, r3, r2
	orr	r1, r3, r1
	ldr	r3, .L22+28
	mov	r0, r4
	ldr	r2, [r3]
	bl	pgwin32_waitforsinglesocket
	cmp	r0, #0
	beq	.L17
	add	r3, sp, #28
	mov	r2, #1
	mov	r0, r4
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	str	r6, [sp]
	add	r1, sp, #36
	bl	WSARecv
	ldr	r3, [r7]
	cmp	r3, r0
	bne	.L18
	bl	WSAGetLastError
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L9
	ldr	r0, .L22+32
	bl	pg_usleep
	ldr	r3, [sp, #20]
	subs	r3, r3, #1
	str	r3, [sp, #20]
	bne	.L6
	ldr	r3, .L22+36
	ldr	r0, .L22+40
	ldr	r4, [r3]
	bl	errmsg_internal
	mov	r1, r0
	mov	r0, r4
	bl	ereport
	ldr	r2, .L22+44
	ldr	r3, .L22+48
	ldr	r2, [r2]
	mvn	r0, #0
	str	r2, [r3]
	b	.L1
.L9:
	bl	TranslateSocketError
.L17:
	mvn	r0, #0
	b	.L1
.L21:
	ldr	r2, .L22+44
	ldr	r3, .L22+48
	ldr	r2, [r2]
	mvn	r0, #0
	str	r2, [r3]
	b	.L1
.L20:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	SOCKET_ERROR
	.word	WSAEWOULDBLOCK
	.word	pgwin32_noblock
	.word	FD_READ
	.word	FD_CLOSE
	.word	FD_ACCEPT
	.word	INFINITE
	.word	10000
	.word	NOTICE
	.word	.LC0
	.word	EWOULDBLOCK
	.word	errno
	.size	pgwin32_recv, .-pgwin32_recv
	.comm	pgwin32_noblock,4,4
	.comm	errno,4,4
	.comm	WSAEWOULDBLOCK,4,4
	.comm	SOCKET_ERROR,4,4
	.comm	NOTICE,4,4
	.comm	INFINITE,4,4
	.comm	FD_READ,4,4
	.comm	FD_CLOSE,4,4
	.comm	FD_ACCEPT,4,4
	.comm	EWOULDBLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
