	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lacp_linkstate                 ## -- Begin function lacp_linkstate
	.p2align	4, 0x90
_lacp_linkstate:                        ## @lacp_linkstate
	.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, %rbx
	callq	_LACP_PORT
	movq	%rax, %r15
	movq	32(%rax), %r14
	movq	(%rbx), %r13
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_bzero
	movq	_SIOCGIFXMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	*(%r13)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_bzero
	movq	_SIOCGIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	*(%r13)
	testl	%eax, %eax
	jne	LBB0_11
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_LACP_LOCK
	movl	-48(%rbp), %ebx
	movl	%ebx, %edi
	callq	_IFM_TYPE
	movq	8(%r13), %rax
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_LACP_DPRINTF
	movq	8(%r15), %r14
	movq	16(%r15), %r12
	movl	%ebx, (%r15)
	movl	%ebx, %edi
	callq	_IFM_TYPE
	movq	_IFM_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_IFM_FDX@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	8(%r13), %rax
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_lacp_port_enable
	jmp	LBB0_7
LBB0_5:
	movq	%r15, %rdi
	callq	_lacp_port_disable
LBB0_7:
	movq	%r15, %rdi
	callq	_lacp_compose_key
	movq	%rax, 16(%r15)
	cmpq	8(%r15), %r14
	jne	LBB0_9
## %bb.8:
	cmpq	%rax, %r12
	je	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_LACP_DPRINTF
	movq	_LACP_UNSELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_LACP_UNLOCK
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCGIFXMEDIA,4,2              ## @SIOCGIFXMEDIA
	.comm	_SIOCGIFMEDIA,4,2               ## @SIOCGIFMEDIA
	.comm	_IFM_ETHER,8,3                  ## @IFM_ETHER
	.comm	_IFM_FDX,4,2                    ## @IFM_FDX
	.comm	_LINK_STATE_UP,8,3              ## @LINK_STATE_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"-> UNSELECTED\n"

	.comm	_LACP_UNSELECTED,4,2            ## @LACP_UNSELECTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lacp_linkstate                 ; -- Begin function lacp_linkstate
	.p2align	2
_lacp_linkstate:                        ; @lacp_linkstate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x0
	bl	_LACP_PORT
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldr	x21, [x21]
	add	x0, sp, #8
	mov	w1, #4
	bl	_bzero
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _SIOCGIFXMEDIA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIOCGIFXMEDIA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	w1, #4
	bl	_bzero
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _SIOCGIFMEDIA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIOCGIFMEDIA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x21
	blr	x8
	cbnz	w0, LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_LACP_LOCK
	ldr	w22, [sp, #8]
	mov	x0, x22
	bl	_IFM_TYPE
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x25, _LINK_STATE_UP@GOTPAGE
Lloh7:
	ldr	x25, [x25, _LINK_STATE_UP@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, eq
	bl	_LACP_DPRINTF
	ldp	x24, x23, [x20, #8]
	str	w22, [x20]
	mov	x0, x22
	bl	_IFM_TYPE
Lloh8:
	adrp	x8, _IFM_ETHER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IFM_ETHER@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _IFM_FDX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFM_FDX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_lacp_port_enable
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_lacp_port_disable
LBB0_7:
	mov	x0, x20
	bl	_lacp_compose_key
	str	x0, [x20, #16]
	ldr	x8, [x20, #8]
	cmp	x24, x8
	b.ne	LBB0_9
; %bb.8:
	cmp	x23, x0
	b.eq	LBB0_10
LBB0_9:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LACP_DPRINTF
Lloh16:
	adrp	x8, _LACP_UNSELECTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LACP_UNSELECTED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #24]
LBB0_10:
	mov	x0, x19
	bl	_LACP_UNLOCK
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCGIFXMEDIA,4,2              ; @SIOCGIFXMEDIA
	.comm	_SIOCGIFMEDIA,4,2               ; @SIOCGIFMEDIA
	.comm	_IFM_ETHER,8,3                  ; @IFM_ETHER
	.comm	_IFM_FDX,4,2                    ; @IFM_FDX
	.comm	_LINK_STATE_UP,8,3              ; @LINK_STATE_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"-> UNSELECTED\n"

	.comm	_LACP_UNSELECTED,4,2            ; @LACP_UNSELECTED
.subsections_via_symbols
