	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIO_RotateDisks                ## -- Begin function SIO_RotateDisks
	.p2align	4, 0x90
_SIO_RotateDisks:                       ## @SIO_RotateDisks
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SIO_MAX_DRIVES@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_FILENAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rax
	imulq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %ebx
	jle	LBB0_21
## %bb.1:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	_SIO_filename@GOTPCREL(%rip), %r12
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_strcpy
	incq	%rbx
	movl	%ebx, %edi
	callq	_SIO_Dismount
	movslq	(%r13), %rax
	addq	%r15, %r14
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	cmpl	$2, %eax
	jl	LBB0_11
## %bb.4:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rbx
	movl	$1, %r12d
	leaq	L_.str(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movslq	(%r13), %rax
	addq	%r15, %rbx
	cmpq	%rax, %r12
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_SIO_Mount
	testl	%eax, %eax
	jne	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_11:
	testl	%eax, %eax
	jle	LBB0_20
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	1(%rbx), %rax
	cmpq	$1, %rax
	jbe	LBB0_20
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	decq	%rbx
	movl	%ebx, %r12d
	imulq	%r15, %r12
	addq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r14d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_SIO_Mount
	testl	%eax, %eax
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_21
## %bb.18:
	movl	(%rbx), %eax
	jmp	LBB0_21
LBB0_20:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIO_MAX_DRIVES,4,2             ## @SIO_MAX_DRIVES
	.comm	_FILENAME_MAX,4,2               ## @FILENAME_MAX
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SIO_filename,8,3               ## @SIO_filename
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"None"

L_.str.1:                               ## @.str.1
	.asciz	"Off"

L_.str.2:                               ## @.str.2
	.asciz	"Empty"

	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIO_RotateDisks                ; -- Begin function SIO_RotateDisks
	.p2align	2
_SIO_RotateDisks:                       ; @SIO_RotateDisks
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _SIO_MAX_DRIVES@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SIO_MAX_DRIVES@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh5:
	adrp	x9, _FILENAME_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FILENAME_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x9]
	mul	x9, x26, x8
	add	x10, x9, #15
	and	x12, x10, #0xfffffffffffffff0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x12
	mov	sp, x20
Lloh10:
	adrp	x9, _TRUE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x9]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x21, #0
Lloh13:
	adrp	x23, _SIO_filename@GOTPAGE
Lloh14:
	ldr	x23, [x23, _SIO_filename@GOTPAGEOFF]
	mov	x22, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x22
	bl	_strcpy
	add	x21, x21, #1
	mov	x0, x21
	bl	_SIO_Dismount
	ldrsw	x8, [x27]
	add	x22, x22, x26
	cmp	x21, x8
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #1
	b.le	LBB0_11
; %bb.4:
	add	x21, x20, x26
	mov	w22, #1
Lloh15:
	adrp	x23, l_.str@PAGE
Lloh16:
	add	x23, x23, l_.str@PAGEOFF
Lloh17:
	adrp	x24, l_.str.1@PAGE
Lloh18:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh19:
	adrp	x28, _FALSE@GOTPAGE
Lloh20:
	ldr	x28, [x28, _FALSE@GOTPAGEOFF]
Lloh21:
	adrp	x25, l_.str.2@PAGE
Lloh22:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x27]
	add	x21, x21, x26
	cmp	x22, x8
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x28]
	mov	x0, x22
	mov	x1, x21
	bl	_SIO_Mount
	ldr	w8, [x28]
	cmp	w0, #0
	csel	w19, w8, w19, eq
	b	LBB0_5
LBB0_10:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_11:
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.12:
	mov	w21, w8
Lloh23:
	adrp	x22, l_.str@PAGE
Lloh24:
	add	x22, x22, l_.str@PAGEOFF
Lloh25:
	adrp	x23, l_.str.1@PAGE
Lloh26:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh27:
	adrp	x24, l_.str.2@PAGE
Lloh28:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x27, #1
	mov	x21, x27
	cmp	x8, #1
	b.ls	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	sub	x27, x21, #1
	and	x8, x27, #0xffffffff
	madd	x25, x8, x26, x20
	mov	x0, x25
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.17:
Lloh29:
	adrp	x22, _FALSE@GOTPAGE
Lloh30:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_SIO_Mount
	ldr	w8, [x22]
	cmp	w0, #0
	csel	w19, w8, w19, eq
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x19
	sub	sp, x29, #80
	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_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SIO_MAX_DRIVES,4,2             ; @SIO_MAX_DRIVES
	.comm	_FILENAME_MAX,4,2               ; @FILENAME_MAX
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SIO_filename,8,3               ; @SIO_filename
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"None"

l_.str.1:                               ; @.str.1
	.asciz	"Off"

l_.str.2:                               ; @.str.2
	.asciz	"Empty"

	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
