	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_history_unpack           ## -- Begin function zpool_history_unpack
	.p2align	4, 0x90
_zpool_history_unpack:                  ## @zpool_history_unpack
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	cmpl	$5, %esi
	jb	LBB0_8
## %bb.1:
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdi, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r14, %rbx
	movq	-56(%rbp), %rcx
	movslq	(%r15), %rdx
	movq	%rcx, -8(%rax,%rdx,8)
	cmpl	$4, %r13d
	jbe	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %eax
	movl	16(%rbx), %ecx
	shll	$8, %eax
	addl	(%rbx), %eax
	shll	$16, %ecx
	addl	%eax, %ecx
	movl	24(%rbx), %esi
	shll	$24, %esi
	addl	%ecx, %esi
	movslq	%r13d, %rax
	movslq	%esi, %r14
	addq	$4, %r14
	cmpq	%rax, %r14
	ja	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	4(%rbx), %rdi
	leaq	-56(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_nvlist_unpack
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	subl	%r14d, %r13d
	movl	(%r15), %edi
	leal	1(%rdi), %eax
	movl	%eax, (%r15)
	addl	$2, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ISP2
	movq	%rax, %rcx
	movq	(%r12), %rax
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	shll	$4, %esi
	movq	%rax, %rdi
	callq	_realloc
	movq	%rax, (%r12)
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_history_unpack           ; -- Begin function zpool_history_unpack
	.p2align	2
_zpool_history_unpack:                  ; @zpool_history_unpack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	cmp	w1, #5
	b.lo	LBB0_7
; %bb.1:
	mov	x21, x4
	mov	x22, x3
	mov	x23, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, x24
	ldr	x8, [sp, #8]
	ldrsw	x9, [x21]
	add	x9, x0, x9, lsl #3
	stur	x8, [x9, #-8]
	cmp	w20, #4
	b.ls	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x23, #8]
	add	w8, w8, w9, lsl #8
	ldr	w9, [x23, #16]
	add	w8, w8, w9, lsl #16
	ldr	w9, [x23, #24]
	add	w1, w8, w9, lsl #24
	sxtw	x8, w1
	add	x24, x8, #4
	cmp	x24, w20, sxtw
	b.hi	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x23, #4
	add	x2, sp, #8
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w3, #0
	bl	_nvlist_unpack
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w20, w20, w24
	ldr	w8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
	add	w0, w8, #2
	bl	_ISP2
	mov	x8, x0
	ldr	x0, [x22]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	lsl	w1, w8, #4
	bl	_realloc
	str	x0, [x22]
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	str	w20, [x19]
LBB0_8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
