	.file	"extr_zdb.c_verify_spacemap_refcounts.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"space map refcount mismatch: expected %lld != actual %lld\n"
	.text
	.p2align 4
	.type	verify_spacemap_refcounts, @function
verify_spacemap_refcounts:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rcx, QWORD PTR SPA_FEATURE_SPACEMAP_HISTOGRAM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR spa_feature_table[rip]
	mov	rdx, rsp
	mov	QWORD PTR [rsp], 0
	lea	rsi, [rax+rcx*4]
	call	feature_get_refcount@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	get_dtl_refcount@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rbx, rax
	call	get_metaslab_refcount@PLT
	mov	edi, DWORD PTR 0[rbp]
	add	rbx, rax
	call	get_obsolete_refcount@PLT
	mov	rdi, rbp
	add	rbx, rax
	call	get_prev_obsolete_spacemap_refcount@PLT
	mov	edi, DWORD PTR 0[rbp]
	add	rbx, rax
	call	get_checkpoint_refcount@PLT
	mov	rdi, rbp
	add	rbx, rax
	call	get_log_spacemap_refcount@PLT
	mov	rsi, QWORD PTR [rsp]
	lea	rdx, [rbx+rax]
	xor	eax, eax
	cmp	rsi, rdx
	jne	.L8
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	eax, 2
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	verify_spacemap_refcounts, .-verify_spacemap_refcounts
	.comm	spa_feature_table,8,8
	.comm	SPA_FEATURE_SPACEMAP_HISTOGRAM,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_zdb.c_verify_spacemap_refcounts.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"space map refcount mismatch: expected %lld != actua"
	.ascii	"l %lld\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_spacemap_refcounts, %function
verify_spacemap_refcounts:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r6, #0
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	sub	sp, sp, #8
	add	r1, r3, r1, lsl #2
	ldr	r3, .L9+8
	mov	r2, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	str	r6, [sp]
	bl	feature_get_refcount
	ldr	r0, [r5]
	bl	get_dtl_refcount
	mov	r4, r0
	ldr	r0, [r5]
	bl	get_metaslab_refcount
	mov	r2, r0
	ldr	r0, [r5]
	add	r4, r4, r2
	bl	get_obsolete_refcount
	mov	r2, r0
	mov	r0, r5
	add	r4, r4, r2
	bl	get_prev_obsolete_spacemap_refcount
	mov	r2, r0
	ldr	r0, [r5]
	add	r4, r4, r2
	bl	get_checkpoint_refcount
	mov	r2, r0
	mov	r0, r5
	add	r4, r4, r2
	bl	get_log_spacemap_refcount
	ldr	r1, [sp]
	add	r2, r4, r0
	cmp	r1, r2
	moveq	r0, r6
	bne	.L7
.L1:
	ldr	r3, .L9+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L9+12
	bl	printf
	mov	r0, #2
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	SPA_FEATURE_SPACEMAP_HISTOGRAM
	.word	spa_feature_table
	.word	.LC1
	.word	.LC0
	.size	verify_spacemap_refcounts, .-verify_spacemap_refcounts
	.comm	spa_feature_table,4,4
	.comm	SPA_FEATURE_SPACEMAP_HISTOGRAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
