	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcan_usb_pro_handle_canmsg
_pcan_usb_pro_handle_canmsg:            ## @pcan_usb_pro_handle_canmsg
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %eax
	movq	8(%rdi), %rcx
	shrq	%rax
	andl	$120, %eax
	movq	(%rcx,%rax), %rax
	movq	(%rax), %r15
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	16(%rbx), %edi
	callq	_le32_to_cpu
	movq	-48(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movl	(%rbx), %edx
	andl	$15, %edx
	movl	%edx, (%rcx)
	movl	4(%rbx), %esi
	movq	_PCAN_USBPRO_EXT@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	je	LBB0_4
## %bb.3:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%edi, %eax
	movl	%eax, 8(%rcx)
LBB0_4:
	movq	_PCAN_USBPRO_RTR@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	je	LBB0_6
## %bb.5:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 8(%rcx)
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	movl	4(%rcx), %edi
	movl	12(%rbx), %esi
	callq	_memcpy
LBB0_7:
	movq	%r12, %rdi
	callq	_skb_hwtstamps
	movq	%rax, %r13
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_peak_usb_get_ts_time
	incl	4(%r15)
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	addl	%eax, (%r15)
	movq	%r12, %rdi
	callq	_netif_rx
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCAN_USBPRO_EXT,4,2            ## @PCAN_USBPRO_EXT
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_PCAN_USBPRO_RTR,4,2            ## @PCAN_USBPRO_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.no_dead_strip	_pcan_usb_pro_handle_canmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcan_usb_pro_handle_canmsg
_pcan_usb_pro_handle_canmsg:            ; @pcan_usb_pro_handle_canmsg
	.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, x1
	mov	x21, x0
	ldr	w8, [x1]
	ubfx	x8, x8, #4, #4
	ldr	x9, [x0, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x19, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_skb
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w0, [x22, #16]
	bl	_le32_to_cpu
	ldr	x8, [sp, #8]
	str	w0, [x8, #8]
	ldp	w10, w9, [x22]
	and	w2, w10, #0xf
	str	w2, [x8]
Lloh0:
	adrp	x10, _PCAN_USBPRO_EXT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PCAN_USBPRO_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x10, _CAN_EFF_FLAG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w0, w10, w0
	str	w0, [x8, #8]
LBB0_3:
Lloh6:
	adrp	x10, _PCAN_USBPRO_RTR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PCAN_USBPRO_RTR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
Lloh9:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w9, w0, w9
	str	w9, [x8, #8]
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	ldr	w0, [x8, #4]
	ldr	w1, [x22, #12]
	bl	_memcpy
LBB0_7:
	mov	x0, x20
	bl	_skb_hwtstamps
	mov	x23, x0
	ldr	w0, [x22, #8]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	bl	_peak_usb_get_ts_time
	ldr	x8, [sp, #8]
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x20
	bl	_netif_rx
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCAN_USBPRO_EXT,4,2            ; @PCAN_USBPRO_EXT
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_PCAN_USBPRO_RTR,4,2            ; @PCAN_USBPRO_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.no_dead_strip	_pcan_usb_pro_handle_canmsg
.subsections_via_symbols
