	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sp_wrap
_sp_wrap:                               ## @sp_wrap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	notl	%edi
	shrl	$31, %edi
	callq	_PJDLOG_ASSERT
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_SP_SIDE_CLIENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	(%rax), %rcx
	movl	%ebx, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_4:
	movq	_SP_SIDE_SERVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	(%rax), %rcx
	movl	$-1, (%rcx)
LBB0_5:
	movl	%ebx, 4(%rcx)
	movq	_SP_CTX_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_SP_SIDE_CLIENT,4,2             ## @SP_SIDE_CLIENT
	.comm	_SP_SIDE_SERVER,4,2             ## @SP_SIDE_SERVER
	.comm	_SP_CTX_MAGIC,4,2               ## @SP_CTX_MAGIC
	.no_dead_strip	_sp_wrap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sp_wrap
_sp_wrap:                               ; @sp_wrap
	.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, x2
	mov	x21, x1
	mov	x20, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_PJDLOG_ASSERT
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.1:
	cbz	w21, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _SP_SIDE_CLIENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SP_SIDE_CLIENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #12]
	ldr	x9, [x0]
	str	w20, [x9]
	mov	w20, #-1
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _SP_SIDE_SERVER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SP_SIDE_SERVER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #12]
	ldr	x9, [x0]
	mov	w8, #-1
	str	w8, [x9]
LBB0_5:
	mov	w8, #0
	str	w20, [x9, #4]
Lloh9:
	adrp	x9, _SP_CTX_MAGIC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SP_CTX_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x0, #8]
	str	x0, [x19]
LBB0_6:
	mov	x0, x8
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_SP_SIDE_CLIENT,4,2             ; @SP_SIDE_CLIENT
	.comm	_SP_SIDE_SERVER,4,2             ; @SP_SIDE_SERVER
	.comm	_SP_CTX_MAGIC,4,2               ; @SP_CTX_MAGIC
	.no_dead_strip	_sp_wrap
.subsections_via_symbols
