	.file	"extr_tifm_ms.c_tifm_ms_data_event.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"data event: fifo_status %x, host_status %x, flags %x\n"
	.text
	.p2align 4
	.type	tifm_ms_data_event, @function
tifm_ms_data_event:
.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	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock@PLT
	mov	rdi, rbp
	call	tifm_get_drvdata@PLT
	mov	rdi, rax
	call	memstick_priv@PLT
	mov	rdi, QWORD PTR SOCK_DMA_FIFO_STATUS[rip]
	add	rdi, QWORD PTR 8[rbp]
	mov	r12, rax
	call	readl@PLT
	mov	rdi, QWORD PTR SOCK_MS_STATUS[rip]
	add	rdi, QWORD PTR 8[rbp]
	mov	r13d, eax
	call	readl@PLT
	mov	r8d, DWORD PTR [r12]
	lea	rdi, 16[rbp]
	mov	edx, r13d
	mov	ecx, eax
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	cmp	QWORD PTR 16[r12], 0
	je	.L5
	cmp	QWORD PTR 8[r12], 0
	jne	.L21
	test	DWORD PTR TIFM_FIFO_MORE[rip], r13d
	je	.L18
	mov	rdi, r12
	call	tifm_ms_transfer_data@PLT
	test	eax, eax
	jne	.L18
.L9:
	mov	eax, DWORD PTR FIFO_READY[rip]
	or	DWORD PTR [r12], eax
	mov	rdi, r12
	call	tifm_ms_check_status@PLT
	mov	ebx, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	test	r13b, 1
	jne	.L22
.L5:
	mov	rsi, QWORD PTR SOCK_DMA_FIFO_STATUS[rip]
	mov	edi, r13d
	add	rsi, QWORD PTR 8[rbp]
	call	writel@PLT
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	eax, DWORD PTR FIFO_READY[rip]
	or	DWORD PTR [r12], eax
	mov	rdi, r12
	call	tifm_ms_check_status@PLT
	cmp	QWORD PTR 8[r12], 0
	mov	ebx, eax
	je	.L23
.L6:
	mov	rsi, QWORD PTR SOCK_DMA_FIFO_STATUS[rip]
	mov	edi, r13d
	add	rsi, QWORD PTR 8[rbp]
	call	writel@PLT
	test	ebx, ebx
	jne	.L3
	mov	rdi, r12
	call	tifm_ms_complete_cmd@PLT
	jmp	.L3
.L23:
	test	DWORD PTR TIFM_FIFO_MORE[rip], r13d
	je	.L6
	mov	rdi, r12
	call	tifm_ms_transfer_data@PLT
	test	eax, eax
	jne	.L6
	jmp	.L9
.L18:
	mov	rsi, QWORD PTR 8[rbp]
	mov	edi, r13d
	add	rsi, QWORD PTR SOCK_DMA_FIFO_STATUS[rip]
	call	writel@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	tifm_ms_data_event, .-tifm_ms_data_event
	.comm	TIFM_FIFO_MORE,4,4
	.comm	SOCK_MS_STATUS,8,8
	.comm	SOCK_DMA_FIFO_STATUS,8,8
	.comm	FIFO_READY,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_tifm_ms.c_tifm_ms_data_event.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"data event: fifo_status %x, host_status %x, flags %"
	.ascii	"x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tifm_ms_data_event, %function
tifm_ms_data_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	sub	sp, sp, #12
	bl	spin_lock
	mov	r0, r4
	bl	tifm_get_drvdata
	bl	memstick_priv
	ldr	r7, .L23
	ldr	r2, [r4, #4]
	ldr	r3, [r7]
	mov	r5, r0
	add	r0, r2, r3
	bl	readl
	ldr	r3, .L23+4
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	mov	r6, r0
	add	r0, r1, r3
	bl	readl
	ldr	r2, [r5]
	mov	r3, r0
	str	r2, [sp]
	ldr	r1, .L23+8
	mov	r2, r6
	add	r0, r4, #8
	bl	dev_dbg
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L23+12
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L17
	mov	r0, r5
	bl	tifm_ms_transfer_data
	cmp	r0, #0
	bne	.L17
	ldr	r9, .L23+16
.L9:
	ldr	r2, [r9]
	ldr	r3, [r5]
	mov	r0, r5
	orr	r3, r3, r2
	str	r3, [r5]
	bl	tifm_ms_check_status
	mov	r8, r0
	b	.L6
.L20:
	tst	r6, #1
	bne	.L21
.L5:
	ldr	r3, [r7]
	ldr	r1, [r4, #4]
	mov	r0, r6
	add	r1, r1, r3
	bl	writel
.L3:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	spin_unlock
.L21:
	ldr	r9, .L23+16
	ldr	r3, [r5]
	ldr	r2, [r9]
	mov	r0, r5
	orr	r3, r3, r2
	str	r3, [r5]
	bl	tifm_ms_check_status
	ldr	r3, [r5, #4]
	mov	r8, r0
	cmp	r3, #0
	beq	.L22
.L6:
	ldr	r3, [r7]
	ldr	r1, [r4, #4]
	mov	r0, r6
	add	r1, r1, r3
	bl	writel
	cmp	r8, #0
	bne	.L3
	mov	r0, r5
	bl	tifm_ms_complete_cmd
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	spin_unlock
.L22:
	ldr	r3, .L23+12
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L6
	mov	r0, r5
	bl	tifm_ms_transfer_data
	cmp	r0, #0
	bne	.L6
	b	.L9
.L17:
	ldr	r1, [r7]
	ldr	r3, [r4, #4]
	mov	r0, r6
	add	r1, r1, r3
	bl	writel
	b	.L3
.L24:
	.align	2
.L23:
	.word	SOCK_DMA_FIFO_STATUS
	.word	SOCK_MS_STATUS
	.word	.LC0
	.word	TIFM_FIFO_MORE
	.word	FIFO_READY
	.size	tifm_ms_data_event, .-tifm_ms_data_event
	.comm	TIFM_FIFO_MORE,4,4
	.comm	SOCK_MS_STATUS,4,4
	.comm	SOCK_DMA_FIFO_STATUS,4,4
	.comm	FIFO_READY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
