	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgwin32_socket                 ## -- Begin function pgwin32_socket
	.p2align	4, 0x90
_pgwin32_socket:                        ## @pgwin32_socket
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$1, -24(%rbp)
	movq	_WSA_FLAG_OVERLAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_WSASocket
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_FIONBIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ioctlsocket
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_TranslateSocketError
	movq	(%r14), %rbx
	jmp	LBB0_4
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_4:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WSA_FLAG_OVERLAPPED,4,2        ## @WSA_FLAG_OVERLAPPED
	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.comm	_FIONBIO,4,2                    ## @FIONBIO
	.comm	_errno,8,3                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgwin32_socket                 ; -- Begin function pgwin32_socket
	.p2align	2
_pgwin32_socket:                        ; @pgwin32_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	w8, #1
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, _WSA_FLAG_OVERLAPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WSA_FLAG_OVERLAPPED@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	mov	x3, #0
	mov	w4, #0
	bl	_WSASocket
Lloh3:
	adrp	x20, _INVALID_SOCKET@GOTPAGE
Lloh4:
	ldr	x20, [x20, _INVALID_SOCKET@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _FIONBIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FIONBIO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctlsocket
	cbz	x0, LBB0_3
LBB0_2:
	bl	_TranslateSocketError
	ldr	x19, [x20]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WSA_FLAG_OVERLAPPED,4,2        ; @WSA_FLAG_OVERLAPPED
	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.comm	_FIONBIO,4,2                    ; @FIONBIO
	.comm	_errno,8,3                      ; @errno
.subsections_via_symbols
