	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_close
_xgene_enet_close:                      ## @xgene_enet_close
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	24(%rax), %rbx
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r15, %rdi
	callq	*8(%rbx)
	movq	%r15, %rdi
	callq	*(%rbx)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_phy_stop
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_cancel_delayed_work_sync
LBB0_3:
	movq	%r14, %rdi
	callq	_xgene_enet_free_irq
	movq	%r15, %rdi
	callq	_xgene_enet_napi_disable
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movl	$-1, %esi
	callq	_xgene_enet_process_ring
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xgene_enet_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_close
_xgene_enet_close:                      ; @xgene_enet_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x0, #24]
	mov	x0, x20
	bl	_netif_tx_stop_all_queues
	ldr	x8, [x21, #8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x21]
	mov	x0, x19
	blr	x8
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phy_stop
	b	LBB0_3
LBB0_2:
	add	x0, x19, #16
	bl	_cancel_delayed_work_sync
LBB0_3:
	mov	x0, x20
	bl	_xgene_enet_free_irq
	mov	x0, x19
	bl	_xgene_enet_napi_disable
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	mov	w1, #-1
	bl	_xgene_enet_process_ring
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xgene_enet_close
.subsections_via_symbols
