	.file	"extr_dsl_bookmark.c_dsl_bookmark_block_killed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dsl_bookmark_block_killed
	.type	dsl_bookmark_block_killed, @function
dsl_bookmark_block_killed:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	avl_last@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, rbp
	mov	rdi, rbx
	call	AVL_PREV@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
.L2:
	mov	rdi, rbx
	mov	r13, QWORD PTR 8[rbp]
	call	dsl_dataset_phys@PLT
	cmp	r13, QWORD PTR [rax]
	jl	.L1
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [r12], rax
	jg	.L3
	mov	eax, DWORD PTR 16[rbp]
	test	DWORD PTR ZBM_FLAG_HAS_FBN[rip], eax
	je	.L3
	mov	rdi, rbp
	call	mutex_enter@PLT
	mov	rdi, rbx
	call	dsl_dataset_get_spa@PLT
	mov	rsi, r12
	mov	edi, eax
	call	bp_get_dsize_sync@PLT
	add	DWORD PTR 28[rbp], eax
	mov	rdi, r12
	call	BP_GET_PSIZE@PLT
	add	DWORD PTR 24[rbp], eax
	mov	rdi, r12
	call	BP_GET_UCSIZE@PLT
	add	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR B_TRUE[rip]
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	call	mutex_exit@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dsl_bookmark_block_killed, .-dsl_bookmark_block_killed
	.comm	ZBM_FLAG_HAS_FBN,4,4
	.comm	B_TRUE,4,4
	.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_dsl_bookmark.c_dsl_bookmark_block_killed.c"
	.text
	.align	2
	.global	dsl_bookmark_block_killed
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsl_bookmark_block_killed, %function
dsl_bookmark_block_killed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	mov	r5, r0
	bl	avl_last
	subs	r4, r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r8, .L15
	ldr	r9, .L15+4
	b	.L2
.L3:
	mov	r1, r4
	mov	r0, r5
	bl	AVL_PREV
	subs	r4, r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, r5
	ldr	r6, [r4, #8]
	bl	dsl_dataset_phys
	ldr	r3, [r0]
	cmp	r6, r3
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, [r7]
	ldr	r3, [r4, #8]
	cmp	r2, r3
	bgt	.L3
	ldr	r2, [r4, #12]
	ldr	r3, [r8]
	tst	r2, r3
	beq	.L3
	mov	r0, r4
	bl	mutex_enter
	mov	r0, r5
	bl	dsl_dataset_get_spa
	mov	r1, r7
	bl	bp_get_dsize_sync
	mov	r2, r0
	ldr	r3, [r4, #24]
	mov	r0, r7
	add	r3, r3, r2
	str	r3, [r4, #24]
	bl	BP_GET_PSIZE
	mov	r2, r0
	ldr	r3, [r4, #20]
	mov	r0, r7
	add	r3, r3, r2
	str	r3, [r4, #20]
	bl	BP_GET_UCSIZE
	ldr	r3, [r4, #16]
	ldr	r2, [r9]
	add	r3, r3, r0
	str	r3, [r4, #16]
	mov	r0, r4
	str	r2, [r4, #4]
	bl	mutex_exit
	b	.L3
.L16:
	.align	2
.L15:
	.word	ZBM_FLAG_HAS_FBN
	.word	B_TRUE
	.size	dsl_bookmark_block_killed, .-dsl_bookmark_block_killed
	.comm	ZBM_FLAG_HAS_FBN,4,4
	.comm	B_TRUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
