	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sxgbe_release
_sxgbe_release:                         ## @sxgbe_release
	.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
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpq	$0, 24(%rax)
	je	LBB0_2
## %bb.1:
	leaq	20(%rbx), %rdi
	callq	_del_timer_sync
LBB0_2:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_phy_stop
	movq	(%r14), %rdi
	callq	_phy_disconnect
LBB0_4:
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_napi_disable
	movq	%rbx, %rdi
	callq	_sxgbe_tx_del_timer
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	4(%rbx), %edi
	movq	_SXGBE_TX_QUEUES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*8(%rax)
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	4(%rbx), %edi
	movq	_SXGBE_RX_QUEUES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_sxgbe_disable_mtl_engine
	movq	%rbx, %rdi
	callq	_free_dma_desc_resources
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	*8(%rax)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	*(%rax)
	movl	(%rbx), %edi
	callq	_clk_disable_unprepare
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SXGBE_TX_QUEUES,4,2            ## @SXGBE_TX_QUEUES
	.comm	_SXGBE_RX_QUEUES,4,2            ## @SXGBE_RX_QUEUES
	.no_dead_strip	_sxgbe_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sxgbe_release
_sxgbe_release:                         ; @sxgbe_release
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x19, #20
	bl	_del_timer_sync
LBB0_2:
	ldr	x0, [x20]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_phy_stop
	ldr	x0, [x20]
	bl	_phy_disconnect
LBB0_4:
	mov	x0, x20
	bl	_netif_tx_stop_all_queues
	add	x0, x19, #16
	bl	_napi_disable
	mov	x0, x19
	bl	_sxgbe_tx_del_timer
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x9, _SXGBE_TX_QUEUES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SXGBE_TX_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x9, _SXGBE_RX_QUEUES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SXGBE_RX_QUEUES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	blr	x8
	mov	x0, x19
	bl	_sxgbe_disable_mtl_engine
	mov	x0, x19
	bl	_free_dma_desc_resources
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #4]
	mov	w1, #0
	blr	x8
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x19, #4]
	mov	w1, #0
	blr	x8
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SXGBE_TX_QUEUES,4,2            ; @SXGBE_TX_QUEUES
	.comm	_SXGBE_RX_QUEUES,4,2            ; @SXGBE_RX_QUEUES
	.no_dead_strip	_sxgbe_release
.subsections_via_symbols
