	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_hw_down
_sky2_hw_down:                          ## @sky2_hw_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, %r14
	movq	16(%rdi), %r12
	movl	(%rdi), %r15d
	movq	_GMAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_SK_REG
	movq	_GMC_PAUSE_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	_txqaddr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %edi
	movq	_Q_CSR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_Q_ADDR
	movq	_BMU_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %edi
	movl	(%r13), %esi
	callq	_Q_ADDR
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_read32
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %edi
	movq	_RB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RB_ADDR
	movq	_RB_RST_SET@GOTPCREL(%rip), %rcx
	movq	_RB_DIS_OP_MD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	_GM_GP_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_gma_read16
	movq	_GM_GPCR_TX_ENA@GOTPCREL(%rip), %rdx
	movq	_GM_GPCR_RX_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_gma_write16
	movq	_GPHY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_SK_REG
	movq	_GPC_RST_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	(%r12), %rax
	movq	_CHIP_ID_YUKON_XL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.2:
	cmpq	$0, 8(%r12)
	jne	LBB0_5
## %bb.3:
	movq	16(%r12), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_netif_running
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	_GMAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_SK_REG
	movq	_GMC_RST_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
LBB0_6:
	movq	_RX_GMF_CTRL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_SK_REG
	movq	_GMF_RST_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	_STAT_LEV_TIMER_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sky2_write32
	movq	_STAT_TX_TIMER_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sky2_write32
	movq	_STAT_ISR_TIMER_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sky2_write32
	movq	_STAT_ISR_TIMER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sky2_read8
	movq	%r14, %rdi
	callq	_sky2_rx_stop
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_sky2_phy_power_down
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_sky2_tx_reset
	movl	4(%r14), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sky2_tx_complete               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_CTRL,4,2                  ## @GMAC_CTRL
	.comm	_GMC_PAUSE_OFF,4,2              ## @GMC_PAUSE_OFF
	.comm	_txqaddr,8,3                    ## @txqaddr
	.comm	_Q_CSR,4,2                      ## @Q_CSR
	.comm	_BMU_STOP,4,2                   ## @BMU_STOP
	.comm	_RB_CTRL,4,2                    ## @RB_CTRL
	.comm	_RB_RST_SET,4,2                 ## @RB_RST_SET
	.comm	_RB_DIS_OP_MD,4,2               ## @RB_DIS_OP_MD
	.comm	_GM_GP_CTRL,4,2                 ## @GM_GP_CTRL
	.comm	_GM_GPCR_TX_ENA,4,2             ## @GM_GPCR_TX_ENA
	.comm	_GM_GPCR_RX_ENA,4,2             ## @GM_GPCR_RX_ENA
	.comm	_GPHY_CTRL,4,2                  ## @GPHY_CTRL
	.comm	_GPC_RST_SET,4,2                ## @GPC_RST_SET
	.comm	_CHIP_ID_YUKON_XL,8,3           ## @CHIP_ID_YUKON_XL
	.comm	_GMC_RST_SET,4,2                ## @GMC_RST_SET
	.comm	_RX_GMF_CTRL_T,4,2              ## @RX_GMF_CTRL_T
	.comm	_GMF_RST_SET,4,2                ## @GMF_RST_SET
	.comm	_STAT_LEV_TIMER_CNT,4,2         ## @STAT_LEV_TIMER_CNT
	.comm	_STAT_TX_TIMER_CNT,4,2          ## @STAT_TX_TIMER_CNT
	.comm	_STAT_ISR_TIMER_CNT,4,2         ## @STAT_ISR_TIMER_CNT
	.comm	_STAT_ISR_TIMER_CTRL,4,2        ## @STAT_ISR_TIMER_CTRL
	.no_dead_strip	_sky2_hw_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_hw_down
_sky2_hw_down:                          ; @sky2_hw_down
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w21, [x0]
Lloh0:
	adrp	x22, _GMAC_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GMAC_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_SK_REG
	mov	x1, x0
Lloh2:
	adrp	x8, _GMC_PAUSE_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GMC_PAUSE_OFF@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sky2_write8
Lloh5:
	adrp	x23, _txqaddr@GOTPAGE
Lloh6:
	ldr	x23, [x23, _txqaddr@GOTPAGEOFF]
	ldr	x8, [x23]
	lsl	x24, x21, #2
	ldr	w0, [x8, x24]
Lloh7:
	adrp	x25, _Q_CSR@GOTPAGE
Lloh8:
	ldr	x25, [x25, _Q_CSR@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_Q_ADDR
	mov	x1, x0
Lloh9:
	adrp	x8, _BMU_STOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMU_STOP@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sky2_write32
	ldr	x8, [x23]
	ldr	w0, [x8, x24]
	ldr	w1, [x25]
	bl	_Q_ADDR
	mov	x1, x0
	mov	x0, x20
	bl	_sky2_read32
	ldr	x8, [x23]
	ldr	w0, [x8, x24]
Lloh12:
	adrp	x8, _RB_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RB_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_RB_ADDR
	mov	x1, x0
Lloh15:
	adrp	x8, _RB_RST_SET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RB_RST_SET@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _RB_DIS_OP_MD@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RB_DIS_OP_MD@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_sky2_write32
Lloh21:
	adrp	x23, _GM_GP_CTRL@GOTPAGE
Lloh22:
	ldr	x23, [x23, _GM_GP_CTRL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_gma_read16
Lloh23:
	adrp	x8, _GM_GPCR_TX_ENA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GM_GPCR_TX_ENA@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _GM_GPCR_RX_ENA@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GM_GPCR_RX_ENA@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w3, w0, w8
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_gma_write16
Lloh29:
	adrp	x8, _GPHY_CTRL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GPHY_CTRL@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SK_REG
	mov	x1, x0
Lloh32:
	adrp	x8, _GPC_RST_SET@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GPC_RST_SET@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sky2_write8
	ldr	x8, [x20]
Lloh35:
	adrp	x9, _CHIP_ID_YUKON_XL@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CHIP_ID_YUKON_XL@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	cbnz	w21, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_netif_running
	cbnz	x0, LBB0_6
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_SK_REG
	mov	x1, x0
Lloh38:
	adrp	x8, _GMC_RST_SET@GOTPAGE
Lloh39:
	ldr	x8, [x8, _GMC_RST_SET@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sky2_write8
LBB0_6:
Lloh41:
	adrp	x8, _RX_GMF_CTRL_T@GOTPAGE
Lloh42:
	ldr	x8, [x8, _RX_GMF_CTRL_T@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SK_REG
	mov	x1, x0
Lloh44:
	adrp	x8, _GMF_RST_SET@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GMF_RST_SET@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sky2_write8
Lloh47:
	adrp	x8, _STAT_LEV_TIMER_CNT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _STAT_LEV_TIMER_CNT@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_sky2_write32
Lloh50:
	adrp	x8, _STAT_TX_TIMER_CNT@GOTPAGE
Lloh51:
	ldr	x8, [x8, _STAT_TX_TIMER_CNT@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_sky2_write32
Lloh53:
	adrp	x8, _STAT_ISR_TIMER_CNT@GOTPAGE
Lloh54:
	ldr	x8, [x8, _STAT_ISR_TIMER_CNT@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_sky2_write32
Lloh56:
	adrp	x8, _STAT_ISR_TIMER_CTRL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _STAT_ISR_TIMER_CTRL@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sky2_read8
	mov	x0, x19
	bl	_sky2_rx_stop
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_bh
	mov	x0, x20
	mov	x1, x21
	bl	_sky2_phy_power_down
	mov	x0, x22
	bl	_spin_unlock_bh
	mov	x0, x20
	mov	x1, x21
	bl	_sky2_tx_reset
	ldr	w1, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_sky2_tx_complete
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_CTRL,4,2                  ; @GMAC_CTRL
	.comm	_GMC_PAUSE_OFF,4,2              ; @GMC_PAUSE_OFF
	.comm	_txqaddr,8,3                    ; @txqaddr
	.comm	_Q_CSR,4,2                      ; @Q_CSR
	.comm	_BMU_STOP,4,2                   ; @BMU_STOP
	.comm	_RB_CTRL,4,2                    ; @RB_CTRL
	.comm	_RB_RST_SET,4,2                 ; @RB_RST_SET
	.comm	_RB_DIS_OP_MD,4,2               ; @RB_DIS_OP_MD
	.comm	_GM_GP_CTRL,4,2                 ; @GM_GP_CTRL
	.comm	_GM_GPCR_TX_ENA,4,2             ; @GM_GPCR_TX_ENA
	.comm	_GM_GPCR_RX_ENA,4,2             ; @GM_GPCR_RX_ENA
	.comm	_GPHY_CTRL,4,2                  ; @GPHY_CTRL
	.comm	_GPC_RST_SET,4,2                ; @GPC_RST_SET
	.comm	_CHIP_ID_YUKON_XL,8,3           ; @CHIP_ID_YUKON_XL
	.comm	_GMC_RST_SET,4,2                ; @GMC_RST_SET
	.comm	_RX_GMF_CTRL_T,4,2              ; @RX_GMF_CTRL_T
	.comm	_GMF_RST_SET,4,2                ; @GMF_RST_SET
	.comm	_STAT_LEV_TIMER_CNT,4,2         ; @STAT_LEV_TIMER_CNT
	.comm	_STAT_TX_TIMER_CNT,4,2          ; @STAT_TX_TIMER_CNT
	.comm	_STAT_ISR_TIMER_CNT,4,2         ; @STAT_ISR_TIMER_CNT
	.comm	_STAT_ISR_TIMER_CTRL,4,2        ; @STAT_ISR_TIMER_CTRL
	.no_dead_strip	_sky2_hw_down
.subsections_via_symbols
