	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_block_read                     ## -- Begin function block_read
	.p2align	4, 0x90
_block_read:                            ## @block_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, %r15
	movq	%rsi, %rbx
	movl	%edi, %r12d
	addq	%rsi, %r15
	movq	_SSIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	%rax, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r15, %rbx
	jae	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	subl	%ebx, %edi
	movq	%r13, %rsi
	callq	_MIN
	movq	%rax, %r14
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_read
	testq	%rax, %rax
	jg	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r14, %rcx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, %r13
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_SA_RESTART@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
LBB0_8:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_12
LBB0_11:
	subq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSIZE_MAX,8,3                  ## @SSIZE_MAX
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_SA_RESTART,4,2                 ## @SA_RESTART
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_block_read                     ; -- Begin function block_read
	.p2align	2
_block_read:                            ; @block_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	add	x24, x1, x2
Lloh0:
	adrp	x8, _SSIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSIZE_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x25, _errno@GOTPAGE
Lloh3:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x26, _EINVAL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
Lloh6:
	adrp	x27, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x27, [x27, _INT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
Lloh9:
	adrp	x28, _EINTR@GOTPAGE
Lloh10:
	ldr	x28, [x28, _EINTR@GOTPAGEOFF]
	mov	x21, x1
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, x0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x21, x24
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w0, w24, w21
	mov	x1, x22
	bl	_MIN
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_read
	cmp	x0, #0
	b.gt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	ldr	x10, [x26]
	ldr	x9, [x27]
	cmp	x8, x10
	ccmp	x9, x23, #2, eq
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh11:
	adrp	x9, _SA_RESTART@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SA_RESTART@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	x10, [x28]
	cmp	w9, #0
	ccmp	x8, x10, #0, eq
	b.eq	LBB0_2
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x9
	b	LBB0_2
LBB0_8:
	sub	x0, x21, x19
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh14:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SSIZE_MAX,8,3                  ; @SSIZE_MAX
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_SA_RESTART,4,2                 ; @SA_RESTART
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
.subsections_via_symbols
