	.file	"extr_class.c_usb_role_switch_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s-role-switch"
	.text
	.p2align 4
	.globl	usb_role_switch_register
	.type	usb_role_switch_register, @function
usb_role_switch_register:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L10
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 8[rsi], 0
	mov	rbx, rsi
	jne	.L3
	mov	edi, DWORD PTR EINVAL[rip]
.L13:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	neg	edi
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rbp, rdi
	mov	edi, 64
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L15
	lea	rdi, 56[rax]
	call	mutex_init@PLT
	mov	eax, DWORD PTR 28[rbx]
	mov	rdi, rbp
	mov	DWORD PTR 52[r12], eax
	mov	eax, DWORD PTR 24[rbx]
	mov	DWORD PTR 48[r12], eax
	mov	eax, DWORD PTR 20[rbx]
	mov	DWORD PTR 44[r12], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR 40[r12], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 32[r12], rax
	mov	eax, DWORD PTR 4[rbx]
	mov	QWORD PTR 16[r12], rbp
	mov	DWORD PTR 24[r12], eax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 12[r12], eax
	mov	eax, DWORD PTR role_class[rip]
	mov	DWORD PTR 8[r12], eax
	lea	rax, usb_role_dev_type[rip]
	mov	QWORD PTR [r12], rax
	call	dev_name@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	edx, eax
	call	dev_set_name@PLT
	mov	rdi, r12
	call	device_register@PLT
	mov	ebp, eax
	test	eax, eax
	jne	.L16
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR ENOMEM[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r12
	call	put_device@PLT
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	edi, ebp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR EINVAL[rip]
	neg	edi
	jmp	ERR_PTR@PLT
	.cfi_endproc
.LFE0:
	.size	usb_role_switch_register, .-usb_role_switch_register
	.comm	usb_role_dev_type,4,4
	.comm	role_class,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_class.c_usb_role_switch_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s-role-switch\000"
	.text
	.align	2
	.global	usb_role_switch_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_role_switch_register, %function
usb_role_switch_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r1, #0
	beq	.L2
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L3
.L2:
	pop	{r4, r5, r6, lr}
	ldr	r3, .L12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L3:
	ldr	r3, .L12+4
	mov	r6, r0
	ldr	r1, [r3]
	mov	r0, #44
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L11
	add	r0, r5, #40
	bl	mutex_init
	ldr	r3, [r4, #24]
	ldr	r2, .L12+8
	ldr	r1, [r4, #4]
	ldr	r0, [r2]
	ldr	r2, [r4, #20]
	str	r3, [r5, #36]
	ldr	r3, [r4, #16]
	str	r2, [r5, #32]
	ldr	r2, [r4, #12]
	str	r3, [r5, #28]
	ldr	r3, [r4, #8]
	str	r2, [r5, #24]
	ldr	r2, [r4]
	str	r3, [r5, #20]
	ldr	r3, .L12+12
	str	r0, [r5, #4]
	str	r3, [r5]
	str	r1, [r5, #16]
	str	r2, [r5, #8]
	mov	r0, r6
	str	r6, [r5, #12]
	bl	dev_name
	ldr	r1, .L12+16
	mov	r2, r0
	mov	r0, r5
	bl	dev_set_name
	mov	r0, r5
	bl	device_register
	subs	r4, r0, #0
	mov	r0, r5
	popeq	{r4, r5, r6, pc}
	bl	put_device
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	ERR_PTR
.L11:
	ldr	r3, .L12+20
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L13:
	.align	2
.L12:
	.word	EINVAL
	.word	GFP_KERNEL
	.word	role_class
	.word	usb_role_dev_type
	.word	.LC0
	.word	ENOMEM
	.size	usb_role_switch_register, .-usb_role_switch_register
	.comm	usb_role_dev_type,4,4
	.comm	role_class,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
