	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_read_neighbor_cache
_hci_read_neighbor_cache:               ## @hci_read_neighbor_cache
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_NG_HCI_MAX_NEIGHBOR_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -56(%rbp)
	movl	$4, %esi
	callq	_calloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_SIOC_HCI_RAW_NODE_GET_NEIGHBOR_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	%r14d, %edi
	movl	$16, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	_stdout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	cmpl	$0, -56(%rbp)
	jle	LBB0_8
## %bb.5:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	$36, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	movl	-36(%rdi,%r15), %eax
	addq	%r15, %rdi
	cmpl	$3, %eax
	movl	$3, %ecx
	cmovael	%ecx, %eax
	movl	(%rbx), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	leaq	l_reltable.hci_read_neighbor_cache(%rip), %rcx
	movslq	(%rcx,%rax,4), %rbx
	addq	%rcx, %rbx
	callq	_hci_bdaddr2str
	movq	-48(%rbp), %rcx
	movq	-28(%rcx,%r15), %rdx
	movl	(%rdx), %r8d
	movl	4(%rdx), %r9d
	movl	8(%rdx), %esi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movl	12(%rdx), %esi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	16(%rdx), %esi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	20(%rdx), %esi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	24(%rdx), %esi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	28(%rdx), %r12d
	movl	-20(%rcx,%r15), %r10d
	movl	-16(%rcx,%r15), %r13d
	movl	-12(%rcx,%r15), %r11d
	subq	$8, %rsp
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r13
	pushq	%r10
	pushq	%r12
	movq	_stdout@GOTPCREL(%rip), %rbx
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_fprintf
	addq	$80, %rsp
	movq	-48(%rbp), %rax
	movl	-8(%rax,%r15), %esi
	movl	-4(%rax,%r15), %edi
	callq	_hci_dump_adv
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%r14
	movslq	-56(%rbp), %rax
	addq	$40, %r15
	cmpq	%rax, %r14
	jl	LBB0_6
## %bb.7:
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_8:
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_9:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OK,4,2                         ## @OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"B"

L_.str.1:                               ## @.str.1
	.asciz	"P"

L_.str.2:                               ## @.str.2
	.asciz	"R"

L_.str.3:                               ## @.str.3
	.asciz	"E"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.hci_read_neighbor_cache
l_reltable.hci_read_neighbor_cache:
	.long	L_.str-l_reltable.hci_read_neighbor_cache
	.long	L_.str.1-l_reltable.hci_read_neighbor_cache
	.long	L_.str.2-l_reltable.hci_read_neighbor_cache
	.long	L_.str.3-l_reltable.hci_read_neighbor_cache

	.comm	_NG_HCI_MAX_NEIGHBOR_NUM,4,2    ## @NG_HCI_MAX_NEIGHBOR_NUM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_SIOC_HCI_RAW_NODE_GET_NEIGHBOR_CACHE,4,2 ## @SIOC_HCI_RAW_NODE_GET_NEIGHBOR_CACHE
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"T BD_ADDR           Features                Clock offset Page scan Rep. scan\n"

L_.str.5:                               ## @.str.5
	.asciz	"%1s %-17.17s %02x %02x %02x %02x %02x %02x %02x %02x %#12x %#9x %#9x\n"

L_.str.6:                               ## @.str.6
	.asciz	"\n"

	.no_dead_strip	_hci_read_neighbor_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_read_neighbor_cache
_hci_read_neighbor_cache:               ; @hci_read_neighbor_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, _OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	sub	x0, x29, #96
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _NG_HCI_MAX_NEIGHBOR_NUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_HCI_MAX_NEIGHBOR_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	stur	w0, [x29, #-96]
	mov	w1, #4
	bl	_calloc
	stur	x0, [x29, #-88]
	cbz	x0, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_NEIGHBOR_CACHE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_NEIGHBOR_CACHE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sub	x2, x29, #96
	mov	x0, x20
	mov	w3, #16
	bl	_ioctl
	tbnz	x0, #63, LBB0_6
; %bb.2:
Lloh9:
	adrp	x23, _stdout@GOTPAGE
Lloh10:
	ldr	x23, [x23, _stdout@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldur	w8, [x29, #-96]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x24, #0
	mov	x25, #0
	mov	w26, #3
Lloh13:
	adrp	x27, l___const.hci_read_neighbor_cache.addrtype2str@PAGE
Lloh14:
	add	x27, x27, l___const.hci_read_neighbor_cache.addrtype2str@PAGEOFF
Lloh15:
	adrp	x20, l_.str.5@PAGE
Lloh16:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh17:
	adrp	x21, l_.str.6@PAGE
Lloh18:
	add	x21, x21, l_.str.6@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-88]
	add	x0, x8, x24
	ldr	w8, [x0], #36
	cmp	w8, #3
	csel	w8, w8, w26, lo
	ldr	w22, [x23]
	ldr	x28, [x27, w8, uxtw #3]
	bl	_hci_bdaddr2str
	ldur	x8, [x29, #-88]
	add	x8, x8, x24
	ldr	x9, [x8, #8]
	ldp	w10, w11, [x9]
	ldp	w12, w13, [x9, #8]
	ldp	w14, w15, [x9, #16]
	ldp	w16, w9, [x9, #24]
	ldp	w17, w1, [x8, #16]
	ldr	w8, [x8, #24]
	stp	x1, x8, [sp, #88]
	stp	x9, x17, [sp, #72]
	stp	x15, x16, [sp, #56]
	stp	x13, x14, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x0, x10, [sp, #8]
	str	x28, [sp]
	mov	x0, x22
	mov	x1, x20
	bl	_fprintf
	ldur	x8, [x29, #-88]
	add	x8, x8, x24
	ldp	w1, w0, [x8, #28]
	bl	_hci_dump_adv
	ldr	w0, [x23]
	mov	x1, x21
	bl	_fprintf
	add	x25, x25, #1
	ldursw	x8, [x29, #-96]
	add	x24, x24, #40
	cmp	x25, x8
	b.lt	LBB0_4
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _errno@GOTPAGE
Lloh23:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
	b	LBB0_8
LBB0_6:
Lloh28:
	adrp	x8, _ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
LBB0_7:
	ldur	x0, [x29, #-88]
	bl	_free
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_OK,4,2                         ; @OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"B"

l_.str.1:                               ; @.str.1
	.asciz	"P"

l_.str.2:                               ; @.str.2
	.asciz	"R"

l_.str.3:                               ; @.str.3
	.asciz	"E"

	.section	__DATA,__const
	.p2align	3                               ; @__const.hci_read_neighbor_cache.addrtype2str
l___const.hci_read_neighbor_cache.addrtype2str:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.comm	_NG_HCI_MAX_NEIGHBOR_NUM,4,2    ; @NG_HCI_MAX_NEIGHBOR_NUM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_SIOC_HCI_RAW_NODE_GET_NEIGHBOR_CACHE,4,2 ; @SIOC_HCI_RAW_NODE_GET_NEIGHBOR_CACHE
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"T BD_ADDR           Features                Clock offset Page scan Rep. scan\n"

l_.str.5:                               ; @.str.5
	.asciz	"%1s %-17.17s %02x %02x %02x %02x %02x %02x %02x %02x %#12x %#9x %#9x\n"

l_.str.6:                               ; @.str.6
	.asciz	"\n"

	.no_dead_strip	_hci_read_neighbor_cache
.subsections_via_symbols
