	.file	"extr_ims-pcu.c_ims_pcu_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to claim corresponding data interface: %d\n"
	.text
	.p2align 4
	.type	ims_pcu_probe, @function
ims_pcu_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	interface_to_usbdev@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 40
	mov	rbx, rax
	call	kzalloc@PLT
	test	rax, rax
	je	.L16
	mov	rbp, rax
	mov	QWORD PTR 32[rax], r13
	mov	QWORD PTR 24[rax], rbx
	mov	rax, QWORD PTR IMS_PCU_BOOTLOADER_MODE[rip]
	lea	rdi, 20[rbp]
	cmp	QWORD PTR [r12], rax
	sete	al
	movzx	eax, al
	mov	DWORD PTR 0[rbp], eax
	call	mutex_init@PLT
	lea	rdi, 16[rbp]
	call	init_completion@PLT
	lea	rdi, 12[rbp]
	call	init_completion@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	ims_pcu_parse_cdc_data@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L17
.L4:
	mov	rdi, rbp
	call	kfree@PLT
.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
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rbp]
	mov	rdx, rbp
	lea	rdi, ims_pcu_driver[rip]
	call	usb_driver_claim_interface@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L18
	mov	edi, DWORD PTR 8[rbp]
	mov	rsi, rbp
	call	usb_set_intfdata@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, rbp
	call	usb_set_intfdata@PLT
	mov	rdi, rbp
	call	ims_pcu_buffers_alloc@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L19
.L6:
	mov	esi, DWORD PTR 4[rbp]
	lea	rdi, ims_pcu_driver[rip]
	call	usb_driver_release_interface@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r12d, DWORD PTR ENOMEM[rip]
	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
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, rbp
	call	ims_pcu_start_io@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L7
	mov	rdi, rbp
	call	ims_pcu_line_setup@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L20
.L8:
	mov	rdi, rbp
	call	ims_pcu_stop_io@PLT
.L7:
	mov	rdi, rbp
	call	ims_pcu_buffers_free@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rsi, ims_pcu_attr_group[rip]
	mov	rdi, r13
	call	sysfs_create_group@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, rbp
	test	eax, eax
	je	.L9
	call	ims_pcu_init_bootloader_mode@PLT
	mov	r12d, eax
.L10:
	test	r12d, r12d
	je	.L1
	lea	rsi, ims_pcu_attr_group[rip]
	mov	rdi, r13
	call	sysfs_remove_group@PLT
	jmp	.L8
.L9:
	call	ims_pcu_init_application_mode@PLT
	mov	r12d, eax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	ims_pcu_probe, .-ims_pcu_probe
	.comm	ims_pcu_driver,4,4
	.comm	ims_pcu_attr_group,4,4
	.comm	IMS_PCU_BOOTLOADER_MODE,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_ims-pcu.c_ims_pcu_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to claim corresponding data interface: %d\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ims_pcu_probe, %function
ims_pcu_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r6, r0
	bl	interface_to_usbdev
	ldr	r2, .L21
	mov	r5, r0
	ldr	r1, [r2]
	mov	r0, #32
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L16
	ldr	r2, .L21+4
	ldr	r3, [r7]
	ldr	r2, [r2]
	mov	r0, r4
	sub	r3, r3, r2
	clz	r3, r3
	lsr	r3, r3, #5
	str	r5, [r4, #24]
	str	r6, [r4, #28]
	str	r3, [r0], #20
	bl	mutex_init
	add	r0, r4, #16
	bl	init_completion
	add	r0, r4, #12
	bl	init_completion
	mov	r1, r4
	mov	r0, r6
	bl	ims_pcu_parse_cdc_data
	subs	r5, r0, #0
	beq	.L17
.L4:
	mov	r0, r4
	bl	kfree
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r2, r4
	ldr	r1, [r4, #4]
	ldr	r0, .L21+8
	bl	usb_driver_claim_interface
	subs	r5, r0, #0
	bne	.L18
	mov	r1, r4
	ldr	r0, [r4, #8]
	bl	usb_set_intfdata
	mov	r1, r4
	ldr	r0, [r4, #4]
	bl	usb_set_intfdata
	mov	r0, r4
	bl	ims_pcu_buffers_alloc
	subs	r5, r0, #0
	beq	.L19
.L6:
	ldr	r1, [r4, #4]
	ldr	r0, .L21+8
	bl	usb_driver_release_interface
	b	.L4
.L16:
	ldr	r3, .L21+12
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r0, r4
	bl	ims_pcu_start_io
	subs	r5, r0, #0
	bne	.L7
	mov	r0, r4
	bl	ims_pcu_line_setup
	subs	r5, r0, #0
	beq	.L20
.L8:
	mov	r0, r4
	bl	ims_pcu_stop_io
.L7:
	mov	r0, r4
	bl	ims_pcu_buffers_free
	b	.L6
.L18:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L21+16
	bl	dev_err
	b	.L4
.L20:
	mov	r0, r6
	ldr	r1, .L21+20
	bl	sysfs_create_group
	subs	r5, r0, #0
	bne	.L8
	ldr	r3, [r4]
	mov	r0, r4
	cmp	r3, #0
	beq	.L9
	bl	ims_pcu_init_bootloader_mode
	mov	r5, r0
.L10:
	cmp	r5, #0
	beq	.L1
	mov	r0, r6
	ldr	r1, .L21+20
	bl	sysfs_remove_group
	b	.L8
.L9:
	bl	ims_pcu_init_application_mode
	mov	r5, r0
	b	.L10
.L22:
	.align	2
.L21:
	.word	GFP_KERNEL
	.word	IMS_PCU_BOOTLOADER_MODE
	.word	ims_pcu_driver
	.word	ENOMEM
	.word	.LC0
	.word	ims_pcu_attr_group
	.size	ims_pcu_probe, .-ims_pcu_probe
	.comm	ims_pcu_driver,4,4
	.comm	ims_pcu_attr_group,4,4
	.comm	IMS_PCU_BOOTLOADER_MODE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
