	.file	"extr_zil.c_zil_read_log_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zil_read_log_data, @function
zil_read_log_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 12[rsi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, r14
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r13d, DWORD PTR ZIO_FLAG_CANFAIL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR ARC_FLAG_WAIT[rip]
	mov	QWORD PTR 32[rsp], 0
	mov	DWORD PTR 24[rsp], eax
	call	BP_IS_HOLE@PLT
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L4
	mov	eax, DWORD PTR ZIO_FLAG_SPECULATIVE[rip]
	or	eax, DWORD PTR ZIO_FLAG_SCRUB[rip]
	or	r13d, eax
.L4:
	mov	r15d, DWORD PTR [rbx]
	test	r12, r12
	je	.L17
	mov	rdi, r14
	call	BP_GET_LSIZE@PLT
	mov	ecx, DWORD PTR ZB_ZIL_LEVEL[rip]
	mov	edi, DWORD PTR 4[rbp]
	mov	r9d, eax
	mov	eax, r15d
	mov	r15d, DWORD PTR 4[rbx]
	lea	rbx, 28[rsp]
	cdq
	mov	DWORD PTR 8[rsp], ecx
	idiv	r9d
	mov	DWORD PTR 12[rsp], eax
	call	dmu_objset_id@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	edx, r15d
	mov	rdi, rbx
	mov	ecx, DWORD PTR 8[rsp]
	mov	esi, eax
	lea	r15, 32[rsp]
	call	SET_BOOKMARK@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r8, r15
	mov	rdx, r14
	mov	r9d, DWORD PTR ZIO_PRIORITY_SYNC_READ[rip]
	mov	ecx, DWORD PTR arc_getbuf_func[rip]
	push	rbx
	.cfi_def_cfa_offset 128
	xor	edi, edi
	lea	rax, 40[rsp]
	push	rax
	.cfi_def_cfa_offset 136
	push	r13
	.cfi_def_cfa_offset 144
	mov	esi, DWORD PTR 0[rbp]
	call	arc_read@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	mov	r13d, eax
	test	eax, eax
	je	.L7
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xor	r13d, r13d
	test	r12, r12
	je	.L1
	mov	ebp, DWORD PTR 8[rbx]
	mov	rdi, r14
	call	BP_GET_LSIZE@PLT
	mov	edi, eax
	mov	esi, ebp
	call	MAX@PLT
	mov	rdi, r12
	mov	esi, eax
	call	bzero@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r14
	or	r13d, DWORD PTR ZIO_FLAG_RAW[rip]
	call	BP_GET_LSIZE@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	r12d, DWORD PTR 4[rbx]
	lea	rbx, 28[rsp]
	mov	r9d, eax
	mov	eax, r15d
	mov	r15d, DWORD PTR ZB_ZIL_LEVEL[rip]
	cdq
	idiv	r9d
	mov	DWORD PTR 8[rsp], eax
	call	dmu_objset_id@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	ecx, r15d
	mov	edx, r12d
	mov	esi, eax
	mov	rdi, rbx
	lea	r15, 32[rsp]
	call	SET_BOOKMARK@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r8, r15
	mov	rdx, r14
	mov	r9d, DWORD PTR ZIO_PRIORITY_SYNC_READ[rip]
	mov	ecx, DWORD PTR arc_getbuf_func[rip]
	push	rbx
	.cfi_def_cfa_offset 128
	xor	edi, edi
	lea	rax, 40[rsp]
	push	rax
	.cfi_def_cfa_offset 136
	push	r13
	.cfi_def_cfa_offset 144
	mov	esi, DWORD PTR 0[rbp]
	call	arc_read@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	mov	r13d, eax
	test	eax, eax
	jne	.L1
.L6:
	mov	rdi, QWORD PTR 32[rsp]
	mov	rsi, r15
	xor	r13d, r13d
	call	arc_buf_destroy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 32[rsp]
	call	arc_buf_size@PLT
	mov	rsi, r12
	mov	edx, eax
	mov	rax, QWORD PTR 32[rsp]
	mov	edi, DWORD PTR [rax]
	call	bcopy@PLT
	jmp	.L6
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zil_read_log_data, .-zil_read_log_data
	.comm	arc_getbuf_func,4,4
	.comm	ZIO_PRIORITY_SYNC_READ,4,4
	.comm	ZIO_FLAG_SPECULATIVE,4,4
	.comm	ZIO_FLAG_SCRUB,4,4
	.comm	ZIO_FLAG_RAW,4,4
	.comm	ZIO_FLAG_CANFAIL,4,4
	.comm	ZB_ZIL_LEVEL,4,4
	.comm	ARC_FLAG_WAIT,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_zil.c_zil_read_log_data.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zil_read_log_data, %function
zil_read_log_data:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	ldr	r3, .L19
	add	r8, r1, #12
	mov	r5, r1
	mov	r7, r2
	ldr	r1, [r3]
	ldr	r2, .L19+4
	ldr	r3, .L19+8
	sub	sp, sp, #52
	mov	r6, r0
	mov	r0, r8
	ldr	r2, [r2]
	str	r2, [sp, #44]
	mov	r2,#0
	ldr	r9, [r3]
	str	r1, [sp, #32]
	str	r4, [sp, #36]
	bl	BP_IS_HOLE
	cmp	r0, r4
	bne	.L16
	ldr	r3, [r6, #8]
	mov	r4, r9
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L19+12
	ldr	r2, .L19+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r4, r9, r3
.L4:
	cmp	r7, #0
	ldr	r0, [r6, #4]
	beq	.L17
	bl	dmu_objset_id
	ldm	r5, {r5, fp}
	ldr	r3, .L19+20
	mov	r9, r0
	ldr	r3, [r3]
	mov	r0, r8
	str	r3, [sp, #28]
	bl	BP_GET_LSIZE
	mov	r1, r0
	mov	r0, r5
	bl	__aeabi_idiv
	add	r10, sp, #40
	mov	r1, r9
	mov	r2, fp
	ldr	r3, [sp, #28]
	str	r0, [sp]
	mov	r0, r10
	bl	SET_BOOKMARK
	ldr	r2, .L19+24
	ldr	r3, .L19+28
	ldr	ip, [r2]
	str	r10, [sp, #16]
	str	r4, [sp, #8]
	ldr	r1, [r6]
	add	r0, sp, #32
	str	ip, [sp, #4]
	add	r5, sp, #36
	ldr	r3, [r3]
	mov	r2, r8
	str	r0, [sp, #12]
	str	r5, [sp]
	mov	r0, #0
	bl	arc_read
	cmp	r0, #0
	beq	.L7
.L1:
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	cmp	r7, r4
	beq	.L14
	mov	r0, r8
	bl	BP_GET_LSIZE
	ldr	r1, [r5, #8]
	bl	MAX
	mov	r1, r0
	mov	r0, r7
	bl	bzero
	mov	r0, r4
	b	.L1
.L17:
	ldr	r3, .L19+32
	add	r9, sp, #40
	ldr	r3, [r3]
	orr	r4, r4, r3
	bl	dmu_objset_id
	ldm	r5, {r5, fp}
	ldr	r3, .L19+20
	mov	r10, r0
	ldr	r3, [r3]
	mov	r0, r8
	str	r3, [sp, #28]
	bl	BP_GET_LSIZE
	mov	r1, r0
	mov	r0, r5
	bl	__aeabi_idiv
	mov	r1, r10
	mov	r2, fp
	ldr	r3, [sp, #28]
	str	r0, [sp]
	mov	r0, r9
	bl	SET_BOOKMARK
	ldr	r2, .L19+24
	ldr	r3, .L19+28
	ldr	lr, [r2]
	str	r4, [sp, #8]
	str	r9, [sp, #16]
	ldr	r1, [r6]
	add	ip, sp, #32
	str	lr, [sp, #4]
	add	r5, sp, #36
	ldr	r3, [r3]
	mov	r2, r8
	mov	r0, r7
	str	ip, [sp, #12]
	str	r5, [sp]
	bl	arc_read
	cmp	r0, #0
	bne	.L1
.L6:
	mov	r1, r5
	ldr	r0, [sp, #36]
	bl	arc_buf_destroy
.L14:
	mov	r0, #0
	b	.L1
.L7:
	ldr	r0, [sp, #36]
	ldr	r4, [r0]
	bl	arc_buf_size
	mov	r1, r7
	mov	r2, r0
	mov	r0, r4
	bl	bcopy
	b	.L6
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	ARC_FLAG_WAIT
	.word	.LC0
	.word	ZIO_FLAG_CANFAIL
	.word	ZIO_FLAG_SPECULATIVE
	.word	ZIO_FLAG_SCRUB
	.word	ZB_ZIL_LEVEL
	.word	ZIO_PRIORITY_SYNC_READ
	.word	arc_getbuf_func
	.word	ZIO_FLAG_RAW
	.size	zil_read_log_data, .-zil_read_log_data
	.comm	arc_getbuf_func,4,4
	.comm	ZIO_PRIORITY_SYNC_READ,4,4
	.comm	ZIO_FLAG_SPECULATIVE,4,4
	.comm	ZIO_FLAG_SCRUB,4,4
	.comm	ZIO_FLAG_RAW,4,4
	.comm	ZIO_FLAG_CANFAIL,4,4
	.comm	ZB_ZIL_LEVEL,4,4
	.comm	ARC_FLAG_WAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
