	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_release
_stmmac_release:                        ## @stmmac_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	cmpq	$0, 48(%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	addq	$44, %rdi
	callq	_del_timer_sync
LBB0_2:
	movl	40(%r15), %edi
	callq	_phylink_stop
	movl	40(%r15), %edi
	callq	_phylink_disconnect_phy
	movq	%r15, %rdi
	callq	_stmmac_stop_all_queues
	movq	%r15, %rdi
	callq	_stmmac_disable_all_queues
	movq	32(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	addq	%r12, %rdi
	callq	_del_timer_sync
	incq	%rbx
	movq	32(%r15), %rax
	addq	$4, %r12
	cmpq	(%rax), %rbx
	jb	LBB0_4
LBB0_5:
	movq	(%r14), %rdi
	movq	%r14, %rsi
	callq	_free_irq
	movq	(%r15), %rdi
	cmpq	(%r14), %rdi
	je	LBB0_7
## %bb.6:
	movq	%r14, %rsi
	callq	_free_irq
LBB0_7:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	jle	LBB0_9
## %bb.8:
	movq	%r14, %rsi
	callq	_free_irq
LBB0_9:
	movq	%r15, %rdi
	callq	_stmmac_stop_all_dma
	movq	%r15, %rdi
	callq	_free_dma_desc_resources
	movl	16(%r15), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_stmmac_mac_set
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r15, %rdi
	callq	_stmmac_release_ptp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stmmac_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_release
_stmmac_release:                        ; @stmmac_release
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x20, #44
	bl	_del_timer_sync
LBB0_2:
	ldr	w0, [x20, #40]
	bl	_phylink_stop
	ldr	w0, [x20, #40]
	bl	_phylink_disconnect_phy
	mov	x0, x20
	bl	_stmmac_stop_all_queues
	mov	x0, x20
	bl	_stmmac_disable_all_queues
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x21, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x0, x8, x21
	bl	_del_timer_sync
	add	x22, x22, #1
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_4
LBB0_5:
	ldr	x0, [x19]
	mov	x1, x19
	bl	_free_irq
	ldr	x0, [x20]
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	mov	x1, x19
	bl	_free_irq
LBB0_7:
	ldr	x0, [x20, #8]
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.8:
	mov	x1, x19
	bl	_free_irq
LBB0_9:
	mov	x0, x20
	bl	_stmmac_stop_all_dma
	mov	x0, x20
	bl	_free_dma_desc_resources
	ldr	w1, [x20, #16]
	mov	x0, x20
	mov	w2, #0
	bl	_stmmac_mac_set
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x20
	bl	_stmmac_release_ptp
	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	_stmmac_release
.subsections_via_symbols
