	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bond_close
_bond_close:                            ## @bond_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
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %r14
	cmpl	$130, 16(%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_bond_unregister_lacpdu
LBB0_2:
	cmpq	$0, 24(%r14)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 40(%r14)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_bond_unregister_arp
LBB0_5:
	leaq	56(%r15), %rbx
	movq	%rbx, %rdi
	callq	_write_lock_bh
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r14)
	movl	$1, (%r14)
	movq	%rbx, %rdi
	callq	_write_unlock_bh
	cmpq	$0, 32(%r14)
	je	LBB0_7
## %bb.6:
	leaq	52(%r15), %rdi
	callq	_cancel_delayed_work
LBB0_7:
	cmpq	$0, 24(%r14)
	je	LBB0_9
## %bb.8:
	leaq	48(%r15), %rdi
	callq	_cancel_delayed_work
LBB0_9:
	movl	16(%r14), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_10
## %bb.12:
	leaq	8(%r15), %rdi
	jmp	LBB0_13
LBB0_10:
	cmpl	$130, %eax
	jne	LBB0_14
## %bb.11:
	leaq	12(%r15), %rdi
LBB0_13:
	callq	_cancel_delayed_work
LBB0_14:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_delayed_work_pending
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_cancel_delayed_work
LBB0_16:
	movq	%r14, %rdi
	callq	_bond_is_lb
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_bond_alb_deinitialize
LBB0_18:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bond_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bond_close
_bond_close:                            ; @bond_close
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x0, #16]
	cmp	w8, #130
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_bond_unregister_lacpdu
LBB0_2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_bond_unregister_arp
LBB0_5:
	add	x20, x19, #56
	mov	x0, x20
	bl	_write_lock_bh
	stp	xzr, xzr, [x19, #64]
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_write_unlock_bh
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.6:
	add	x0, x19, #52
	bl	_cancel_delayed_work
LBB0_7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.8:
	add	x0, x19, #48
	bl	_cancel_delayed_work
LBB0_9:
	ldr	w8, [x19, #16]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_11
; %bb.10:
	add	x0, x19, #8
	b	LBB0_13
LBB0_11:
	cmp	w8, #130
	b.ne	LBB0_14
; %bb.12:
	add	x0, x19, #12
LBB0_13:
	bl	_cancel_delayed_work
LBB0_14:
	add	x20, x19, #4
	mov	x0, x20
	bl	_delayed_work_pending
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_cancel_delayed_work
LBB0_16:
	mov	x0, x19
	bl	_bond_is_lb
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_bond_alb_deinitialize
LBB0_18:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bond_close
.subsections_via_symbols
