	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_get_stats_count_locked
_bnad_get_stats_count_locked:           ## @bnad_get_stats_count_locked
	.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
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	32(%rax), %r15
	movq	%r15, %rdi
	callq	_bna_tx_rid_mask
	xorl	%r12d, %r12d
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	andl	$1, %edx
	addl	%edx, %ebx
	sarl	%ecx
	cmpl	$1, %eax
	movl	%ecx, %eax
	ja	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_bna_rx_rid_mask
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	xorl	%r12d, %r12d
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	andl	$1, %edx
	addl	%edx, %r12d
	sarl	%ecx
	cmpl	$1, %eax
	movl	%ecx, %eax
	ja	LBB0_5
LBB0_6:
	movq	_BNAD_ETHTOOL_STATS_NUM@GOTPCREL(%rip), %rax
	movq	_BNAD_NUM_TXF_COUNTERS@GOTPCREL(%rip), %rcx
	imull	(%rcx), %ebx
	addl	(%rax), %ebx
	movq	_BNAD_NUM_RXF_COUNTERS@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	addl	%ebx, %r12d
	movl	(%r14), %r10d
	testl	%r10d, %r10d
	jle	LBB0_32
## %bb.7:
	movq	24(%r14), %r11
	movq	_BNAD_NUM_CQ_COUNTERS@GOTPCREL(%rip), %rax
	movq	_BNAD_NUM_RXQ_COUNTERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	(%rax), %r9d
	addl	%r15d, %r9d
	xorl	%r8d, %r8d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%r8
	cmpq	%r10, %r8
	je	LBB0_32
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movq	%r8, %rax
	shlq	$4, %rax
	cmpl	$0, 8(%r11,%rax)
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%r14), %r13d
	movl	%r9d, %ebx
	imull	%r13d, %ebx
	addl	%r12d, %ebx
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r11,%rax), %rax
	cmpl	$1, %r13d
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ecx, %ecx
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %r12d
	testb	$1, %r13b
	je	LBB0_9
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, (%rax)
	movl	%r15d, %r12d
	movl	$0, %eax
	cmovel	%eax, %r12d
	addl	%ebx, %r12d
	jmp	LBB0_9
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r13d, %esi
	andl	$-2, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_21 Depth=2
	addl	%edx, %ebx
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=2
	addq	$2, %rcx
	cmpq	%rcx, %rsi
	je	LBB0_14
LBB0_21:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	(%rdx), %rdx
	movq	8(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=2
	xorl	%edx, %edx
	cmpq	$0, (%rdi)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=2
	movl	%r15d, %edx
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=2
	addl	%edx, %ebx
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	8(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.27:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	(%rdx), %rdx
	movq	8(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.28:                              ##   in Loop: Header=BB0_21 Depth=2
	xorl	%edx, %edx
	cmpq	$0, (%rdi)
	je	LBB0_19
## %bb.29:                              ##   in Loop: Header=BB0_21 Depth=2
	movl	%r15d, %edx
	jmp	LBB0_19
LBB0_32:
	movl	8(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_38
## %bb.33:
	movq	16(%r14), %rdx
	movq	_BNAD_NUM_TXQ_COUNTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$1, %ecx
	jne	LBB0_39
## %bb.34:
	xorl	%esi, %esi
LBB0_35:
	testb	$1, %cl
	je	LBB0_38
## %bb.36:
	cmpl	$0, (%rdx,%rsi,4)
	je	LBB0_38
## %bb.37:
	imull	12(%r14), %eax
	addl	%eax, %r12d
LBB0_38:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movl	%ecx, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_41 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_35
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx,%rsi,4)
	je	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	movl	12(%r14), %ebx
	imull	%eax, %ebx
	addl	%ebx, %r12d
LBB0_43:                                ##   in Loop: Header=BB0_41 Depth=1
	cmpl	$0, 4(%rdx,%rsi,4)
	je	LBB0_40
## %bb.44:                              ##   in Loop: Header=BB0_41 Depth=1
	movl	12(%r14), %ebx
	imull	%eax, %ebx
	addl	%ebx, %r12d
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_BNAD_ETHTOOL_STATS_NUM,4,2     ## @BNAD_ETHTOOL_STATS_NUM
	.comm	_BNAD_NUM_TXF_COUNTERS,4,2      ## @BNAD_NUM_TXF_COUNTERS
	.comm	_BNAD_NUM_RXF_COUNTERS,4,2      ## @BNAD_NUM_RXF_COUNTERS
	.comm	_BNAD_NUM_CQ_COUNTERS,4,2       ## @BNAD_NUM_CQ_COUNTERS
	.comm	_BNAD_NUM_RXQ_COUNTERS,4,2      ## @BNAD_NUM_RXQ_COUNTERS
	.comm	_BNAD_NUM_TXQ_COUNTERS,4,2      ## @BNAD_NUM_TXQ_COUNTERS
	.no_dead_strip	_bnad_get_stats_count_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_get_stats_count_locked
_bnad_get_stats_count_locked:           ; @bnad_get_stats_count_locked
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_netdev_priv
	mov	x19, x0
	add	x20, x0, #32
	mov	x0, x20
	bl	_bna_tx_rid_mask
	mov	w21, #0
	cbz	w0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w0, #0x1
	add	w21, w8, w21
	asr	w8, w0, #1
	cmp	w0, #1
	mov	x0, x8
	b.hi	LBB0_1
LBB0_2:
	mov	x0, x20
	bl	_bna_rx_rid_mask
	mov	w8, #0
	cbz	w0, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	w9, w0, #0x1
	add	w8, w9, w8
	asr	w9, w0, #1
	cmp	w0, #1
	mov	x0, x9
	b.hi	LBB0_3
LBB0_4:
Lloh0:
	adrp	x9, _BNAD_ETHTOOL_STATS_NUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNAD_ETHTOOL_STATS_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _BNAD_NUM_TXF_COUNTERS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BNAD_NUM_TXF_COUNTERS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	madd	w9, w10, w21, w9
Lloh6:
	adrp	x10, _BNAD_NUM_RXF_COUNTERS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BNAD_NUM_RXF_COUNTERS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	madd	w0, w10, w8, w9
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x9, #0
Lloh9:
	adrp	x11, _BNAD_NUM_CQ_COUNTERS@GOTPAGE
Lloh10:
	ldr	x11, [x11, _BNAD_NUM_CQ_COUNTERS@GOTPAGEOFF]
	ldr	x10, [x19, #24]
Lloh11:
	ldr	w12, [x11]
Lloh12:
	adrp	x11, _BNAD_NUM_RXQ_COUNTERS@GOTPAGE
Lloh13:
	ldr	x11, [x11, _BNAD_NUM_RXQ_COUNTERS@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	add	w12, w11, w12
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_14
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	add	x13, x10, x9, lsl #4
	ldr	w13, [x13, #8]
	cbz	w13, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x19, #4]
	madd	w0, w12, w13, w0
	cmp	w13, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	x14, x9, #4
	ldr	x14, [x10, x14]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x14, x14, #8
	subs	x13, x13, #1
	b.eq	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x14]
	cbz	x15, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x15, [x15]
	ldr	x15, [x15, #8]
	cbz	x15, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x15, [x15]
	cmp	x15, #0
	csel	w15, wzr, w11, eq
	add	w0, w15, w0
	b	LBB0_10
LBB0_14:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:
	ldr	x9, [x19, #16]
Lloh15:
	adrp	x10, _BNAD_NUM_TXQ_COUNTERS@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BNAD_NUM_TXQ_COUNTERS@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.eq	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cbz	w11, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w11, [x19, #12]
	madd	w0, w10, w11, w0
	b	LBB0_16
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BNAD_ETHTOOL_STATS_NUM,4,2     ; @BNAD_ETHTOOL_STATS_NUM
	.comm	_BNAD_NUM_TXF_COUNTERS,4,2      ; @BNAD_NUM_TXF_COUNTERS
	.comm	_BNAD_NUM_RXF_COUNTERS,4,2      ; @BNAD_NUM_RXF_COUNTERS
	.comm	_BNAD_NUM_CQ_COUNTERS,4,2       ; @BNAD_NUM_CQ_COUNTERS
	.comm	_BNAD_NUM_RXQ_COUNTERS,4,2      ; @BNAD_NUM_RXQ_COUNTERS
	.comm	_BNAD_NUM_TXQ_COUNTERS,4,2      ; @BNAD_NUM_TXQ_COUNTERS
	.no_dead_strip	_bnad_get_stats_count_locked
.subsections_via_symbols
