	.file	"extr_ci.h_ci_role_to_usb_role.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ci_role_to_usb_role, @function
ci_role_to_usb_role:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR CI_ROLE_HOST[rip]
	je	.L6
	cmp	rax, QWORD PTR CI_ROLE_GADGET[rip]
	jne	.L4
	cmp	QWORD PTR 8[rdi], 0
	je	.L4
	mov	eax, DWORD PTR USB_ROLE_DEVICE[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR USB_ROLE_NONE[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR USB_ROLE_HOST[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	ci_role_to_usb_role, .-ci_role_to_usb_role
	.comm	USB_ROLE_NONE,4,4
	.comm	USB_ROLE_HOST,4,4
	.comm	USB_ROLE_DEVICE,4,4
	.comm	CI_ROLE_HOST,8,8
	.comm	CI_ROLE_GADGET,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_ci.h_ci_role_to_usb_role.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ci_role_to_usb_role, %function
ci_role_to_usb_role:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r2, .L10
	ldr	r3, [r0]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L9
	ldr	r2, .L10+4
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L4
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L10+8
	ldr	r0, [r3]
	bx	lr
.L4:
	ldr	r3, .L10+12
	ldr	r0, [r3]
	bx	lr
.L9:
	ldr	r3, .L10+16
	ldr	r0, [r3]
	bx	lr
.L11:
	.align	2
.L10:
	.word	CI_ROLE_HOST
	.word	CI_ROLE_GADGET
	.word	USB_ROLE_DEVICE
	.word	USB_ROLE_NONE
	.word	USB_ROLE_HOST
	.size	ci_role_to_usb_role, .-ci_role_to_usb_role
	.comm	USB_ROLE_NONE,4,4
	.comm	USB_ROLE_HOST,4,4
	.comm	USB_ROLE_DEVICE,4,4
	.comm	CI_ROLE_HOST,4,4
	.comm	CI_ROLE_GADGET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
