	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sp_recv
_sp_recv:                               ## @sp_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	%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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	(%rbx), %rax
	movq	_SP_CTX_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	movl	8(%rbx), %esi
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$130, %esi
	je	LBB0_6
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_7
## %bb.3:
	movq	16(%rbx), %rax
	addq	$16, %rbx
	jmp	LBB0_5
LBB0_4:
	movl	$129, 8(%rbx)
	leaq	16(%rbx), %r13
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_close
	movq	16(%rbx), %rax
	movl	$-1, (%rax)
	movq	%r13, %rbx
LBB0_5:
	movl	4(%rax), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_PJDLOG_ASSERT
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	testq	%r12, %r12
	jne	LBB0_10
	jmp	LBB0_9
LBB0_6:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_PJDLOG_ASSERT
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	testq	%r12, %r12
	je	LBB0_9
LBB0_10:
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_proto_common_recv              ## TAILCALL
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_PJDLOG_ABORT
                                        ## implicit-def: $edi
	testq	%r12, %r12
	jne	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SP_CTX_MAGIC,8,3               ## @SP_CTX_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid socket side (%d)."

	.no_dead_strip	_sp_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sp_recv
_sp_recv:                               ; @sp_recv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _SP_CTX_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SP_CTX_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	w1, [x22, #8]
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w1, #129
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x22, #16]!
	b	LBB0_5
LBB0_4:
	ldr	x8, [x22, #16]!
	mov	w9, #129
	stur	w9, [x22, #-8]
	ldr	w0, [x8]
	bl	_close
	ldr	x8, [x22]
	mov	w9, #-1
	str	w9, [x8]
LBB0_5:
	ldr	w8, [x8, #4]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_PJDLOG_ASSERT
	ldr	x8, [x22]
	ldr	w0, [x8, #4]
	cbnz	x21, LBB0_7
	b	LBB0_9
LBB0_6:
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_PJDLOG_ASSERT
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
	cbz	x21, LBB0_9
LBB0_7:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_proto_common_recv
LBB0_8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PJDLOG_ABORT
                                        ; implicit-def: $w0
	cbnz	x21, LBB0_7
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SP_CTX_MAGIC,8,3               ; @SP_CTX_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid socket side (%d)."

	.no_dead_strip	_sp_recv
.subsections_via_symbols
