	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rotationrate
_rotationrate:                          ## @rotationrate
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	$8, -48(%rbp)
	movq	_DIOCGATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rcx
	movq	_DISK_RR_UNKNOWN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_DISK_RR_NON_ROTATING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_10
LBB0_5:
	movq	_DISK_RR_MIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_8
## %bb.6:
	movq	_DISK_RR_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jg	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GEOM::rotation_rate"

	.comm	_DIOCGATTR,4,2                  ## @DIOCGATTR
	.comm	_DISK_RR_UNKNOWN,8,3            ## @DISK_RR_UNKNOWN
L_.str.1:                               ## @.str.1
	.asciz	"Unknown"

	.comm	_DISK_RR_NON_ROTATING,8,3       ## @DISK_RR_NON_ROTATING
L_.str.2:                               ## @.str.2
	.asciz	"%d"

	.comm	_DISK_RR_MIN,8,3                ## @DISK_RR_MIN
	.comm	_DISK_RR_MAX,8,3                ## @DISK_RR_MAX
L_.str.3:                               ## @.str.3
	.asciz	"Invalid"

	.no_dead_strip	_rotationrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rotationrate
_rotationrate:                          ; @rotationrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	mov	w8, #8
	str	w8, [sp, #8]
Lloh2:
	adrp	x8, _DIOCGATTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DIOCGATTR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_ioctl
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [sp, #16]
Lloh5:
	adrp	x9, _DISK_RR_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DISK_RR_UNKNOWN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_3:
Lloh10:
	adrp	x9, _DISK_RR_NON_ROTATING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DISK_RR_NON_ROTATING@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	str	xzr, [sp]
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x9, _DISK_RR_MIN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DISK_RR_MIN@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _DISK_RR_MAX@GOTPAGE
Lloh17:
	ldr	x10, [x10, _DISK_RR_MAX@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.le	LBB0_7
; %bb.6:
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_7:
	str	x8, [sp]
LBB0_8:
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GEOM::rotation_rate"

	.comm	_DIOCGATTR,4,2                  ; @DIOCGATTR
	.comm	_DISK_RR_UNKNOWN,8,3            ; @DISK_RR_UNKNOWN
l_.str.1:                               ; @.str.1
	.asciz	"Unknown"

	.comm	_DISK_RR_NON_ROTATING,8,3       ; @DISK_RR_NON_ROTATING
l_.str.2:                               ; @.str.2
	.asciz	"%d"

	.comm	_DISK_RR_MIN,8,3                ; @DISK_RR_MIN
	.comm	_DISK_RR_MAX,8,3                ; @DISK_RR_MAX
l_.str.3:                               ; @.str.3
	.asciz	"Invalid"

	.no_dead_strip	_rotationrate
.subsections_via_symbols
