	.file	"extr_kvaser_usb_hydra.c_kvaser_usb_hydra_init_card.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CAN"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"CMD_MAP_CHANNEL_REQ failed for CAN%u\n"
	.section	.rodata.str1.1
.LC2:
	.string	"SYSDBG"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"CMD_MAP_CHANNEL_REQ failed for SYSDBG\n"
	.text
	.p2align 4
	.type	kvaser_usb_hydra_init_card, @function
kvaser_usb_hydra_init_card:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	add	rdi, 36
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR KVASER_USB_HYDRA_MIN_TRANSID[rip]
	mov	DWORD PTR 4[rdi], eax
	call	spin_lock_init@PLT
	mov	edx, DWORD PTR KVASER_USB_HYDRA_MAX_CMD_LEN[rip]
	mov	edi, DWORD PTR 32[rbx]
	xor	esi, esi
	call	memset@PLT
	mov	QWORD PTR 24[rbx], 0
	lea	rdi, 20[rbx]
	call	spin_lock_init@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR KVASER_USB_HYDRA_HE_ADDRESS_ILLEGAL[rip]
	mov	edx, 4
	call	memset@PLT
	mov	eax, DWORD PTR KVASER_USB_MAX_NET_DEVICES[rip]
	mov	QWORD PTR 8[rbx], 0
	test	eax, eax
	je	.L2
	xor	r12d, r12d
	lea	rbp, .LC0[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	r12d, 1
	cmp	DWORD PTR KVASER_USB_MAX_NET_DEVICES[rip], r12d
	jbe	.L2
.L5:
	mov	esi, DWORD PTR KVASER_USB_HYDRA_TRANSID_CANHE[rip]
	mov	rcx, rbp
	mov	edx, r12d
	mov	rdi, rbx
	or	esi, r12d
	call	kvaser_usb_hydra_map_channel@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L3
	mov	rdi, QWORD PTR [rbx]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR KVASER_USB_HYDRA_TRANSID_SYSDBG[rip]
	lea	rcx, .LC2[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	kvaser_usb_hydra_map_channel@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L1
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	kvaser_usb_hydra_init_card, .-kvaser_usb_hydra_init_card
	.comm	KVASER_USB_MAX_NET_DEVICES,4,4
	.comm	KVASER_USB_HYDRA_TRANSID_SYSDBG,4,4
	.comm	KVASER_USB_HYDRA_TRANSID_CANHE,4,4
	.comm	KVASER_USB_HYDRA_MIN_TRANSID,4,4
	.comm	KVASER_USB_HYDRA_MAX_CMD_LEN,4,4
	.comm	KVASER_USB_HYDRA_HE_ADDRESS_ILLEGAL,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_kvaser_usb_hydra.c_kvaser_usb_hydra_init_card.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CAN\000"
	.align	2
.LC1:
	.ascii	"CMD_MAP_CHANNEL_REQ failed for CAN%u\012\000"
	.align	2
.LC2:
	.ascii	"SYSDBG\000"
	.align	2
.LC3:
	.ascii	"CMD_MAP_CHANNEL_REQ failed for SYSDBG\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvaser_usb_hydra_init_card, %function
kvaser_usb_hydra_init_card:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r4, #0
	ldr	r3, .L15
	add	r0, r0, #24
	ldr	r3, [r3]
	ldr	r7, .L15+4
	str	r3, [r6, #28]
	bl	spin_lock_init
	ldr	r3, .L15+8
	mov	r1, r4
	ldr	r2, [r3]
	ldr	r0, [r6, #20]
	bl	memset
	str	r4, [r6, #16]
	add	r0, r6, #12
	bl	spin_lock_init
	ldr	r3, .L15+12
	mov	r2, #4
	ldr	r1, [r3]
	ldr	r0, [r6, #8]
	bl	memset
	ldr	r3, [r7]
	str	r4, [r6, #4]
	cmp	r3, r4
	beq	.L2
	ldr	r8, .L15+16
	ldr	r9, .L15+20
	b	.L5
.L3:
	ldr	r2, [r7]
	add	r4, r4, #1
	cmp	r2, r4
	bls	.L2
.L5:
	ldr	r1, [r8]
	mov	r3, r9
	mov	r2, r4
	mov	r0, r6
	orr	r1, r4, r1
	bl	kvaser_usb_hydra_map_channel
	subs	r5, r0, #0
	beq	.L3
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L15+24
	bl	dev_err
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r2, .L15+28
	mov	r0, r6
	ldr	r1, [r2]
	ldr	r3, .L15+32
	mov	r2, #0
	bl	kvaser_usb_hydra_map_channel
	subs	r5, r0, #0
	beq	.L1
	ldr	r0, [r6]
	ldr	r1, .L15+36
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	.align	2
.L15:
	.word	KVASER_USB_HYDRA_MIN_TRANSID
	.word	KVASER_USB_MAX_NET_DEVICES
	.word	KVASER_USB_HYDRA_MAX_CMD_LEN
	.word	KVASER_USB_HYDRA_HE_ADDRESS_ILLEGAL
	.word	KVASER_USB_HYDRA_TRANSID_CANHE
	.word	.LC0
	.word	.LC1
	.word	KVASER_USB_HYDRA_TRANSID_SYSDBG
	.word	.LC2
	.word	.LC3
	.size	kvaser_usb_hydra_init_card, .-kvaser_usb_hydra_init_card
	.comm	KVASER_USB_MAX_NET_DEVICES,4,4
	.comm	KVASER_USB_HYDRA_TRANSID_SYSDBG,4,4
	.comm	KVASER_USB_HYDRA_TRANSID_CANHE,4,4
	.comm	KVASER_USB_HYDRA_MIN_TRANSID,4,4
	.comm	KVASER_USB_HYDRA_MAX_CMD_LEN,4,4
	.comm	KVASER_USB_HYDRA_HE_ADDRESS_ILLEGAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
