	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_stream_control_frames
_send_stream_control_frames:            ## @send_stream_control_frames
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	_QUICLY_SENDER_STATE_SEND@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.1:
	leaq	32(%rbx), %rsi
	movq	_QUICLY_STOP_SENDING_FRAME_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_on_ack_stop_sending@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_prepare_stream_state_sender
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movl	(%r14), %edi
	movl	40(%rbx), %edx
	movl	48(%rbx), %esi
	callq	_quicly_encode_stop_sending_frame
	movl	%eax, (%r14)
LBB0_3:
	movq	%rbx, %rdi
	callq	_should_send_max_stream_data
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	56(%rbx), %r15
	movq	64(%rbx), %r12
	movl	52(%rbx), %edi
	movq	_QUICLY_MAX_STREAM_DATA_FRAME_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_on_ack_max_stream_data@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-48(%rbp), %rcx
	movq	%r14, %rsi
	callq	_allocate_ack_eliciting_frame
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	addq	%r12, %r15
	movl	(%r14), %edi
	movl	48(%rbx), %esi
	movq	%r15, %rdx
	callq	_quicly_encode_max_stream_data_frame
	movl	%eax, (%r14)
	movl	48(%rbx), %eax
	movq	-48(%rbp), %rdx
	movl	%eax, 4(%rdx)
	leaq	24(%rbx), %rdi
	movq	%r15, %rsi
	callq	_quicly_maxsender_record
	movq	_MAX_STREAM_DATA_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	52(%rbx), %r13d
	xorl	%eax, %eax
	callq	_probe_now
	movl	%r12d, %edi
	movl	%r13d, %esi
	movq	_QUICLY_SENDER_STATE_SEND@GOTPCREL(%rip), %r12
	movl	%eax, %edx
	movq	%rbx, %rcx
	movq	%r15, %r8
	callq	_QUICLY_PROBE
LBB0_6:
	movq	8(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	(%r12), %rcx
	jne	LBB0_9
## %bb.7:
	leaq	8(%rbx), %rsi
	movq	_QUICLY_RST_FRAME_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_on_ack_rst_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_prepare_stream_state_sender
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	movl	48(%rbx), %esi
	movl	(%rbx), %ecx
	movl	16(%rbx), %edx
	callq	_quicly_encode_rst_stream_frame
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUICLY_SENDER_STATE_SEND,8,3   ## @QUICLY_SENDER_STATE_SEND
	.comm	_QUICLY_STOP_SENDING_FRAME_CAPACITY,4,2 ## @QUICLY_STOP_SENDING_FRAME_CAPACITY
	.comm	_on_ack_stop_sending,4,2        ## @on_ack_stop_sending
	.comm	_QUICLY_MAX_STREAM_DATA_FRAME_CAPACITY,4,2 ## @QUICLY_MAX_STREAM_DATA_FRAME_CAPACITY
	.comm	_on_ack_max_stream_data,4,2     ## @on_ack_max_stream_data
	.comm	_MAX_STREAM_DATA_SEND,4,2       ## @MAX_STREAM_DATA_SEND
	.comm	_QUICLY_RST_FRAME_CAPACITY,4,2  ## @QUICLY_RST_FRAME_CAPACITY
	.comm	_on_ack_rst_stream,4,2          ## @on_ack_rst_stream
	.no_dead_strip	_send_stream_control_frames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_stream_control_frames
_send_stream_control_frames:            ; @send_stream_control_frames
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x1, x0
	ldr	x8, [x1, #32]!
Lloh0:
	adrp	x24, _QUICLY_SENDER_STATE_SEND@GOTPAGE
Lloh1:
	ldr	x24, [x24, _QUICLY_SENDER_STATE_SEND@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _QUICLY_STOP_SENDING_FRAME_CAPACITY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QUICLY_STOP_SENDING_FRAME_CAPACITY@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _on_ack_stop_sending@GOTPAGE
Lloh6:
	ldr	x8, [x8, _on_ack_stop_sending@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_prepare_stream_state_sender
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	w0, [x19]
	ldr	w1, [x20, #48]
	ldr	w2, [x20, #40]
	bl	_quicly_encode_stop_sending_frame
	str	w0, [x19]
LBB0_3:
	mov	x0, x20
	bl	_should_send_max_stream_data
	cbz	x0, LBB0_6
; %bb.4:
	ldp	x22, x21, [x20, #56]
	ldr	w0, [x20, #52]
Lloh8:
	adrp	x8, _QUICLY_MAX_STREAM_DATA_FRAME_CAPACITY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QUICLY_MAX_STREAM_DATA_FRAME_CAPACITY@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _on_ack_max_stream_data@GOTPAGE
Lloh12:
	ldr	x8, [x8, _on_ack_max_stream_data@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	add	x3, sp, #8
	mov	x1, x19
	bl	_allocate_ack_eliciting_frame
	cbnz	w0, LBB0_10
; %bb.5:
	add	x21, x22, x21
	ldr	w0, [x19]
	ldr	w1, [x20, #48]
	mov	x2, x21
	bl	_quicly_encode_max_stream_data_frame
	str	w0, [x19]
	ldr	w8, [x20, #48]
	ldr	x2, [sp, #8]
	str	w8, [x2, #4]
	add	x0, x20, #24
	mov	x1, x21
	bl	_quicly_maxsender_record
Lloh14:
	adrp	x8, _MAX_STREAM_DATA_SEND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_STREAM_DATA_SEND@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	ldr	w23, [x20, #52]
	bl	_probe_now
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	mov	x3, x20
	mov	x4, x21
	bl	_QUICLY_PROBE
LBB0_6:
	mov	x1, x20
	ldr	x8, [x1, #8]!
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
Lloh17:
	adrp	x8, _QUICLY_RST_FRAME_CAPACITY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QUICLY_RST_FRAME_CAPACITY@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x8, _on_ack_rst_stream@GOTPAGE
Lloh21:
	ldr	x8, [x8, _on_ack_rst_stream@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_prepare_stream_state_sender
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	w0, [x19]
	ldr	w1, [x20, #48]
	ldr	w2, [x20, #16]
	ldr	w3, [x20]
	bl	_quicly_encode_rst_stream_frame
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_QUICLY_SENDER_STATE_SEND,8,3   ; @QUICLY_SENDER_STATE_SEND
	.comm	_QUICLY_STOP_SENDING_FRAME_CAPACITY,4,2 ; @QUICLY_STOP_SENDING_FRAME_CAPACITY
	.comm	_on_ack_stop_sending,4,2        ; @on_ack_stop_sending
	.comm	_QUICLY_MAX_STREAM_DATA_FRAME_CAPACITY,4,2 ; @QUICLY_MAX_STREAM_DATA_FRAME_CAPACITY
	.comm	_on_ack_max_stream_data,4,2     ; @on_ack_max_stream_data
	.comm	_MAX_STREAM_DATA_SEND,4,2       ; @MAX_STREAM_DATA_SEND
	.comm	_QUICLY_RST_FRAME_CAPACITY,4,2  ; @QUICLY_RST_FRAME_CAPACITY
	.comm	_on_ack_rst_stream,4,2          ; @on_ack_rst_stream
	.no_dead_strip	_send_stream_control_frames
.subsections_via_symbols
