	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InternetTransport_Write        ## -- Begin function InternetTransport_Write
	.p2align	4, 0x90
_InternetTransport_Write:               ## @InternetTransport_Write
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	(%rdi), %rax
	movq	_IXP_DISCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_IXP_E_NOT_CONNECTED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.3:
	movq	_IXP_E_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movl	12(%rbx), %edi
	xorl	%ecx, %ecx
	callq	_send
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_ERR
LBB0_6:
	addq	$8, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*%r14
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXP_DISCONNECTED,8,3           ## @IXP_DISCONNECTED
	.comm	_IXP_E_NOT_CONNECTED,4,2        ## @IXP_E_NOT_CONNECTED
	.comm	_IXP_E_BUSY,4,2                 ## @IXP_E_BUSY
	.comm	_SOCKET_ERROR,4,2               ## @SOCKET_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send failed with error %d\n"

	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InternetTransport_Write        ; -- Begin function InternetTransport_Write
	.p2align	2
_InternetTransport_Write:               ; @InternetTransport_Write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IXP_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IXP_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IXP_E_NOT_CONNECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXP_E_NOT_CONNECTED@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _IXP_E_BUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXP_E_BUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x19, x3
	ldr	w0, [x20, #12]
	mov	w3, #0
	bl	_send
Lloh7:
	adrp	x8, _SOCKET_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOCKET_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	bl	_WSAGetLastError
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
LBB0_6:
	add	x0, x20, #8
	mov	x1, #0
	mov	w2, #0
	blr	x19
Lloh12:
	adrp	x8, _S_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IXP_DISCONNECTED,8,3           ; @IXP_DISCONNECTED
	.comm	_IXP_E_NOT_CONNECTED,4,2        ; @IXP_E_NOT_CONNECTED
	.comm	_IXP_E_BUSY,4,2                 ; @IXP_E_BUSY
	.comm	_SOCKET_ERROR,4,2               ; @SOCKET_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send failed with error %d\n"

	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
