	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_on_ready
_read_on_ready:                         ## @read_on_ready
	.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	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	24(%rdi), %rax
	movq	(%rax), %r15
	movq	_H2O_SOCKET_FLAG_DONT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
LBB0_1:
	xorl	%esi, %esi
	jmp	LBB0_3
LBB0_2:
	leaq	24(%rbx), %rax
	movl	40(%rbx), %edi
	movq	32(%rbx), %rcx
	leaq	8(%rcx), %rsi
	testq	%rcx, %rcx
	cmoveq	%rax, %rsi
	callq	_on_read_core
	movq	%rax, %rsi
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx), %rcx
	subq	%r15, %rcx
	movq	%rcx, 8(%rbx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.8:
	movq	%r14, %rdi
	callq	_decode_ssl_input
	movq	%rax, %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_SOCKET_FLAG_DONT_READ,4,2  ## @H2O_SOCKET_FLAG_DONT_READ
	.no_dead_strip	_read_on_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_on_ready
_read_on_ready:                         ; @read_on_ready
	.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	x19, x0
	mov	x20, x0
	ldr	w9, [x20], #8
	mov	x8, x0
	ldr	x10, [x8, #24]!
	ldr	x21, [x10]
Lloh0:
	adrp	x10, _H2O_SOCKET_FLAG_DONT_READ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _H2O_SOCKET_FLAG_DONT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
LBB0_1:
	mov	x1, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #40]
	ldr	x9, [x19, #32]
	add	x10, x9, #8
	cmp	x9, #0
	csel	x1, x8, x10, eq
	bl	_on_read_core
	mov	x1, x0
	cbz	x0, LBB0_4
LBB0_3:
	ldp	x2, x8, [x19, #16]
	ldr	x8, [x8]
	sub	x8, x8, x21
	str	x8, [x19, #8]
	mov	x0, x20
	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
	br	x2
LBB0_4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_1
; %bb.5:
	ldr	x8, [x8]
	cbnz	x8, LBB0_1
; %bb.6:
	mov	x0, x20
	bl	_decode_ssl_input
	mov	x1, x0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_SOCKET_FLAG_DONT_READ,4,2  ; @H2O_SOCKET_FLAG_DONT_READ
	.no_dead_strip	_read_on_ready
.subsections_via_symbols
