	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_setup_ostream
_on_setup_ostream:                      ## @on_setup_ostream
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	cmpl	$200, 16(%rsi)
	jne	LBB0_10
## %bb.1:
	movl	32(%r12), %r15d
	movl	36(%r12), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_h2o_memis
	testq	%rax, %rax
	je	LBB0_2
LBB0_10:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_h2o_setup_next_ostream
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	24(%r12), %r13
	movq	_H2O_TOKEN_X_TRAFFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$-1, %edx
	callq	_h2o_find_header
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.3:
	movl	%eax, %ebx
	movq	(%r13), %rax
	movslq	%ebx, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdx
	movl	8(%rax,%rcx), %esi
	movq	%rdx, -64(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_h2o_strtosizefwd
	movq	%rax, %r15
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r15
	sete	%dil
	callq	_H2O_UNLIKELY
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	callq	_H2O_ALIGNOF
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$72, %edx
	movq	%r14, %rcx
	callq	_h2o_add_ostream
	movq	%rax, %r13
	movq	_HUNDRED_MS@GOTPCREL(%rip), %rax
	imulq	(%rax), %r15
	movq	_ONE_SECOND@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_7
LBB0_5:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	movq	%rax, (%r13)
	cmpq	%rax, (%r12)
	jbe	LBB0_9
## %bb.8:
	movq	%rax, (%r12)
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_h2o_delete_header
	movq	_on_send@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	32(%r13), %r14
	movl	%eax, 44(%r13)
	movq	_on_stop@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r13)
	movq	%r12, 64(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r13)
	movq	(%r13), %rax
	movq	%rax, 8(%r13)
	movq	%r13, %rbx
	addq	$16, %rbx
	movq	_add_token@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_h2o_timer_init
	movq	24(%r13), %rax
	movl	(%rax), %edi
	movl	$100, %esi
	movq	%rbx, %rdx
	callq	_h2o_timer_link
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_H2O_TOKEN_X_TRAFFIC,4,2        ## @H2O_TOKEN_X_TRAFFIC
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_HUNDRED_MS,8,3                 ## @HUNDRED_MS
	.comm	_ONE_SECOND,8,3                 ## @ONE_SECOND
	.comm	_on_send,4,2                    ## @on_send
	.comm	_on_stop,4,2                    ## @on_stop
	.comm	_add_token,4,2                  ## @add_token
	.no_dead_strip	_on_setup_ostream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_setup_ostream
_on_setup_ostream:                      ; @on_setup_ostream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
	mov	x19, x1
	ldr	w8, [x1, #16]
	cmp	w8, #200
	b.ne	LBB0_2
; %bb.1:
	ldp	w22, w21, [x19, #32]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_h2o_memis
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_h2o_setup_next_ostream
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	add	x21, x19, #24
Lloh2:
	adrp	x8, _H2O_TOKEN_X_TRAFFIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_TOKEN_X_TRAFFIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #-1
	bl	_h2o_find_header
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.4:
	mov	x22, x0
	ldr	x8, [x21]
	add	x8, x8, w0, sxtw #4
	ldr	x9, [x8]
	ldr	w1, [x8, #8]
	stur	x9, [x29, #-56]
	sub	x0, x29, #56
	bl	_h2o_strtosizefwd
	mov	x24, x0
Lloh5:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_H2O_UNLIKELY
	cbnz	x0, LBB0_2
; %bb.5:
	mov	x0, sp
	bl	_H2O_ALIGNOF
	mov	x1, x0
	mov	x0, x19
	mov	w2, #72
	mov	x3, x20
	bl	_h2o_add_ostream
	mov	x23, x0
Lloh8:
	adrp	x8, _HUNDRED_MS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HUNDRED_MS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _ONE_SECOND@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ONE_SECOND@GOTPAGEOFF]
	mul	x8, x8, x24
Lloh13:
	ldr	x9, [x9]
	udiv	x8, x8, x9
	str	x8, [x0]
	ldr	x9, [x19]
	cmp	x9, x8
	b.ls	LBB0_7
; %bb.6:
	str	x8, [x19]
LBB0_7:
	mov	x0, x21
	mov	x1, x22
	bl	_h2o_delete_header
Lloh14:
	adrp	x8, _on_send@GOTPAGE
Lloh15:
	ldr	x8, [x8, _on_send@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	x20, x23, #32
Lloh17:
	adrp	x9, _on_stop@GOTPAGE
Lloh18:
	ldr	x9, [x9, _on_stop@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #40]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	x8, [x23, #24]
	stp	xzr, x19, [x23, #56]
	str	xzr, [x23, #48]
	ldr	x8, [x23]
	str	x8, [x23, #8]
	add	x21, x23, #16
Lloh20:
	adrp	x8, _add_token@GOTPAGE
Lloh21:
	ldr	x8, [x8, _add_token@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_h2o_timer_init
	ldr	x8, [x23, #24]
	ldr	w0, [x8]
	mov	w1, #100
	mov	x2, x21
	bl	_h2o_timer_link
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_H2O_TOKEN_X_TRAFFIC,4,2        ; @H2O_TOKEN_X_TRAFFIC
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_HUNDRED_MS,8,3                 ; @HUNDRED_MS
	.comm	_ONE_SECOND,8,3                 ; @ONE_SECOND
	.comm	_on_send,4,2                    ; @on_send
	.comm	_on_stop,4,2                    ; @on_stop
	.comm	_add_token,4,2                  ; @add_token
	.no_dead_strip	_on_setup_ostream
.subsections_via_symbols
