	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proto_connection_recv          ## -- Begin function proto_connection_recv
	.p2align	4, 0x90
_proto_connection_recv:                 ## @proto_connection_recv
	.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	%r12
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	(%rbx), %rax
	movq	_PROTO_CONN_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_PJDLOG_ASSERT
	leaq	-176(%rbp), %r12
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_bzero
	movq	16(%rbx), %rax
	movl	8(%rbx), %edi
	leaq	-180(%rbp), %rcx
	movq	%r12, %rsi
	movl	$127, %edx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	jmp	LBB0_3
LBB0_2:
	movl	-180(%rbp), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_PJDLOG_ASSERT
	movl	-180(%rbp), %edx
	leaq	-176(%rbp), %rdi
	movl	%r14d, %esi
	movq	%r15, %rcx
	callq	_proto_wrap
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.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_recv          ; -- Begin function proto_connection_recv
	.p2align	2
_proto_connection_recv:                 ; @proto_connection_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cmp	x0, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _PROTO_CONN_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PROTO_CONN_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	cmp	x19, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	add	x0, sp, #8
	mov	w1, #128
	bl	_bzero
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	w0, [x21, #8]
	add	x1, sp, #8
	add	x3, sp, #4
	mov	w2, #127
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	ldr	w8, [sp, #4]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_PJDLOG_ASSERT
	ldr	w2, [sp, #4]
	add	x0, sp, #8
	mov	x1, x20
	mov	x3, x19
	bl	_proto_wrap
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTO_CONN_MAGIC,8,3           ; @PROTO_CONN_MAGIC
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
