	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_close
_netdev_close:                          ## @netdev_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	%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, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	24(%rax), %rbx
	leaq	20(%rax), %r13
	leaq	32(%rbx), %r14
	movq	%r15, %rdi
	callq	_netif_stop_queue
	leaq	16(%r12), %rdi
	callq	_ksz_stop_timer
	cmpl	$2, 32(%rbx)
	jl	LBB0_4
## %bb.1:
	movl	(%r13), %esi
	movq	_STP_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_port_set_stp_state
	movq	_STP_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 36(%rbx)
	je	LBB0_4
## %bb.2:
	movl	(%r13), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movq	56(%rbx), %rdx
	movl	(%rdx), %esi
	btl	%ecx, %esi
	jae	LBB0_4
## %bb.3:
	notl	%eax
	andl	%eax, %esi
	movl	%esi, (%rdx)
	movq	%r14, %rdi
	callq	_bridge_change
LBB0_4:
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.5:
	movl	4(%r15), %esi
	movq	%r14, %rdi
	callq	_hw_del_addr
LBB0_6:
	cmpl	$0, 24(%rbx)
	je	LBB0_7
## %bb.8:
	cmpq	$0, 8(%r12)
	je	LBB0_10
LBB0_9:
	decl	52(%rbx)
LBB0_10:
	cmpq	$0, (%r12)
	je	LBB0_12
## %bb.11:
	decl	48(%rbx)
LBB0_12:
	decl	20(%rbx)
	jne	LBB0_15
## %bb.13:
	leaq	16(%rbx), %rdi
	callq	_ksz_stop_timer
	leaq	12(%rbx), %rdi
	callq	_flush_work
	movq	%r14, %rdi
	callq	_hw_dis_intr
	movq	%r14, %rdi
	callq	_hw_disable
	movq	%r14, %rdi
	callq	_hw_clr_multicast
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	$2000, %eax                     ## imm = 0x7D0
	xorl	%edx, %edx
	idivl	(%rcx)
	movl	%eax, %edi
	callq	_msleep
	leaq	8(%rbx), %rdi
	callq	_tasklet_kill
	leaq	4(%rbx), %rdi
	callq	_tasklet_kill
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_free_irq
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_transmit_cleanup
	leaq	44(%rbx), %rdi
	callq	_hw_reset_pkts
	leaq	40(%rbx), %rdi
	callq	_hw_reset_pkts
	movq	_STP_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 36(%rbx)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_sw_clr_sta_mac_table
LBB0_15:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_port_set_power_saving
	cmpq	$0, 8(%r12)
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_STP_STATE_DISABLED,4,2         ## @STP_STATE_DISABLED
	.comm	_STP_SUPPORT,4,2                ## @STP_SUPPORT
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_netdev_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_close
_netdev_close:                          ; @netdev_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	bl	_netdev_priv
	mov	x22, x0
	ldr	x19, [x0, #24]
	add	x23, x0, #20
	mov	x0, x21
	bl	_netif_stop_queue
	add	x0, x22, #16
	bl	_ksz_stop_timer
	mov	x20, x19
	ldr	w8, [x20, #32]!
	cmp	w8, #1
	b.le	LBB0_4
; %bb.1:
	ldr	w1, [x23]
Lloh0:
	adrp	x8, _STP_STATE_DISABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STP_STATE_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_port_set_stp_state
	ldr	w8, [x19, #36]
Lloh3:
	adrp	x9, _STP_SUPPORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STP_SUPPORT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x23]
	mov	w9, #1
	lsl	w9, w9, w8
	ldr	x8, [x19, #56]
	ldr	w10, [x8]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	bic	w9, w10, w9
	str	w9, [x8]
	mov	x0, x20
	bl	_bridge_change
LBB0_4:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_hw_del_addr
LBB0_6:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_15
; %bb.7:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_9
LBB0_8:
	ldr	w8, [x19, #52]
	sub	w8, w8, #1
	str	w8, [x19, #52]
LBB0_9:
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w8, [x19, #48]
	sub	w8, w8, #1
	str	w8, [x19, #48]
LBB0_11:
	ldr	w8, [x19, #20]
	subs	w8, w8, #1
	str	w8, [x19, #20]
	b.ne	LBB0_14
; %bb.12:
	add	x0, x19, #16
	bl	_ksz_stop_timer
	add	x0, x19, #12
	bl	_flush_work
	mov	x0, x20
	bl	_hw_dis_intr
	mov	x0, x20
	bl	_hw_disable
	mov	x0, x20
	bl	_hw_clr_multicast
Lloh6:
	adrp	x8, _HZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #2000
	sdiv	w0, w9, w8
	bl	_msleep
	add	x0, x19, #8
	bl	_tasklet_kill
	add	x0, x19, #4
	bl	_tasklet_kill
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_free_irq
	mov	x0, x19
	mov	w1, #0
	bl	_transmit_cleanup
	add	x0, x19, #44
	bl	_hw_reset_pkts
	add	x0, x19, #40
	bl	_hw_reset_pkts
	ldr	w8, [x19, #36]
Lloh9:
	adrp	x9, _STP_SUPPORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STP_SUPPORT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_sw_clr_sta_mac_table
LBB0_14:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x23
	mov	w1, #1
	bl	_port_set_power_saving
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STP_STATE_DISABLED,4,2         ; @STP_STATE_DISABLED
	.comm	_STP_SUPPORT,4,2                ; @STP_SUPPORT
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_netdev_close
.subsections_via_symbols
