	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_get_errlog               ## -- Begin function zpool_get_errlog
	.p2align	4, 0x90
_zpool_get_errlog:                      ## @zpool_get_errlog
	.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, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movl	12(%rdi), %edi
	movq	_ZPOOL_CONFIG_ERRCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_nvlist_lookup_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_19
## %bb.1:
	movq	(%rbx), %rdi
	shll	$4, %esi
	callq	_zfs_alloc
	movq	%rax, -80(%rbp)
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_20
## %bb.2:
	movl	-44(%rbp), %eax
	movl	%eax, -72(%rbp)
	movl	8(%rbx), %esi
	xorl	%edi, %edi
	callq	_strcpy
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_ZFS_IOC_ERROR_LOG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-80(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_ENOMEM@GOTPCREL(%rip), %r15
	leaq	-80(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rdi
	callq	_free
	movq	(%r13), %rax
	cmpq	(%r15), %rax
	jne	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-72(%rbp), %esi
	movl	%esi, -44(%rbp)
	movq	(%rbx), %rdi
	shll	$4, %esi
	callq	_zfs_alloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -80(%rbp)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	%r12, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_4
LBB0_7:
	movq	-80(%rbp), %r14
	movslq	-72(%rbp), %r15
	movl	-44(%rbp), %esi
	subl	%r15d, %esi
	shlq	$4, %r15
	leaq	(%r14,%r15), %rdi
	movl	%esi, -44(%rbp)
	movq	_zbookmark_mem_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	$16, %edx
	callq	_qsort
	movq	_KM_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_nvlist_alloc
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.8:
	addq	%r15, %r14
	addq	$8, %r14
	xorl	%r12d, %r12d
	movq	_NV_UNIQUE_NAME@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	-1(%r12), %ecx
	shlq	$4, %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx), %rdx
	cmpq	-8(%r14), %rdx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	-88(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	8(%rcx), %rcx
	cmpq	(%r14), %rcx
	je	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r15), %esi
	movq	_KM_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	callq	_nvlist_alloc
	testq	%rax, %rax
	jne	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rdi
	movq	_ZPOOL_ERR_DATASET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-8(%r14), %rdx
	callq	_nvlist_add_uint64
	movq	-56(%rbp), %rdi
	testq	%rax, %rax
	jne	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_ZPOOL_ERR_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	callq	_nvlist_add_uint64
	testq	%rax, %rax
	jne	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-56(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_nvlist_add_nvlist
	movq	%rax, %r13
	movq	-56(%rbp), %rdi
	callq	_nvlist_free
	testq	%r13, %r13
	jne	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %eax
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$16, %r14
	cmpq	%rcx, %r12
	jl	LBB0_9
LBB0_18:
	movq	-80(%rbp), %rdi
	callq	_free
LBB0_19:
	xorl	%ecx, %ecx
	jmp	LBB0_20
LBB0_22:
	movl	$-1, %ecx
	jmp	LBB0_20
LBB0_23:
	movq	-56(%rbp), %rdi
LBB0_24:
	callq	_nvlist_free
LBB0_25:
	movq	-80(%rbp), %rdi
	callq	_free
	movq	(%rbx), %rdi
	callq	_no_memory
	movl	%eax, %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	_ZPOOL_CONFIG_ERRCOUNT,4,2      ## @ZPOOL_CONFIG_ERRCOUNT
	.comm	_ZFS_IOC_ERROR_LOG,4,2          ## @ZFS_IOC_ERROR_LOG
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_zbookmark_mem_compare,4,2      ## @zbookmark_mem_compare
	.comm	_KM_SLEEP,4,2                   ## @KM_SLEEP
	.comm	_NV_UNIQUE_NAME,4,2             ## @NV_UNIQUE_NAME
	.comm	_ZPOOL_ERR_DATASET,4,2          ## @ZPOOL_ERR_DATASET
	.comm	_ZPOOL_ERR_OBJECT,4,2           ## @ZPOOL_ERR_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ejk"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_get_errlog               ; -- Begin function zpool_get_errlog
	.p2align	2
_zpool_get_errlog:                      ; @zpool_get_errlog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #32]
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x8, _ZPOOL_CONFIG_ERRCOUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPOOL_CONFIG_ERRCOUNT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #20
	bl	_nvlist_lookup_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_19
; %bb.1:
	ldr	x0, [x19]
	lsl	w1, w8, #4
	bl	_zfs_alloc
	str	x0, [sp, #24]
	cbz	x0, LBB0_20
; %bb.2:
	ldr	w8, [sp, #20]
	str	w8, [sp, #32]
	ldr	w1, [x19, #8]
	mov	w0, #0
	bl	_strcpy
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh3:
	adrp	x21, _ZFS_IOC_ERROR_LOG@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ZFS_IOC_ERROR_LOG@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #24
	bl	_ioctl
	cbz	x0, LBB0_7
; %bb.3:
Lloh5:
	adrp	x22, _errno@GOTPAGE
Lloh6:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh7:
	adrp	x23, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ENOMEM@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #24]
	bl	_free
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #32]
	str	w8, [sp, #20]
	ldr	x0, [x19]
	lsl	w1, w8, #4
	bl	_zfs_alloc
	cbz	x0, LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [sp, #24]
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x21]
	add	x2, sp, #24
	bl	_ioctl
	cbnz	x0, LBB0_4
LBB0_7:
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #32]
	add	x21, x8, x9, lsl #4
	ldr	w8, [sp, #20]
	sub	w1, w8, w9
	str	w1, [sp, #20]
Lloh9:
	adrp	x8, _zbookmark_mem_compare@GOTPAGE
Lloh10:
	ldr	x8, [x8, _zbookmark_mem_compare@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w2, #16
	bl	_qsort
Lloh12:
	adrp	x24, _KM_SLEEP@GOTPAGE
Lloh13:
	ldr	x24, [x24, _KM_SLEEP@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w1, #0
	bl	_nvlist_alloc
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	w8, [sp, #20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.8:
	mov	x25, #0
	add	x26, x21, #8
Lloh14:
	adrp	x27, _NV_UNIQUE_NAME@GOTPAGE
Lloh15:
	ldr	x27, [x27, _NV_UNIQUE_NAME@GOTPAGEOFF]
Lloh16:
	adrp	x28, _ZPOOL_ERR_DATASET@GOTPAGE
Lloh17:
	ldr	x28, [x28, _ZPOOL_ERR_DATASET@GOTPAGEOFF]
Lloh18:
	adrp	x22, _ZPOOL_ERR_OBJECT@GOTPAGE
Lloh19:
	ldr	x22, [x22, _ZPOOL_ERR_OBJECT@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x25, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w9, w25, #1
	add	x9, x21, w9, uxtw #4
	ldr	x10, [x9]
	ldur	x11, [x26, #-8]
	cmp	x10, x11
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x9, #8]
	ldr	x10, [x26]
	cmp	x9, x10
	b.eq	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x27]
	ldr	w2, [x24]
	add	x0, sp, #8
	bl	_nvlist_alloc
	cbnz	x0, LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #8]
	ldr	w1, [x28]
	ldur	x2, [x26, #-8]
	bl	_nvlist_add_uint64
	mov	x8, x0
	ldr	x0, [sp, #8]
	cbnz	x8, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x22]
	ldr	x2, [x26]
	bl	_nvlist_add_uint64
	cbnz	x0, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x20]
	ldr	x2, [sp, #8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nvlist_add_nvlist
	mov	x23, x0
	ldr	x0, [sp, #8]
	bl	_nvlist_free
	cbnz	x23, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #20]
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	add	x26, x26, #16
	cmp	x25, w8, sxtw
	b.lt	LBB0_9
LBB0_18:
	ldr	x0, [sp, #24]
	bl	_free
LBB0_19:
	mov	w0, #0
	b	LBB0_24
LBB0_20:
	mov	w0, #-1
	b	LBB0_24
LBB0_21:
	ldr	x0, [sp, #8]
LBB0_22:
	bl	_nvlist_free
LBB0_23:
	ldr	x0, [sp, #24]
	bl	_free
	ldr	x0, [x19]
	bl	_no_memory
LBB0_24:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPOOL_CONFIG_ERRCOUNT,4,2      ; @ZPOOL_CONFIG_ERRCOUNT
	.comm	_ZFS_IOC_ERROR_LOG,4,2          ; @ZFS_IOC_ERROR_LOG
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_zbookmark_mem_compare,4,2      ; @zbookmark_mem_compare
	.comm	_KM_SLEEP,4,2                   ; @KM_SLEEP
	.comm	_NV_UNIQUE_NAME,4,2             ; @NV_UNIQUE_NAME
	.comm	_ZPOOL_ERR_DATASET,4,2          ; @ZPOOL_ERR_DATASET
	.comm	_ZPOOL_ERR_OBJECT,4,2           ; @ZPOOL_ERR_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ejk"

.subsections_via_symbols
