	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_pciefd_handle_data_packet
_kvaser_pciefd_handle_data_packet:      ## @kvaser_pciefd_handle_data_packet
	.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, %r15
	movq	(%rsi), %rax
	movl	4(%rax), %eax
	movq	_KVASER_PCIEFD_PACKET_CHID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %esi
	sarl	%cl, %esi
	andl	$7, %esi
	cmpq	%rsi, (%rdi)
	jbe	LBB0_1
## %bb.3:
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	16(%rdi), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movq	(%rcx), %r14
	movq	_KVASER_PCIEFD_RPACKET_FDF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_alloc_canfd_skb
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movq	(%r15), %rax
	movl	4(%rax), %ecx
	movq	_KVASER_PCIEFD_RPACKET_BRS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_8
## %bb.7:
	movq	_CANFD_BRS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdx
	orl	%ecx, 20(%rdx)
	movl	4(%rax), %ecx
LBB0_8:
	movq	_KVASER_PCIEFD_RPACKET_ESI@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
## %bb.9:
	movq	_CANFD_ESI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdx
	orl	%ecx, 20(%rdx)
	jmp	LBB0_12
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_10:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	movq	%rax, %r12
	movq	(%r15), %rax
LBB0_12:
	movq	_CAN_EFF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movq	-48(%rbp), %rdx
	movl	%ecx, (%rdx)
	movq	_KVASER_PCIEFD_RPACKET_IDE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, (%rdx)
LBB0_14:
	movl	4(%rax), %edi
	movq	_KVASER_PCIEFD_RPACKET_DLC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	callq	_can_dlc2len
	movq	-48(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r15), %rdx
	movq	_KVASER_PCIEFD_RPACKET_RTR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	je	LBB0_16
## %bb.15:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	jmp	LBB0_17
LBB0_5:
	incl	8(%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_16:
	movl	16(%rcx), %edi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_memcpy
LBB0_17:
	movq	%r12, %rdi
	callq	_skb_hwtstamps
	movq	%rax, %r13
	imull	$1000, 8(%r15), %edi            ## imm = 0x3E8
	movl	8(%rbx), %esi
	callq	_div_u64
	movl	%eax, %edi
	callq	_ns_to_ktime
	movl	%eax, (%r13)
	movq	-48(%rbp), %rax
	movl	8(%rax), %eax
	addl	%eax, 4(%r14)
	incl	(%r14)
	movq	%r12, %rdi
	callq	_netif_rx
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVASER_PCIEFD_PACKET_CHID_SHIFT,4,2 ## @KVASER_PCIEFD_PACKET_CHID_SHIFT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_KVASER_PCIEFD_RPACKET_FDF,4,2  ## @KVASER_PCIEFD_RPACKET_FDF
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_KVASER_PCIEFD_RPACKET_BRS,4,2  ## @KVASER_PCIEFD_RPACKET_BRS
	.comm	_CANFD_BRS,4,2                  ## @CANFD_BRS
	.comm	_KVASER_PCIEFD_RPACKET_ESI,4,2  ## @KVASER_PCIEFD_RPACKET_ESI
	.comm	_CANFD_ESI,4,2                  ## @CANFD_ESI
	.comm	_CAN_EFF_MASK,4,2               ## @CAN_EFF_MASK
	.comm	_KVASER_PCIEFD_RPACKET_IDE,4,2  ## @KVASER_PCIEFD_RPACKET_IDE
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_KVASER_PCIEFD_RPACKET_DLC_SHIFT,4,2 ## @KVASER_PCIEFD_RPACKET_DLC_SHIFT
	.comm	_KVASER_PCIEFD_RPACKET_RTR,4,2  ## @KVASER_PCIEFD_RPACKET_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.no_dead_strip	_kvaser_pciefd_handle_data_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_pciefd_handle_data_packet
_kvaser_pciefd_handle_data_packet:      ; @kvaser_pciefd_handle_data_packet
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _KVASER_PCIEFD_PACKET_CHID_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KVASER_PCIEFD_PACKET_CHID_SHIFT@GOTPAGEOFF]
	ldr	w8, [x8, #4]
Lloh2:
	ldr	w9, [x9]
	asr	w9, w8, w9
	and	w9, w9, #0x7
	ldr	x10, [x0]
	cmp	x10, x9
	b.ls	LBB0_7
; %bb.1:
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x10, [x0, #16]
	ldr	x9, [x10, x9, lsl #3]
	ldr	x19, [x9]
Lloh3:
	adrp	x9, _KVASER_PCIEFD_RPACKET_FDF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KVASER_PCIEFD_RPACKET_FDF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	x1, sp, #8
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
	bl	_alloc_canfd_skb
	cbz	x0, LBB0_14
; %bb.3:
	mov	x22, x0
	ldr	x8, [x21]
	ldr	w9, [x8, #4]
Lloh6:
	adrp	x10, _KVASER_PCIEFD_RPACKET_BRS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _KVASER_PCIEFD_RPACKET_BRS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x9, _CANFD_BRS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CANFD_BRS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	x10, [sp, #8]
	ldr	w11, [x10, #20]
	orr	w9, w11, w9
	str	w9, [x10, #20]
	ldr	w9, [x8, #4]
LBB0_5:
Lloh12:
	adrp	x10, _KVASER_PCIEFD_RPACKET_ESI@GOTPAGE
Lloh13:
	ldr	x10, [x10, _KVASER_PCIEFD_RPACKET_ESI@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.6:
Lloh15:
	adrp	x9, _CANFD_ESI@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CANFD_ESI@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	x10, [sp, #8]
	ldr	w11, [x10, #20]
	orr	w9, w11, w9
	str	w9, [x10, #20]
	b	LBB0_10
LBB0_7:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	bl	_alloc_can_skb
	cbz	x0, LBB0_14
; %bb.9:
	mov	x22, x0
	ldr	x8, [x21]
LBB0_10:
	ldr	w9, [x8]
Lloh20:
	adrp	x10, _CAN_EFF_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CAN_EFF_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	and	w10, w10, w9
	ldr	x9, [sp, #8]
	str	w10, [x9]
	ldr	w11, [x8]
Lloh23:
	adrp	x12, _KVASER_PCIEFD_RPACKET_IDE@GOTPAGE
Lloh24:
	ldr	x12, [x12, _KVASER_PCIEFD_RPACKET_IDE@GOTPAGEOFF]
Lloh25:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_12
; %bb.11:
Lloh26:
	adrp	x11, _CAN_EFF_FLAG@GOTPAGE
Lloh27:
	ldr	x11, [x11, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	orr	w10, w11, w10
	str	w10, [x9]
LBB0_12:
	ldr	w8, [x8, #4]
Lloh29:
	adrp	x9, _KVASER_PCIEFD_RPACKET_DLC_SHIFT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _KVASER_PCIEFD_RPACKET_DLC_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	asr	w0, w8, w9
	bl	_can_dlc2len
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
	ldr	x9, [x21]
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _KVASER_PCIEFD_RPACKET_RTR@GOTPAGE
Lloh33:
	ldr	x10, [x10, _KVASER_PCIEFD_RPACKET_RTR@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_16
; %bb.13:
Lloh35:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_17
LBB0_14:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
Lloh38:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_16:
	mov	x2, x0
	ldr	w0, [x8, #16]
	mov	x1, x23
	bl	_memcpy
LBB0_17:
	mov	x0, x22
	bl	_skb_hwtstamps
	mov	x23, x0
	ldr	w8, [x21, #8]
	mov	w9, #1000
	mul	w0, w8, w9
	ldr	w1, [x20, #8]
	bl	_div_u64
	bl	_ns_to_ktime
	str	w0, [x23]
	ldr	x8, [sp, #8]
	ldr	w8, [x8, #8]
	ldp	w10, w9, [x19]
	add	w8, w9, w8
	add	w9, w10, #1
	stp	w9, w8, [x19]
	mov	x0, x22
	bl	_netif_rx
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_KVASER_PCIEFD_PACKET_CHID_SHIFT,4,2 ; @KVASER_PCIEFD_PACKET_CHID_SHIFT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_KVASER_PCIEFD_RPACKET_FDF,4,2  ; @KVASER_PCIEFD_RPACKET_FDF
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_KVASER_PCIEFD_RPACKET_BRS,4,2  ; @KVASER_PCIEFD_RPACKET_BRS
	.comm	_CANFD_BRS,4,2                  ; @CANFD_BRS
	.comm	_KVASER_PCIEFD_RPACKET_ESI,4,2  ; @KVASER_PCIEFD_RPACKET_ESI
	.comm	_CANFD_ESI,4,2                  ; @CANFD_ESI
	.comm	_CAN_EFF_MASK,4,2               ; @CAN_EFF_MASK
	.comm	_KVASER_PCIEFD_RPACKET_IDE,4,2  ; @KVASER_PCIEFD_RPACKET_IDE
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_KVASER_PCIEFD_RPACKET_DLC_SHIFT,4,2 ; @KVASER_PCIEFD_RPACKET_DLC_SHIFT
	.comm	_KVASER_PCIEFD_RPACKET_RTR,4,2  ; @KVASER_PCIEFD_RPACKET_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.no_dead_strip	_kvaser_pciefd_handle_data_packet
.subsections_via_symbols
