	.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_msg
_kvaser_usb_leaf_rx_can_msg:            ## @kvaser_usb_leaf_rx_can_msg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rsi), %rdx
	cmpq	(%rdi), %rdx
	jae	LBB0_29
## %bb.1:
	movq	%rsi, %r13
	movq	16(%rbx), %rax
	movq	(%rax,%rdx,8), %rdi
	movq	(%rdi), %r14
	movl	16(%rsi), %edx
	movq	_MSG_FLAG_ERROR_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	(%r13), %rcx
	movq	_CMD_LEAF_LOG_MESSAGE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_4
## %bb.30:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvaser_usb_leaf_leaf_rx_error  ## TAILCALL
LBB0_29:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	movq	_MSG_FLAG_NERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MSG_FLAG_OVERRUN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%edx, %eax
	je	LBB0_5
## %bb.31:
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvaser_usb_leaf_rx_can_err     ## TAILCALL
LBB0_5:
	movq	_MSG_FLAG_REMOTE_FRAME@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	testl	%eax, %edx
	je	LBB0_6
## %bb.32:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_warn                    ## TAILCALL
LBB0_6:
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.9:
	leaq	56(%r13), %rax
	jmp	LBB0_11
LBB0_10:
	leaq	64(%r13), %rax
LBB0_11:
	movq	(%rax), %r12
	jmp	LBB0_12
LBB0_8:
	xorl	%r12d, %r12d
LBB0_12:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$129, 8(%rbx)
	movq	(%r13), %rdx
	jne	LBB0_22
## %bb.15:
	movq	_CMD_LEAF_LOG_MESSAGE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_22
## %bb.16:
	movl	48(%r13), %edi
	callq	_le32_to_cpu
	movq	-48(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_KVASER_EXTENDED_FRAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	jne	LBB0_17
## %bb.18:
	movq	_CAN_SFF_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jmp	LBB0_19
LBB0_13:
	incl	8(%r14)
	jmp	LBB0_28
LBB0_22:
	movl	(%r12), %ecx
	movl	8(%r12), %eax
	andl	$31, %ecx
	shll	$6, %ecx
	andl	$63, %eax
	orl	%ecx, %eax
	movq	-48(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_CMD_RX_EXT_MESSAGE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_24
## %bb.23:
	shll	$18, %eax
	movl	16(%r12), %edx
	movl	24(%r12), %esi
	andl	$15, %edx
	shll	$14, %edx
	movzbl	%sil, %esi
	shll	$6, %esi
	orl	%edx, %esi
	movl	32(%r12), %edx
	andl	$63, %edx
	orl	%esi, %edx
	orl	%eax, %edx
	movl	%edx, (%rcx)
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rcx)
LBB0_24:
	movq	40(%r12), %rdi
	callq	_get_can_dlc
	movq	-48(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movl	(%r15), %edx
	testl	%edx, 16(%r13)
	jne	LBB0_20
## %bb.25:
	movl	16(%rcx), %edi
	addq	$48, %r12
	movq	%r12, %rsi
	jmp	LBB0_26
LBB0_17:
	movq	_CAN_EFF_MASK@GOTPCREL(%rip), %rsi
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rsi), %edx
LBB0_19:
	andl	%eax, %edx
	movl	%edx, (%rcx)
	movq	24(%r13), %rdi
	callq	_get_can_dlc
	movq	-48(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movl	(%r15), %edx
	testl	%edx, 32(%r13)
	je	LBB0_21
LBB0_20:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	jmp	LBB0_27
LBB0_21:
	movl	16(%rcx), %edi
	addq	$40, %r13
	movq	%r13, %rsi
LBB0_26:
	movq	%rax, %rdx
	callq	_memcpy
LBB0_27:
	incl	4(%r14)
	movq	-48(%rbp), %rax
	movl	8(%rax), %eax
	addl	%eax, (%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_rx
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid channel number (%d)\n"

	.comm	_MSG_FLAG_ERROR_FRAME,4,2       ## @MSG_FLAG_ERROR_FRAME
	.comm	_CMD_LEAF_LOG_MESSAGE,8,3       ## @CMD_LEAF_LOG_MESSAGE
	.comm	_MSG_FLAG_NERR,4,2              ## @MSG_FLAG_NERR
	.comm	_MSG_FLAG_OVERRUN,4,2           ## @MSG_FLAG_OVERRUN
	.comm	_MSG_FLAG_REMOTE_FRAME,4,2      ## @MSG_FLAG_REMOTE_FRAME
L_.str.1:                               ## @.str.1
	.asciz	"Unhandled frame (flags: 0x%02x)\n"

	.comm	_KVASER_EXTENDED_FRAME,4,2      ## @KVASER_EXTENDED_FRAME
	.comm	_CAN_EFF_MASK,4,2               ## @CAN_EFF_MASK
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_CAN_SFF_MASK,4,2               ## @CAN_SFF_MASK
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_CMD_RX_EXT_MESSAGE,8,3         ## @CMD_RX_EXT_MESSAGE
	.no_dead_strip	_kvaser_usb_leaf_rx_can_msg
.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_msg
_kvaser_usb_leaf_rx_can_msg:            ; @kvaser_usb_leaf_rx_can_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	ldr	x2, [x1, #8]
	ldr	x8, [x0]
	cmp	x2, x8
	b.hs	LBB0_5
; %bb.1:
	mov	x20, x1
	ldr	x8, [x22, #16]
	ldr	x0, [x8, x2, lsl #3]
	ldr	x19, [x0]
	ldr	w2, [x1, #16]
Lloh0:
	adrp	x8, _MSG_FLAG_ERROR_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_FLAG_ERROR_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.2:
	ldr	w9, [x22, #8]
	cmp	w9, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	x9, [x20]
Lloh3:
	adrp	x10, _CMD_LEAF_LOG_MESSAGE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CMD_LEAF_LOG_MESSAGE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_kvaser_usb_leaf_leaf_rx_error
LBB0_5:
	ldr	x0, [x22, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dev_err
LBB0_6:
Lloh8:
	adrp	x9, _MSG_FLAG_NERR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MSG_FLAG_NERR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _MSG_FLAG_OVERRUN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MSG_FLAG_OVERRUN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w2
	b.eq	LBB0_8
; %bb.7:
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_kvaser_usb_leaf_rx_can_err
LBB0_8:
Lloh14:
	adrp	x23, _MSG_FLAG_REMOTE_FRAME@GOTPAGE
Lloh15:
	ldr	x23, [x23, _MSG_FLAG_REMOTE_FRAME@GOTPAGEOFF]
	ldr	w8, [x23]
	bics	wzr, w2, w8
	b.eq	LBB0_10
; %bb.9:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_netdev_warn
LBB0_10:
	ldr	w8, [x22, #8]
	cmp	w8, #128
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #129
	b.ne	LBB0_15
; %bb.12:
	add	x8, x20, #56
	b	LBB0_14
LBB0_13:
	add	x8, x20, #64
LBB0_14:
	ldr	x24, [x8]
	b	LBB0_16
LBB0_15:
	mov	x24, #0
LBB0_16:
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_skb
	cbz	x0, LBB0_21
; %bb.17:
	mov	x21, x0
	ldr	w8, [x22, #8]
	ldr	x10, [x20]
	cmp	w8, #129
	b.ne	LBB0_22
; %bb.18:
Lloh18:
	adrp	x8, _CMD_LEAF_LOG_MESSAGE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CMD_LEAF_LOG_MESSAGE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x10, x8
	b.ne	LBB0_22
; %bb.19:
	ldr	w0, [x20, #48]
	bl	_le32_to_cpu
	ldr	x8, [sp, #8]
	str	w0, [x8]
Lloh21:
	adrp	x9, _KVASER_EXTENDED_FRAME@GOTPAGE
Lloh22:
	ldr	x9, [x9, _KVASER_EXTENDED_FRAME@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _CAN_SFF_MASK@GOTPAGE
Lloh25:
	ldr	x10, [x10, _CAN_SFF_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _CAN_EFF_MASK@GOTPAGE
Lloh28:
	ldr	x11, [x11, _CAN_EFF_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
Lloh30:
	adrp	x12, _CAN_EFF_FLAG@GOTPAGE
Lloh31:
	ldr	x12, [x12, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w9, w0
	csel	w9, w10, w11, eq
	and	w9, w9, w0
	str	w9, [x8]
	ldr	x0, [x20, #24]
	bl	_get_can_dlc
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
	ldr	w9, [x20, #32]
	ldr	w10, [x23]
	tst	w10, w9
	b.ne	LBB0_25
; %bb.20:
	mov	x2, x0
	ldr	w0, [x8, #16]
	add	x1, x20, #40
	b	LBB0_27
LBB0_21:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_29
LBB0_22:
	ldr	w8, [x24]
	ldr	w9, [x24, #8]
	and	w9, w9, #0x3f
	bfi	w9, w8, #6, #5
	ldr	x8, [sp, #8]
	str	w9, [x8]
Lloh33:
	adrp	x11, _CMD_RX_EXT_MESSAGE@GOTPAGE
Lloh34:
	ldr	x11, [x11, _CMD_RX_EXT_MESSAGE@GOTPAGEOFF]
Lloh35:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_24
; %bb.23:
	ldr	w10, [x24, #16]
	ubfiz	w10, w10, #14, #4
	ldr	w11, [x24, #24]
	bfi	w10, w11, #6, #8
	ldr	w11, [x24, #32]
	bfxil	w10, w11, #0, #6
	bfi	w10, w9, #18, #11
	str	w10, [x8]
Lloh36:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_24:
	ldr	x0, [x24, #40]
	bl	_get_can_dlc
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
	ldr	w9, [x20, #16]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_26
LBB0_25:
Lloh39:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh40:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_28
LBB0_26:
	mov	x2, x0
	ldr	w0, [x8, #16]
	add	x1, x24, #48
LBB0_27:
	bl	_memcpy
LBB0_28:
	ldp	w9, w8, [x19]
	add	w8, w8, #1
	ldr	x10, [sp, #8]
	ldr	w10, [x10, #8]
	add	w9, w10, w9
	stp	w9, w8, [x19]
	mov	x0, x21
	bl	_netif_rx
LBB0_29:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid channel number (%d)\n"

	.comm	_MSG_FLAG_ERROR_FRAME,4,2       ; @MSG_FLAG_ERROR_FRAME
	.comm	_CMD_LEAF_LOG_MESSAGE,8,3       ; @CMD_LEAF_LOG_MESSAGE
	.comm	_MSG_FLAG_NERR,4,2              ; @MSG_FLAG_NERR
	.comm	_MSG_FLAG_OVERRUN,4,2           ; @MSG_FLAG_OVERRUN
	.comm	_MSG_FLAG_REMOTE_FRAME,4,2      ; @MSG_FLAG_REMOTE_FRAME
l_.str.1:                               ; @.str.1
	.asciz	"Unhandled frame (flags: 0x%02x)\n"

	.comm	_KVASER_EXTENDED_FRAME,4,2      ; @KVASER_EXTENDED_FRAME
	.comm	_CAN_EFF_MASK,4,2               ; @CAN_EFF_MASK
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_CAN_SFF_MASK,4,2               ; @CAN_SFF_MASK
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_CMD_RX_EXT_MESSAGE,8,3         ; @CMD_RX_EXT_MESSAGE
	.no_dead_strip	_kvaser_usb_leaf_rx_can_msg
.subsections_via_symbols
