	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcan_usb_decode_data
_pcan_usb_decode_data:                  ## @pcan_usb_decode_data
	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_PCAN_USB_STATUSLEN_DLC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%esi, %r15d
	movq	16(%rdi), %rdi
	leaq	-40(%rbp), %rsi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_PCAN_USB_STATUSLEN_EXT_ID@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.3:
	movslq	(%rbx), %rsi
	leaq	4(%rsi), %rax
	cmpq	%rax, 8(%rbx)
	jl	LBB0_13
## %bb.4:
	leaq	-44(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$4, %edx
	callq	_memcpy
	addl	$4, (%rbx)
	movl	-44(%rbp), %edi
	callq	_le32_to_cpu
	sarl	$3, %eax
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_5:
	movslq	(%rbx), %rsi
	leaq	2(%rsi), %rax
	cmpq	%rax, 8(%rbx)
	jl	LBB0_13
## %bb.6:
	leaq	-44(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$2, %edx
	callq	_memcpy
	addl	$2, (%rbx)
	movl	-44(%rbp), %edi
	callq	_le16_to_cpu
	sarl	$5, %eax
LBB0_7:
	movq	-40(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	%r15d, %edi
	callq	_get_can_dlc
	movq	-40(%rbp), %rcx
	movl	%eax, 4(%rcx)
	xorl	%esi, %esi
	cmpl	$0, 40(%rbx)
	sete	%sil
	movq	%rbx, %rdi
	callq	_pcan_usb_decode_ts
	testq	%rax, %rax
	je	LBB0_8
LBB0_13:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_14:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	incl	40(%rbx)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_PCAN_USB_STATUSLEN_RTR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_10:
	movl	(%rbx), %esi
	leal	(%rsi,%r15), %eax
	cltq
	cmpq	%rax, 8(%rbx)
	jl	LBB0_13
## %bb.11:
	movq	-40(%rbp), %rax
	movq	8(%rax), %rdi
	movl	4(%rax), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_memcpy
	addl	%r15d, (%rbx)
LBB0_12:
	movq	%r14, %rdi
	callq	_skb_hwtstamps
	movq	32(%rbx), %rdi
	movl	24(%rbx), %esi
	movq	%rax, %rdx
	callq	_peak_usb_get_ts_time
	movq	16(%rbx), %rax
	incl	4(%rax)
	movq	-40(%rbp), %rcx
	movl	4(%rcx), %ecx
	addl	%ecx, (%rax)
	movq	%r14, %rdi
	callq	_netif_rx
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAN_USB_STATUSLEN_DLC,4,2     ## @PCAN_USB_STATUSLEN_DLC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCAN_USB_STATUSLEN_EXT_ID,4,2  ## @PCAN_USB_STATUSLEN_EXT_ID
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_PCAN_USB_STATUSLEN_RTR,4,2     ## @PCAN_USB_STATUSLEN_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pcan_usb_decode_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcan_usb_decode_data
_pcan_usb_decode_data:                  ; @pcan_usb_decode_data
	.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	x20, x0
Lloh0:
	adrp	x8, _PCAN_USB_STATUSLEN_DLC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAN_USB_STATUSLEN_DLC@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x0, [x0, #16]
	add	x1, sp, #8
	bl	_alloc_can_skb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _PCAN_USB_STATUSLEN_EXT_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCAN_USB_STATUSLEN_EXT_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.2:
	ldrsw	x1, [x20]
	add	x8, x1, #4
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.lt	LBB0_8
; %bb.3:
	add	x0, sp, #4
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20]
	add	w8, w8, #4
	str	w8, [x20]
	ldr	w0, [sp, #4]
	bl	_le32_to_cpu
Lloh6:
	adrp	x8, _CAN_EFF_FLAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w0, asr #3
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	ldrsw	x1, [x20]
	add	x8, x1, #2
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.lt	LBB0_8
; %bb.6:
	add	x0, sp, #4
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #2
	bl	_memcpy
	ldr	w8, [x20]
	add	w8, w8, #2
	str	w8, [x20]
	ldr	w0, [sp, #4]
	bl	_le16_to_cpu
	asr	w8, w0, #5
LBB0_7:
	ldr	x9, [sp, #8]
	str	w8, [x9]
	and	w22, w22, w21
	mov	x0, x22
	bl	_get_can_dlc
	ldr	x8, [sp, #8]
	str	w0, [x8, #4]
	ldr	w8, [x20, #40]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x20
	bl	_pcan_usb_decode_ts
	cbz	x0, LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_dev_kfree_skb
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
LBB0_11:
	ldr	w8, [x20, #40]
	add	w8, w8, #1
	str	w8, [x20, #40]
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh13:
	adrp	x8, _PCAN_USB_STATUSLEN_RTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PCAN_USB_STATUSLEN_RTR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.12:
Lloh16:
	adrp	x8, _CAN_RTR_FLAG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	b	LBB0_15
LBB0_13:
	ldr	w1, [x20]
	add	w8, w1, w22
	ldr	x9, [x20, #8]
	cmp	x9, w8, sxtw
	b.lt	LBB0_8
; %bb.14:
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	ldr	w2, [x8, #4]
	bl	_memcpy
	ldr	w8, [x20]
	add	w8, w8, w22
	str	w8, [x20]
LBB0_15:
	mov	x0, x19
	bl	_skb_hwtstamps
	mov	x2, x0
	ldr	x0, [x20, #32]
	ldr	w1, [x20, #24]
	bl	_peak_usb_get_ts_time
	ldr	x8, [x20, #16]
	ldr	x9, [sp, #8]
	add	x9, x9, #4
	ldr	d0, [x8]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x9]
	add.2s	v0, v0, v1
	str	d0, [x8]
	mov	x0, x19
	bl	_netif_rx
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAN_USB_STATUSLEN_DLC,4,2     ; @PCAN_USB_STATUSLEN_DLC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCAN_USB_STATUSLEN_EXT_ID,4,2  ; @PCAN_USB_STATUSLEN_EXT_ID
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_PCAN_USB_STATUSLEN_RTR,4,2     ; @PCAN_USB_STATUSLEN_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pcan_usb_decode_data
.subsections_via_symbols
