	.file	"extr_amd5536udc.c_udc_basic_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"udc_basic_init()\n"
	.text
	.p2align 4
	.type	udc_basic_init, @function
udc_basic_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	DBG@PLT
	mov	eax, DWORD PTR USB_SPEED_UNKNOWN[rip]
	lea	rdi, udc_timer[rip]
	mov	DWORD PTR 24[rbx], eax
	call	timer_pending@PLT
	test	rax, rax
	jne	.L12
.L2:
	lea	rdi, udc_pollstall_timer[rip]
	call	timer_pending@PLT
	test	rax, rax
	jne	.L13
.L3:
	mov	rax, QWORD PTR 16[rbx]
	lea	rdi, 4[rax]
	call	readl@PLT
	mov	edi, DWORD PTR UDC_DEVCTL_RDE[rip]
	mov	ebp, eax
	call	AMD_UNMASK_BIT@PLT
	mov	edi, DWORD PTR UDC_DEVCTL_TDE[rip]
	and	ebp, eax
	call	AMD_UNMASK_BIT@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	edi, ebp
	and	edi, eax
	lea	rsi, 4[rdx]
	call	writel@PLT
	mov	rdi, QWORD PTR 16[rbx]
	call	readl@PLT
	mov	edi, DWORD PTR UDC_DEVCFG_CSR_PRG[rip]
	mov	ebp, eax
	call	AMD_BIT@PLT
	mov	edi, DWORD PTR UDC_DEVCFG_SP[rip]
	or	ebp, eax
	call	AMD_BIT@PLT
	mov	edi, DWORD PTR UDC_DEVCFG_RWKP[rip]
	or	ebp, eax
	call	AMD_BIT@PLT
	mov	rsi, QWORD PTR 16[rbx]
	mov	edi, ebp
	or	edi, eax
	call	writel@PLT
	mov	rdi, rbx
	call	make_ep_lists@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR jiffies[rip]
	lea	rdi, udc_timer[rip]
	mov	QWORD PTR set_rde[rip], 0
	lea	rsi, -1[rax]
	call	mod_timer@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR jiffies[rip]
	lea	rdi, udc_pollstall_timer[rip]
	lea	rsi, -1[rax]
	call	mod_timer@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	udc_basic_init, .-udc_basic_init
	.comm	udc_timer,4,4
	.comm	udc_pollstall_timer,4,4
	.comm	set_rde,8,8
	.comm	jiffies,8,8
	.comm	USB_SPEED_UNKNOWN,4,4
	.comm	UDC_DEVCTL_TDE,4,4
	.comm	UDC_DEVCTL_RDE,4,4
	.comm	UDC_DEVCFG_SP,4,4
	.comm	UDC_DEVCFG_RWKP,4,4
	.comm	UDC_DEVCFG_CSR_PRG,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_amd5536udc.c_udc_basic_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"udc_basic_init()\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	udc_basic_init, %function
udc_basic_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r1, .L14
	bl	DBG
	ldr	r3, .L14+4
	ldr	r0, .L14+8
	ldr	r3, [r3]
	str	r3, [r4, #12]
	bl	timer_pending
	cmp	r0, #0
	bne	.L12
	ldr	r0, .L14+12
	bl	timer_pending
	cmp	r0, #0
	bne	.L13
.L3:
	ldr	r0, [r4, #8]
	add	r0, r0, #4
	bl	readl
	ldr	r3, .L14+16
	mov	r5, r0
	ldr	r0, [r3]
	bl	AMD_UNMASK_BIT
	ldr	r3, .L14+20
	and	r5, r5, r0
	ldr	r0, [r3]
	bl	AMD_UNMASK_BIT
	ldr	r1, [r4, #8]
	and	r0, r0, r5
	add	r1, r1, #4
	bl	writel
	ldr	r0, [r4, #8]
	bl	readl
	ldr	r3, .L14+24
	mov	r5, r0
	ldr	r0, [r3]
	bl	AMD_BIT
	ldr	r3, .L14+28
	orr	r5, r5, r0
	ldr	r0, [r3]
	bl	AMD_BIT
	ldr	r3, .L14+32
	orr	r5, r5, r0
	ldr	r0, [r3]
	bl	AMD_BIT
	ldr	r1, [r4, #8]
	orr	r0, r5, r0
	bl	writel
	mov	r0, r4
	bl	make_ep_lists
	mov	r3, #0
	str	r3, [r4, #4]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L12:
	mov	r2, #0
	ldr	r1, .L14+36
	ldr	r3, .L14+40
	ldr	r1, [r1]
	ldr	r0, .L14+8
	sub	r1, r1, #1
	str	r2, [r3]
	bl	mod_timer
	ldr	r0, .L14+12
	bl	timer_pending
	cmp	r0, #0
	beq	.L3
.L13:
	ldr	r3, .L14+36
	ldr	r0, .L14+12
	ldr	r1, [r3]
	sub	r1, r1, #1
	bl	mod_timer
	b	.L3
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	USB_SPEED_UNKNOWN
	.word	udc_timer
	.word	udc_pollstall_timer
	.word	UDC_DEVCTL_RDE
	.word	UDC_DEVCTL_TDE
	.word	UDC_DEVCFG_CSR_PRG
	.word	UDC_DEVCFG_SP
	.word	UDC_DEVCFG_RWKP
	.word	jiffies
	.word	set_rde
	.size	udc_basic_init, .-udc_basic_init
	.comm	udc_timer,4,4
	.comm	udc_pollstall_timer,4,4
	.comm	set_rde,4,4
	.comm	jiffies,4,4
	.comm	USB_SPEED_UNKNOWN,4,4
	.comm	UDC_DEVCTL_TDE,4,4
	.comm	UDC_DEVCTL_RDE,4,4
	.comm	UDC_DEVCFG_SP,4,4
	.comm	UDC_DEVCFG_RWKP,4,4
	.comm	UDC_DEVCFG_CSR_PRG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
