	.file	"extr_xfs_buf_item.c_xfs_buf_item_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xfs_buf_item_init
	.type	xfs_buf_item_init, @function
xfs_buf_item_init:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR 24[rdi], rsi
	mov	rbx, QWORD PTR [rdi]
	sete	dil
	movzx	edi, dil
	call	ASSERT@PLT
	test	rbx, rbx
	je	.L2
	mov	rax, QWORD PTR XFS_LI_BUF[rip]
	xor	edi, edi
	cmp	QWORD PTR 24[rbx], rax
	sete	dil
	call	ASSERT@PLT
	mov	edx, DWORD PTR 20[r12]
	xor	edi, edi
	test	edx, edx
	sete	dil
	call	ASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rbx], r12
	sete	dil
	xor	r13d, r13d
	call	ASSERT@PLT
.L1:
	add	rsp, 8
	.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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR xfs_buf_item_zone[rip]
	xor	esi, esi
	call	kmem_zone_zalloc@PLT
	mov	rdx, QWORD PTR XFS_LI_BUF[rip]
	lea	rcx, xfs_buf_item_ops[rip]
	mov	rdi, rbp
	mov	r14, rax
	lea	rsi, 24[rax]
	call	xfs_log_item_init@PLT
	mov	QWORD PTR 16[r14], r12
	mov	esi, DWORD PTR 16[r12]
	mov	rdi, r14
	call	xfs_buf_item_get_format@PLT
	xor	edi, edi
	test	eax, eax
	mov	r13d, eax
	sete	dil
	call	ASSERT@PLT
	test	r13d, r13d
	jne	.L4
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	jle	.L7
	mov	rcx, QWORD PTR 8[r12]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR [rcx+rbx*8]
	mov	r15d, DWORD PTR XFS_BLF_CHUNK[rip]
	lea	rbp, 0[0+rbx*8]
	call	BBTOB@PLT
	mov	esi, r15d
	mov	edi, eax
	call	DIV_ROUND_UP@PLT
	mov	esi, DWORD PTR NBWORD[rip]
	mov	edi, eax
	call	DIV_ROUND_UP@PLT
	lea	rdx, [rbx+rbx*2]
	mov	rcx, QWORD PTR 8[r12]
	add	rbx, 1
	mov	r8d, eax
	mov	rax, QWORD PTR 8[r14]
	lea	rax, [rax+rdx*8]
	mov	rdx, QWORD PTR XFS_LI_BUF[rip]
	mov	QWORD PTR 16[rax], rdx
	lea	rdx, [rcx+rbp]
	mov	esi, DWORD PTR 4[rdx]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], r8d
	mov	DWORD PTR 8[rax], esi
	mov	DWORD PTR 4[rax], edx
	cmp	DWORD PTR [r14], ebx
	jg	.L6
.L7:
	mov	QWORD PTR [r12], r14
	mov	rdi, r12
	call	xfs_buf_hold@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR xfs_buf_item_zone[rip]
	mov	rsi, r14
	call	kmem_zone_free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	xfs_buf_item_init, .-xfs_buf_item_init
	.comm	xfs_buf_item_zone,4,4
	.comm	xfs_buf_item_ops,4,4
	.comm	XFS_LI_BUF,8,8
	.comm	XFS_BLF_CHUNK,4,4
	.comm	NBWORD,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_xfs_buf_item.c_xfs_buf_item_init.c"
	.text
	.align	2
	.global	xfs_buf_item_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfs_buf_item_init, %function
xfs_buf_item_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r0, [r0, #16]
	ldr	r6, [r5]
	sub	r0, r0, r1
	clz	r0, r0
	lsr	r0, r0, #5
	mov	r4, r1
	bl	ASSERT
	cmp	r6, #0
	beq	.L2
	ldr	r3, .L11
	ldr	r0, [r6, #12]
	ldr	r3, [r3]
	mov	r7, #0
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	ldr	r0, [r5, #12]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	ldr	r0, [r6, #8]
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r9, .L11+4
	mov	r1, r6
	ldr	r0, [r9]
	bl	kmem_zone_zalloc
	mov	r6, r0
	ldr	r8, .L11
	ldr	r3, .L11+8
	ldr	r2, [r8]
	add	r1, r6, #12
	mov	r0, r4
	bl	xfs_log_item_init
	ldr	r1, [r5, #8]
	mov	r0, r6
	str	r5, [r6, #8]
	bl	xfs_buf_item_get_format
	mov	r7, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	cmp	r7, #0
	bne	.L4
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L7
	mov	r4, r7
	ldr	r3, [r5, #4]
	ldr	r10, .L11+12
	ldr	r9, .L11+16
.L6:
	ldr	r0, [r3, r4, lsl #3]
	bl	BBTOB
	ldr	r1, [r10]
	bl	DIV_ROUND_UP
	ldr	r1, [r9]
	bl	DIV_ROUND_UP
	ldr	r3, [r5, #4]
	lsl	r2, r4, #3
	ldr	r1, [r6, #4]
	add	r2, r3, r2
	ldr	lr, [r2, #4]
	ldr	ip, [r8]
	add	r2, r1, r4, lsl #4
	str	lr, [r2, #8]
	ldr	lr, [r3, r4, lsl #3]
	str	ip, [r2, #12]
	ldr	ip, [r6]
	str	lr, [r2, #4]
	str	r0, [r1, r4, lsl #4]
	add	r4, r4, #1
	cmp	ip, r4
	bgt	.L6
.L7:
	mov	r0, r5
	str	r6, [r5]
	bl	xfs_buf_hold
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r1, r6
	ldr	r0, [r9]
	bl	kmem_zone_free
	b	.L1
.L12:
	.align	2
.L11:
	.word	XFS_LI_BUF
	.word	xfs_buf_item_zone
	.word	xfs_buf_item_ops
	.word	XFS_BLF_CHUNK
	.word	NBWORD
	.size	xfs_buf_item_init, .-xfs_buf_item_init
	.comm	xfs_buf_item_zone,4,4
	.comm	xfs_buf_item_ops,4,4
	.comm	XFS_LI_BUF,4,4
	.comm	XFS_BLF_CHUNK,4,4
	.comm	NBWORD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
