	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_phy_power_down
_tlan_phy_power_down:                   ## @tlan_phy_power_down
	.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
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_TLAN_DEBUG_GNRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_TLAN_DBG
	movq	_MII_GC_PDOWN@GOTPCREL(%rip), %rax
	movq	_MII_GC_LOOPBK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_MII_GC_ISOLATE@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	movl	(%r15), %edi
	callq	_tlan_mii_sync
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	_MII_GEN_CTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_tlan_mii_write_reg
	cmpq	$0, 8(%r14)
	jne	LBB0_5
## %bb.1:
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	_TLAN_PHY_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	16(%r14), %rax
	movq	_TLAN_ADAPTER_USE_INTERN_10@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	je	LBB0_4
## %bb.3:
	movl	(%r12), %ebx
LBB0_4:
	movl	(%r15), %edi
	callq	_tlan_mii_sync
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_tlan_mii_write_reg
LBB0_5:
	movl	$50, %edi
	callq	_msecs_to_jiffies
	movq	_TLAN_TIMER_PHY_PUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tlan_set_timer                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_DEBUG_GNRL,4,2            ## @TLAN_DEBUG_GNRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Powering down PHY(s).\n"

	.comm	_MII_GC_PDOWN,4,2               ## @MII_GC_PDOWN
	.comm	_MII_GC_LOOPBK,4,2              ## @MII_GC_LOOPBK
	.comm	_MII_GC_ISOLATE,4,2             ## @MII_GC_ISOLATE
	.comm	_MII_GEN_CTL,4,2                ## @MII_GEN_CTL
	.comm	_TLAN_PHY_NONE,8,3              ## @TLAN_PHY_NONE
	.comm	_TLAN_ADAPTER_USE_INTERN_10,4,2 ## @TLAN_ADAPTER_USE_INTERN_10
	.comm	_TLAN_TIMER_PHY_PUP,4,2         ## @TLAN_TIMER_PHY_PUP
	.no_dead_strip	_tlan_phy_power_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlan_phy_power_down
_tlan_phy_power_down:                   ; @tlan_phy_power_down
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _TLAN_DEBUG_GNRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLAN_DEBUG_GNRL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_TLAN_DBG
Lloh5:
	adrp	x8, _MII_GC_PDOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_GC_PDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MII_GC_LOOPBK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MII_GC_LOOPBK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x22, _MII_GC_ISOLATE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MII_GC_ISOLATE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w21, w8, w9
	ldr	w0, [x19]
	bl	_tlan_mii_sync
	ldp	x8, x9, [x20]
	ldr	x1, [x8, x9, lsl #3]
Lloh13:
	adrp	x23, _MII_GEN_CTL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _MII_GEN_CTL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x3, x21
	bl	_tlan_mii_write_reg
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh15:
	adrp	x9, _TLAN_PHY_NONE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TLAN_PHY_NONE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
Lloh18:
	adrp	x9, _TLAN_ADAPTER_USE_INTERN_10@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TLAN_ADAPTER_USE_INTERN_10@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	ldr	w10, [x22]
	tst	w9, w8
	csel	w21, w21, w10, eq
	ldr	w0, [x19]
	bl	_tlan_mii_sync
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x3, x21
	bl	_tlan_mii_write_reg
LBB0_3:
	mov	w0, #50
	bl	_msecs_to_jiffies
	mov	x1, x0
Lloh21:
	adrp	x8, _TLAN_TIMER_PHY_PUP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TLAN_TIMER_PHY_PUP@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	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
	b	_tlan_set_timer
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_DEBUG_GNRL,4,2            ; @TLAN_DEBUG_GNRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Powering down PHY(s).\n"

	.comm	_MII_GC_PDOWN,4,2               ; @MII_GC_PDOWN
	.comm	_MII_GC_LOOPBK,4,2              ; @MII_GC_LOOPBK
	.comm	_MII_GC_ISOLATE,4,2             ; @MII_GC_ISOLATE
	.comm	_MII_GEN_CTL,4,2                ; @MII_GEN_CTL
	.comm	_TLAN_PHY_NONE,8,3              ; @TLAN_PHY_NONE
	.comm	_TLAN_ADAPTER_USE_INTERN_10,4,2 ; @TLAN_ADAPTER_USE_INTERN_10
	.comm	_TLAN_TIMER_PHY_PUP,4,2         ; @TLAN_TIMER_PHY_PUP
	.no_dead_strip	_tlan_phy_power_down
.subsections_via_symbols
