	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proto_connection_send          ## -- Begin function proto_connection_send
	.p2align	4, 0x90
_proto_connection_send:                 ## @proto_connection_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	(%r12), %rax
	movq	_PROTO_CONN_MAGIC@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 16(%r12)
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	16(%r12), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 16(%r14)
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	%r14, %rdi
	callq	_proto_descriptor
	movl	%eax, %r15d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_PJDLOG_ASSERT
	movq	16(%r14), %rax
	movq	8(%rax), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	16(%r12), %rax
	movq	(%rax), %r13
	movl	8(%r12), %r12d
	movq	%rbx, %rdi
	callq	_strlen
	leaq	1(%rax), %rdx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %ecx
	callq	*%r13
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_proto_close
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	$-1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTO_CONN_MAGIC,8,3           ## @PROTO_CONN_MAGIC
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proto_connection_send          ; -- Begin function proto_connection_send
	.p2align	2
_proto_connection_send:                 ; @proto_connection_send
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x8, [x20]
Lloh0:
	adrp	x21, _PROTO_CONN_MAGIC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PROTO_CONN_MAGIC@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	cmp	x19, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	mov	x0, x19
	bl	_proto_descriptor
	mov	x21, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_PJDLOG_ASSERT
	ldr	x8, [x19, #16]
	ldr	x22, [x8, #8]
	cmp	x22, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x8, [x20, #16]
	ldr	x23, [x8]
	ldr	w20, [x20, #8]
	mov	x0, x22
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	blr	x23
	mov	x20, x0
	mov	x0, x19
	bl	_proto_close
	cbz	w20, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	str	w20, [x8]
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTO_CONN_MAGIC,8,3           ; @PROTO_CONN_MAGIC
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
