	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcan_usb_fd_decode_canmsg
_pcan_usb_fd_decode_canmsg:             ## @pcan_usb_fd_decode_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_pucan_msg_get_channel
	movq	(%rbx,%rax,8), %rax
	movq	(%rax), %r15
	movl	12(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movq	_PUCAN_MSG_EXT_DATA_LEN@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_alloc_canfd_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	_PUCAN_MSG_BITRATE_SWITCH@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_CANFD_BRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	orl	%eax, 16(%rcx)
LBB0_5:
	movq	_PUCAN_MSG_ERROR_STATE_IND@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_CANFD_ESI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	orl	%eax, 16(%rcx)
LBB0_7:
	movq	%r14, %rdi
	callq	_pucan_msg_get_dlc
	movl	%eax, %edi
	callq	_get_canfd_dlc
	movl	%eax, %edi
	callq	_can_dlc2len
	jmp	LBB0_10
LBB0_8:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.9:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_pucan_msg_get_dlc
	movl	%eax, %edi
	callq	_get_can_dlc
LBB0_10:
	movq	-48(%rbp), %rcx
	movq	%rax, (%rcx)
	movl	8(%r14), %edi
	callq	_le32_to_cpu
	movq	-48(%rbp), %rcx
	movl	%eax, 12(%rcx)
	movq	_PUCAN_MSG_EXT_ID@GOTPCREL(%rip), %rdx
	testl	%r13d, (%rdx)
	je	LBB0_12
## %bb.11:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, %eax
	movl	%eax, 12(%rcx)
LBB0_12:
	movq	_PUCAN_MSG_RTR@GOTPCREL(%rip), %rdx
	testl	%r13d, (%rdx)
	je	LBB0_14
## %bb.13:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 12(%rcx)
	jmp	LBB0_15
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_14:
	movl	8(%rcx), %edi
	movl	4(%r14), %esi
	movq	(%rcx), %rdx
	callq	_memcpy
LBB0_15:
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_peak_usb_netif_rx
	incl	4(%r15)
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	addl	%eax, (%r15)
	xorl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PUCAN_MSG_EXT_DATA_LEN,4,2     ## @PUCAN_MSG_EXT_DATA_LEN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PUCAN_MSG_BITRATE_SWITCH,4,2   ## @PUCAN_MSG_BITRATE_SWITCH
	.comm	_CANFD_BRS,4,2                  ## @CANFD_BRS
	.comm	_PUCAN_MSG_ERROR_STATE_IND,4,2  ## @PUCAN_MSG_ERROR_STATE_IND
	.comm	_CANFD_ESI,4,2                  ## @CANFD_ESI
	.comm	_PUCAN_MSG_EXT_ID,4,2           ## @PUCAN_MSG_EXT_ID
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_PUCAN_MSG_RTR,4,2              ## @PUCAN_MSG_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.no_dead_strip	_pcan_usb_fd_decode_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_fd_decode_canmsg
_pcan_usb_fd_decode_canmsg:             ; @pcan_usb_fd_decode_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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x1
	bl	_pucan_msg_get_channel
	ldr	x8, [x19, x0, lsl #3]
	ldr	x19, [x8]
	ldr	w0, [x21, #12]
	bl	_le16_to_cpu
	mov	x23, x0
Lloh0:
	adrp	x8, _PUCAN_MSG_EXT_DATA_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PUCAN_MSG_EXT_DATA_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x1, sp, #8
	tst	w8, w0
	b.eq	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_alloc_canfd_skb
	cbz	x0, LBB0_13
; %bb.2:
	mov	x22, x0
Lloh3:
	adrp	x8, _PUCAN_MSG_BITRATE_SWITCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PUCAN_MSG_BITRATE_SWITCH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _CANFD_BRS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CANFD_BRS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #16]
	orr	w8, w10, w8
	str	w8, [x9, #16]
LBB0_4:
Lloh9:
	adrp	x8, _PUCAN_MSG_ERROR_STATE_IND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PUCAN_MSG_ERROR_STATE_IND@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _CANFD_ESI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CANFD_ESI@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #16]
	orr	w8, w10, w8
	str	w8, [x9, #16]
LBB0_6:
	mov	x0, x21
	bl	_pucan_msg_get_dlc
	bl	_get_canfd_dlc
	bl	_can_dlc2len
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_alloc_can_skb
	cbz	x0, LBB0_13
; %bb.8:
	mov	x22, x0
	mov	x0, x21
	bl	_pucan_msg_get_dlc
	bl	_get_can_dlc
LBB0_9:
	ldr	x8, [sp, #8]
	str	x0, [x8]
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	ldr	x8, [sp, #8]
	str	w0, [x8, #12]
Lloh15:
	adrp	x9, _PUCAN_MSG_EXT_ID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PUCAN_MSG_EXT_ID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_11
; %bb.10:
Lloh18:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w0, w9, w0
	str	w0, [x8, #12]
LBB0_11:
Lloh21:
	adrp	x9, _PUCAN_MSG_RTR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PUCAN_MSG_RTR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_14
; %bb.12:
Lloh24:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w9, w0, w9
	str	w9, [x8, #12]
	b	LBB0_15
LBB0_13:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_14:
	ldr	w0, [x8, #8]
	ldr	w1, [x21, #4]
	ldr	x2, [x8]
	bl	_memcpy
LBB0_15:
	ldr	w0, [x21]
	bl	_le32_to_cpu
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_peak_usb_netif_rx
	mov	w0, #0
	ldr	x8, [sp, #8]
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19]
LBB0_16:
	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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PUCAN_MSG_EXT_DATA_LEN,4,2     ; @PUCAN_MSG_EXT_DATA_LEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PUCAN_MSG_BITRATE_SWITCH,4,2   ; @PUCAN_MSG_BITRATE_SWITCH
	.comm	_CANFD_BRS,4,2                  ; @CANFD_BRS
	.comm	_PUCAN_MSG_ERROR_STATE_IND,4,2  ; @PUCAN_MSG_ERROR_STATE_IND
	.comm	_CANFD_ESI,4,2                  ; @CANFD_ESI
	.comm	_PUCAN_MSG_EXT_ID,4,2           ; @PUCAN_MSG_EXT_ID
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_PUCAN_MSG_RTR,4,2              ; @PUCAN_MSG_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.no_dead_strip	_pcan_usb_fd_decode_canmsg
.subsections_via_symbols
