	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bond_3ad_handle_link_change    ## -- Begin function bond_3ad_handle_link_change
	.p2align	4, 0x90
_bond_3ad_handle_link_change:           ## @bond_3ad_handle_link_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_SLAVE_AD_INFO
	cmpl	$0, 8(%rax)
	movq	(%rbx), %rdi
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	addq	$4, %rdi
	callq	_spin_lock_bh
	movq	_BOND_LINK_UP@GOTPCREL(%rip), %r12
	xorl	%esi, %esi
	xorl	%eax, %eax
	cmpb	%r14b, (%r12)
	setne	%sil
	sete	%al
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_ad_update_actor_keys
	movq	%r15, %rdi
	callq	___get_first_agg
	leaq	-36(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ad_agg_selection_logic
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_bh
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	movl	4(%r15), %ecx
	cmpb	%r14b, (%r12)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rdx
	callq	_slave_dbg
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_bond_update_slave_arr
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%rdi), %edi
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_slave_warn                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link status changed for uninitialized port\n"

	.comm	_BOND_LINK_UP,1,0               ## @BOND_LINK_UP
L_.str.1:                               ## @.str.1
	.asciz	"Port %d changed link status to %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"UP"

L_.str.3:                               ## @.str.3
	.asciz	"DOWN"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bond_3ad_handle_link_change    ; -- Begin function bond_3ad_handle_link_change
	.p2align	2
_bond_3ad_handle_link_change:           ; @bond_3ad_handle_link_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_SLAVE_AD_INFO
	ldr	w9, [x0, #8]
	ldr	x8, [x19]
	cbz	w9, LBB0_2
; %bb.1:
	mov	x20, x0
	and	w21, w21, #0xff
	add	x0, x8, #4
	bl	_spin_lock_bh
Lloh0:
	adrp	x22, _BOND_LINK_UP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BOND_LINK_UP@GOTPAGEOFF]
	ldrb	w8, [x22]
	cmp	w8, w21
	cset	w1, ne
	cset	w8, eq
	str	w8, [x20]
	mov	x0, x20
	bl	_ad_update_actor_keys
	mov	x0, x20
	bl	___get_first_agg
	add	x1, sp, #12
	bl	_ad_agg_selection_logic
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_spin_unlock_bh
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	ldr	w3, [x20, #4]
	ldrb	w8, [x22]
Lloh2:
	adrp	x9, l_.str.3@PAGE
Lloh3:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh4:
	adrp	x10, l_.str.2@PAGE
Lloh5:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, w21
	csel	x4, x10, x9, eq
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_slave_dbg
	ldr	x0, [x19]
	mov	x1, #0
	bl	_bond_update_slave_arr
	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
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	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
	add	sp, sp, #64
	b	_slave_warn
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link status changed for uninitialized port\n"

	.comm	_BOND_LINK_UP,1,0               ; @BOND_LINK_UP
l_.str.1:                               ; @.str.1
	.asciz	"Port %d changed link status to %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"UP"

l_.str.3:                               ; @.str.3
	.asciz	"DOWN"

.subsections_via_symbols
