	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgwin32_recv                   ## -- Begin function pgwin32_recv
	.p2align	4, 0x90
_pgwin32_recv:                          ## @pgwin32_recv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movl	%ecx, -48(%rbp)
	xorl	%eax, %eax
	callq	_pgwin32_poll_signals
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movl	%r12d, -64(%rbp)
	movq	%rbx, -56(%rbp)
	movq	$0, (%rsp)
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%r15d, %edi
	movl	$1, %edx
	xorl	%r9d, %r9d
	callq	_WSARecv
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movq	_WSAEWOULDBLOCK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.3:
	movq	_pgwin32_noblock@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
LBB0_4:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_13
LBB0_6:
	movl	$5, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FD_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FD_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_FD_ACCEPT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_pgwin32_waitforsinglesocket
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, (%rsp)
	movl	%r15d, %edi
	leaq	-64(%rbp), %rsi
	movl	$1, %edx
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_WSARecv
	cmpl	(%rbx), %eax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_WSAGetLastError
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_pg_usleep
	decl	%r13d
	jne	LBB0_7
## %bb.11:
	movq	_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_4
LBB0_5:
	movl	-44(%rbp), %r14d
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
	callq	_TranslateSocketError
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKET_ERROR,4,2               ## @SOCKET_ERROR
	.comm	_WSAEWOULDBLOCK,8,3             ## @WSAEWOULDBLOCK
	.comm	_pgwin32_noblock,8,3            ## @pgwin32_noblock
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_errno,4,2                      ## @errno
	.comm	_FD_READ,4,2                    ## @FD_READ
	.comm	_FD_CLOSE,4,2                   ## @FD_CLOSE
	.comm	_FD_ACCEPT,4,2                  ## @FD_ACCEPT
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_NOTICE,4,2                     ## @NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not read from ready socket (after retries)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgwin32_recv                   ; -- Begin function pgwin32_recv
	.p2align	2
_pgwin32_recv:                          ; @pgwin32_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	w3, [sp, #8]
	bl	_pgwin32_poll_signals
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	str	w21, [sp, #16]
	str	x20, [sp, #24]
	add	x1, sp, #16
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #1
	mov	x5, #0
	mov	x6, #0
	bl	_WSARecv
Lloh0:
	adrp	x20, _SOCKET_ERROR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SOCKET_ERROR@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.4:
	bl	_WSAGetLastError
Lloh2:
	adrp	x21, _WSAEWOULDBLOCK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _WSAEWOULDBLOCK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.5:
Lloh4:
	adrp	x8, _pgwin32_noblock@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pgwin32_noblock@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _errno@GOTPAGE
Lloh11:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
	b	LBB0_1
LBB0_7:
	mov	w22, #5
Lloh13:
	adrp	x23, _FD_READ@GOTPAGE
Lloh14:
	ldr	x23, [x23, _FD_READ@GOTPAGEOFF]
Lloh15:
	adrp	x24, _FD_CLOSE@GOTPAGE
Lloh16:
	ldr	x24, [x24, _FD_CLOSE@GOTPAGEOFF]
Lloh17:
	adrp	x25, _FD_ACCEPT@GOTPAGE
Lloh18:
	ldr	x25, [x25, _FD_ACCEPT@GOTPAGEOFF]
Lloh19:
	adrp	x26, _INFINITE@GOTPAGE
Lloh20:
	ldr	x26, [x26, _INFINITE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w1, w8, w9
	ldr	w2, [x26]
	mov	x0, x19
	bl	_pgwin32_waitforsinglesocket
	cbz	x0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, sp, #16
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #1
	mov	x5, #0
	mov	x6, #0
	bl	_WSARecv
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_WSAGetLastError
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #10000
	bl	_pg_usleep
	subs	w22, w22, #1
	b.ne	LBB0_8
; %bb.12:
Lloh21:
	adrp	x8, _NOTICE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NOTICE@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	b	LBB0_6
LBB0_13:
	ldr	w0, [sp, #12]
	b	LBB0_2
LBB0_14:
	bl	_TranslateSocketError
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKET_ERROR,4,2               ; @SOCKET_ERROR
	.comm	_WSAEWOULDBLOCK,8,3             ; @WSAEWOULDBLOCK
	.comm	_pgwin32_noblock,8,3            ; @pgwin32_noblock
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_errno,4,2                      ; @errno
	.comm	_FD_READ,4,2                    ; @FD_READ
	.comm	_FD_CLOSE,4,2                   ; @FD_CLOSE
	.comm	_FD_ACCEPT,4,2                  ; @FD_ACCEPT
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_NOTICE,4,2                     ; @NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not read from ready socket (after retries)"

.subsections_via_symbols
