	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcan_usb_fd_decode_buf
_pcan_usb_fd_decode_buf:                ## @pcan_usb_fd_decode_buf
	.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, %rbx
	movq	%rdi, %r14
	callq	_pcan_usb_fd_dev_if
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_17
## %bb.1:
	movq	(%r14), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rbx
	leaq	(%rbx,%rax,4), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_pcan_usb_fd_decode_canmsg
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_9
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, %rbx
	jae	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r13
	callq	_le16_to_cpu
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movslq	%r12d, %rcx
	leaq	(%rbx,%rcx,4), %rbx
	cmpq	%r14, %rbx
	ja	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_pcan_usb_fd_decode_status
	jmp	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_pcan_usb_fd_decode_error
	jmp	LBB0_8
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_pcan_usb_fd_decode_overrun
	jmp	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_pcan_usb_fd_decode_ts
	jmp	LBB0_15
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EBADMSG@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_16:
	testl	%r15d, %r15d
	je	LBB0_17
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_pcan_dump_mem
	jmp	LBB0_18
LBB0_17:
	xorl	%r15d, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_13
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got frag rec: should inc usb rx buf sze\n"

	.comm	_EBADMSG,4,2                    ## @EBADMSG
L_.str.1:                               ## @.str.1
	.asciz	"unhandled msg type 0x%02x (%d): ignored\n"

L_.str.2:                               ## @.str.2
	.asciz	"received msg"

	.no_dead_strip	_pcan_usb_fd_decode_buf
.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_buf
_pcan_usb_fd_decode_buf:                ; @pcan_usb_fd_decode_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x22, x0
	bl	_pcan_usb_fd_dev_if
	ldrsw	x8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x20, x0
	mov	w21, #0
	ldr	x22, [x22]
	ldr	x24, [x19, #8]
	add	x26, x24, x8, lsl #2
Lloh0:
	adrp	x23, l_.str.1@PAGE
Lloh1:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh2:
	adrp	x27, lJTI0_0@PAGE
Lloh3:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_pcan_usb_fd_decode_canmsg
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
	tbnz	w0, #31, LBB0_17
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x25
	cmp	x25, x26
	b.hs	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24, #4]
	cbz	w0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_le16_to_cpu
	mov	x25, x0
	ldr	w0, [x24]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	add	x25, x24, w25, sxtw #2
	cmp	x25, x26
	b.hi	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_pcan_usb_fd_decode_status
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	x0, x0, [sp]
	mov	x0, x22
	mov	x1, x23
	bl	_netdev_err
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_pcan_usb_fd_decode_error
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_pcan_usb_fd_decode_overrun
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_pcan_usb_fd_decode_ts
	b	LBB0_4
LBB0_14:
	mov	w21, #0
	b	LBB0_18
LBB0_15:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_netdev_err
Lloh6:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	cbz	w21, LBB0_18
LBB0_17:
	ldr	x1, [x19, #8]
	ldr	w2, [x19]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pcan_dump_mem
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got frag rec: should inc usb rx buf sze\n"

	.comm	_EBADMSG,4,2                    ; @EBADMSG
l_.str.1:                               ; @.str.1
	.asciz	"unhandled msg type 0x%02x (%d): ignored\n"

l_.str.2:                               ; @.str.2
	.asciz	"received msg"

	.no_dead_strip	_pcan_usb_fd_decode_buf
.subsections_via_symbols
