	.file	"extr_sdhci.c_sdhci_set_transfer_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sdhci_set_transfer_mode, @function
sdhci_set_transfer_mode:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L1
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR SDHCI_TRNS_BLK_CNT_EN[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	DWORD PTR [rsi], 512
	mov	rbx, rsi
	mov	edi, DWORD PTR 4[rsi]
	jg	.L3
	cmp	edi, 1
	jle	.L5
	or	r12d, DWORD PTR SDHCI_TRNS_MULTI[rip]
.L5:
	mov	eax, DWORD PTR 8[rbx]
	test	DWORD PTR MMC_DATA_READ[rip], eax
	je	.L7
	or	r12d, DWORD PTR SDHCI_TRNS_READ[rip]
.L7:
	mov	eax, DWORD PTR 4[rbp]
	test	DWORD PTR SDHCI_USE_DMA[rip], eax
	je	.L8
	or	r12d, DWORD PTR SDHCI_TRNS_DMA[rip]
.L8:
	mov	esi, DWORD PTR SDHCI_TRANSFER_MODE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	mov	rdi, rbp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	WR2@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	or	r12d, DWORD PTR SDHCI_TRNS_MULTI[rip]
	test	edi, edi
	jne	.L5
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rax], 0
	je	.L6
	xor	edi, edi
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR SDHCI_QUIRK_BROKEN_AUTO_STOP[rip], eax
	sete	dil
.L6:
	call	__predict_true@PLT
	test	rax, rax
	je	.L5
	or	r12d, DWORD PTR SDHCI_TRNS_ACMD12[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	sdhci_set_transfer_mode, .-sdhci_set_transfer_mode
	.comm	SDHCI_USE_DMA,4,4
	.comm	SDHCI_TRNS_READ,4,4
	.comm	SDHCI_TRNS_MULTI,4,4
	.comm	SDHCI_TRNS_DMA,4,4
	.comm	SDHCI_TRNS_BLK_CNT_EN,4,4
	.comm	SDHCI_TRNS_ACMD12,4,4
	.comm	SDHCI_TRANSFER_MODE,4,4
	.comm	SDHCI_QUIRK_BROKEN_AUTO_STOP,4,4
	.comm	MMC_STOP_TRANSMISSION,8,8
	.comm	MMC_DATA_READ,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_sdhci.c_sdhci_set_transfer_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdhci_set_transfer_mode, %function
sdhci_set_transfer_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r1, #0
	popeq	{r4, r5, r6, pc}
	ldr	r2, [r4]
	ldr	r3, .L24
	cmp	r2, #512
	mov	r5, r0
	ldr	r6, [r3]
	ldr	r0, [r4, #4]
	ble	.L23
	ldr	r3, .L24+4
	cmp	r0, #0
	ldr	r3, [r3]
	orr	r6, r6, r3
	bne	.L5
	ldr	r3, [r5, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L24+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
.L6:
	bl	__predict_true
	cmp	r0, #0
	ldrne	r3, .L24+12
	ldrne	r3, [r3]
	orrne	r6, r6, r3
	b	.L5
.L23:
	cmp	r0, #1
	ldrgt	r3, .L24+4
	ldrgt	r3, [r3]
	orrgt	r6, r6, r3
.L5:
	ldr	r3, .L24+16
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	mov	r0, r5
	tst	r2, r3
	ldrne	r3, .L24+20
	ldr	r2, [r5, #4]
	ldrne	r3, [r3]
	orrne	r6, r6, r3
	ldr	r3, .L24+24
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, .L24+28
	ldrne	r3, [r3]
	orrne	r6, r6, r3
	ldr	r3, .L24+32
	mov	r2, r6
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	WR2
.L25:
	.align	2
.L24:
	.word	SDHCI_TRNS_BLK_CNT_EN
	.word	SDHCI_TRNS_MULTI
	.word	SDHCI_QUIRK_BROKEN_AUTO_STOP
	.word	SDHCI_TRNS_ACMD12
	.word	MMC_DATA_READ
	.word	SDHCI_TRNS_READ
	.word	SDHCI_USE_DMA
	.word	SDHCI_TRNS_DMA
	.word	SDHCI_TRANSFER_MODE
	.size	sdhci_set_transfer_mode, .-sdhci_set_transfer_mode
	.comm	SDHCI_USE_DMA,4,4
	.comm	SDHCI_TRNS_READ,4,4
	.comm	SDHCI_TRNS_MULTI,4,4
	.comm	SDHCI_TRNS_DMA,4,4
	.comm	SDHCI_TRNS_BLK_CNT_EN,4,4
	.comm	SDHCI_TRNS_ACMD12,4,4
	.comm	SDHCI_TRANSFER_MODE,4,4
	.comm	SDHCI_QUIRK_BROKEN_AUTO_STOP,4,4
	.comm	MMC_STOP_TRANSMISSION,4,4
	.comm	MMC_DATA_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
