	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8366s_sw_reset_port_mibs
_rtl8366s_sw_reset_port_mibs:           ## @rtl8366s_sw_reset_port_mibs
	.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	%rdx, %rbx
	callq	_sw_to_rtl8366_smi
	movl	(%rbx), %ecx
	movq	_RTL8366S_NUM_PORTS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_1
## %bb.2:
	movq	_RTL8366S_MIB_CTRL_REG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	addb	$3, %cl
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	%rax, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rtl8366_smi_rmwr               ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8366S_NUM_PORTS,4,2         ## @RTL8366S_NUM_PORTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTL8366S_MIB_CTRL_REG,4,2      ## @RTL8366S_MIB_CTRL_REG
	.no_dead_strip	_rtl8366s_sw_reset_port_mibs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8366s_sw_reset_port_mibs
_rtl8366s_sw_reset_port_mibs:           ; @rtl8366s_sw_reset_port_mibs
	.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, x2
	bl	_sw_to_rtl8366_smi
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _RTL8366S_NUM_PORTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL8366S_NUM_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _RTL8366S_MIB_CTRL_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTL8366S_MIB_CTRL_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	w8, w8, #3
	mov	w9, #1
	lsl	w3, w9, w8
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl8366_smi_rmwr
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8366S_NUM_PORTS,4,2         ; @RTL8366S_NUM_PORTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTL8366S_MIB_CTRL_REG,4,2      ; @RTL8366S_MIB_CTRL_REG
	.no_dead_strip	_rtl8366s_sw_reset_port_mibs
.subsections_via_symbols
