	.file	"extr_pcan_usb.c_pcan_usb_get_device_id.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"getting device id failure: %d\n"
	.text
	.p2align 4
	.type	pcan_usb_get_device_id, @function
pcan_usb_get_device_id:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PCAN_USB_CMD_ARGS_LEN[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
.L4:
	lea	rcx, 3[rsp]
	mov	edx, 1
	mov	esi, 4
	mov	rdi, r12
	mov	r14, rcx
	and	rcx, -4
	call	pcan_usb_wait_rsp@PLT
	shr	r14, 2
	mov	r13d, eax
	test	eax, eax
	jne	.L18
	test	rbx, rbx
	je	.L1
	mov	eax, DWORD PTR 0[0+r14*4]
	mov	DWORD PTR [rbx], eax
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -32[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR [r12]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pcan_usb_get_device_id, .-pcan_usb_get_device_id
	.comm	PCAN_USB_CMD_ARGS_LEN,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_pcan_usb.c_pcan_usb_get_device_id.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"getting device id failure: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcan_usb_get_device_id, %function
pcan_usb_get_device_id:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	ldr	r3, .L12
	ldr	ip, .L12+4
	ldr	r3, [r3]
	mov	r5, r1
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r7, sp
	mov	r2, #1
	mov	r3, r7
	mov	r1, #4
	ldr	ip, [ip]
	str	ip, [fp, #-24]
	mov	ip,#0
	mov	r6, r0
	bl	pcan_usb_wait_rsp
	subs	r4, r0, #0
	bne	.L10
	cmp	r5, #0
	ldrne	r3, [r7]
	strne	r3, [r5]
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L10:
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L12+8
	bl	netdev_err
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	PCAN_USB_CMD_ARGS_LEN
	.word	.LC1
	.word	.LC0
	.size	pcan_usb_get_device_id, .-pcan_usb_get_device_id
	.comm	PCAN_USB_CMD_ARGS_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
