	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_io_read                        ## -- Begin function io_read
	.p2align	4, 0x90
_io_read:                               ## @io_read
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_SSIZE_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rdx, (%rax)
	seta	%dil
	callq	_assert
	testq	%r14, %r14
	je	LBB0_16
## %bb.1:
	movq	(%rbx), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	movq	%r14, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_user_abort@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_read
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cltq
	leaq	(%r12,%rax,4), %r12
	subq	%rax, %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	(%r13), %rdi
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_IS_EAGAIN_OR_EWOULDBLOCK
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_mytime_get_flush_timeout
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_io_wait
	cmpl	$129, %eax
	je	LBB0_15
## %bb.10:
	cmpl	$128, %eax
	je	LBB0_17
## %bb.11:
	cmpl	$130, %eax
	je	LBB0_7
## %bb.12:
	xorl	%eax, %eax
	callq	_message_bug
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movl	4(%r15), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_message_error
LBB0_7:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_18
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	subq	%rbx, %r14
LBB0_18:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, (%r15)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SSIZE_MAX,8,3                  ## @SSIZE_MAX
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_user_abort,8,3                 ## @user_abort
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Read error: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_io_read                        ; -- Begin function io_read
	.p2align	2
_io_read:                               ; @io_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SSIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	cset	w0, hi
	bl	_assert
	cbz	x19, LBB0_15
; %bb.1:
Lloh3:
	adrp	x23, _errno@GOTPAGE
Lloh4:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	x22, [x21]
Lloh5:
	adrp	x24, _EINTR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
	mov	x21, x19
Lloh7:
	adrp	x25, _user_abort@GOTPAGE
Lloh8:
	ldr	x25, [x25, _user_abort@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	cbnz	x8, LBB0_14
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x21, LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #8]
	mov	x1, x22
	mov	x2, x21
	bl	_read
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, w0, sxtw #2
	sub	x21, x21, w0, sxtw
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_IS_EAGAIN_OR_EWOULDBLOCK
	cbz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_mytime_get_flush_timeout
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1
	bl	_io_wait
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.10:
	cmp	w0, #128
	b.eq	LBB0_17
; %bb.11:
	cmp	w0, #130
	b.eq	LBB0_14
; %bb.12:
	bl	_message_bug
LBB0_13:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	w20, [x20, #4]
	ldr	x0, [x23]
	bl	_strerror
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_message_error
LBB0_14:
Lloh11:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	b	LBB0_18
LBB0_15:
	mov	x21, #0
	b	LBB0_17
LBB0_16:
	mov	w8, #1
	str	w8, [x20]
LBB0_17:
	sub	x0, x19, x21
LBB0_18:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SSIZE_MAX,8,3                  ; @SSIZE_MAX
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_user_abort,8,3                 ; @user_abort
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Read error: %s"

.subsections_via_symbols
