	.file	"extr_isp1760-hcd.c_enqueue_an_INT_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	enqueue_an_INT_packet, @function
enqueue_an_INT_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, 1
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rsi
	call	hcd_to_priv@PLT
	mov	edi, 195
	mov	r15, rax
	call	ndelay@PLT
	mov	rdi, QWORD PTR HC_INT_PTD_SKIPMAP_REG[rip]
	add	rdi, QWORD PTR [rbx]
	call	isp1760_readl@PLT
	xor	edi, edi
	test	eax, eax
	mov	r12d, eax
	sete	dil
	call	BUG_ON@PLT
	mov	edi, r12d
	call	__ffs@PLT
	mov	esi, DWORD PTR 4[r13]
	mov	rdi, r15
	mov	r14d, eax
	mov	ecx, eax
	mov	eax, DWORD PTR INT_REGS_OFFSET[rip]
	sal	ebp, cl
	lea	r11d, [rax+r14*4]
	mov	DWORD PTR 4[rsp], r11d
	call	alloc_mem@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r8d, DWORD PTR 0[r13]
	mov	r9d, r14d
	push	r13
	.cfi_def_cfa_offset 96
	mov	r10, QWORD PTR 24[rsp]
	mov	rdx, r15
	mov	esi, eax
	mov	r11d, DWORD PTR 20[rsp]
	mov	rcx, r10
	mov	edi, r11d
	call	enqueue_one_int_qtd@PLT
	mov	rdi, QWORD PTR HC_INT_IRQ_MASK_OR_REG[rip]
	add	rdi, QWORD PTR [rbx]
	call	isp1760_readl@PLT
	mov	rsi, QWORD PTR HC_INT_IRQ_MASK_OR_REG[rip]
	add	rsi, QWORD PTR [rbx]
	or	eax, ebp
	mov	edi, eax
	call	isp1760_writel@PLT
	mov	edi, ebp
	mov	rsi, QWORD PTR HC_INT_PTD_SKIPMAP_REG[rip]
	add	rsi, QWORD PTR [rbx]
	not	edi
	and	edi, r12d
	call	isp1760_writel@PLT
	mov	rdi, QWORD PTR HC_BUFFER_STATUS_REG[rip]
	add	rdi, QWORD PTR [rbx]
	call	isp1760_readl@PLT
	mov	rsi, QWORD PTR HC_BUFFER_STATUS_REG[rip]
	add	rsi, QWORD PTR [rbx]
	or	eax, DWORD PTR INT_BUFFER[rip]
	add	rsp, 40
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	isp1760_writel@PLT
	.cfi_endproc
.LFE0:
	.size	enqueue_an_INT_packet, .-enqueue_an_INT_packet
	.comm	INT_REGS_OFFSET,4,4
	.comm	INT_BUFFER,4,4
	.comm	HC_INT_PTD_SKIPMAP_REG,8,8
	.comm	HC_INT_IRQ_MASK_OR_REG,8,8
	.comm	HC_BUFFER_STATUS_REG,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_isp1760-hcd.c_enqueue_an_INT_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue_an_INT_packet, %function
enqueue_an_INT_packet:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r4, r0
	mov	r7, r2
	str	r1, [sp, #20]
	bl	hcd_to_priv
	mov	r2, r0
	ldr	r10, .L4
	mov	r0, #195
	str	r2, [sp, #16]
	bl	ndelay
	ldr	r1, [r10]
	ldr	r0, [r4]
	ldr	fp, .L4+4
	add	r0, r0, r1
	bl	isp1760_readl
	mov	r5, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	mov	r0, r5
	bl	__ffs
	ldr	r2, [sp, #16]
	mov	r6, r0
	ldr	r0, .L4+8
	ldr	r1, [r7, #4]
	ldr	r9, [r0]
	mov	r0, r2
	bl	alloc_mem
	mov	r1, r0
	ldr	r0, [r7]
	add	r9, r9, r6, lsl #2
	ldr	r2, [sp, #16]
	stm	sp, {r0, r6, r7}
	ldr	r3, [sp, #20]
	mov	r0, r9
	bl	enqueue_one_int_qtd
	ldr	r3, [fp]
	ldr	r0, [r4]
	mov	r8, #1
	add	r0, r0, r3
	bl	isp1760_readl
	ldr	r3, [fp]
	ldr	r1, [r4]
	lsl	r8, r8, r6
	add	r1, r1, r3
	orr	r0, r8, r0
	bl	isp1760_writel
	ldr	r3, [r10]
	ldr	r1, [r4]
	ldr	r6, .L4+12
	add	r1, r1, r3
	bic	r0, r5, r8
	bl	isp1760_writel
	ldr	r3, [r6]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	isp1760_readl
	ldr	r3, .L4+16
	ldr	r1, [r4]
	ldr	r2, [r6]
	ldr	r3, [r3]
	add	r1, r1, r2
	orr	r0, r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	isp1760_writel
.L5:
	.align	2
.L4:
	.word	HC_INT_PTD_SKIPMAP_REG
	.word	HC_INT_IRQ_MASK_OR_REG
	.word	INT_REGS_OFFSET
	.word	HC_BUFFER_STATUS_REG
	.word	INT_BUFFER
	.size	enqueue_an_INT_packet, .-enqueue_an_INT_packet
	.comm	INT_REGS_OFFSET,4,4
	.comm	INT_BUFFER,4,4
	.comm	HC_INT_PTD_SKIPMAP_REG,4,4
	.comm	HC_INT_IRQ_MASK_OR_REG,4,4
	.comm	HC_BUFFER_STATUS_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
