	.file	"extr_vub300.c___vub300_irqpoll_response.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__vub300_irqpoll_response, @function
__vub300_irqpoll_response:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 56[rdi]
	cmp	QWORD PTR [rax], 0
	je	.L31
	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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR 32[rdi]
	add	eax, -128
	cmp	eax, 5
	ja	.L1
	lea	rdx, .L5[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L14-.L5
	.long	.L4-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR SD_ERROR_NO_DEVICE[rip]
	cmp	DWORD PTR 44[rdi], eax
	je	.L39
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR 36[rdi]
	sub	eax, 3
	sar	eax, 3
	je	.L14
	sub	eax, 1
	xor	ebx, ebx
	lea	r12, 4[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, QWORD PTR 24[rbp]
	mov	rdi, rbp
	add	rsi, rbx
	add	rbx, 4
	call	add_offloaded_reg@PLT
	cmp	rbx, r12
	jne	.L15
.L14:
	lea	r12, 8[rbp]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	edx, DWORD PTR 16[rbp]
	test	edx, edx
	jne	.L40
	add	DWORD PTR 0[rbp], 1
.L17:
	mov	DWORD PTR 4[rbp], 1
.L35:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR 40[rdi]
	mov	DWORD PTR 52[rdi], eax
	call	new_system_port_status@PLT
	mov	ecx, DWORD PTR 48[rbp]
	test	ecx, ecx
	jne	.L1
	movsx	rsi, DWORD PTR HZ[rip]
	mov	rax, rsi
	imul	rsi, rsi, 1717986919
	sar	eax, 31
	sar	rsi, 33
	sub	esi, eax
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, 1
.L34:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	vub300_queue_poll_work@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR 36[rdi]
	sub	eax, 3
	sar	eax, 3
	je	.L18
	sub	eax, 1
	xor	ebx, ebx
	lea	r12, 4[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, QWORD PTR 24[rbp]
	mov	rdi, rbp
	add	rsi, rbx
	add	rbx, 4
	call	add_offloaded_reg@PLT
	cmp	r12, rbx
	jne	.L19
.L18:
	lea	r12, 8[rbp]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	jne	.L41
	add	DWORD PTR 0[rbp], 1
.L21:
	mov	DWORD PTR 4[rbp], 0
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	mov	edi, DWORD PTR 12[rbp]
	call	mmc_signal_sdio_irq@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L39:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	check_vub300_port_status@PLT
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbp]
	call	mmc_signal_sdio_irq@PLT
	jmp	.L21
	.cfi_endproc
.LFE0:
	.size	__vub300_irqpoll_response, .-__vub300_irqpoll_response
	.comm	SD_ERROR_NO_DEVICE,4,4
	.comm	HZ,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_vub300.c___vub300_irqpoll_response.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__vub300_irqpoll_response, %function
__vub300_irqpoll_response:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #48]
	ldr	r3, [r3]
	cmp	r3, #0
	bxeq	lr
	ldr	r3, [r0, #24]
	push	{r4, r5, r6, lr}
	sub	r3, r3, #128
	mov	r4, r0
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L1
.L5:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L14
	.word	.L4
.L1:
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r6, [r0, #28]
	sub	r6, r6, #3
	asrs	r6, r6, #3
	beq	.L14
	mov	r5, #0
	lsl	r6, r6, #2
.L15:
	ldr	r1, [r4, #20]
	mov	r0, r4
	add	r1, r1, r5
	add	r5, r5, #4
	bl	add_offloaded_reg
	cmp	r6, r5
	bne	.L15
.L14:
	add	r5, r4, #8
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
.L17:
	mov	r3, #1
	mov	r0, r5
	str	r3, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	mutex_unlock
.L4:
	ldr	r3, .L39
	ldr	r2, [r0, #36]
	ldr	r3, [r3]
	cmp	r2, r3
	popne	{r4, r5, r6, pc}
	pop	{r4, r5, r6, lr}
	b	check_vub300_port_status
.L10:
	ldr	r3, [r0, #32]
	str	r3, [r0, #44]
	bl	new_system_port_status
	ldr	r3, [r4, #40]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L39+4
	ldr	r1, .L39+8
	ldr	r3, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	smull	r2, r1, r3, r1
	asr	r3, r3, #31
	rsb	r1, r3, r1, asr #1
	b	vub300_queue_poll_work
.L9:
	mov	r1, #1
	pop	{r4, r5, r6, lr}
	b	vub300_queue_poll_work
.L8:
	ldr	r6, [r0, #28]
	sub	r6, r6, #3
	asrs	r6, r6, #3
	beq	.L18
	mov	r5, #0
	lsl	r6, r6, #2
.L19:
	ldr	r1, [r4, #20]
	mov	r0, r4
	add	r1, r1, r5
	add	r5, r5, #4
	bl	add_offloaded_reg
	cmp	r5, r6
	bne	.L19
.L18:
	add	r5, r4, #8
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L38
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
.L21:
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	mutex_unlock
.L37:
	ldr	r0, [r4, #12]
	bl	mmc_signal_sdio_irq
	b	.L17
.L38:
	ldr	r0, [r4, #12]
	bl	mmc_signal_sdio_irq
	b	.L21
.L40:
	.align	2
.L39:
	.word	SD_ERROR_NO_DEVICE
	.word	HZ
	.word	1717986919
	.size	__vub300_irqpoll_response, .-__vub300_irqpoll_response
	.comm	SD_ERROR_NO_DEVICE,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
