	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disk_strategy
_disk_strategy:                         ## @disk_strategy
	.cfi_startproc
## %bb.0:
	movl	$-1, %eax
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdi, %r12
	testq	%r9, %r9
	je	LBB0_3
## %bb.2:
	movq	$0, (%r9)
LBB0_3:
	movslq	%edx, %rbx
	movslq	(%r12), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_printf
	movq	_disk@GOTPCREL(%rip), %rax
	movl	4(%rax), %edi
	addl	(%r12), %ebx
	imull	(%rax), %ebx
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_pread
	movslq	%eax, %rcx
	xorl	%eax, %eax
	cmpq	%r15, %rcx
	setne	%al
	negl	%eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read %zu bytes from the block %lld [+%lld]\n"

	.comm	_disk,8,2                       ## @disk
	.no_dead_strip	_disk_strategy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disk_strategy
_disk_strategy:                         ; @disk_strategy
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.ne	LBB0_4
; %bb.1:
	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	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
	cbz	x5, LBB0_3
; %bb.2:
	str	xzr, [x5]
LBB0_3:
	sxtw	x2, w21
	ldrsw	x3, [x22]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf
Lloh2:
	adrp	x8, _disk@GOTPAGE
Lloh3:
	ldr	x8, [x8, _disk@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w9, w9, w21
	ldp	w8, w0, [x8]
	mul	w3, w9, w8
	mov	x1, x20
	mov	x2, x19
	bl	_pread
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x19
	csetm	w0, ne
	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
	ret
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	mov	w0, #-1
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read %zu bytes from the block %lld [+%lld]\n"

	.comm	_disk,8,2                       ; @disk
	.no_dead_strip	_disk_strategy
.subsections_via_symbols
