	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_on_read_first
_client_on_read_first:                  ## @client_on_read_first
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	callq	_h2o_socket_get_loop
	movl	%eax, %edi
	callq	_h2o_now
	movq	_client_stats@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%rcx)
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	%esi, 4(%rcx)
	movl	%esi, (%rcx)
	movq	%rbx, %rdi
	callq	_h2o_buffer_consume
	leaq	L_.str.1(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, -16(%rbp)
	movq	_client_on_write_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_h2o_socket_write
	movq	_client_on_read_second@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_h2o_socket_read_start
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %rdx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"connection closed unexpectedly:%s\n"

	.comm	_client_stats,12,2              ## @client_stats
L_.str.1:                               ## @.str.1
	.asciz	"!"

	.comm	_client_on_write_complete,4,2   ## @client_on_write_complete
	.comm	_client_on_read_second,4,2      ## @client_on_read_second
	.no_dead_strip	_client_on_read_first
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_on_read_first
_client_on_read_first:                  ; @client_on_read_first
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbnz	x1, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_h2o_socket_get_loop
	bl	_h2o_now
Lloh0:
	adrp	x8, _client_stats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _client_stats@GOTPAGEOFF]
	str	w0, [x8, #8]
	ldr	x9, [x19]
	ldr	w1, [x9]
	stp	w1, w1, [x8]
	mov	x0, x19
	bl	_h2o_buffer_consume
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_H2O_STRLIT
	str	w0, [sp, #8]
Lloh4:
	adrp	x8, _client_on_write_complete@GOTPAGE
Lloh5:
	ldr	x8, [x8, _client_on_write_complete@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_h2o_socket_write
Lloh7:
	adrp	x8, _client_on_read_second@GOTPAGE
Lloh8:
	ldr	x8, [x8, _client_on_read_second@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_h2o_socket_read_start
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	mov	x2, x1
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"connection closed unexpectedly:%s\n"

	.comm	_client_stats,12,2              ; @client_stats
l_.str.1:                               ; @.str.1
	.asciz	"!"

	.comm	_client_on_write_complete,4,2   ; @client_on_write_complete
	.comm	_client_on_read_second,4,2      ; @client_on_read_second
	.no_dead_strip	_client_on_read_first
.subsections_via_symbols
