	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_streambuf_create        ## -- Begin function quicly_streambuf_create
	.p2align	4, 0x90
_quicly_streambuf_create:               ## @quicly_streambuf_create
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpq	$8, %rsi
	setae	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	4(%rax), %rdi
	callq	_quicly_sendbuf_init
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	cmpq	$8, %r15
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	addq	$8, %rdi
	addq	$-8, %r15
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_memset
LBB0_4:
	movq	%rbx, (%r14)
	jmp	LBB0_5
LBB0_1:
	movq	_PTLS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ## @PTLS_ERROR_NO_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_streambuf_create        ; -- Begin function quicly_streambuf_create
	.p2align	2
_quicly_streambuf_create:               ; @quicly_streambuf_create
	.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	x20, x1
	mov	x19, x0
	cmp	x1, #7
	cset	w0, hi
	bl	_assert
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x0, x0, #4
	bl	_quicly_sendbuf_init
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_ptls_buffer_init
	subs	x2, x20, #8
	b.eq	LBB0_3
; %bb.2:
	add	x0, x21, #8
	mov	w1, #0
	bl	_memset
LBB0_3:
	mov	w0, #0
	str	x21, [x19]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _PTLS_ERROR_NO_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PTLS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ; @PTLS_ERROR_NO_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
