	.file	"extr_renesas_usb3.c_handle_role_switch_states.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"device_attach(host) failed\n"
	.text
	.p2align 4
	.type	handle_role_switch_states, @function
handle_role_switch_states:
.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
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	dev_get_drvdata@PLT
	mov	rdi, rbp
	mov	r13, QWORD PTR [rax]
	mov	r12, rax
	call	renesas_usb3_role_switch_get@PLT
	mov	edx, DWORD PTR USB_ROLE_HOST[rip]
	mov	ecx, DWORD PTR USB_ROLE_DEVICE[rip]
	cmp	eax, edx
	je	.L13
.L3:
	cmp	edx, ebx
	jne	.L1
	cmp	eax, ecx
	je	.L14
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	cmp	ecx, ebx
	jne	.L3
	mov	rdi, r13
	call	device_release_driver@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	xor	esi, esi
	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	usb3_set_mode@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, r12
	mov	esi, 1
	call	usb3_set_mode@PLT
	mov	rdi, r13
	call	device_attach@PLT
	test	rax, rax
	jns	.L1
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	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	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	handle_role_switch_states, .-handle_role_switch_states
	.comm	USB_ROLE_HOST,4,4
	.comm	USB_ROLE_DEVICE,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_renesas_usb3.c_handle_role_switch_states.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"device_attach(host) failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_role_switch_states, %function
handle_role_switch_states:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r0
	bl	dev_get_drvdata
	mov	r5, r0
	mov	r0, r6
	ldr	r7, [r5]
	bl	renesas_usb3_role_switch_get
	ldr	r3, .L10
	ldr	r2, .L10+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r0, r3
	beq	.L9
.L3:
	cmp	r3, r4
	cmpeq	r0, r2
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r1, #1
	mov	r0, r5
	bl	usb3_set_mode
	mov	r0, r7
	bl	device_attach
	cmp	r0, #0
	popge	{r4, r5, r6, r7, r8, pc}
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L10+8
	b	dev_err
.L9:
	cmp	r2, r4
	bne	.L3
	mov	r0, r7
	bl	device_release_driver
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	usb3_set_mode
.L11:
	.align	2
.L10:
	.word	USB_ROLE_HOST
	.word	USB_ROLE_DEVICE
	.word	.LC0
	.size	handle_role_switch_states, .-handle_role_switch_states
	.comm	USB_ROLE_HOST,4,4
	.comm	USB_ROLE_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
