	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blread                         ## -- Begin function blread
	.p2align	4, 0x90
_blread:                                ## @blread
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %rbx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_dev_bsize@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rdx, %rax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	imull	%edx, %r13d
	movq	_bkgrdflag@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_slowio_start
LBB0_2:
	movq	_totalreads@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_diskreads@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_pread
	cltq
	cmpq	%r15, %rax
	jne	LBB0_5
## %bb.3:
	cmpq	$0, (%r14)
	je	LBB0_21
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_slowio_end
	jmp	LBB0_22
LBB0_5:
	movq	_surrender@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:
	movslq	-56(%rbp), %rsi                 ## 4-byte Folded Reload
	leaq	L_.str(%rip), %rdi
	callq	_pfatal
	movq	_EEXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_errx
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_rwerror
LBB0_9:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_memset
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	testq	%r15, %r15
	jle	LBB0_20
## %bb.10:
	movq	_secsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%r12d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%r14d
	movq	_secsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	addl	%eax, %r12d
	movslq	%eax, %rcx
	addq	%rcx, %rbx
	movslq	%r12d, %rcx
	cmpq	%r15, %rcx
	jge	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r13), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_pread
	movq	_secsize@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %eax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_dev_bsize@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	je	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$1, %ecx
	je	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%ecx, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	imull	%edi, %eax
	addl	%r12d, %eax
	cltd
	idivl	%esi
	movl	%eax, %esi
	movl	%r12d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rdi), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_12
LBB0_18:
	movl	$10, %edi
	callq	_putchar
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.19:
	movq	_resolved@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_22
LBB0_21:
	xorl	%r14d, %r14d
	jmp	LBB0_22
LBB0_20:
	movl	$10, %edi
	callq	_putchar
LBB0_22:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_bsize,4,2                  ## @dev_bsize
	.comm	_bkgrdflag,8,3                  ## @bkgrdflag
	.comm	_totalreads,4,2                 ## @totalreads
	.comm	_diskreads,4,2                  ## @diskreads
	.comm	_surrender,8,3                  ## @surrender
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CANNOT READ_BLK: %ld"

	.comm	_EEXIT,4,2                      ## @EEXIT
L_.str.1:                               ## @.str.1
	.asciz	"ABORTING DUE TO READ ERRORS"

L_.str.2:                               ## @.str.2
	.asciz	"READ BLK"

L_.str.3:                               ## @.str.3
	.asciz	"THE FOLLOWING DISK SECTORS COULD NOT BE READ:"

	.comm	_secsize,4,2                    ## @secsize
L_.str.4:                               ## @.str.4
	.asciz	" %jd (%jd),"

L_.str.5:                               ## @.str.5
	.asciz	" %jd,"

	.comm	_resolved,8,3                   ## @resolved
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blread                         ; -- Begin function blread
	.p2align	2
_blread:                                ; @blread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x27, _dev_bsize@GOTPAGE
Lloh1:
	ldr	x27, [x27, _dev_bsize@GOTPAGEOFF]
	ldr	w8, [x27]
	mul	w23, w8, w2
Lloh2:
	adrp	x24, _bkgrdflag@GOTPAGE
Lloh3:
	ldr	x24, [x24, _bkgrdflag@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_slowio_start
LBB0_2:
Lloh4:
	adrp	x8, _totalreads@GOTPAGE
Lloh5:
	ldr	x8, [x8, _totalreads@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh6:
	adrp	x8, _diskreads@GOTPAGE
Lloh7:
	ldr	x8, [x8, _diskreads@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	bl	_pread
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x24]
	cbz	x8, LBB0_20
; %bb.4:
	bl	_slowio_end
	b	LBB0_20
LBB0_5:
Lloh8:
	adrp	x8, _surrender@GOTPAGE
Lloh9:
	ldr	x8, [x8, _surrender@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	sxtw	x1, w20
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pfatal
Lloh13:
	adrp	x8, _EEXIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EEXIT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_rwerror
LBB0_8:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x19
	bl	_memset
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	cmp	x19, #0
	b.le	LBB0_19
; %bb.9:
	mov	w24, #0
	mov	w28, #0
Lloh22:
	adrp	x25, _secsize@GOTPAGE
Lloh23:
	ldr	x25, [x25, _secsize@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh24:
	adrp	x26, l_.str.4@PAGE
Lloh25:
	add	x26, x26, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x2, x0
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w28, w2, w28
	add	x21, x21, w2, sxtw
	sxtw	x8, w28
	cmp	x8, x19
	b.ge	LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	w3, w28, w23
	mov	x0, x22
	mov	x1, x21
	bl	_pread
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x27]
	cmp	w8, w9
	ccmp	w9, #1, #4, ne
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	sdiv	w8, w28, w9
	add	w8, w8, w20
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	madd	w10, w9, w20, w28
	sdiv	w9, w28, w9
	add	w9, w9, w20
	sdiv	w8, w10, w8
	stp	x8, x9, [sp]
	mov	x0, x26
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_printf
	add	w24, w24, #1
	ldr	w2, [x25]
	b	LBB0_11
LBB0_17:
	mov	w0, #10
	bl	_putchar
	cbz	w24, LBB0_21
; %bb.18:
Lloh28:
	adrp	x8, _resolved@GOTPAGE
Lloh29:
	ldr	x8, [x8, _resolved@GOTPAGEOFF]
Lloh30:
	str	xzr, [x8]
	b	LBB0_21
LBB0_19:
	mov	w0, #10
	bl	_putchar
LBB0_20:
	mov	w24, #0
LBB0_21:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_bsize,4,2                  ; @dev_bsize
	.comm	_bkgrdflag,8,3                  ; @bkgrdflag
	.comm	_totalreads,4,2                 ; @totalreads
	.comm	_diskreads,4,2                  ; @diskreads
	.comm	_surrender,8,3                  ; @surrender
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CANNOT READ_BLK: %ld"

	.comm	_EEXIT,4,2                      ; @EEXIT
l_.str.1:                               ; @.str.1
	.asciz	"ABORTING DUE TO READ ERRORS"

l_.str.2:                               ; @.str.2
	.asciz	"READ BLK"

l_.str.3:                               ; @.str.3
	.asciz	"THE FOLLOWING DISK SECTORS COULD NOT BE READ:"

	.comm	_secsize,4,2                    ; @secsize
l_.str.4:                               ; @.str.4
	.asciz	" %jd (%jd),"

l_.str.5:                               ; @.str.5
	.asciz	" %jd,"

	.comm	_resolved,8,3                   ; @resolved
.subsections_via_symbols
