	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_leaf_usbcan_rx_error
_kvaser_usb_leaf_usbcan_rx_error:       ## @kvaser_usb_leaf_usbcan_rx_error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	$0, -32(%rbp)
	movl	(%rsi), %edx
	cmpl	$129, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.2:
	movl	28(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	40(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	36(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -40(%rbp)
	jmp	LBB0_5
LBB0_3:
	movl	4(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_kvaser_usb_leaf_usbcan_conditionally_rx_error
	movl	8(%r14), %eax
	movq	_MAX_USBCAN_NET_DEVICES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:
	movl	$1, -48(%rbp)
	movups	4(%rbx), %xmm0
	movups	%xmm0, -44(%rbp)
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_kvaser_usb_leaf_usbcan_conditionally_rx_error
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_USBCAN_NET_DEVICES,4,2     ## @MAX_USBCAN_NET_DEVICES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid cmd id (%d)\n"

	.no_dead_strip	_kvaser_usb_leaf_usbcan_rx_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_usb_leaf_usbcan_rx_error
_kvaser_usb_leaf_usbcan_rx_error:       ; @kvaser_usb_leaf_usbcan_rx_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #8]
	str	wzr, [sp, #24]
	ldr	w2, [x1]
	cmp	w2, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x20, #28]
	str	w8, [sp, #8]
	ldr	w8, [x20, #40]
	str	w8, [sp, #24]
	ldr	d0, [x20, #32]
	str	d0, [sp, #16]
	b	LBB0_5
LBB0_3:
	ldr	w8, [x20, #4]
	ldr	w9, [x20, #24]
	stp	w9, w8, [sp, #20]
	ldr	d0, [x20, #16]
	stur	d0, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_kvaser_usb_leaf_usbcan_conditionally_rx_error
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _MAX_USBCAN_NET_DEVICES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_USBCAN_NET_DEVICES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
	mov	w8, #1
	str	w8, [sp, #8]
	ldur	q0, [x20, #4]
	stur	q0, [sp, #12]
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_kvaser_usb_leaf_usbcan_conditionally_rx_error
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_USBCAN_NET_DEVICES,4,2     ; @MAX_USBCAN_NET_DEVICES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid cmd id (%d)\n"

	.no_dead_strip	_kvaser_usb_leaf_usbcan_rx_error
.subsections_via_symbols
