	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_get_tx_stats
_niu_get_tx_stats:                      ## @niu_get_tx_stats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_ACCESS_ONCE
	pxor	%xmm0, %xmm0
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_5
## %bb.2:
	cmpl	$1, %r8d
	jne	LBB0_6
## %bb.3:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_5:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_6:
	movl	%r8d, %edi
	andl	$-2, %edi
	leaq	32(%rax), %rdx
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-24(%rdx), %xmm1
	movdqu	(%rdx), %xmm2
	pshufd	$78, %xmm1, %xmm1               ## xmm1 = xmm1[2,3,0,1]
	addq	-32(%rdx), %rcx
	paddq	%xmm0, %xmm1
	pshufd	$78, %xmm2, %xmm0               ## xmm0 = xmm2[2,3,0,1]
	addq	-8(%rdx), %rcx
	paddq	%xmm1, %xmm0
	addq	$2, %rsi
	addq	$48, %rdx
	cmpq	%rsi, %rdi
	jne	LBB0_7
LBB0_8:
	testb	$1, %r8b
	je	LBB0_10
## %bb.9:
	leaq	(%rsi,%rsi,2), %rdx
	movdqu	8(%rax,%rdx,8), %xmm1
	pshufd	$78, %xmm1, %xmm1               ## xmm1 = xmm1[2,3,0,1]
	paddq	%xmm1, %xmm0
	addq	(%rax,%rdx,8), %rcx
LBB0_10:
	movq	8(%rbx), %rax
	movdqu	%xmm0, (%rax)
	movq	%rcx, 16(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_niu_get_tx_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_get_tx_stats
_niu_get_tx_stats:                      ; @niu_get_tx_stats
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_ACCESS_ONCE
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	cmp	w8, #8
	b.hs	LBB0_5
; %bb.3:
	mov	x9, #0
	mov	x12, #0
	mov	x11, #0
	mov	x10, #0
	b	LBB0_8
LBB0_4:
	mov	x10, #0
	mov	x11, #0
	mov	x12, #0
	b	LBB0_10
LBB0_5:
	movi.2d	v0, #0000000000000000
	and	x9, x8, #0xfffffff8
	movi.2d	v1, #0000000000000000
	add	x10, x0, #96
	movi.2d	v2, #0000000000000000
	mov	x11, x9
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
	movi.2d	v19, #0000000000000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x10, #96
	sub	x13, x10, #48
	ld3.2d	{ v20, v21, v22 }, [x12]
	ld3.2d	{ v23, v24, v25 }, [x13]
	mov	x12, x10
	ld3.2d	{ v26, v27, v28 }, [x12], #48
	ld3.2d	{ v29, v30, v31 }, [x12]
	add.2d	v0, v22, v0
	add.2d	v1, v25, v1
	add.2d	v2, v28, v2
	add.2d	v3, v31, v3
	add.2d	v16, v21, v16
	add.2d	v17, v24, v17
	add.2d	v18, v27, v18
	add.2d	v19, v30, v19
	add.2d	v4, v20, v4
	add.2d	v5, v23, v5
	add.2d	v6, v26, v6
	add.2d	v7, v29, v7
	add	x10, x10, #192
	subs	x11, x11, #8
	b.ne	LBB0_6
; %bb.7:
	add.2d	v16, v17, v16
	add.2d	v16, v18, v16
	add.2d	v16, v19, v16
	addp.2d	d16, v16
	fmov	x10, d16
	add.2d	v4, v5, v4
	add.2d	v4, v6, v4
	add.2d	v4, v7, v4
	addp.2d	d4, v4
	fmov	x11, d4
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x12, d0
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_8:
	mov	w13, #24
	madd	x13, x9, x13, x0
	add	x13, x13, #16
	sub	x8, x8, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x13]
	add	x12, x9, x12
	ldp	x14, x9, [x13, #-16]
	add	x10, x9, x10
	add	x11, x14, x11
	add	x13, x13, #24
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	ldr	x8, [x19, #8]
	stp	x12, x10, [x8]
	str	x11, [x8, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_niu_get_tx_stats
.subsections_via_symbols
