	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6060_switch_reset
_mv88e6060_switch_reset:                ## @mv88e6060_switch_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%edi, %edi
	callq	_REG_PORT
	movl	%eax, %edi
	movl	$4, %esi
	callq	_REG_READ
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_REG_PORT
	andl	$65532, %ebx                    ## imm = 0xFFFC
	movl	%eax, %edi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE
	movl	$1, %edi
	callq	_REG_PORT
	movl	%eax, %edi
	movl	$4, %esi
	callq	_REG_READ
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_REG_PORT
	andl	$65532, %ebx                    ## imm = 0xFFFC
	movl	%eax, %edi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE
	movl	$2, %edi
	callq	_REG_PORT
	movl	%eax, %edi
	movl	$4, %esi
	callq	_REG_READ
	movl	%eax, %ebx
	movl	$2, %edi
	callq	_REG_PORT
	andl	$65532, %ebx                    ## imm = 0xFFFC
	movl	%eax, %edi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE
	movl	$3, %edi
	callq	_REG_PORT
	movl	%eax, %edi
	movl	$4, %esi
	callq	_REG_READ
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_REG_PORT
	andl	$65532, %ebx                    ## imm = 0xFFFC
	movl	%eax, %edi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE
	movl	$4, %edi
	callq	_REG_PORT
	movl	%eax, %edi
	movl	$4, %esi
	callq	_REG_READ
	movl	%eax, %ebx
	movl	$4, %edi
	callq	_REG_PORT
	andl	$65532, %ebx                    ## imm = 0xFFFC
	movl	%eax, %edi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE
	movl	$5, %edi
	callq	_REG_PORT
	movl	%eax, %edi
	movl	$4, %esi
	callq	_REG_READ
	movl	%eax, %ebx
	movl	$5, %edi
	callq	_REG_PORT
	andl	$65532, %ebx                    ## imm = 0xFFFC
	movl	%eax, %edi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE
	movl	$2, %edi
	callq	_msleep
	movq	_REG_GLOBAL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$10, %esi
	movl	$41264, %edx                    ## imm = 0xA130
	callq	_REG_WRITE
	movl	$1000, %ebx                     ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_REG_READ
	testl	$32768, %eax                    ## imm = 0x8000
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_1
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jne	LBB0_5
LBB0_4:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_GLOBAL,4,2                 ## @REG_GLOBAL
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_mv88e6060_switch_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6060_switch_reset
_mv88e6060_switch_reset:                ; @mv88e6060_switch_reset
	.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	w0, #0
	bl	_REG_PORT
	mov	w1, #4
	bl	_REG_READ
	mov	x19, x0
	mov	w0, #0
	bl	_REG_PORT
	and	w2, w19, #0xfffc
	mov	w1, #4
	bl	_REG_WRITE
	mov	w0, #1
	bl	_REG_PORT
	mov	w1, #4
	bl	_REG_READ
	mov	x19, x0
	mov	w0, #1
	bl	_REG_PORT
	and	w2, w19, #0xfffc
	mov	w1, #4
	bl	_REG_WRITE
	mov	w0, #2
	bl	_REG_PORT
	mov	w1, #4
	bl	_REG_READ
	mov	x19, x0
	mov	w0, #2
	bl	_REG_PORT
	and	w2, w19, #0xfffc
	mov	w1, #4
	bl	_REG_WRITE
	mov	w0, #3
	bl	_REG_PORT
	mov	w1, #4
	bl	_REG_READ
	mov	x19, x0
	mov	w0, #3
	bl	_REG_PORT
	and	w2, w19, #0xfffc
	mov	w1, #4
	bl	_REG_WRITE
	mov	w0, #4
	bl	_REG_PORT
	mov	w1, #4
	bl	_REG_READ
	mov	x19, x0
	mov	w0, #4
	bl	_REG_PORT
	and	w2, w19, #0xfffc
	mov	w1, #4
	bl	_REG_WRITE
	mov	w0, #5
	bl	_REG_PORT
	mov	w1, #4
	bl	_REG_READ
	mov	x19, x0
	mov	w0, #5
	bl	_REG_PORT
	and	w2, w19, #0xfffc
	mov	w1, #4
	bl	_REG_WRITE
	mov	w0, #2
	bl	_msleep
Lloh0:
	adrp	x19, _REG_GLOBAL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _REG_GLOBAL@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #10
	mov	w2, #41264
	bl	_REG_WRITE
	mov	w20, #1000
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	w1, #0
	bl	_REG_READ
	tbz	w0, #15, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_msleep
	subs	w20, w20, #1
	b.ne	LBB0_1
	b	LBB0_5
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_GLOBAL,4,2                 ; @REG_GLOBAL
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_mv88e6060_switch_reset
.subsections_via_symbols
