	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	leaq	44(%rbx), %rdi
	callq	_h2o_timer_unlink
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_copy_stats
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %eax
	movl	%eax, 40(%rbx)
	movq	_h2o_socket_buffer_prototype@GOTPCREL(%rip), %rsi
	callq	_h2o_buffer_init
	movq	_h2o_httpclient_error_is_eos@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	callq	_detach_client
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rcx
	callq	_h2o_req_log_error
	movl	$1, 4(%rbx)
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_H2O_SEND_STATE_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	callq	*%rax
	jmp	LBB0_6
LBB0_2:
	movl	$1, (%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_detach_client
LBB0_6:
	cmpl	$0, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_do_send
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_socket_buffer_prototype,4,2 ## @h2o_socket_buffer_prototype
	.comm	_h2o_httpclient_error_is_eos,8,3 ## @h2o_httpclient_error_is_eos
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lib/core/proxy.c"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_H2O_SEND_STATE_ERROR,4,2       ## @H2O_SEND_STATE_ERROR
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x19, [x0]
	add	x0, x19, #44
	bl	_h2o_timer_unlink
	cbz	x20, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_copy_stats
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
	ldr	w8, [x0]
	str	w8, [x19, #40]
Lloh0:
	adrp	x1, _h2o_socket_buffer_prototype@GOTPAGE
Lloh1:
	ldr	x1, [x1, _h2o_socket_buffer_prototype@GOTPAGEOFF]
	bl	_h2o_buffer_init
Lloh2:
	adrp	x8, _h2o_httpclient_error_is_eos@GOTPAGE
Lloh3:
	ldr	x8, [x8, _h2o_httpclient_error_is_eos@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_detach_client
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_h2o_req_log_error
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.3:
Lloh9:
	adrp	x9, _H2O_SEND_STATE_ERROR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _H2O_SEND_STATE_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x9]
	mov	w1, #0
	blr	x8
	b	LBB0_6
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_detach_client
LBB0_6:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_do_send
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_socket_buffer_prototype,4,2 ; @h2o_socket_buffer_prototype
	.comm	_h2o_httpclient_error_is_eos,8,3 ; @h2o_httpclient_error_is_eos
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lib/core/proxy.c"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_H2O_SEND_STATE_ERROR,4,2       ; @H2O_SEND_STATE_ERROR
	.no_dead_strip	_on_body
.subsections_via_symbols
