	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcba_usb_process_can
_mcba_usb_process_can:                  ## @mcba_usb_process_can
	.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), %r12
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	leaq	12(%rbx), %rdi
	callq	_get_unaligned_be16
	movq	_MCBA_SIDL_EXID_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rcx
	movq	-40(%rbp), %rdx
	movl	%eax, %esi
	shll	$13, %esi
	andl	$536608768, %esi                ## imm = 0x1FFC0000
	andl	$3, %eax
	shll	$16, %eax
	orl	%esi, %eax
	orl	(%rcx), %eax
	movl	%eax, (%rdx)
	leaq	8(%rbx), %rdi
	callq	_get_unaligned_be16
	movq	-40(%rbp), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	shrl	$5, %eax
	andl	$2047, %eax                     ## imm = 0x7FF
	movq	-40(%rbp), %rcx
LBB0_4:
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	movq	_MCBA_DLC_RTR_MASK@GOTPCREL(%rip), %rdx
	testl	%edi, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rcx)
LBB0_6:
	movq	_MCBA_DLC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_get_can_dlc
	movq	-40(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movl	16(%rcx), %edi
	movl	4(%rbx), %esi
	movq	%rax, %rdx
	callq	_memcpy
	incl	4(%r12)
	movq	-40(%rbp), %rax
	movl	8(%rax), %eax
	addl	%eax, (%r12)
	movq	(%r15), %rdi
	movq	_CAN_LED_EVENT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_can_led_event
	movq	%r14, %rdi
	callq	_netif_rx
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCBA_SIDL_EXID_MASK,4,2        ## @MCBA_SIDL_EXID_MASK
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_MCBA_DLC_RTR_MASK,4,2          ## @MCBA_DLC_RTR_MASK
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_MCBA_DLC_MASK,4,2              ## @MCBA_DLC_MASK
	.comm	_CAN_LED_EVENT_RX,4,2           ## @CAN_LED_EVENT_RX
	.no_dead_strip	_mcba_usb_process_can
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcba_usb_process_can
_mcba_usb_process_can:                  ; @mcba_usb_process_can
	.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	x22, x1
	mov	x20, x0
	ldr	x21, [x0]
	add	x1, sp, #8
	mov	x0, x21
	bl	_alloc_can_skb
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	add	x0, x22, #12
	bl	_get_unaligned_be16
Lloh0:
	adrp	x8, _MCBA_SIDL_EXID_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCBA_SIDL_EXID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _CAN_EFF_FLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	lsl	w10, w0, #13
	and	w10, w10, #0x1ffc0000
	bfi	w10, w0, #16, #2
	orr	w8, w10, w8
	str	w8, [x9]
	add	x0, x22, #8
	bl	_get_unaligned_be16
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	orr	w9, w9, w0
	b	LBB0_4
LBB0_3:
	ubfx	w9, w0, #5, #11
	ldr	x8, [sp, #8]
LBB0_4:
	str	w9, [x8]
	ldr	w10, [x22]
Lloh6:
	adrp	x11, _MCBA_DLC_RTR_MASK@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MCBA_DLC_RTR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x11, _CAN_RTR_FLAG@GOTPAGE
Lloh10:
	ldr	x11, [x11, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w9, w9, w11
	str	w9, [x8]
LBB0_6:
Lloh12:
	adrp	x8, _MCBA_DLC_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCBA_DLC_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w0, w8, w10
	bl	_get_can_dlc
	mov	x2, x0
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
	ldr	w0, [x8, #16]
	ldr	w1, [x22, #4]
	bl	_memcpy
	ldr	x8, [sp, #8]
	add	x8, x8, #8
	ldr	d0, [x21]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x21]
	ldr	x0, [x20]
Lloh15:
	adrp	x8, _CAN_LED_EVENT_RX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAN_LED_EVENT_RX@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_can_led_event
	mov	x0, x19
	bl	_netif_rx
LBB0_7:
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MCBA_SIDL_EXID_MASK,4,2        ; @MCBA_SIDL_EXID_MASK
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_MCBA_DLC_RTR_MASK,4,2          ; @MCBA_DLC_RTR_MASK
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_MCBA_DLC_MASK,4,2              ; @MCBA_DLC_MASK
	.comm	_CAN_LED_EVENT_RX,4,2           ; @CAN_LED_EVENT_RX
	.no_dead_strip	_mcba_usb_process_can
.subsections_via_symbols
