	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetchiostat                    ## -- Begin function fetchiostat
	.p2align	4, 0x90
_fetchiostat:                           ## @fetchiostat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	$4, -16(%rbp)
	movq	_cur_dev@GOTPCREL(%rip), %rbx
	leaq	12(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	leaq	-16(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpq	$4, -16(%rbp)
	jne	LBB0_2
## %bb.4:
	movq	_last_dev@GOTPCREL(%rip), %rax
	movq	8(%rax), %rcx
	movq	(%rbx), %rdx
	movq	%rdx, 8(%rax)
	movq	%rcx, (%rbx)
	movl	8(%rbx), %ecx
	movl	%ecx, (%rax)
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_devstat_getdevs
	cmpl	$1, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.6:
	movq	_devstat_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	callq	_cmdiostat
LBB0_8:
	movq	(%rbx), %rax
	movl	4(%rax), %ecx
	movq	_num_devices@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	(%rax), %eax
	movq	_generation@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	_fetchiostat.cold.1
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function fetchiostat.cold.1
_fetchiostat.cold.1:                    ## @fetchiostat.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kern.cp_time"

	.comm	_cur_dev,16,3                   ## @cur_dev
	.comm	_last_dev,16,3                  ## @last_dev
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_devstat_errbuf,4,2             ## @devstat_errbuf
L_.str.2:                               ## @.str.2
	.asciz	"refresh"

	.comm	_num_devices,4,2                ## @num_devices
	.comm	_generation,4,2                 ## @generation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetchiostat                    ; -- Begin function fetchiostat
	.p2align	2
_fetchiostat:                           ; @fetchiostat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	w8, #4
	str	x8, [sp, #8]
Lloh0:
	adrp	x19, _cur_dev@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cur_dev@GOTPAGEOFF]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, x19, #12
	add	x2, sp, #8
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, #4, #0, eq
	b.ne	LBB0_6
; %bb.1:
Lloh4:
	adrp	x8, _last_dev@GOTPAGE
Lloh5:
	ldr	x8, [x8, _last_dev@GOTPAGEOFF]
	ldr	x9, [x8, #8]
	ldr	x10, [x19]
	str	x10, [x8, #8]
	str	x9, [x19]
	ldr	w9, [x19, #8]
	str	w9, [x8]
	mov	x0, #0
	mov	x1, x19
	bl	_devstat_getdevs
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.2:
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _devstat_errbuf@GOTPAGE
Lloh7:
	ldr	x8, [x8, _devstat_errbuf@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, #0
	bl	_cmdiostat
LBB0_5:
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _num_devices@GOTPAGE
Lloh14:
	ldr	x9, [x9, _num_devices@GOTPAGEOFF]
	ldr	w10, [x8, #4]
Lloh15:
	str	w10, [x9]
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _generation@GOTPAGE
Lloh17:
	ldr	x9, [x9, _generation@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	bl	_fetchiostat.cold.1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function fetchiostat.cold.1
_fetchiostat.cold.1:                    ; @fetchiostat.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kern.cp_time"

	.comm	_cur_dev,16,3                   ; @cur_dev
	.comm	_last_dev,16,3                  ; @last_dev
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_devstat_errbuf,4,2             ; @devstat_errbuf
l_.str.2:                               ; @.str.2
	.asciz	"refresh"

	.comm	_num_devices,4,2                ; @num_devices
	.comm	_generation,4,2                 ; @generation
.subsections_via_symbols
