	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgwin32_connect                ## -- Begin function pgwin32_connect
	.p2align	4, 0x90
_pgwin32_connect:                       ## @pgwin32_connect
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	$0, (%rsp)
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_WSAConnect
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movq	_WSAEWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	_FD_CONNECT@GOTPCREL(%rip), %r14
	movq	_INFINITE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	%ebx, %edi
	callq	_pgwin32_waitforsinglesocket
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_TranslateSocketError
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WSAEWOULDBLOCK,8,3             ## @WSAEWOULDBLOCK
	.comm	_FD_CONNECT,4,2                 ## @FD_CONNECT
	.comm	_INFINITE,4,2                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgwin32_connect                ; -- Begin function pgwin32_connect
	.p2align	2
_pgwin32_connect:                       ; @pgwin32_connect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_WSAConnect
	cbz	w0, LBB0_6
; %bb.1:
	bl	_WSAGetLastError
Lloh0:
	adrp	x8, _WSAEWOULDBLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WSAEWOULDBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x20, _FD_CONNECT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FD_CONNECT@GOTPAGEOFF]
Lloh5:
	adrp	x21, _INFINITE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _INFINITE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_pgwin32_waitforsinglesocket
	cbz	x0, LBB0_3
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	bl	_TranslateSocketError
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WSAEWOULDBLOCK,8,3             ; @WSAEWOULDBLOCK
	.comm	_FD_CONNECT,4,2                 ; @FD_CONNECT
	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
