	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_refresh_stats            ## -- Begin function zpool_refresh_stats
	.p2align	4, 0x90
_zpool_refresh_stats:                   ## @zpool_refresh_stats
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	32(%rdi), %r13
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movl	40(%rdi), %esi
	xorl	%edi, %edi
	callq	_strcpy
	movl	(%r12), %edx
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	movl	$65536, (%r12)                  ## imm = 0x10000
	movl	$65536, %edx                    ## imm = 0x10000
LBB0_2:
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_zcmd_alloc_dst_nvlist
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_20
## %bb.3:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_ZFS_IOC_POOL_STATS@GOTPCREL(%rip), %r15
	leaq	-64(%rbp), %rbx
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_zcmd_expand_dst_nvlist
	testq	%rax, %rax
	je	LBB0_4
## %bb.14:
	leaq	-64(%rbp), %rdi
	callq	_zcmd_free_nvlists
	movl	$-1, %ecx
	jmp	LBB0_20
LBB0_5:
	movl	-64(%rbp), %r15d
	leaq	-64(%rbp), %r14
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_zcmd_read_dst_nvlist
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_zcmd_free_nvlists
	testq	%rbx, %rbx
	movl	$-1, %ecx
	jne	LBB0_20
## %bb.6:
	movl	-60(%rbp), %eax
	movl	%eax, (%r12)
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.7:
	movq	_ZPOOL_CONFIG_POOL_TXG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-96(%rbp), %rdx
	callq	_nvlist_lookup_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-72(%rbp), %rdi
	movl	(%rbx), %esi
	leaq	-88(%rbp), %rdx
	callq	_nvlist_lookup_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	24(%r12), %rdi
	callq	_nvlist_free
	movq	-96(%rbp), %rax
	movq	16(%r12), %rdi
	cmpq	-88(%rbp), %rax
	je	LBB0_9
## %bb.8:
	callq	_nvlist_free
	xorl	%edi, %edi
LBB0_9:
	movq	%rdi, 24(%r12)
LBB0_10:
	movq	-72(%rbp), %rax
	movq	%rax, 16(%r12)
	testl	%r15d, %r15d
	jne	LBB0_18
## %bb.11:
	movq	_POOL_STATE_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_15:
	leaq	-64(%rbp), %rdi
	callq	_zcmd_free_nvlists
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
LBB0_17:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_18:
	movq	_POOL_STATE_UNAVAIL@GOTPCREL(%rip), %rax
LBB0_19:
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	xorl	%ecx, %ecx
LBB0_20:
	movl	%ecx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_ZFS_IOC_POOL_STATS,4,2         ## @ZFS_IOC_POOL_STATS
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_B_TRUE,4,2                     ## @B_TRUE
	.comm	_POOL_STATE_UNAVAIL,8,3         ## @POOL_STATE_UNAVAIL
	.comm	_ZPOOL_CONFIG_POOL_TXG,4,2      ## @ZPOOL_CONFIG_POOL_TXG
	.comm	_POOL_STATE_ACTIVE,8,3          ## @POOL_STATE_ACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_refresh_stats            ; -- Begin function zpool_refresh_stats
	.p2align	2
_zpool_refresh_stats:                   ; @zpool_refresh_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #32]
	ldr	x21, [x0, #32]
Lloh0:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	ldr	w1, [x0, #40]
	mov	w0, #0
	bl	_strcpy
	ldr	w2, [x19]
	cbnz	w2, LBB0_2
; %bb.1:
	mov	w2, #65536
	str	w2, [x19]
LBB0_2:
	add	x1, sp, #32
	mov	x0, x21
	bl	_zcmd_alloc_dst_nvlist
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
Lloh3:
	adrp	x23, _ZFS_IOC_POOL_STATS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ZFS_IOC_POOL_STATS@GOTPAGEOFF]
Lloh5:
	adrp	x22, _errno@GOTPAGE
Lloh6:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh7:
	adrp	x24, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ENOMEM@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	ldr	w1, [x23]
	add	x2, sp, #32
	bl	_ioctl
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #32
	mov	x0, x21
	bl	_zcmd_expand_dst_nvlist
	cbz	x0, LBB0_6
; %bb.9:
	add	x0, sp, #32
	bl	_zcmd_free_nvlists
	mov	w0, #-1
	b	LBB0_4
LBB0_10:
	ldr	w22, [sp, #32]
	add	x1, sp, #32
	add	x2, sp, #24
	mov	x0, x21
	bl	_zcmd_read_dst_nvlist
	mov	x20, x0
	add	x0, sp, #32
	bl	_zcmd_free_nvlists
	cbnz	x20, LBB0_3
; %bb.11:
	ldr	w8, [sp, #36]
	str	w8, [x19]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_15
; %bb.12:
Lloh9:
	adrp	x20, _ZPOOL_CONFIG_POOL_TXG@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ZPOOL_CONFIG_POOL_TXG@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #16
	bl	_nvlist_lookup_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x0, [sp, #24]
	ldr	w1, [x20]
	add	x2, sp, #8
	bl	_nvlist_lookup_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x0, [x19, #24]
	bl	_nvlist_free
	ldp	x9, x8, [sp, #8]
	ldr	x0, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.13:
	bl	_nvlist_free
	mov	x0, #0
LBB0_14:
	str	x0, [x19, #24]
LBB0_15:
	ldr	x8, [sp, #24]
	str	x8, [x19, #16]
	cbnz	w22, LBB0_19
; %bb.16:
	mov	w0, #0
Lloh11:
	adrp	x8, _POOL_STATE_ACTIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POOL_STATE_ACTIVE@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
	add	x0, sp, #32
	bl	_zcmd_free_nvlists
	ldr	x8, [x22]
Lloh13:
	adrp	x9, _ENOENT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _EINVAL@GOTPAGE
Lloh17:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_19
; %bb.18:
Lloh19:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_19:
	mov	w0, #0
Lloh22:
	adrp	x8, _POOL_STATE_UNAVAIL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _POOL_STATE_UNAVAIL@GOTPAGEOFF]
LBB0_20:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_ZFS_IOC_POOL_STATS,4,2         ; @ZFS_IOC_POOL_STATS
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_B_TRUE,4,2                     ; @B_TRUE
	.comm	_POOL_STATE_UNAVAIL,8,3         ; @POOL_STATE_UNAVAIL
	.comm	_ZPOOL_CONFIG_POOL_TXG,4,2      ; @ZPOOL_CONFIG_POOL_TXG
	.comm	_POOL_STATE_ACTIVE,8,3          ; @POOL_STATE_ACTIVE
.subsections_via_symbols
