	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tube_queue_item                ## -- Begin function tube_queue_item
	.p2align	4, 0x90
_tube_queue_item:                       ## @tube_queue_item
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_8
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, 16(%rax)
	movq	%r12, (%rax)
	movq	$0, 8(%rax)
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%rax, 8(%rcx)
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rbx)
	movl	$1, %r14d
	cmpq	%rax, %rcx
	jne	LBB0_8
	jmp	LBB0_7
LBB0_3:
	movq	%r15, %rdi
	callq	_free
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	jmp	LBB0_8
LBB0_5:
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
LBB0_7:
	movl	(%rbx), %edi
	movl	$-1, %esi
	movl	$-1, %edx
	callq	_comm_point_start_listening
	movl	$1, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory for async answer"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tube_queue_item                ; -- Begin function tube_queue_item
	.p2align	2
_tube_queue_item:                       ; @tube_queue_item
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x21, x2
	mov	x20, x1
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.3:
	stp	xzr, x20, [x0, #8]
	str	x21, [x0]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.4:
	str	x0, [x8, #8]
	ldr	x8, [x19, #16]
	str	x0, [x19, #8]
	cmp	x8, x0
	b.ne	LBB0_9
	b	LBB0_8
LBB0_5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	bl	_free
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	stp	x0, x0, [x19, #8]
LBB0_8:
	ldr	w0, [x19]
	mov	w1, #-1
	mov	w2, #-1
	bl	_comm_point_start_listening
LBB0_9:
	mov	w0, #1
LBB0_10:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory for async answer"

.subsections_via_symbols
