	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdisk_strategy
_vdisk_strategy:                        ## @vdisk_strategy
	.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
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rcx, %r13
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	callq	_vdisk_get_info
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	testq	%r13, %r13
	je	LBB0_11
## %bb.3:
	movq	%rax, %rbx
	movl	%r13d, %eax
	andl	$511, %eax                      ## imm = 0x1FF
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_DEVT_DISK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %eax
	imull	(%r15), %eax
	leal	511(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$9, %ecx
	addl	%ecx, %r14d
LBB0_6:
	movl	4(%rbx), %edi
	shll	$9, %r14d
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	_F_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	cmpl	$128, %r12d
	je	LBB0_14
## %bb.8:
	cmpl	$129, %r12d
	jne	LBB0_18
## %bb.9:
	movl	4(%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_read
	jmp	LBB0_15
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	4(%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_write
LBB0_15:
	movq	%rax, %rcx
	movq	(%r14), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.16:
	testq	%rax, %rax
	jne	LBB0_13
## %bb.17:
	movq	%rcx, (%rdx)
	movq	(%r14), %rax
	jmp	LBB0_13
LBB0_18:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DEVT_DISK,8,3                  ## @DEVT_DISK
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_errno,8,3                      ## @errno
	.comm	_F_MASK,4,2                     ## @F_MASK
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_vdisk_strategy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdisk_strategy
_vdisk_strategy:                        ; @vdisk_strategy
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x5
	mov	x21, x4
	mov	x20, x3
	mov	x24, x2
	mov	x23, x1
	mov	x25, x0
	bl	_vdisk_get_info
	cbz	x0, LBB0_10
; %bb.2:
	cbz	x20, LBB0_11
; %bb.3:
	and	x8, x20, #0x1ff
	cbnz	x8, LBB0_11
; %bb.4:
	mov	x22, x0
	ldr	x8, [x25, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DEVT_DISK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEVT_DISK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x25]
	ldr	w9, [x22]
	mul	w8, w9, w8
	add	w9, w8, #511
	cmp	w8, #0
	csel	w8, w9, w8, lt
	add	w24, w24, w8, asr #9
LBB0_6:
	ldr	w0, [x22, #4]
	lsl	w1, w24, #9
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.7:
Lloh6:
	adrp	x24, _errno@GOTPAGE
Lloh7:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
Lloh8:
	adrp	x8, _F_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _F_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w23
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.8:
	cmp	w8, #129
	b.ne	LBB0_18
; %bb.9:
	ldr	w0, [x22, #4]
	mov	x1, x21
	mov	x2, x20
	bl	_read
	b	LBB0_15
LBB0_10:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
LBB0_14:
	ldr	w0, [x22, #4]
	mov	x1, x21
	mov	x2, x20
	bl	_write
LBB0_15:
	mov	x8, x0
	ldr	x0, [x24]
	cbz	x19, LBB0_13
; %bb.16:
	cbnz	x0, LBB0_13
; %bb.17:
	str	x8, [x19]
	ldr	x0, [x24]
	b	LBB0_13
LBB0_18:
Lloh15:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DEVT_DISK,8,3                  ; @DEVT_DISK
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_errno,8,3                      ; @errno
	.comm	_F_MASK,4,2                     ; @F_MASK
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_vdisk_strategy
.subsections_via_symbols
