	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bond_3ad_set_carrier           ## -- Begin function bond_3ad_set_carrier
	.p2align	4, 0x90
_bond_3ad_set_carrier:                  ## @bond_3ad_set_carrier
	.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
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%rbx, %rdi
	callq	_bond_first_slave_rcu
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rdi
	callq	_SLAVE_AD_INFO
	movq	%rax, %rdi
	callq	___get_active_agg
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rdi
	callq	___agg_active_ports
	movq	%rax, %r14
	movq	8(%rbx), %r15
	movl	(%rbx), %edi
	callq	_netif_carrier_ok
	cmpq	%r15, %r14
	jl	LBB0_6
## %bb.3:
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movl	(%rbx), %edi
	callq	_netif_carrier_on
	jmp	LBB0_8
LBB0_5:
	movl	(%rbx), %edi
	callq	_netif_carrier_ok
LBB0_6:
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	callq	_netif_carrier_off
LBB0_8:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bond_3ad_set_carrier           ; -- Begin function bond_3ad_set_carrier
	.p2align	2
_bond_3ad_set_carrier:                  ; @bond_3ad_set_carrier
	.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	_rcu_read_lock
	mov	x0, x19
	bl	_bond_first_slave_rcu
	cbz	x0, LBB0_4
; %bb.1:
	bl	_SLAVE_AD_INFO
	bl	___get_active_agg
	cbz	x0, LBB0_5
; %bb.2:
	bl	___agg_active_ports
	mov	x20, x0
	ldr	x21, [x19, #8]
	ldr	w0, [x19]
	bl	_netif_carrier_ok
	cmp	x20, x21
	b.ge	LBB0_7
; %bb.3:
	cbnz	x0, LBB0_6
	b	LBB0_9
LBB0_4:
	mov	w19, #0
	b	LBB0_10
LBB0_5:
	ldr	w0, [x19]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_9
LBB0_6:
	ldr	w0, [x19]
	bl	_netif_carrier_off
	b	LBB0_9
LBB0_7:
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19]
	bl	_netif_carrier_on
LBB0_9:
	mov	w19, #1
LBB0_10:
	bl	_rcu_read_unlock
	mov	x0, x19
	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
.subsections_via_symbols
