	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_mib_counter
_get_mib_counter:                       ## @get_mib_counter
	.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
	movl	%edx, %r12d
	movq	%rdi, %r14
	movq	_MT7621_MIB_COUNTER_BASE@GOTPCREL(%rip), %rax
	movq	_MT7621_MIB_COUNTER_PORT_OFFSET@GOTPCREL(%rip), %rcx
	imull	(%rcx), %r12d
	addl	(%rax), %r12d
	movq	_mt7621_mibs@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movslq	%esi, %rbx
	shlq	$4, %rbx
	movq	8(%rax,%rbx), %rsi
	addq	%r12, %rsi
	callq	_mt7530_r32
	movl	%eax, %r15d
	movq	(%r13), %rax
	cmpl	$2, (%rax,%rbx)
	jne	LBB0_2
## %bb.1:
	movq	8(%rax,%rbx), %rax
	leaq	(%r12,%rax), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_mt7530_r32
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT7621_MIB_COUNTER_BASE,4,2    ## @MT7621_MIB_COUNTER_BASE
	.comm	_MT7621_MIB_COUNTER_PORT_OFFSET,4,2 ## @MT7621_MIB_COUNTER_PORT_OFFSET
	.comm	_mt7621_mibs,8,3                ## @mt7621_mibs
	.no_dead_strip	_get_mib_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_mib_counter
_get_mib_counter:                       ; @get_mib_counter
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MT7621_MIB_COUNTER_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT7621_MIB_COUNTER_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MT7621_MIB_COUNTER_PORT_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MT7621_MIB_COUNTER_PORT_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x23, _mt7621_mibs@GOTPAGE
Lloh7:
	ldr	x23, [x23, _mt7621_mibs@GOTPAGEOFF]
	madd	w22, w9, w2, w8
	ldr	x8, [x23]
	sbfiz	x24, x20, #4, #32
	add	x8, x8, x24
	ldr	x8, [x8, #8]
	add	x1, x8, x22
	bl	_mt7530_r32
	mov	x21, x0
	ldr	x8, [x23]
	ldr	w9, [x8, x24]
	cmp	w9, #2
	b.ne	LBB0_2
; %bb.1:
	sxtw	x9, w20
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	add	x8, x22, x8
	add	x1, x8, #4
	mov	x0, x19
	bl	_mt7530_r32
LBB0_2:
	mov	x0, x21
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT7621_MIB_COUNTER_BASE,4,2    ; @MT7621_MIB_COUNTER_BASE
	.comm	_MT7621_MIB_COUNTER_PORT_OFFSET,4,2 ; @MT7621_MIB_COUNTER_PORT_OFFSET
	.comm	_mt7621_mibs,8,3                ; @mt7621_mibs
	.no_dead_strip	_get_mib_counter
.subsections_via_symbols
