	.file	"extr_sd.c_sd_config_discard.c"
	.intel_syntax noprefix
	.text
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.type	sd_config_discard, @function
sd_config_discard:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 40[rdi]
	mov	esi, DWORD PTR 4[rdi]
	mov	r13, QWORD PTR [rax]
	mov	rax, QWORD PTR 24[rdi]
	mov	r12d, DWORD PTR [rax]
	mov	eax, DWORD PTR [rdi]
	mov	edi, DWORD PTR 32[rdi]
	imul	eax, r12d
	imul	esi, r12d
	mov	DWORD PTR 0[r13], eax
	call	max@PLT
	mov	DWORD PTR 4[r13], eax
	mov	DWORD PTR 8[rbx], ebp
	add	ebp, -128
	cmp	ebp, 5
	ja	.L11
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rbp*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r13
	xor	esi, esi
	call	blk_queue_max_discard_sectors@PLT
	mov	edi, DWORD PTR QUEUE_FLAG_DISCARD[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, r13
	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
	jmp	blk_queue_flag_clear@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR SD_MAX_WS10_BLOCKS[rip]
	mov	edi, DWORD PTR 16[rbx]
	shr	r12d, 9
	call	min_not_zero@PLT
	mov	esi, r12d
	imul	esi, eax
.L2:
	mov	rdi, r13
	call	blk_queue_max_discard_sectors@PLT
	mov	edi, DWORD PTR QUEUE_FLAG_DISCARD[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, r13
	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
	jmp	blk_queue_flag_set@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR SD_MAX_WS16_BLOCKS[rip]
	mov	edx, DWORD PTR 4[rax]
	test	edx, edx
	cmovne	edi, DWORD PTR 12[rbx]
	shr	r12d, 9
	call	min_not_zero@PLT
	mov	esi, r12d
	imul	esi, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR SD_MAX_WS10_BLOCKS[rip]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	cmovne	edi, DWORD PTR 12[rbx]
	shr	r12d, 9
	call	min_not_zero@PLT
	mov	esi, r12d
	imul	esi, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR SD_MAX_WS16_BLOCKS[rip]
	mov	edi, DWORD PTR 12[rbx]
	shr	r12d, 9
	call	min_not_zero@PLT
	mov	esi, r12d
	imul	esi, eax
	jmp	.L2
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	sd_config_discard.cold, @function
sd_config_discard.cold:
.LFSB0:
.L11:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	xor	esi, esi
	jmp	.L2
	.cfi_endproc
.LFE0:
	.text
	.size	sd_config_discard, .-sd_config_discard
	.section	.text.unlikely
	.size	sd_config_discard.cold, .-sd_config_discard.cold
.LCOLDE0:
	.text
.LHOTE0:
	.comm	SD_MAX_WS16_BLOCKS,4,4
	.comm	SD_MAX_WS10_BLOCKS,4,4
	.comm	QUEUE_FLAG_DISCARD,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_sd.c_sd_config_discard.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sd_config_discard, %function
sd_config_discard:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #20]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0]
	ldr	r5, [r2]
	ldr	r2, [r0, #28]
	mul	r3, r5, r3
	ldr	r6, [r2]
	ldr	r2, [r0, #4]
	mov	r7, r1
	mov	r4, r0
	str	r3, [r6]
	mul	r1, r2, r5
	ldr	r0, [r0, #24]
	bl	max
	sub	r3, r7, #128
	str	r0, [r6, #4]
	str	r7, [r4, #8]
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L11
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
	.word	.L3
.L3:
	mov	r1, #0
	mov	r0, r6
	bl	blk_queue_max_discard_sectors
	ldr	r3, .L15
	mov	r1, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	b	blk_queue_flag_clear
.L8:
	ldr	r3, .L15+4
	ldr	r0, [r4, #16]
	ldr	r1, [r3]
	bl	min_not_zero
	lsr	r5, r5, #9
	mul	r1, r0, r5
.L2:
	mov	r0, r6
	bl	blk_queue_max_discard_sectors
	ldr	r3, .L15
	mov	r1, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	b	blk_queue_flag_set
.L7:
	ldr	r3, [r4, #20]
	ldr	r1, [r4, #12]
	ldr	r0, [r3, #4]
	ldr	r2, [r4, #16]
	ldr	r3, .L15+8
.L13:
	cmp	r0, #0
	movne	r0, r1
	moveq	r0, r2
	ldr	r1, [r3]
	bl	min_not_zero
	lsr	r5, r5, #9
	mul	r1, r0, r5
	b	.L2
.L6:
	ldr	r3, [r4, #20]
	ldr	r1, [r4, #12]
	ldr	r0, [r3, #4]
	ldr	r2, [r4, #16]
	ldr	r3, .L15+4
	b	.L13
.L5:
	ldr	r3, .L15+8
	ldr	r0, [r4, #12]
	ldr	r1, [r3]
	bl	min_not_zero
	lsr	r5, r5, #9
	mul	r1, r0, r5
	b	.L2
.L11:
	mov	r1, #0
	b	.L2
.L16:
	.align	2
.L15:
	.word	QUEUE_FLAG_DISCARD
	.word	SD_MAX_WS10_BLOCKS
	.word	SD_MAX_WS16_BLOCKS
	.size	sd_config_discard, .-sd_config_discard
	.comm	SD_MAX_WS16_BLOCKS,4,4
	.comm	SD_MAX_WS10_BLOCKS,4,4
	.comm	QUEUE_FLAG_DISCARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
