	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_body
_on_body:                               ## @on_body
	.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, %r14
	movq	_h2o_httpclient_error_is_eos@GOTPCREL(%rip), %r13
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	cmpq	%rbx, (%r13)
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_on_error
	movl	$-1, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %edi
	movq	_stdout@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	$1, %esi
	callq	_fwrite
	movl	(%r12), %edi
	callq	_fflush
	movq	8(%r14), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %esi
	callq	_h2o_buffer_consume
	xorl	%r15d, %r15d
	cmpq	%rbx, (%r13)
	jne	LBB0_6
## %bb.4:
	movq	_cnt_left@GOTPCREL(%rip), %rax
	decq	(%rax)
	je	LBB0_6
## %bb.5:
	movq	_pool@GOTPCREL(%rip), %rdi
	callq	_h2o_mem_clear_pool
	movl	(%r12), %edi
	callq	_fileno
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ftruncate
	movl	(%r14), %edi
	callq	_start_request
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_httpclient_error_is_eos,8,3 ## @h2o_httpclient_error_is_eos
	.comm	_stdout,4,2                     ## @stdout
	.comm	_cnt_left,8,3                   ## @cnt_left
	.comm	_pool,4,2                       ## @pool
	.no_dead_strip	_on_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_body
_on_body:                               ; @on_body
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _h2o_httpclient_error_is_eos@GOTPAGE
Lloh1:
	ldr	x22, [x22, _h2o_httpclient_error_is_eos@GOTPAGEOFF]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x22]
	cmp	x8, x20
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_on_error
	mov	w0, #-1
	b	LBB0_7
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldp	w2, w0, [x8]
Lloh2:
	adrp	x21, _stdout@GOTPAGE
Lloh3:
	ldr	x21, [x21, _stdout@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	w1, #1
	bl	_fwrite
	ldr	w0, [x21]
	bl	_fflush
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	w1, [x8]
	bl	_h2o_buffer_consume
	ldr	x8, [x22]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.4:
Lloh4:
	adrp	x8, _cnt_left@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cnt_left@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, _pool@GOTPAGE
Lloh7:
	ldr	x0, [x0, _pool@GOTPAGEOFF]
	bl	_h2o_mem_clear_pool
	ldr	w0, [x21]
	bl	_fileno
	mov	w1, #0
	bl	_ftruncate
	ldr	w0, [x19]
	bl	_start_request
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_httpclient_error_is_eos,8,3 ; @h2o_httpclient_error_is_eos
	.comm	_stdout,4,2                     ; @stdout
	.comm	_cnt_left,8,3                   ; @cnt_left
	.comm	_pool,4,2                       ; @pool
	.no_dead_strip	_on_body
.subsections_via_symbols
