	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lacp_sm_tx
_lacp_sm_tx:                            ## @lacp_sm_tx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_LACP_STATE_AGGREGATION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_LACP_STATE_ACTIVITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_4
## %bb.2:
	testl	%ecx, 32(%rbx)
	jne	LBB0_4
LBB0_3:
	movq	_LACP_PORT_NTT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
LBB0_4:
	movq	_LACP_PORT_NTT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_12
## %bb.5:
	leaq	28(%rbx), %rdi
	leaq	24(%rbx), %rsi
	movq	_LACP_FAST_PERIODIC_TIME@GOTPCREL(%rip), %rcx
	movl	$3, %eax
	xorl	%edx, %edx
	idivl	(%rcx)
	movl	%eax, %edx
	callq	_ppsratecheck
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_LACP_TPRINTF
LBB0_11:
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_10:
	movq	%rbx, %rdi
	callq	_lacp_xmit_lacpdu
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	movslq	%eax, %rdi
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_LACP_DPRINTF                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LACP_STATE_AGGREGATION,4,2     ## @LACP_STATE_AGGREGATION
	.comm	_LACP_STATE_ACTIVITY,4,2        ## @LACP_STATE_ACTIVITY
	.comm	_LACP_PORT_NTT,4,2              ## @LACP_PORT_NTT
	.comm	_LACP_FAST_PERIODIC_TIME,4,2    ## @LACP_FAST_PERIODIC_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rate limited pdu\n"

L_.str.1:                               ## @.str.1
	.asciz	"Dropping TX PDU\n"

	.no_dead_strip	_lacp_sm_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lacp_sm_tx
_lacp_sm_tx:                            ; @lacp_sm_tx
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _LACP_STATE_AGGREGATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LACP_STATE_AGGREGATION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x20, _LACP_PORT_NTT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _LACP_PORT_NTT@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, _LACP_STATE_ACTIVITY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LACP_STATE_ACTIVITY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19, #32]
	tst	w8, w9
	b.ne	LBB0_4
LBB0_3:
	ldr	w8, [x20]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
	ldr	w8, [x19, #4]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:
	add	x0, x19, #28
	add	x1, x19, #24
Lloh8:
	adrp	x8, _LACP_FAST_PERIODIC_TIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LACP_FAST_PERIODIC_TIME@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #3
	sdiv	w2, w9, w8
	bl	_ppsratecheck
	cbz	x0, LBB0_10
; %bb.6:
	ldp	x9, x8, [x19, #8]
	ldr	w8, [x8]
	ldr	w9, [x9]
	lsr	w8, w9, w8
	tbz	w8, #0, LBB0_11
; %bb.7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LACP_TPRINTF
LBB0_8:
	ldr	w8, [x20]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_lacp_xmit_lacpdu
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.12:
	sxtw	x0, w0
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LACP_DPRINTF
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LACP_STATE_AGGREGATION,4,2     ; @LACP_STATE_AGGREGATION
	.comm	_LACP_STATE_ACTIVITY,4,2        ; @LACP_STATE_ACTIVITY
	.comm	_LACP_PORT_NTT,4,2              ; @LACP_PORT_NTT
	.comm	_LACP_FAST_PERIODIC_TIME,4,2    ; @LACP_FAST_PERIODIC_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rate limited pdu\n"

l_.str.1:                               ; @.str.1
	.asciz	"Dropping TX PDU\n"

	.no_dead_strip	_lacp_sm_tx
.subsections_via_symbols
