	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bond_alb_handle_active_change  ## -- Begin function bond_alb_handle_active_change
	.p2align	4, 0x90
_bond_alb_handle_active_change:         ## @bond_alb_handle_active_change
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	8(%rdi), %edi
	callq	_rtnl_dereference
	cmpq	%r14, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	movl	$-1, %esi
	callq	_dev_set_promiscuity
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
LBB0_4:
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_rcu_assign_pointer
	testq	%r14, %r14
	je	LBB0_15
## %bb.5:
	movq	%rbx, %rdi
	callq	_bond_has_slaves
	testl	%eax, %eax
	je	LBB0_15
## %bb.6:
	testq	%r15, %r15
	jne	LBB0_9
## %bb.7:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_bond_slave_has_mac
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_tlb_clear_slave
	xorl	%r13d, %r13d
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_tlb_clear_slave
	movq	%rbx, %rdi
	callq	_BOND_MODE
	movq	_BOND_MODE_TLB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bond_hw_addr_copy
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movl	8(%rax), %edx
	callq	_bond_hw_addr_copy
	movq	(%rbx), %rax
	movl	12(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	(%r14), %rdi
	leaq	-72(%rbp), %rsi
	xorl	%edx, %edx
	callq	_dev_set_mac_address
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_bond_hw_addr_copy
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_12:
	testb	%r13b, %r13b
	je	LBB0_13
## %bb.14:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_alb_set_slave_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_alb_send_learning_packets
	jmp	LBB0_15
LBB0_13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_alb_swap_mac_addr
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_alb_fasten_mac_swap
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movb	$1, %r13b
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BOND_MODE_TLB,8,3              ## @BOND_MODE_TLB
	.comm	_MAX_ADDR_LEN,4,2               ## @MAX_ADDR_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bond_alb_handle_active_change  ; -- Begin function bond_alb_handle_active_change
	.p2align	2
_bond_alb_handle_active_change:         ; @bond_alb_handle_active_change
	.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
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w0, [x0, #8]
	bl	_rtnl_dereference
	cmp	x0, x19
	b.eq	LBB0_14
; %bb.1:
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x21]
	mov	w1, #-1
	bl	_dev_set_promiscuity
	stp	xzr, xzr, [x20, #16]
LBB0_4:
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_rcu_assign_pointer
	cbz	x19, LBB0_14
; %bb.5:
	mov	x0, x20
	bl	_bond_has_slaves
	cbz	w0, LBB0_14
; %bb.6:
	cbnz	x21, LBB0_8
; %bb.7:
	ldr	x8, [x20]
	ldr	x1, [x8]
	mov	x0, x20
	bl	_bond_slave_has_mac
	mov	x21, x0
	cbz	x0, LBB0_16
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_tlb_clear_slave
	mov	w23, #0
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_tlb_clear_slave
	mov	x0, x20
	bl	_BOND_MODE
Lloh3:
	adrp	x8, _BOND_MODE_TLB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BOND_MODE_TLB@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x24, sp
Lloh6:
	adrp	x8, _MAX_ADDR_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_ADDR_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	mov	x0, x22
	bl	_bond_hw_addr_copy
	ldr	x8, [x20]
	ldr	x1, [x8]
	ldr	w2, [x8, #8]
	bl	_bond_hw_addr_copy
	ldr	x8, [x20]
	ldr	w8, [x8, #12]
	stur	w8, [x29, #-72]
	ldr	x0, [x19]
	sub	x1, x29, #72
	mov	x2, #0
	bl	_dev_set_mac_address
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	ldr	w2, [x8]
	mov	x1, x22
	bl	_bond_hw_addr_copy
	mov	sp, x24
LBB0_11:
	tbz	w23, #0, LBB0_13
; %bb.12:
	ldr	x8, [x20]
	ldr	x1, [x8]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_alb_set_slave_mac_addr
	ldr	x8, [x20]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_alb_send_learning_packets
	b	LBB0_14
LBB0_13:
	mov	x0, x21
	mov	x1, x19
	bl	_alb_swap_mac_addr
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_alb_fasten_mac_swap
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	sub	sp, x29, #48
	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_16:
	mov	w23, #1
	b	LBB0_9
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BOND_MODE_TLB,8,3              ; @BOND_MODE_TLB
	.comm	_MAX_ADDR_LEN,4,2               ; @MAX_ADDR_LEN
.subsections_via_symbols
