	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgscan_learn_add_neighbor
_bgscan_learn_add_neighbor:             ## @bgscan_learn_add_neighbor
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	movq	%r14, %rdx
	callq	_bssid_in_array
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	incl	%esi
	movl	(%r12), %edx
	callq	_os_realloc_array
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	movslq	(%rbx), %rax
	movslq	(%r12), %rdx
	imulq	%rdx, %rax
	leaq	(%r15,%rax,4), %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movq	%r15, 8(%rbx)
	incl	(%rbx)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_bgscan_learn_add_neighbor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgscan_learn_add_neighbor
_bgscan_learn_add_neighbor:             ; @bgscan_learn_add_neighbor
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_os_memcmp
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	mov	x2, x20
	bl	_bssid_in_array
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	add	w1, w8, #1
	ldr	w2, [x22]
	bl	_os_realloc_array
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w8, [x19]
	ldr	w2, [x22]
	mul	w8, w2, w8
	add	x0, x0, w8, sxtw #2
	mov	x1, x20
	bl	_os_memcpy
	str	x21, [x19, #8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_bgscan_learn_add_neighbor
.subsections_via_symbols
