	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lacp_enable_distributing
_lacp_enable_distributing:              ## @lacp_enable_distributing
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	movq	16(%rdi), %r15
	movq	8(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_LACP_LAGIDSTR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r14, %rdi
	callq	_LACP_LOCK_ASSERT
	movq	_LACP_STATE_DISTRIBUTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	testl	%eax, (%r12)
	jne	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%rcx, %r13
	callq	_lacp_format_lagid_aggregator
	movq	(%r15), %rdi
	incq	%rdi
	callq	_LACP_DPRINTF
	movq	8(%r15), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setg	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	leaq	16(%r15), %rdi
	movq	_lp_dist_q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	(%r15), %rax
	incq	%rax
	movq	%rax, (%r15)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movl	(%r13), %eax
	orl	%eax, (%r12)
	cmpq	%r15, (%r14)
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_lacp_select_active_aggregator
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_lacp_suppress_distributing
	movq	%r14, %rdi
	callq	_lacp_update_portmap
LBB0_4:
	movl	8(%rbx), %edi
	cmpq	$0, (%rbx)
	jne	LBB0_5
## %bb.6:
	movq	_LINK_STATE_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	callq	_if_link_state_change
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LACP_LAGIDSTR_MAX,4,2          ## @LACP_LAGIDSTR_MAX
	.comm	_LACP_STATE_DISTRIBUTING,4,2    ## @LACP_STATE_DISTRIBUTING
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"aggregator refcnt invalid"

	.comm	_lp_dist_q,4,2                  ## @lp_dist_q
	.comm	_LINK_STATE_UP,4,2              ## @LINK_STATE_UP
	.comm	_LINK_STATE_DOWN,4,2            ## @LINK_STATE_DOWN
	.no_dead_strip	_lacp_enable_distributing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lacp_enable_distributing
_lacp_enable_distributing:              ; @lacp_enable_distributing
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldp	x19, x20, [x0, #8]
	ldr	x24, [x19, #8]
Lloh3:
	adrp	x8, _LACP_LAGIDSTR_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LACP_LAGIDSTR_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w22, w8, #1
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	mov	x0, x19
	bl	_LACP_LOCK_ASSERT
	ldr	w8, [x21]
Lloh8:
	adrp	x25, _LACP_STATE_DISTRIBUTING@GOTPAGE
Lloh9:
	ldr	x25, [x25, _LACP_STATE_DISTRIBUTING@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_lacp_format_lagid_aggregator
	ldr	x8, [x20]
	add	x0, x8, #1
	bl	_LACP_DPRINTF
	ldp	x9, x8, [x20]
	cmp	x8, x9
	cset	w0, gt
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	add	x0, x20, #16
Lloh12:
	adrp	x8, _lp_dist_q@GOTPAGE
Lloh13:
	ldr	x8, [x8, _lp_dist_q@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_TAILQ_INSERT_HEAD
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	str	x8, [x24]
	ldr	w8, [x25]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	x8, [x19]
	cmp	x8, x20
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_lacp_select_active_aggregator
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_lacp_suppress_distributing
	mov	x0, x19
	bl	_lacp_update_portmap
LBB0_4:
	ldr	w0, [x24, #8]
Lloh15:
	adrp	x8, _LINK_STATE_UP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LINK_STATE_UP@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh17:
	adrp	x10, _LINK_STATE_DOWN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _LINK_STATE_DOWN@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	bl	_if_link_state_change
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LACP_LAGIDSTR_MAX,4,2          ; @LACP_LAGIDSTR_MAX
	.comm	_LACP_STATE_DISTRIBUTING,4,2    ; @LACP_STATE_DISTRIBUTING
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"aggregator refcnt invalid"

	.comm	_lp_dist_q,4,2                  ; @lp_dist_q
	.comm	_LINK_STATE_UP,4,2              ; @LINK_STATE_UP
	.comm	_LINK_STATE_DOWN,4,2            ; @LINK_STATE_DOWN
	.no_dead_strip	_lacp_enable_distributing
.subsections_via_symbols
