	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8xxx_mib_fetch_port_stat
_ar8xxx_mib_fetch_port_stat:            ## @ar8xxx_mib_fetch_port_stat
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r12
	xorl	%edi, %edi
	movq	%rsi, %rbx
	cmpl	%esi, 28(%r12)
	setle	%dil
	callq	_WARN_ON
	leaq	24(%r12), %rdi
	callq	_lockdep_assert_held
	movq	16(%r12), %rax
	movl	8(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.1:
	imull	%ebx, %ecx
	movslq	%ecx, %rcx
	shlq	$2, %rcx
	addq	(%r12), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	imull	4(%rax), %ebx
	addl	(%rax), %ebx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$4, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	xorl	%eax, %eax
	callq	_cond_resched
	movq	16(%r12), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	8(%rax), %rcx
	addq	$6, %r14
	cmpq	%rcx, %r15
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %r13
	movq	-16(%r13,%r14,4), %rcx
	cmpq	8(%r12), %rcx
	jg	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13,%r14,4), %rsi
	addq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	callq	_ar8xxx_read
	movl	%eax, %ebx
	cmpl	$2, -8(%r13,%r14,4)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13,%r14,4), %rsi
	addq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	callq	_ar8xxx_read
	jmp	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax,%r15,4), %ebx
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ar8xxx_mib_fetch_port_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8xxx_mib_fetch_port_stat
_ar8xxx_mib_fetch_port_stat:            ; @ar8xxx_mib_fetch_port_stat
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0, #28]
	cmp	w8, w1
	cset	w0, le
	bl	_WARN_ON
	add	x0, x20, #24
	bl	_lockdep_assert_held
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	ldr	x10, [x20]
	mul	w9, w9, w21
	add	x24, x10, w9, sxtw #2
	ldp	w10, w9, [x8]
	madd	w25, w9, w21, w10
	add	x26, x25, #4
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24, x23, lsl #2]
	add	w8, w8, w21
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x24, x23, lsl #2]
	bl	_cond_resched
	ldr	x8, [x20, #16]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x9, [x8, #8]
	add	x22, x22, #24
	cmp	x23, x9
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #16]
	ldr	x10, [x9, x22]
	ldr	x11, [x20, #8]
	cmp	x10, x11
	b.gt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x9, x22
	ldr	x8, [x27, #16]
	add	x1, x8, x25
	mov	x0, x20
	bl	_ar8xxx_read
	mov	x21, x0
	ldr	w8, [x27, #8]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27, #16]
	add	x1, x26, x8
	mov	x0, x20
	bl	_ar8xxx_read
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w19, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	b	LBB0_3
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ar8xxx_mib_fetch_port_stat
.subsections_via_symbols
