	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_read_node_list             ## -- Begin function hci_read_node_list
	.p2align	4, 0x90
_hci_read_node_list:                    ## @hci_read_node_list
	.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
	movl	%edi, %ebx
	movq	_MAX_NODE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -56(%rbp)
	movl	$16, %esi
	callq	_calloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_SIOC_HCI_RAW_NODE_LIST_NAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %edi
	movl	$16, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	_stdout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_OK@GOTPCREL(%rip), %r14
	cmpl	$0, -56(%rbp)
	jle	LBB0_7
## %bb.5:
	movl	$12, %ebx
	leaq	L_.str.1(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	-48(%rbp), %rax
	movq	-12(%rax,%rbx), %rdx
	movl	-4(%rax,%rbx), %ecx
	movl	(%rax,%rbx), %r8d
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%r13
	movslq	-56(%rbp), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movq	_ERROR@GOTPCREL(%rip), %r14
	jmp	LBB0_8
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %r14
LBB0_7:
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_8:
	movl	(%r14), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NODE_NUM,4,2               ## @MAX_NODE_NUM
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_SIOC_HCI_RAW_NODE_LIST_NAMES,4,2 ## @SIOC_HCI_RAW_NODE_LIST_NAMES
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Name            ID       Num hooks\n"

L_.str.1:                               ## @.str.1
	.asciz	"%-15s %08x %9d\n"

	.comm	_OK,4,2                         ## @OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_read_node_list             ; -- Begin function hci_read_node_list
	.p2align	2
_hci_read_node_list:                    ; @hci_read_node_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_NODE_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_NODE_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [sp, #32]
	mov	w1, #16
	bl	_calloc
	str	x0, [sp, #40]
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _SIOC_HCI_RAW_NODE_LIST_NAMES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_LIST_NAMES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	mov	w3, #16
	bl	_ioctl
	tbnz	x0, #63, LBB0_6
; %bb.2:
Lloh6:
	adrp	x21, _stdout@GOTPAGE
Lloh7:
	ldr	x21, [x21, _stdout@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
	mov	x23, #0
Lloh10:
	adrp	x20, _OK@GOTPAGE
Lloh11:
	ldr	x20, [x20, _OK@GOTPAGEOFF]
Lloh12:
	adrp	x19, l_.str.1@PAGE
Lloh13:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x8, [sp, #40]
	add	x8, x8, x22
	ldr	x9, [x8]
	ldp	w10, w8, [x8, #8]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
	mov	x1, x19
	bl	_fprintf
	add	x23, x23, #1
	ldrsw	x8, [sp, #32]
	add	x22, x22, #16
	cmp	x23, x8
	b.lt	LBB0_4
	b	LBB0_8
LBB0_5:
Lloh14:
	adrp	x20, _ERROR@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh16:
	adrp	x20, _ERROR@GOTPAGE
Lloh17:
	ldr	x20, [x20, _ERROR@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x20, _OK@GOTPAGE
Lloh19:
	ldr	x20, [x20, _OK@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [sp, #40]
	bl	_free
LBB0_9:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NODE_NUM,4,2               ; @MAX_NODE_NUM
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_SIOC_HCI_RAW_NODE_LIST_NAMES,4,2 ; @SIOC_HCI_RAW_NODE_LIST_NAMES
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Name            ID       Num hooks\n"

l_.str.1:                               ; @.str.1
	.asciz	"%-15s %08x %9d\n"

	.comm	_OK,4,2                         ; @OK
.subsections_via_symbols
