	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_stop
_ftgmac100_stop:                        ## @ftgmac100_stop
	.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	_FTGMAC100_OFFSET_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r15), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	%r15, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_napi_disable
	movq	%rbx, %rdi
	callq	_netif_napi_del
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_phy_stop
	jmp	LBB0_4
LBB0_2:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	callq	_ncsi_stop_dev
LBB0_4:
	movq	%r15, %rdi
	callq	_ftgmac100_stop_hw
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	%r15, %rdi
	callq	_ftgmac100_free_buffers
	movq	%r15, %rdi
	callq	_ftgmac100_free_rings
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FTGMAC100_OFFSET_IER,8,3       ## @FTGMAC100_OFFSET_IER
	.no_dead_strip	_ftgmac100_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftgmac100_stop
_ftgmac100_stop:                        ; @ftgmac100_stop
	.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	x8, [x0, #24]
Lloh0:
	adrp	x9, _FTGMAC100_OFFSET_IER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FTGMAC100_OFFSET_IER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32
	mov	x0, x20
	bl	_netif_stop_queue
	add	x21, x19, #16
	mov	x0, x21
	bl	_napi_disable
	mov	x0, x21
	bl	_netif_napi_del
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phy_stop
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_ncsi_stop_dev
LBB0_4:
	mov	x0, x19
	bl	_ftgmac100_stop_hw
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	mov	x0, x19
	bl	_ftgmac100_free_buffers
	mov	x0, x19
	bl	_ftgmac100_free_rings
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FTGMAC100_OFFSET_IER,8,3       ; @FTGMAC100_OFFSET_IER
	.no_dead_strip	_ftgmac100_stop
.subsections_via_symbols
