	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_body_content_length
_on_body_content_length:                ## @on_body_content_length
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_h2o_timer_unlink
	testq	%r15, %r15
	je	LBB0_1
## %bb.15:
	movq	_h2o_httpclient_error_io@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_on_error                       ## TAILCALL
LBB0_1:
	movq	(%rbx), %rcx
	movq	48(%r14), %rax
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdx
	subq	%rcx, %rdx
	jle	LBB0_4
## %bb.7:
	movq	%rdx, 48(%r14)
	jmp	LBB0_8
LBB0_2:
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_6
LBB0_4:
	jge	LBB0_6
## %bb.5:
	subl	%ecx, %eax
	movq	56(%r14), %rcx
	movq	(%rcx), %rcx
	addl	%eax, (%rcx)
	movq	$0, 32(%r14)
LBB0_6:
	movq	$0, 48(%r14)
	movq	_STREAM_STATE_CLOSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	callq	_h2o_gettimeofday
	movl	%eax, 24(%r14)
LBB0_8:
	movq	40(%r14), %rax
	movq	_STREAM_STATE_CLOSED@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_9
## %bb.10:
	movq	_h2o_httpclient_error_is_eos@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_11
LBB0_9:
	xorl	%esi, %esi
LBB0_11:
	movq	%r14, %rdi
	callq	*16(%r14)
	movq	40(%r14), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_12
## %bb.16:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close_response                 ## TAILCALL
LBB0_12:
	testl	%eax, %eax
	je	LBB0_13
## %bb.17:
	movq	$0, 32(%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close_client                   ## TAILCALL
LBB0_13:
	movq	%r14, %rdi
	callq	_do_update_window
LBB0_14:
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_timer_link                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_httpclient_error_io,4,2    ## @h2o_httpclient_error_io
	.comm	_STREAM_STATE_CLOSED,8,3        ## @STREAM_STATE_CLOSED
	.comm	_h2o_httpclient_error_is_eos,8,3 ## @h2o_httpclient_error_is_eos
	.no_dead_strip	_on_body_content_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_body_content_length
_on_body_content_length:                ; @on_body_content_length
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_h2o_timer_unlink
	cbz	x21, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _h2o_httpclient_error_io@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h2o_httpclient_error_io@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_on_error
LBB0_2:
	ldr	x9, [x20]
	ldr	x8, [x19, #48]
Lloh3:
	adrp	x20, _STREAM_STATE_CLOSED@GOTPAGE
Lloh4:
	ldr	x20, [x20, _STREAM_STATE_CLOSED@GOTPAGEOFF]
	cbz	x9, LBB0_5
; %bb.3:
	subs	x10, x8, x9
	b.le	LBB0_6
; %bb.4:
	str	x10, [x19, #48]
	b	LBB0_9
LBB0_5:
	cbnz	x8, LBB0_14
	b	LBB0_8
LBB0_6:
	b.ge	LBB0_8
; %bb.7:
	ldr	x10, [x19, #56]
	ldr	x10, [x10]
	ldr	w11, [x10]
	sub	w8, w8, w9
	add	w8, w11, w8
	str	w8, [x10]
	str	xzr, [x19, #32]
LBB0_8:
	ldr	x8, [x20]
	stp	x8, xzr, [x19, #40]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_h2o_gettimeofday
	str	w0, [x19, #24]
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	x9, [x19, #40]
	ldr	x10, [x20]
Lloh5:
	adrp	x11, _h2o_httpclient_error_is_eos@GOTPAGE
Lloh6:
	ldr	x11, [x11, _h2o_httpclient_error_is_eos@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x9, x10
	csel	x1, x11, xzr, eq
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #40]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_close_response
LBB0_11:
	cbz	w0, LBB0_13
; %bb.12:
	str	xzr, [x19, #32]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_close_client
LBB0_13:
	mov	x0, x19
	bl	_do_update_window
LBB0_14:
	ldr	x8, [x19, #8]
	ldp	w1, w0, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_h2o_timer_link
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_httpclient_error_io,4,2    ; @h2o_httpclient_error_io
	.comm	_STREAM_STATE_CLOSED,8,3        ; @STREAM_STATE_CLOSED
	.comm	_h2o_httpclient_error_is_eos,8,3 ; @h2o_httpclient_error_is_eos
	.no_dead_strip	_on_body_content_length
.subsections_via_symbols
