	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad_update_actor_keys
_ad_update_actor_keys:                  ## @ad_update_actor_keys
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	movq	_AD_SPEED_KEY_MASKS@GOTPCREL(%rip), %r15
	movq	_AD_DUPLEX_KEY_MASKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r15), %eax
	notl	%eax
	andl	4(%rdi), %eax
	movl	%eax, 4(%rdi)
	testl	%esi, %esi
	je	LBB0_1
## %bb.4:
	movl	%eax, (%rbx)
	cmpl	%eax, %r12d
	je	LBB0_11
## %bb.5:
	movq	_AD_PORT_LACP_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	jmp	LBB0_11
LBB0_1:
	movq	%rbx, %rdi
	callq	___get_link_speed
	movl	%eax, %r14d
	movl	(%r15), %r15d
	andl	%r12d, %r15d
	movq	%rbx, %rdi
	callq	___get_duplex
	leal	(%r14,%r14), %ecx
	orl	%eax, %ecx
	orl	4(%rbx), %ecx
	movl	%ecx, 4(%rbx)
	movl	%ecx, (%rbx)
	cmpl	%ecx, %r12d
	je	LBB0_11
## %bb.2:
	movq	_AD_PORT_LACP_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	orl	8(%rbx), %ecx
	jmp	LBB0_7
LBB0_3:
	notl	%ecx
	andl	8(%rbx), %ecx
LBB0_7:
	movl	%ecx, 8(%rbx)
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.8:
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	sarl	%r15d
	cmpl	%r14d, %r15d
	je	LBB0_11
## %bb.10:
	movq	_AD_PORT_BEGIN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	16(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movl	12(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_slave_err                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AD_SPEED_KEY_MASKS,4,2         ## @AD_SPEED_KEY_MASKS
	.comm	_AD_DUPLEX_KEY_MASKS,4,2        ## @AD_DUPLEX_KEY_MASKS
	.comm	_AD_PORT_LACP_ENABLED,4,2       ## @AD_PORT_LACP_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"speed changed to 0 on port %d\n"

	.comm	_AD_PORT_BEGIN,4,2              ## @AD_PORT_BEGIN
	.no_dead_strip	_ad_update_actor_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad_update_actor_keys
_ad_update_actor_keys:                  ; @ad_update_actor_keys
	.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
Lloh0:
	adrp	x22, _AD_SPEED_KEY_MASKS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AD_SPEED_KEY_MASKS@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _AD_DUPLEX_KEY_MASKS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AD_DUPLEX_KEY_MASKS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldp	w21, w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0, #4]
	cbz	w1, LBB0_4
; %bb.1:
	str	w8, [x19]
	cmp	w21, w8
	b.eq	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _AD_PORT_LACP_ENABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AD_PORT_LACP_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	___get_link_speed
	mov	x20, x0
	ldr	w22, [x22]
	mov	x0, x19
	bl	___get_duplex
	orr	w8, w0, w20, lsl #1
	ldr	w9, [x19, #4]
	orr	w8, w8, w9
	stp	w8, w8, [x19]
	cmp	w21, w8
	b.ne	LBB0_6
LBB0_5:
	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
LBB0_6:
Lloh8:
	adrp	x8, _AD_PORT_LACP_ENABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AD_PORT_LACP_ENABLED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w0, LBB0_11
; %bb.7:
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	cbz	w20, LBB0_12
LBB0_8:
	cbz	w0, LBB0_5
; %bb.9:
	and	w9, w22, w21
	asr	w9, w9, #1
	cmp	w9, w20
	b.eq	LBB0_5
; %bb.10:
Lloh11:
	adrp	x9, _AD_PORT_BEGIN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AD_PORT_BEGIN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_3
LBB0_11:
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	cbnz	w20, LBB0_8
LBB0_12:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	ldr	w0, [x9]
	ldr	w1, [x8]
	ldr	w3, [x19, #12]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	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
	b	_slave_err
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AD_SPEED_KEY_MASKS,4,2         ; @AD_SPEED_KEY_MASKS
	.comm	_AD_DUPLEX_KEY_MASKS,4,2        ; @AD_DUPLEX_KEY_MASKS
	.comm	_AD_PORT_LACP_ENABLED,4,2       ; @AD_PORT_LACP_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"speed changed to 0 on port %d\n"

	.comm	_AD_PORT_BEGIN,4,2              ; @AD_PORT_BEGIN
	.no_dead_strip	_ad_update_actor_keys
.subsections_via_symbols
