	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_hydra_rx_msg_std
_kvaser_usb_hydra_rx_msg_std:           ## @kvaser_usb_hydra_rx_msg_std
	.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, %r13
	movq	%rdi, %rbx
	callq	_kvaser_usb_hydra_net_priv_from_cmd
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r15
	movq	(%rax), %r14
	movl	(%r13), %r12d
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_kvaser_usb_hydra_ktime_from_rx_cmd
	movl	%eax, %ebx
	movq	_KVASER_USB_HYDRA_CF_FLAG_ERROR_FRAME@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.14:
	addq	$16, %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvaser_usb_hydra_error_frame   ## TAILCALL
LBB0_2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	leaq	-64(%rbp), %rsi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_skb_hwtstamps
	movl	%ebx, (%rax)
	movl	12(%r13), %edi
	callq	_le32_to_cpu
	movq	-64(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_KVASER_USB_HYDRA_EXTENDED_FRAME_ID@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_CAN_EFF_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	movl	%edx, (%rcx)
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_7
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	jmp	LBB0_13
LBB0_6:
	movq	_CAN_SFF_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
LBB0_7:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%edx, (%rcx)
	movq	_KVASER_USB_HYDRA_CF_FLAG_OVERRUN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	(%r15), %rdi
	callq	_kvaser_usb_can_rx_over_error
LBB0_9:
	movl	8(%r13), %edi
	callq	_get_can_dlc
	movq	-64(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	_KVASER_USB_HYDRA_CF_FLAG_REMOTE_FRAME@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	je	LBB0_11
## %bb.10:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rcx)
	jmp	LBB0_12
LBB0_11:
	movl	16(%rcx), %edi
	movl	4(%r13), %esi
	movq	%rax, %rdx
	callq	_memcpy
	movq	-64(%rbp), %rax
	movq	8(%rax), %rax
LBB0_12:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	4(%rcx)
	addl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_netif_rx
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVASER_USB_HYDRA_CF_FLAG_ERROR_FRAME,4,2 ## @KVASER_USB_HYDRA_CF_FLAG_ERROR_FRAME
	.comm	_KVASER_USB_HYDRA_EXTENDED_FRAME_ID,4,2 ## @KVASER_USB_HYDRA_EXTENDED_FRAME_ID
	.comm	_CAN_EFF_MASK,4,2               ## @CAN_EFF_MASK
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_CAN_SFF_MASK,4,2               ## @CAN_SFF_MASK
	.comm	_KVASER_USB_HYDRA_CF_FLAG_OVERRUN,4,2 ## @KVASER_USB_HYDRA_CF_FLAG_OVERRUN
	.comm	_KVASER_USB_HYDRA_CF_FLAG_REMOTE_FRAME,4,2 ## @KVASER_USB_HYDRA_CF_FLAG_REMOTE_FRAME
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.no_dead_strip	_kvaser_usb_hydra_rx_msg_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_usb_hydra_rx_msg_std
_kvaser_usb_hydra_rx_msg_std:           ; @kvaser_usb_hydra_rx_msg_std
	.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	x19, x1
	mov	x20, x0
	bl	_kvaser_usb_hydra_net_priv_from_cmd
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
	ldr	x23, [x0]
	ldr	w24, [x19]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_kvaser_usb_hydra_ktime_from_rx_cmd
	mov	x22, x0
Lloh0:
	adrp	x8, _KVASER_USB_HYDRA_CF_FLAG_ERROR_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KVASER_USB_HYDRA_CF_FLAG_ERROR_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_3
; %bb.2:
	add	x1, x19, #16
	mov	x0, x21
	mov	x2, x22
	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
	b	_kvaser_usb_hydra_error_frame
LBB0_3:
	ldr	x0, [x21]
	add	x1, sp, #8
	bl	_alloc_can_skb
	cbz	x0, LBB0_6
; %bb.4:
	mov	x20, x0
	bl	_skb_hwtstamps
	str	w22, [x0]
	ldr	w0, [x19, #12]
	bl	_le32_to_cpu
	ldr	x8, [sp, #8]
	str	w0, [x8]
Lloh3:
	adrp	x9, _KVASER_USB_HYDRA_EXTENDED_FRAME_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KVASER_USB_HYDRA_EXTENDED_FRAME_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_7
; %bb.5:
Lloh6:
	adrp	x9, _CAN_EFF_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CAN_EFF_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w0
	str	w9, [x8]
Lloh9:
	adrp	x10, _CAN_EFF_FLAG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	b	LBB0_8
LBB0_6:
	ldr	w8, [x23, #8]
	add	w8, w8, #1
	str	w8, [x23, #8]
	b	LBB0_14
LBB0_7:
Lloh12:
	adrp	x9, _CAN_SFF_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CAN_SFF_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w0
LBB0_8:
	str	w9, [x8]
Lloh15:
	adrp	x8, _KVASER_USB_HYDRA_CF_FLAG_OVERRUN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KVASER_USB_HYDRA_CF_FLAG_OVERRUN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_10
; %bb.9:
	ldr	x0, [x21]
	bl	_kvaser_usb_can_rx_over_error
LBB0_10:
	ldr	w0, [x19, #8]
	bl	_get_can_dlc
	mov	x2, x0
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
Lloh18:
	adrp	x9, _KVASER_USB_HYDRA_CF_FLAG_REMOTE_FRAME@GOTPAGE
Lloh19:
	ldr	x9, [x9, _KVASER_USB_HYDRA_CF_FLAG_REMOTE_FRAME@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w24
	b.eq	LBB0_12
; %bb.11:
Lloh21:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_13
LBB0_12:
	ldr	w0, [x8, #16]
	ldr	w1, [x19, #4]
	bl	_memcpy
	ldr	x8, [sp, #8]
	ldr	x2, [x8, #8]
LBB0_13:
	ldr	d0, [x23]
	movi.2s	v1, #1
	mov.s	v1[0], w2
	add.2s	v0, v0, v1
	str	d0, [x23]
	mov	x0, x20
	bl	_netif_rx
LBB0_14:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_KVASER_USB_HYDRA_CF_FLAG_ERROR_FRAME,4,2 ; @KVASER_USB_HYDRA_CF_FLAG_ERROR_FRAME
	.comm	_KVASER_USB_HYDRA_EXTENDED_FRAME_ID,4,2 ; @KVASER_USB_HYDRA_EXTENDED_FRAME_ID
	.comm	_CAN_EFF_MASK,4,2               ; @CAN_EFF_MASK
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_CAN_SFF_MASK,4,2               ; @CAN_SFF_MASK
	.comm	_KVASER_USB_HYDRA_CF_FLAG_OVERRUN,4,2 ; @KVASER_USB_HYDRA_CF_FLAG_OVERRUN
	.comm	_KVASER_USB_HYDRA_CF_FLAG_REMOTE_FRAME,4,2 ; @KVASER_USB_HYDRA_CF_FLAG_REMOTE_FRAME
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.no_dead_strip	_kvaser_usb_hydra_rx_msg_std
.subsections_via_symbols
