	.file	"extr_bio-integrity.c_bio_integrity_trim.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bio_integrity_trim
	.type	bio_integrity_trim, @function
bio_integrity_trim:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14, QWORD PTR 8[rdi]
	mov	ebx, edx
	mov	edi, DWORD PTR [rdi]
	call	bdev_get_integrity@PLT
	xor	edi, edi
	test	r14, r14
	mov	rbp, rax
	sete	dil
	call	BUG_ON@PLT
	xor	edi, edi
	test	rbp, rbp
	sete	dil
	call	BUG_ON@PLT
	mov	esi, DWORD PTR BIO_CLONED[rip]
	mov	rdi, r13
	call	bio_flagged@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	BUG_ON@PLT
	mov	esi, ebx
	mov	rdi, rbp
	call	bio_integrity_hw_sectors@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	eax, r12d
	add	QWORD PTR [r14], rax
	mov	rdi, r14
	imul	esi, r12d
	call	bio_integrity_mark_head@PLT
	imul	ebx, DWORD PTR 0[rbp]
	mov	rdi, r14
	mov	esi, ebx
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	bio_integrity_mark_tail@PLT
	.cfi_endproc
.LFE0:
	.size	bio_integrity_trim, .-bio_integrity_trim
	.comm	BIO_CLONED,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_bio-integrity.c_bio_integrity_trim.c"
	.text
	.align	2
	.global	bio_integrity_trim
	.syntax unified
	.arm
	.fpu softvfp
	.type	bio_integrity_trim, %function
bio_integrity_trim:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r0]
	mov	r7, r2
	mov	r8, r1
	ldr	r5, [r6, #4]
	bl	bdev_get_integrity
	mov	r4, r0
	clz	r0, r5
	lsr	r0, r0, #5
	bl	BUG_ON
	clz	r0, r4
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r3, .L4
	mov	r0, r6
	ldr	r1, [r3]
	bl	bio_flagged
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	mov	r1, r7
	mov	r0, r4
	bl	bio_integrity_hw_sectors
	ldr	r3, [r5]
	ldr	r1, [r4]
	add	r3, r3, r8
	mul	r1, r8, r1
	mov	r0, r5
	str	r3, [r5]
	bl	bio_integrity_mark_head
	ldr	r1, [r4]
	mov	r0, r5
	mul	r1, r7, r1
	pop	{r4, r5, r6, r7, r8, lr}
	b	bio_integrity_mark_tail
.L5:
	.align	2
.L4:
	.word	BIO_CLONED
	.size	bio_integrity_trim, .-bio_integrity_trim
	.comm	BIO_CLONED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
