	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcan_usb_decode_status
_pcan_usb_decode_status:                ## @pcan_usb_decode_status
	.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	(%rdi), %rax
	leaq	8(%rax), %rcx
	cmpq	8(%rdi), %rcx
	jbe	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_PCAN_USB_STATUSLEN_DLC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	andl	%esi, %r13d
	movq	_PCAN_USB_CMD_FUNC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r12d
	movq	_PCAN_USB_CMD_NUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r15d
	movq	_PCAN_USB_CMD_ARGS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, (%rdi)
	movq	_PCAN_USB_STATUSLEN_TIMESTAMP@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_5
## %bb.3:
	xorl	%esi, %esi
	cmpl	$0, 20(%rbx)
	sete	%sil
	movq	%rbx, %rdi
	callq	_pcan_usb_decode_ts
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	incl	20(%rbx)
LBB0_5:
	leal	-128(%r12), %eax
	cmpl	$4, %eax
	ja	LBB0_12
## %bb.6:
	movl	$2, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_9:
	movq	%rbx, %rdi
	callq	_pcan_usb_update_ts
	movl	%r13d, %ecx
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_14
LBB0_12:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_netdev_err
	jmp	LBB0_13
LBB0_7:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_pcan_usb_decode_error
	movl	%r13d, %ecx
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_14
LBB0_8:
	movl	$1, %ecx
	jmp	LBB0_14
LBB0_10:
	movq	_PCAN_USB_ERROR_TXQFULL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.11:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_dbg
LBB0_13:
	movl	%r13d, %ecx
LBB0_14:
	movslq	%ecx, %rax
	shlq	$2, %rax
	addq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	ja	LBB0_1
## %bb.15:
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %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_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_PCAN_USB_STATUSLEN_DLC,4,2     ## @PCAN_USB_STATUSLEN_DLC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCAN_USB_CMD_FUNC,8,3          ## @PCAN_USB_CMD_FUNC
	.comm	_PCAN_USB_CMD_NUM,8,3           ## @PCAN_USB_CMD_NUM
	.comm	_PCAN_USB_CMD_ARGS,4,2          ## @PCAN_USB_CMD_ARGS
	.comm	_PCAN_USB_STATUSLEN_TIMESTAMP,4,2 ## @PCAN_USB_STATUSLEN_TIMESTAMP
	.comm	_PCAN_USB_ERROR_TXQFULL,4,2     ## @PCAN_USB_ERROR_TXQFULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device Tx queue full)\n"

L_.str.1:                               ## @.str.1
	.asciz	"unexpected function %u\n"

	.no_dead_strip	_pcan_usb_decode_status
.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_status
_pcan_usb_decode_status:                ; @pcan_usb_decode_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldp	x8, x9, [x0]
	add	x10, x8, #8
	cmp	x10, x9
	b.ls	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_2:
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x9, _PCAN_USB_STATUSLEN_DLC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCAN_USB_STATUSLEN_DLC@GOTPAGEOFF]
Lloh5:
	adrp	x10, _PCAN_USB_CMD_FUNC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PCAN_USB_CMD_FUNC@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x9]
Lloh8:
	ldr	x9, [x10]
	ldr	w22, [x8, x9, lsl #2]
Lloh9:
	adrp	x9, _PCAN_USB_CMD_NUM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCAN_USB_CMD_NUM@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w21, [x8, x9, lsl #2]
Lloh12:
	adrp	x9, _PCAN_USB_CMD_ARGS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCAN_USB_CMD_ARGS@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x0]
Lloh15:
	adrp	x8, _PCAN_USB_STATUSLEN_TIMESTAMP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCAN_USB_STATUSLEN_TIMESTAMP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [x19, #20]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	bl	_pcan_usb_decode_ts
	cbnz	w0, LBB0_16
; %bb.4:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_5:
	and	w23, w23, w20
	sub	w9, w22, #128
	cmp	w9, #4
	b.hi	LBB0_8
; %bb.6:
	mov	w8, #2
Lloh18:
	adrp	x10, lJTI0_0@PAGE
Lloh19:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_7:
	mov	x0, x19
	bl	_pcan_usb_update_ts
	mov	x8, x23
	cbnz	w0, LBB0_1
	b	LBB0_14
LBB0_8:
	ldr	w0, [x19, #16]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_netdev_err
	b	LBB0_13
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_pcan_usb_decode_error
	mov	x8, x23
	cbnz	w0, LBB0_16
	b	LBB0_14
LBB0_10:
	mov	w8, #1
	b	LBB0_14
LBB0_11:
Lloh22:
	adrp	x8, _PCAN_USB_ERROR_TXQFULL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PCAN_USB_ERROR_TXQFULL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x19, #16]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
LBB0_13:
	mov	x8, x23
LBB0_14:
	ldp	x9, x10, [x19]
	add	x8, x9, w8, sxtw #2
	cmp	x8, x10
	b.hi	LBB0_1
; %bb.15:
	mov	w0, #0
	str	x8, [x19]
LBB0_16:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
                                        ; -- End function
	.comm	_PCAN_USB_STATUSLEN_DLC,4,2     ; @PCAN_USB_STATUSLEN_DLC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCAN_USB_CMD_FUNC,8,3          ; @PCAN_USB_CMD_FUNC
	.comm	_PCAN_USB_CMD_NUM,8,3           ; @PCAN_USB_CMD_NUM
	.comm	_PCAN_USB_CMD_ARGS,4,2          ; @PCAN_USB_CMD_ARGS
	.comm	_PCAN_USB_STATUSLEN_TIMESTAMP,4,2 ; @PCAN_USB_STATUSLEN_TIMESTAMP
	.comm	_PCAN_USB_ERROR_TXQFULL,4,2     ; @PCAN_USB_ERROR_TXQFULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device Tx queue full)\n"

l_.str.1:                               ; @.str.1
	.asciz	"unexpected function %u\n"

	.no_dead_strip	_pcan_usb_decode_status
.subsections_via_symbols
