	.file	"extr_tifm_sd.c_tifm_sd_set_data_timeout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tifm_sd_set_data_timeout, @function
tifm_sd_set_data_timeout:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR fixed_timeout[rip], 0
	jne	.L1
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	eax, 1000000000
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR 16[rdi]
	div	QWORD PTR [rdi]
	xor	edx, edx
	imul	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR [rsi]
	mov	rcx, rax
	mov	rax, QWORD PTR 8[rsi]
	mov	rsi, QWORD PTR SOCK_MMCSD_DATA_TO[rip]
	add	rsi, QWORD PTR [rbx]
	div	rcx
	add	edi, eax
	cmp	edi, 65534
	jbe	.L10
	shr	edi, 10
	mov	eax, 0
	add	edi, 1
	cmp	edi, 65536
	cmovnb	edi, eax
	call	writel@PLT
	mov	rbp, QWORD PTR SOCK_MMCSD_SDIO_MODE_CONFIG[rip]
	add	rbp, QWORD PTR [rbx]
	mov	rdi, rbp
	call	readl@PLT
	or	eax, DWORD PTR TIFM_MMCSD_DPE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	writel@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	writel@PLT
	mov	rbp, QWORD PTR SOCK_MMCSD_SDIO_MODE_CONFIG[rip]
	add	rbp, QWORD PTR [rbx]
	mov	ebx, DWORD PTR TIFM_MMCSD_DPE[rip]
	mov	rdi, rbp
	call	readl@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	not	ebx
	and	ebx, eax
	mov	edi, ebx
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	writel@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	tifm_sd_set_data_timeout, .-tifm_sd_set_data_timeout
	.comm	fixed_timeout,8,8
	.comm	TIFM_MMCSD_DPE,4,4
	.comm	SOCK_MMCSD_SDIO_MODE_CONFIG,8,8
	.comm	SOCK_MMCSD_DATA_TO,8,8
	.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_tifm_sd.c_tifm_sd_set_data_timeout.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tifm_sd_set_data_timeout, %function
tifm_sd_set_data_timeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	bxne	lr
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r1, [r0]
	ldr	r0, .L10+4
	bl	__aeabi_uidiv
	mov	r3, r0
	ldr	r1, [r4, #4]
	ldr	r0, [r5, #4]
	mul	r1, r3, r1
	bl	__aeabi_uidiv
	ldr	r1, [r5]
	ldr	r4, [r4, #8]
	ldr	r3, .L10+8
	ldr	r2, .L10+12
	add	r0, r0, r1
	ldr	r3, [r3]
	ldr	r1, [r4]
	cmp	r0, r2
	add	r1, r1, r3
	bls	.L9
	lsr	r0, r0, #10
	add	r0, r0, #1
	ldr	r5, .L10+16
	cmp	r0, #65536
	movcs	r0, #0
	bl	writel
	ldr	r3, [r5]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L10+20
	ldr	r2, [r5]
	ldr	r1, [r4]
	ldr	r3, [r3]
	add	r1, r1, r2
	orr	r0, r0, r3
	pop	{r4, r5, r6, lr}
	b	writel
.L9:
	ldr	r6, .L10+16
	bl	writel
	ldr	r2, .L10+20
	ldr	r3, [r6]
	ldr	r0, [r4]
	ldr	r5, [r2]
	add	r0, r0, r3
	bl	readl
	mvn	r5, r5
	ldr	r3, [r6]
	ldr	r1, [r4]
	and	r0, r0, r5
	add	r1, r1, r3
	pop	{r4, r5, r6, lr}
	b	writel
.L11:
	.align	2
.L10:
	.word	fixed_timeout
	.word	1000000000
	.word	SOCK_MMCSD_DATA_TO
	.word	65534
	.word	SOCK_MMCSD_SDIO_MODE_CONFIG
	.word	TIFM_MMCSD_DPE
	.size	tifm_sd_set_data_timeout, .-tifm_sd_set_data_timeout
	.comm	fixed_timeout,4,4
	.comm	TIFM_MMCSD_DPE,4,4
	.comm	SOCK_MMCSD_SDIO_MODE_CONFIG,4,4
	.comm	SOCK_MMCSD_DATA_TO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
