	.file	"extr_s3c-hsudc.c_s3c_hsudc_ep_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s3c_hsudc_ep_enable, @function
s3c_hsudc_ep_enable:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	our_ep@PLT
	test	rbp, rbp
	je	.L5
	test	r12, r12
	je	.L5
	mov	r13, rax
	mov	rax, QWORD PTR ep0name[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L5
	mov	rax, QWORD PTR USB_DT_ENDPOINT[rip]
	cmp	QWORD PTR [r12], rax
	je	.L17
.L5:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	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
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r12]
	cmp	QWORD PTR 0[r13], rax
	jne	.L5
	mov	rdi, r13
	call	ep_maxpacket@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	usb_endpoint_maxp@PLT
	cmp	rbx, rax
	jl	.L5
	mov	rax, QWORD PTR USB_ENDPOINT_XFER_BULK[rip]
	cmp	QWORD PTR 16[r12], rax
	je	.L6
.L9:
	mov	edx, DWORD PTR 24[r12]
	test	edx, edx
	je	.L7
	mov	r14, QWORD PTR 40[r13]
	mov	eax, DWORD PTR 24[r14]
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR USB_SPEED_UNKNOWN[rip]
	cmp	QWORD PTR 16[r14], rax
	je	.L10
	xor	r15d, r15d
	mov	rdi, r14
	mov	rsi, r15
	call	spin_lock_irqsave@PLT
	mov	rsi, QWORD PTR 0[r13]
	mov	rdi, r14
	call	set_index@PLT
	mov	rdi, r12
	call	usb_endpoint_xfer_int@PLT
	mov	edi, DWORD PTR S3C_ECR_IEMS[rip]
	mov	rsi, QWORD PTR S3C_ECR[rip]
	test	rax, rax
	cmove	edi, DWORD PTR S3C_ECR_DUEN[rip]
	add	rsi, QWORD PTR 8[r14]
	call	writel@PLT
	mov	QWORD PTR 24[r13], 0
	mov	rdi, r12
	mov	QWORD PTR 32[r13], 0
	mov	QWORD PTR 16[r13], r12
	call	usb_endpoint_maxp@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	QWORD PTR 8[r13], rax
	call	s3c_hsudc_set_halt@PLT
	mov	rdi, r13
	mov	rbp, QWORD PTR S3C_EIER[rip]
	add	rbp, QWORD PTR 8[r14]
	call	ep_index@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	__set_bit@PLT
	mov	rsi, r15
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r12
	call	usb_endpoint_maxp@PLT
	mov	rdi, r13
	mov	rbx, rax
	call	ep_maxpacket@PLT
	cmp	rbx, rax
	je	.L9
.L7:
	mov	eax, DWORD PTR ERANGE[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR ESHUTDOWN[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	s3c_hsudc_ep_enable, .-s3c_hsudc_ep_enable
	.comm	ep0name,8,8
	.comm	USB_SPEED_UNKNOWN,8,8
	.comm	USB_ENDPOINT_XFER_BULK,8,8
	.comm	USB_DT_ENDPOINT,8,8
	.comm	S3C_EIER,8,8
	.comm	S3C_ECR_IEMS,4,4
	.comm	S3C_ECR_DUEN,4,4
	.comm	S3C_ECR,8,8
	.comm	ESHUTDOWN,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,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_s3c-hsudc.c_s3c_hsudc_ep_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s3c_hsudc_ep_enable, %function
s3c_hsudc_ep_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	bl	our_ep
	cmp	r4, #0
	cmpne	r5, #0
	beq	.L4
	ldr	r3, .L23
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	ldr	r3, .L23+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L22
.L4:
	ldr	r3, .L23+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	ldr	r2, [r0]
	ldr	r3, [r4, #4]
	mov	r7, r0
	cmp	r2, r3
	bne	.L4
	bl	ep_maxpacket
	mov	r6, r0
	mov	r0, r4
	bl	usb_endpoint_maxp
	cmp	r6, r0
	blt	.L4
	ldr	r3, .L23+12
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
.L8:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L6
	ldr	r8, [r7, #20]
	ldr	r3, [r8, #12]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L23+16
	ldr	r2, [r8, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L9
	mov	r1, #0
	mov	r0, r8
	bl	spin_lock_irqsave
	ldr	r1, [r7]
	mov	r0, r8
	bl	set_index
	mov	r0, r4
	bl	usb_endpoint_xfer_int
	mov	r6, #0
	cmp	r0, #0
	ldrne	r3, .L23+20
	ldreq	r3, .L23+24
	ldr	r1, [r8, #4]
	ldr	r0, [r3]
	ldr	r3, .L23+28
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	writel
	mov	r0, r4
	str	r4, [r7, #8]
	str	r6, [r7, #12]
	str	r6, [r7, #16]
	bl	usb_endpoint_maxp
	mov	r1, r6
	str	r0, [r7, #4]
	mov	r0, r5
	bl	s3c_hsudc_set_halt
	mov	r0, r7
	bl	ep_index
	ldr	r3, .L23+32
	ldr	r1, [r8, #4]
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	__set_bit
	mov	r0, r8
	mov	r1, r6
	bl	spin_unlock_irqrestore
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r4
	bl	usb_endpoint_maxp
	mov	r6, r0
	mov	r0, r7
	bl	ep_maxpacket
	cmp	r6, r0
	beq	.L8
.L6:
	ldr	r3, .L23+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L23+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	.align	2
.L23:
	.word	ep0name
	.word	USB_DT_ENDPOINT
	.word	EINVAL
	.word	USB_ENDPOINT_XFER_BULK
	.word	USB_SPEED_UNKNOWN
	.word	S3C_ECR_IEMS
	.word	S3C_ECR_DUEN
	.word	S3C_ECR
	.word	S3C_EIER
	.word	ERANGE
	.word	ESHUTDOWN
	.size	s3c_hsudc_ep_enable, .-s3c_hsudc_ep_enable
	.comm	ep0name,4,4
	.comm	USB_SPEED_UNKNOWN,4,4
	.comm	USB_ENDPOINT_XFER_BULK,4,4
	.comm	USB_DT_ENDPOINT,4,4
	.comm	S3C_EIER,4,4
	.comm	S3C_ECR_IEMS,4,4
	.comm	S3C_ECR_DUEN,4,4
	.comm	S3C_ECR,4,4
	.comm	ESHUTDOWN,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
