	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http3_send_qpack_stream_cancel ## -- Begin function h2o_http3_send_qpack_stream_cancel
	.p2align	4, 0x90
_h2o_http3_send_qpack_stream_cancel:    ## @h2o_http3_send_qpack_stream_cancel
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	leaq	8(%rbx), %rdi
	movq	8(%rbx), %rax
	movq	_H2O_HPACK_ENCODE_INT_MAX_LENGTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	callq	_h2o_buffer_reserve
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_h2o_qpack_decoder_send_stream_cancel
	movq	8(%rbx), %rcx
	addq	%rax, (%rcx)
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_quicly_stream_sync_sendbuf
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_H2O_HTTP3_CHECK_SUCCESS        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HPACK_ENCODE_INT_MAX_LENGTH,8,3 ## @H2O_HPACK_ENCODE_INT_MAX_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http3_send_qpack_stream_cancel ; -- Begin function h2o_http3_send_qpack_stream_cancel
	.p2align	2
_h2o_http3_send_qpack_stream_cancel:    ; @h2o_http3_send_qpack_stream_cancel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	mov	x21, x23
	ldr	x8, [x21, #8]!
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _H2O_HPACK_ENCODE_INT_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H2O_HPACK_ENCODE_INT_MAX_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_h2o_buffer_reserve
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	w0, [x20]
	mov	x1, x22
	mov	x2, x19
	bl	_h2o_qpack_decoder_send_stream_cancel
	ldr	x8, [x21]
	ldr	x9, [x8]
	add	x9, x9, x0
	str	x9, [x8]
	ldr	w0, [x23]
	mov	w1, #1
	bl	_quicly_stream_sync_sendbuf
	cmp	x0, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_H2O_HTTP3_CHECK_SUCCESS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HPACK_ENCODE_INT_MAX_LENGTH,8,3 ; @H2O_HPACK_ENCODE_INT_MAX_LENGTH
.subsections_via_symbols
