	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgwin32_send                   ## -- Begin function pgwin32_send
	.p2align	4, 0x90
_pgwin32_send:                          ## @pgwin32_send
	.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	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_pgwin32_poll_signals
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movl	%r13d, -64(%rbp)
	movq	%r12, -56(%rbp)
	leaq	-48(%rbp), %r13
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %r14
	movq	_INFINITE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rsp)
	movl	%ebx, %edi
	leaq	-64(%rbp), %rsi
	movl	$1, %edx
	movq	%r13, %rcx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_WSASend
	movl	(%r14), %ecx
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	jg	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ecx, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movq	_WSAEWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_pgwin32_noblock@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_FD_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FD_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r12), %edx
	movl	%ebx, %edi
	callq	_pgwin32_waitforsinglesocket
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_11
LBB0_4:
	movl	%edx, %ecx
	jmp	LBB0_12
LBB0_9:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
	callq	_TranslateSocketError
LBB0_11:
	movl	$-1, %ecx
LBB0_12:
	movl	%ecx, %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_WRITE,4,2                   ## @FD_WRITE
	.comm	_FD_CLOSE,4,2                   ## @FD_CLOSE
	.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_send                   ; -- Begin function pgwin32_send
	.p2align	2
_pgwin32_send:                          ; @pgwin32_send
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	bl	_pgwin32_poll_signals
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	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	w22, [sp, #16]
	str	x21, [sp, #24]
Lloh0:
	adrp	x21, _SOCKET_ERROR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SOCKET_ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x22, _WSAEWOULDBLOCK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WSAEWOULDBLOCK@GOTPAGEOFF]
Lloh4:
	adrp	x23, _pgwin32_noblock@GOTPAGE
Lloh5:
	ldr	x23, [x23, _pgwin32_noblock@GOTPAGEOFF]
Lloh6:
	adrp	x24, _FD_WRITE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _FD_WRITE@GOTPAGEOFF]
Lloh8:
	adrp	x25, _FD_CLOSE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _FD_CLOSE@GOTPAGEOFF]
Lloh10:
	adrp	x26, _INFINITE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _INFINITE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #1
	mov	x4, x19
	mov	x5, #0
	mov	x6, #0
	bl	_WSASend
	mov	x8, x0
	ldr	w9, [x21]
	ldr	x0, [sp, #8]
	cmp	w8, w9
	ccmp	x0, #1, #8, ne
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_WSAGetLastError
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	cbnz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w1, w9, w8
	ldr	w2, [x26]
	mov	x0, x20
	bl	_pgwin32_waitforsinglesocket
	cbnz	x0, LBB0_4
	b	LBB0_1
LBB0_9:
Lloh12:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _errno@GOTPAGE
Lloh16:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	b	LBB0_1
LBB0_10:
	bl	_TranslateSocketError
	b	LBB0_1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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_WRITE,4,2                   ; @FD_WRITE
	.comm	_FD_CLOSE,4,2                   ; @FD_CLOSE
	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
