	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366_sw_reset_switch        ## -- Begin function rtl8366_sw_reset_switch
	.p2align	4, 0x90
_rtl8366_sw_reset_switch:               ## @rtl8366_sw_reset_switch
	.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
	callq	_sw_to_rtl8366_smi
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_rtl8366_reset
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_rtl8366_reset_vlan
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rtl8366_enable_vlan
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rtl8366_enable_all_ports       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366_sw_reset_switch        ; -- Begin function rtl8366_sw_reset_switch
	.p2align	2
_rtl8366_sw_reset_switch:               ; @rtl8366_sw_reset_switch
	.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
	bl	_sw_to_rtl8366_smi
	mov	x19, x0
	bl	_rtl8366_reset
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_rtl8366_reset_vlan
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_rtl8366_enable_vlan
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl8366_enable_all_ports
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
