	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_leaf_rx_can_err
_kvaser_usb_leaf_rx_can_err:            ## @kvaser_usb_leaf_rx_can_err
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rsi), %edx
	movq	_MSG_FLAG_ERROR_FRAME@GOTPCREL(%rip), %rax
	movq	_MSG_FLAG_NERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%edx, %ecx
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
	incl	(%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_MSG_FLAG_OVERRUN@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	(%rdi), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kvaser_usb_can_rx_over_error   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_FLAG_ERROR_FRAME,4,2       ## @MSG_FLAG_ERROR_FRAME
	.comm	_MSG_FLAG_NERR,4,2              ## @MSG_FLAG_NERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown error (flags: 0x%02x)\n"

	.comm	_MSG_FLAG_OVERRUN,4,2           ## @MSG_FLAG_OVERRUN
	.no_dead_strip	_kvaser_usb_leaf_rx_can_err
.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_rx_can_err
_kvaser_usb_leaf_rx_can_err:            ; @kvaser_usb_leaf_rx_can_err
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w2, [x1]
Lloh0:
	adrp	x8, _MSG_FLAG_ERROR_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_FLAG_ERROR_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MSG_FLAG_NERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSG_FLAG_NERR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w2
	b.eq	LBB0_3
; %bb.1:
	ldr	x19, [x0]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh8:
	adrp	x8, _MSG_FLAG_OVERRUN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_FLAG_OVERRUN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.4:
	ldr	x0, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kvaser_usb_can_rx_over_error
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_FLAG_ERROR_FRAME,4,2       ; @MSG_FLAG_ERROR_FRAME
	.comm	_MSG_FLAG_NERR,4,2              ; @MSG_FLAG_NERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown error (flags: 0x%02x)\n"

	.comm	_MSG_FLAG_OVERRUN,4,2           ; @MSG_FLAG_OVERRUN
	.no_dead_strip	_kvaser_usb_leaf_rx_can_err
.subsections_via_symbols
