	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_8dev_rx_can_msg
_usb_8dev_rx_can_msg:                   ## @usb_8dev_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	(%rsi), %rdx
	movq	_USB_8DEV_TYPE_ERROR_FRAME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %eax
	movq	_USB_8DEV_ERR_FLAG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_8dev_rx_err_msg            ## TAILCALL
LBB0_2:
	movq	_USB_8DEV_TYPE_CAN_FRAME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_12
## %bb.3:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r12
	movl	20(%rbx), %edi
	callq	_be32_to_cpu
	movq	-40(%rbp), %rcx
	movl	%eax, 12(%rcx)
	movl	12(%rbx), %edi
	andl	$15, %edi
	callq	_get_can_dlc
	movq	-40(%rbp), %rcx
	movq	%rax, (%rcx)
	movl	8(%rbx), %edx
	movq	_USB_8DEV_EXTID@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_6
## %bb.5:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, 12(%rcx)
LBB0_6:
	movq	_USB_8DEV_RTR@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_8
## %bb.7:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 12(%rcx)
	jmp	LBB0_9
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_warn                    ## TAILCALL
LBB0_8:
	movl	8(%rcx), %edi
	movl	16(%rbx), %esi
	movq	%rax, %rdx
	callq	_memcpy
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
LBB0_9:
	incl	4(%r14)
	addl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_netif_rx
	movq	(%r15), %rdi
	movq	_CAN_LED_EVENT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_can_led_event
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_8DEV_TYPE_ERROR_FRAME,8,3  ## @USB_8DEV_TYPE_ERROR_FRAME
	.comm	_USB_8DEV_ERR_FLAG,4,2          ## @USB_8DEV_ERR_FLAG
	.comm	_USB_8DEV_TYPE_CAN_FRAME,8,3    ## @USB_8DEV_TYPE_CAN_FRAME
	.comm	_USB_8DEV_EXTID,4,2             ## @USB_8DEV_EXTID
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_USB_8DEV_RTR,4,2               ## @USB_8DEV_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_CAN_LED_EVENT_RX,4,2           ## @CAN_LED_EVENT_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame type %d unknown"

	.no_dead_strip	_usb_8dev_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 usb_8dev_rx_can_msg
_usb_8dev_rx_can_msg:                   ; @usb_8dev_rx_can_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x2, [x1]
Lloh0:
	adrp	x8, _USB_8DEV_TYPE_ERROR_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_8DEV_TYPE_ERROR_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21, #8]
Lloh3:
	adrp	x9, _USB_8DEV_ERR_FLAG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_8DEV_ERR_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_usb_8dev_rx_err_msg
LBB0_3:
Lloh6:
	adrp	x8, _USB_8DEV_TYPE_CAN_FRAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_8DEV_TYPE_CAN_FRAME@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_9
; %bb.4:
	add	x1, sp, #8
	mov	x0, x20
	bl	_alloc_can_skb
	cbz	x0, LBB0_12
; %bb.5:
	mov	x22, x0
	ldr	w0, [x21, #20]
	bl	_be32_to_cpu
	ldr	x8, [sp, #8]
	str	w0, [x8, #12]
	ldr	w8, [x21, #12]
	and	w0, w8, #0xf
	bl	_get_can_dlc
	mov	x2, x0
	ldr	x8, [sp, #8]
	str	x0, [x8]
	ldr	w9, [x21, #8]
Lloh9:
	adrp	x10, _USB_8DEV_EXTID@GOTPAGE
Lloh10:
	ldr	x10, [x10, _USB_8DEV_EXTID@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
Lloh12:
	adrp	x10, _CAN_EFF_FLAG@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	ldr	w11, [x8, #12]
	orr	w10, w11, w10
	str	w10, [x8, #12]
LBB0_7:
Lloh15:
	adrp	x10, _USB_8DEV_RTR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _USB_8DEV_RTR@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.8:
Lloh18:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldr	w10, [x8, #12]
	orr	w9, w10, w9
	str	w9, [x8, #12]
	b	LBB0_11
LBB0_9:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_netdev_warn
LBB0_10:
	ldr	w0, [x8, #8]
	ldr	w1, [x21, #16]
	bl	_memcpy
	ldr	x8, [sp, #8]
	ldr	x2, [x8]
LBB0_11:
	ldr	d0, [x20]
	movi.2s	v1, #1
	mov.s	v1[0], w2
	add.2s	v0, v0, v1
	str	d0, [x20]
	mov	x0, x22
	bl	_netif_rx
	ldr	x0, [x19]
Lloh23:
	adrp	x8, _CAN_LED_EVENT_RX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CAN_LED_EVENT_RX@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_can_led_event
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_8DEV_TYPE_ERROR_FRAME,8,3  ; @USB_8DEV_TYPE_ERROR_FRAME
	.comm	_USB_8DEV_ERR_FLAG,4,2          ; @USB_8DEV_ERR_FLAG
	.comm	_USB_8DEV_TYPE_CAN_FRAME,8,3    ; @USB_8DEV_TYPE_CAN_FRAME
	.comm	_USB_8DEV_EXTID,4,2             ; @USB_8DEV_EXTID
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_USB_8DEV_RTR,4,2               ; @USB_8DEV_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_CAN_LED_EVENT_RX,4,2           ; @CAN_LED_EVENT_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame type %d unknown"

	.no_dead_strip	_usb_8dev_rx_can_msg
.subsections_via_symbols
