	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_body_chunked
_on_body_chunked:                       ## @on_body_chunked
	.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, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	leaq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_h2o_timer_unlink
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	_h2o_socket_error_closed@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.2:
	leaq	56(%r13), %rdi
	callq	_phr_decode_chunked_is_in_data
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	_h2o_httpclient_error_io@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_on_error                       ## TAILCALL
LBB0_5:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.6:
	movq	64(%r13), %rcx
	movq	(%rcx), %rbx
	movq	%rax, -48(%rbp)
	leaq	56(%r13), %rdi
	movq	(%rbx), %rsi
	subq	%rax, %rsi
	addq	8(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	callq	_phr_decode_chunked
	cmpl	$-2, %eax
	je	LBB0_7
## %bb.8:
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	movq	(%r15), %rax
	movq	%rax, -48(%rbp)
	movq	$0, 40(%r13)
	movq	_h2o_httpclient_error_http1_parse_failed@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_13
LBB0_3:
	cmpl	$0, (%r13)
	je	LBB0_4
## %bb.24:
	movq	$0, 40(%r13)
	movq	_STREAM_STATE_CLOSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r13)
	movq	16(%r13), %rax
	movl	4(%rax), %edi
	callq	_h2o_gettimeofday
	movq	%rax, 32(%r13)
	movq	_h2o_httpclient_error_is_eos@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	*24(%r13)
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close_response                 ## TAILCALL
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_11:
	movq	$0, 40(%r13)
LBB0_12:
	movq	_STREAM_STATE_CLOSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r13)
	movq	_h2o_httpclient_error_is_eos@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	16(%r13), %rax
	movl	4(%rax), %edi
	callq	_h2o_gettimeofday
	movq	%rax, 32(%r13)
LBB0_13:
	movq	-48(%rbp), %rax
	subq	(%r15), %rax
	addq	%rax, 8(%rbx)
	je	LBB0_15
## %bb.14:
	movl	$1, (%r13)
LBB0_15:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*24(%r13)
	movq	48(%r13), %rcx
	movq	_STREAM_STATE_CLOSED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	callq	_close_response
	jmp	LBB0_23
LBB0_17:
	testq	%r12, %r12
	jne	LBB0_18
## %bb.19:
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	$0, 40(%r13)
LBB0_18:
	movq	%r13, %rdi
	callq	_close_client
	jmp	LBB0_23
LBB0_21:
	movq	%r14, %rdi
	callq	_do_update_window
LBB0_22:
	movq	16(%r13), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	%r14, %rdx
	callq	_h2o_timer_link
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_socket_error_closed,8,3    ## @h2o_socket_error_closed
	.comm	_STREAM_STATE_CLOSED,8,3        ## @STREAM_STATE_CLOSED
	.comm	_h2o_httpclient_error_is_eos,8,3 ## @h2o_httpclient_error_is_eos
	.comm	_h2o_httpclient_error_io,4,2    ## @h2o_httpclient_error_io
	.comm	_h2o_httpclient_error_http1_parse_failed,8,3 ## @h2o_httpclient_error_http1_parse_failed
	.no_dead_strip	_on_body_chunked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_body_chunked
_on_body_chunked:                       ; @on_body_chunked
	.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	x22, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	add	x20, x19, #8
	mov	x0, x20
	bl	_h2o_timer_unlink
	cbz	x22, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _h2o_socket_error_closed@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h2o_socket_error_closed@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_3
; %bb.2:
	add	x0, x19, #56
	bl	_phr_decode_chunked_is_in_data
	cbz	w0, LBB0_9
LBB0_3:
Lloh3:
	adrp	x8, _h2o_httpclient_error_io@GOTPAGE
Lloh4:
	ldr	x8, [x8, _h2o_httpclient_error_io@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_on_error
LBB0_4:
	ldr	x8, [x21]
	cbz	x8, LBB0_23
; %bb.5:
	ldr	x9, [x19, #64]
	ldr	x23, [x9]
	str	x8, [sp, #8]
	add	x0, x19, #56
	ldp	x9, x10, [x23]
	sub	x8, x9, x8
	add	x1, x8, x10
	add	x2, sp, #8
	bl	_phr_decode_chunked
	cmn	w0, #2
	b.eq	LBB0_11
; %bb.6:
	cbz	w0, LBB0_13
; %bb.7:
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.8:
	ldr	x8, [x21]
	str	x8, [sp, #8]
	str	xzr, [x19, #40]
Lloh6:
	adrp	x8, _h2o_httpclient_error_http1_parse_failed@GOTPAGE
Lloh7:
	ldr	x8, [x8, _h2o_httpclient_error_http1_parse_failed@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	b	LBB0_14
LBB0_9:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.10:
Lloh9:
	adrp	x8, _STREAM_STATE_CLOSED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STREAM_STATE_CLOSED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	xzr, x8, [x19, #40]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_h2o_gettimeofday
	str	x0, [x19, #32]
	ldr	x8, [x19, #24]
Lloh12:
	adrp	x9, _h2o_httpclient_error_is_eos@GOTPAGE
Lloh13:
	ldr	x9, [x9, _h2o_httpclient_error_is_eos@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x9]
	mov	x0, x20
	blr	x8
	mov	x0, x19
	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
	b	_close_response
LBB0_11:
	mov	x22, #0
	b	LBB0_14
LBB0_12:
	str	xzr, [x19, #40]
LBB0_13:
Lloh15:
	adrp	x8, _STREAM_STATE_CLOSED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STREAM_STATE_CLOSED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19, #48]
Lloh18:
	adrp	x8, _h2o_httpclient_error_is_eos@GOTPAGE
Lloh19:
	ldr	x8, [x8, _h2o_httpclient_error_is_eos@GOTPAGEOFF]
Lloh20:
	ldr	x22, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_h2o_gettimeofday
	str	x0, [x19, #32]
LBB0_14:
	ldr	x8, [x21]
	ldr	x9, [sp, #8]
	ldr	x10, [x23, #8]
	sub	x8, x9, x8
	adds	x8, x8, x10
	str	x8, [x23, #8]
	b.eq	LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x19]
LBB0_16:
	ldr	x8, [x19, #24]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	ldr	x8, [x19, #48]
Lloh21:
	adrp	x9, _STREAM_STATE_CLOSED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _STREAM_STATE_CLOSED@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_close_response
	b	LBB0_24
LBB0_18:
	cbnz	x22, LBB0_21
; %bb.19:
	cbz	w0, LBB0_22
; %bb.20:
	str	xzr, [x19, #40]
LBB0_21:
	mov	x0, x19
	bl	_close_client
	b	LBB0_24
LBB0_22:
	mov	x0, x20
	bl	_do_update_window
LBB0_23:
	ldr	x8, [x19, #16]
	ldp	w1, w0, [x8]
	mov	x2, x20
	bl	_h2o_timer_link
LBB0_24:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_socket_error_closed,8,3    ; @h2o_socket_error_closed
	.comm	_STREAM_STATE_CLOSED,8,3        ; @STREAM_STATE_CLOSED
	.comm	_h2o_httpclient_error_is_eos,8,3 ; @h2o_httpclient_error_is_eos
	.comm	_h2o_httpclient_error_io,4,2    ; @h2o_httpclient_error_io
	.comm	_h2o_httpclient_error_http1_parse_failed,8,3 ; @h2o_httpclient_error_http1_parse_failed
	.no_dead_strip	_on_body_chunked
.subsections_via_symbols
