	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_on_receive
_client_on_receive:                     ## @client_on_receive
	.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	%rdi, %rbx
	movq	8(%rdi), %r13
	callq	_quicly_streambuf_ingress_receive
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_quicly_streambuf_ingress_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	movq	(%r13), %r12
	testq	%r12, %r12
	jne	LBB0_4
## %bb.3:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_4:
	movl	%edx, %edi
	movl	$1, %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_fwrite
	movq	%r12, %rdi
	callq	_fflush
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_quicly_streambuf_ingress_shift
LBB0_5:
	leaq	4(%rbx), %rdi
	callq	_quicly_recvstate_transfer_complete
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_fclose
LBB0_8:
	movq	_client_on_receive.num_resp_received(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, _client_on_receive.num_resp_received(%rip)
	movq	_reqs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, 8(%rcx,%rax,8)
	jne	LBB0_12
## %bb.9:
	movq	_request_interval@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_11
## %bb.10:
	movq	_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	*(%rdi)
	addq	(%r15), %rax
	movq	_enqueue_requests_at@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_12
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_dump_stats
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_quicly_close
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,8,3                     ## @stdout
.zerofill __DATA,__bss,_client_on_receive.num_resp_received,8,3 ## @client_on_receive.num_resp_received
	.comm	_reqs,8,3                       ## @reqs
	.comm	_request_interval,8,3           ## @request_interval
	.comm	_ctx,8,3                        ## @ctx
	.comm	_enqueue_requests_at,8,3        ## @enqueue_requests_at
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.no_dead_strip	_client_on_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_on_receive
_client_on_receive:                     ; @client_on_receive
	.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	x20, x0
	ldr	x23, [x0, #8]
	bl	_quicly_streambuf_ingress_receive
	mov	x19, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x19
	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
	ret
LBB0_2:
	mov	x0, x20
	bl	_quicly_streambuf_ingress_get
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _stdout@GOTPAGE
Lloh1:
	ldr	x9, [x9, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x22, x9, x8, eq
	mov	x0, x1
	mov	w1, #1
	mov	x2, x21
	mov	x3, x22
	bl	_fwrite
	mov	x0, x22
	bl	_fflush
	mov	x0, x20
	mov	x1, x21
	bl	_quicly_streambuf_ingress_shift
LBB0_4:
	add	x0, x20, #4
	bl	_quicly_recvstate_transfer_complete
	cbz	x0, LBB0_1
; %bb.5:
	ldr	x0, [x23]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_fclose
LBB0_7:
Lloh3:
	adrp	x8, _client_on_receive.num_resp_received@PAGE
	ldr	x9, [x8, _client_on_receive.num_resp_received@PAGEOFF]
	add	x9, x9, #1
	str	x9, [x8, _client_on_receive.num_resp_received@PAGEOFF]
Lloh4:
	adrp	x8, _reqs@GOTPAGE
Lloh5:
	ldr	x8, [x8, _reqs@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x8, [x8, x9, lsl #3]
	cbnz	x8, LBB0_1
; %bb.8:
Lloh7:
	adrp	x21, _request_interval@GOTPAGE
Lloh8:
	ldr	x21, [x21, _request_interval@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _ctx@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	ldr	x8, [x0]
	blr	x8
	ldr	x8, [x21]
	add	x8, x8, x0
Lloh12:
	adrp	x9, _enqueue_requests_at@GOTPAGE
Lloh13:
	ldr	x9, [x9, _enqueue_requests_at@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
	b	LBB0_1
LBB0_10:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_dump_stats
	ldr	w0, [x20]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_quicly_close
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,8,3                     ; @stdout
.zerofill __DATA,__bss,_client_on_receive.num_resp_received,8,3 ; @client_on_receive.num_resp_received
	.comm	_reqs,8,3                       ; @reqs
	.comm	_request_interval,8,3           ; @request_interval
	.comm	_ctx,8,3                        ; @ctx
	.comm	_enqueue_requests_at,8,3        ; @enqueue_requests_at
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.no_dead_strip	_client_on_receive
.subsections_via_symbols
