	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_max_streams
_send_max_streams:                      ## @send_max_streams
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_should_send_max_streams
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	24(%rbx), %rax
	leaq	8(%rbx), %rcx
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	movq	40(%rbx,%rdx,8), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmoveq	%rcx, %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rcx
	movq	(%rcx,%rdx,8), %r12
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_QUICLY_MAX_STREAMS_FRAME_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_on_ack_max_streams@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_allocate_ack_eliciting_frame
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leal	3(%r15), %eax
	testl	%r15d, %r15d
	cmovnsl	%r15d, %eax
	sarl	$2, %eax
	cltq
	addq	%rax, %r12
	subq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_quicly_encode_max_streams_frame
	movl	%eax, (%r15)
	movq	-72(%rbp), %rdx
	movl	%r14d, (%rdx)
	addq	$4, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_quicly_maxsender_record
	movq	_MAX_STREAMS_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_probe_now
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	movl	%r14d, %r8d
	callq	_QUICLY_PROBE
	jmp	LBB0_4
LBB0_1:
	xorl	%r13d, %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUICLY_MAX_STREAMS_FRAME_CAPACITY,4,2 ## @QUICLY_MAX_STREAMS_FRAME_CAPACITY
	.comm	_on_ack_max_streams,4,2         ## @on_ack_max_streams
	.comm	_MAX_STREAMS_SEND,4,2           ## @MAX_STREAMS_SEND
	.no_dead_strip	_send_max_streams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_max_streams
_send_max_streams:                      ; @send_max_streams
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_should_send_max_streams
	cbz	w0, LBB0_3
; %bb.1:
	cmp	w19, #0
	cset	w8, ne
	mov	w9, #48
	mov	w10, #40
	csel	x9, x10, x9, eq
	ldr	x23, [x20, x9]
	add	x9, x20, #24
	add	x10, x20, #8
	csel	x9, x10, x9, eq
	ldr	w24, [x9]
	ldr	x10, [x20]
	ldr	x25, [x10, w8, uxtw #3]
	ldr	x26, [x9, #8]
Lloh0:
	adrp	x8, _QUICLY_MAX_STREAMS_FRAME_CAPACITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUICLY_MAX_STREAMS_FRAME_CAPACITY@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _on_ack_max_streams@GOTPAGE
Lloh4:
	ldr	x8, [x8, _on_ack_max_streams@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_allocate_ack_eliciting_frame
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.2:
	add	w8, w24, #3
	cmp	w24, #0
	csel	w8, w8, w24, lt
	asr	w8, w8, #2
	add	x8, x25, w8, sxtw
	sub	x24, x8, x26
	ldr	w0, [x21]
	mov	x1, x19
	mov	x2, x24
	bl	_quicly_encode_max_streams_frame
	str	w0, [x21]
	ldr	x2, [sp, #8]
	str	w19, [x2], #4
	mov	x0, x23
	mov	x1, x24
	bl	_quicly_maxsender_record
Lloh6:
	adrp	x8, _MAX_STREAMS_SEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_STREAMS_SEND@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	bl	_probe_now
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	mov	x3, x24
	mov	x4, x19
	bl	_QUICLY_PROBE
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QUICLY_MAX_STREAMS_FRAME_CAPACITY,4,2 ; @QUICLY_MAX_STREAMS_FRAME_CAPACITY
	.comm	_on_ack_max_streams,4,2         ; @on_ack_max_streams
	.comm	_MAX_STREAMS_SEND,4,2           ; @MAX_STREAMS_SEND
	.no_dead_strip	_send_max_streams
.subsections_via_symbols
