	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __update_selected
___update_selected:                     ## @__update_selected
	.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
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.2:
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	callq	_ntohs
	cmpq	8(%r14), %rax
	jne	LBB0_8
## %bb.3:
	movl	16(%rbx), %edi
	callq	_ntohs
	cmpq	16(%r14), %rax
	jne	LBB0_8
## %bb.4:
	leaq	12(%rbx), %rdi
	leaq	44(%r14), %rsi
	callq	_MAC_ADDRESS_COMPARE
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movl	8(%rbx), %edi
	callq	_ntohs
	cmpq	24(%r14), %rax
	jne	LBB0_8
## %bb.6:
	movl	4(%rbx), %edi
	callq	_ntohs
	cmpq	32(%r14), %rax
	jne	LBB0_8
## %bb.7:
	movq	_AD_STATE_AGGREGATION@GOTPCREL(%rip), %rax
	movl	40(%r14), %ecx
	xorl	(%rbx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
LBB0_8:
	movq	_AD_PORT_SELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD_STATE_AGGREGATION,4,2       ## @AD_STATE_AGGREGATION
	.comm	_AD_PORT_SELECTED,4,2           ## @AD_PORT_SELECTED
	.no_dead_strip	___update_selected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __update_selected
___update_selected:                     ; @__update_selected
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_9
; %bb.2:
	mov	x20, x0
	ldr	w0, [x0, #20]
	bl	_ntohs
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x20, #16]
	bl	_ntohs
	ldr	x8, [x19, #16]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	add	x0, x20, #12
	add	x1, x19, #44
	bl	_MAC_ADDRESS_COMPARE
	cbnz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x20, #8]
	bl	_ntohs
	ldr	x8, [x19, #24]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:
	ldr	w0, [x20, #4]
	bl	_ntohs
	ldr	x8, [x19, #32]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _AD_STATE_AGGREGATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AD_STATE_AGGREGATION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x19, #40]
	eor	w8, w10, w8
	tst	w8, w9
	b.eq	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _AD_PORT_SELECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD_PORT_SELECTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AD_STATE_AGGREGATION,4,2       ; @AD_STATE_AGGREGATION
	.comm	_AD_PORT_SELECTED,4,2           ; @AD_PORT_SELECTED
	.no_dead_strip	___update_selected
.subsections_via_symbols
