	.file	"extr_sisusb.c_sisusb_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to initialize device\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Device not attached to USB 2.0 hub\n"
	.text
	.p2align 4
	.type	sisusb_open, @function
sisusb_open:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	iminor@PLT
	lea	rdi, sisusb_driver[rip]
	mov	esi, eax
	call	usb_find_interface@PLT
	test	rax, rax
	je	.L16
	mov	rdi, rax
	call	usb_get_intfdata@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L16
	lea	r13, 4[rax]
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	ecx, DWORD PTR 32[rbx]
	test	ecx, ecx
	je	.L5
	mov	edx, DWORD PTR 28[rbx]
	test	edx, edx
	je	.L5
	mov	r12d, DWORD PTR [rbx]
	test	r12d, r12d
	jne	.L18
	mov	eax, DWORD PTR 24[rbx]
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR USB_SPEED_HIGH[rip]
	je	.L9
	cmp	rax, QWORD PTR USB_SPEED_SUPER[rip]
	jl	.L10
.L9:
	xor	esi, esi
	mov	rdi, rbx
	call	sisusb_init_gfxdevice@PLT
	test	rax, rax
	jne	.L19
.L8:
	lea	rdi, 8[rbx]
	call	kref_get@PLT
	mov	DWORD PTR [rbx], 1
	mov	rdi, r13
	mov	QWORD PTR 0[rbp], rbx
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	rdi, r13
	call	mutex_unlock@PLT
.L16:
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L18:
	.cfi_restore_state
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	add	rdi, 8
	call	dev_err@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC1[rip]
	add	rdi, 8
	call	dev_err@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sisusb_open, .-sisusb_open
	.comm	sisusb_driver,4,4
	.comm	USB_SPEED_SUPER,8,8
	.comm	USB_SPEED_HIGH,8,8
	.comm	ENODEV,4,4
	.comm	EIO,4,4
	.comm	EBUSY,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_sisusb.c_sisusb_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to initialize device\012\000"
	.align	2
.LC1:
	.ascii	"Device not attached to USB 2.0 hub\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sisusb_open, %function
sisusb_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	bl	iminor
	mov	r1, r0
	ldr	r0, .L24
	bl	usb_find_interface
	cmp	r0, #0
	beq	.L20
	bl	usb_get_intfdata
	subs	r4, r0, #0
	beq	.L20
	add	r7, r4, #4
	mov	r0, r7
	bl	mutex_lock
	ldr	r3, [r4, #24]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L5
	ldr	r5, [r4]
	cmp	r5, #0
	bne	.L22
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [r4, #12]
	ldr	r2, .L24+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L9
	ldr	r2, .L24+8
	ldr	r2, [r2]
	cmp	r3, r2
	blt	.L10
.L9:
	mov	r1, #0
	mov	r0, r4
	bl	sisusb_init_gfxdevice
	cmp	r0, #0
	bne	.L23
.L8:
	add	r0, r4, #8
	bl	kref_get
	mov	r3, #1
	mov	r0, r7
	str	r3, [r4]
	str	r4, [r6]
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r7
	bl	mutex_unlock
.L20:
	ldr	r3, .L24+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r0, r7
	bl	mutex_unlock
	ldr	r3, .L24+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L23:
	mov	r0, r7
	bl	mutex_unlock
	ldr	r0, [r4, #12]
	ldr	r1, .L24+20
.L18:
	add	r0, r0, #4
	bl	dev_err
	ldr	r3, .L24+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L10:
	mov	r0, r7
	bl	mutex_unlock
	ldr	r0, [r4, #12]
	ldr	r1, .L24+28
	b	.L18
.L25:
	.align	2
.L24:
	.word	sisusb_driver
	.word	USB_SPEED_HIGH
	.word	USB_SPEED_SUPER
	.word	ENODEV
	.word	EBUSY
	.word	.LC0
	.word	EIO
	.word	.LC1
	.size	sisusb_open, .-sisusb_open
	.comm	sisusb_driver,4,4
	.comm	USB_SPEED_SUPER,4,4
	.comm	USB_SPEED_HIGH,4,4
	.comm	ENODEV,4,4
	.comm	EIO,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
