	.file	"extr_dm-thin.c_disable_passdown_if_not_supported.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"discard unsupported"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"max discard sectors smaller than a block"
	.align 8
.LC2:
	.string	"Data device (%s) %s: Disabling discard passdown."
	.text
	.p2align 4
	.type	disable_passdown_if_not_supported, @function
disable_passdown_if_not_supported:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	r12, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, rsp
	mov	r14, QWORD PTR [rax]
	mov	rdi, r14
	call	bdev_get_queue@PLT
	mov	rcx, rsp
	mov	r15, rax
	movsx	rax, DWORD PTR BDEVNAME_SIZE[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
	mov	eax, DWORD PTR 0[r13]
	mov	rsi, rsp
	test	eax, eax
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, rbx
	jne	.L18
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, r13
	mov	QWORD PTR -72[rbp], rsi
	call	data_dev_supports_discard@PLT
	mov	rsi, QWORD PTR -72[rbp]
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR [r12]
	lea	r12, .LC1[rip]
	cmp	QWORD PTR [r15], rax
	jge	.L8
.L7:
	mov	rdi, r14
	call	bdevname@PLT
	mov	rdx, r12
	lea	rdi, .LC2[rip]
	mov	esi, eax
	call	DMWARN@PLT
	mov	DWORD PTR 0[r13], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	or	QWORD PTR -8[rsp+rdx], 0
	mov	eax, DWORD PTR 0[r13]
	mov	rsi, rsp
	test	eax, eax
	je	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	lea	r12, .LC0[rip]
	jmp	.L7
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	disable_passdown_if_not_supported, .-disable_passdown_if_not_supported
	.comm	BDEVNAME_SIZE,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_dm-thin.c_disable_passdown_if_not_supported.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"discard unsupported\000"
	.align	2
.LC1:
	.ascii	"max discard sectors smaller than a block\000"
	.align	2
.LC2:
	.ascii	"Data device (%s) %s: Disabling discard passdown.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	disable_passdown_if_not_supported, %function
disable_passdown_if_not_supported:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r3, [r0, #4]
	ldr	r2, .L11
	ldr	r8, [r3]
	ldr	r6, [r0, #8]
	mov	r0, r8
	ldr	r2, [r2]
	str	r2, [fp, #-32]
	mov	r2,#0
	bl	bdev_get_queue
	ldr	r3, .L11+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, #0
	add	r3, r3, #7
	bic	r3, r3, #7
	mov	r7, sp
	sub	sp, sp, r3
	bne	.L2
.L5:
	ldr	r3, .L11
	mov	sp, r7
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L2:
	mov	r5, r0
	mov	r0, r4
	bl	data_dev_supports_discard
	cmp	r0, #0
	mov	r9, sp
	beq	.L7
	ldr	r2, [r5]
	ldr	r3, [r6]
	cmp	r2, r3
	bge	.L5
	ldr	r5, .L11+8
.L4:
	mov	r1, r9
	mov	r0, r8
	bl	bdevname
	mov	r2, r5
	mov	r1, r0
	ldr	r0, .L11+12
	bl	DMWARN
	mov	r3, #0
	str	r3, [r4]
	b	.L5
.L7:
	ldr	r5, .L11+16
	b	.L4
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	BDEVNAME_SIZE
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	disable_passdown_if_not_supported, .-disable_passdown_if_not_supported
	.comm	BDEVNAME_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
