	.file	"extr_sdio.c_sdio_enable_4bit_bus.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sdio_enable_4bit_bus, @function
sdio_enable_4bit_bus:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR MMC_TYPE_SDIO[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L14
	mov	rax, QWORD PTR 8[rdi]
	mov	r12d, DWORD PTR [rax]
	and	r12d, DWORD PTR MMC_CAP_4_BIT_DATA[rip]
	je	.L1
	mov	r12d, DWORD PTR 16[rdi]
	and	r12d, DWORD PTR SD_SCR_BUS_WIDTH_4[rip]
	jne	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR MMC_BUS_WIDTH_4[rip]
	call	mmc_app_set_bus_width@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	sdio_enable_wide@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L16
.L3:
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR MMC_BUS_WIDTH_4[rip]
	xor	r12d, r12d
	call	mmc_set_bus_width@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	sdio_enable_wide@PLT
	mov	r12d, eax
	test	eax, eax
	jg	.L3
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	esi, DWORD PTR MMC_BUS_WIDTH_1[rip]
	mov	rdi, rbp
	call	mmc_app_set_bus_width@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sdio_enable_4bit_bus, .-sdio_enable_4bit_bus
	.comm	SD_SCR_BUS_WIDTH_4,4,4
	.comm	MMC_TYPE_SDIO,8,8
	.comm	MMC_CAP_4_BIT_DATA,4,4
	.comm	MMC_BUS_WIDTH_4,4,4
	.comm	MMC_BUS_WIDTH_1,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_sdio.c_sdio_enable_4bit_bus.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdio_enable_4bit_bus, %function
sdio_enable_4bit_bus:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L17
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	mov	r5, r0
	beq	.L14
	ldr	r2, [r0, #4]
	ldr	r3, .L17+4
	ldr	r4, [r2]
	ldr	r3, [r3]
	ands	r4, r4, r3
	beq	.L1
	ldr	r3, .L17+8
	ldr	r4, [r0, #8]
	ldr	r3, [r3]
	ands	r4, r4, r3
	bne	.L15
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r6, .L17+12
	ldr	r1, [r6]
	bl	mmc_app_set_bus_width
	subs	r4, r0, #0
	bne	.L1
	mov	r0, r5
	bl	sdio_enable_wide
	subs	r4, r0, #0
	ble	.L16
.L3:
	mov	r4, #0
	ldr	r1, [r6]
	ldr	r0, [r5, #4]
	bl	mmc_set_bus_width
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L14:
	bl	sdio_enable_wide
	subs	r4, r0, #0
	ldrgt	r6, .L17+12
	bgt	.L3
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, .L17+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	mmc_app_set_bus_width
	b	.L1
.L18:
	.align	2
.L17:
	.word	MMC_TYPE_SDIO
	.word	MMC_CAP_4_BIT_DATA
	.word	SD_SCR_BUS_WIDTH_4
	.word	MMC_BUS_WIDTH_4
	.word	MMC_BUS_WIDTH_1
	.size	sdio_enable_4bit_bus, .-sdio_enable_4bit_bus
	.comm	SD_SCR_BUS_WIDTH_4,4,4
	.comm	MMC_TYPE_SDIO,4,4
	.comm	MMC_CAP_4_BIT_DATA,4,4
	.comm	MMC_BUS_WIDTH_4,4,4
	.comm	MMC_BUS_WIDTH_1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
