	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_read_connection_list
_hci_read_connection_list:              ## @hci_read_connection_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	$56, %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_CON_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_CON_LIST@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(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	cmpl	$0, -56(%rbp)
	jle	LBB0_8
## %bb.5:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	$48, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi
	addq	%r13, %rdi
	callq	_hci_bdaddr2str
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax
	movq	-40(%rax,%r13), %rcx
	movq	_NG_HCI_LINK_ACL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	leaq	L_.str.3(%rip), %rbx
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rcx, %rbx
	movl	-48(%rax,%r13), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	-24(%rax,%r13), %rcx
	movq	_NG_HCI_ROLE_MASTER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	-32(%rax,%r13), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	leaq	L_.str.5(%rip), %r15
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rcx, %r15
	movl	-4(%rax,%r13), %edi
	movl	$1, %esi
	callq	_hci_encrypt2str
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax
	movl	-16(%rax,%r13), %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	-12(%rax,%r13), %r12d
	movl	-8(%rax,%r13), %edi
	callq	_hci_con_state2str
	movq	%rax, %r10
	subq	$8, %rsp
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r12
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	movq	_stdout@GOTPCREL(%rip), %rbx
	callq	_fprintf
	addq	$48, %rsp
	incq	%r14
	movslq	-56(%rbp), %rax
	addq	$56, %r13
	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	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OK,4,2                         ## @OK
	.comm	_NG_HCI_MAX_CON_NUM,4,2         ## @NG_HCI_MAX_CON_NUM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_SIOC_HCI_RAW_NODE_GET_CON_LIST,4,2 ## @SIOC_HCI_RAW_NODE_GET_CON_LIST
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Remote BD_ADDR    Handle Type Mode Role Encrypt Pending Queue State\n"

L_.str.1:                               ## @.str.1
	.asciz	"%-17.17s %6d %4.4s %4d %4.4s %7.7s %7d %5d %s\n"

	.comm	_NG_HCI_LINK_ACL,8,3            ## @NG_HCI_LINK_ACL
L_.str.2:                               ## @.str.2
	.asciz	"ACL"

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

	.comm	_NG_HCI_ROLE_MASTER,8,3         ## @NG_HCI_ROLE_MASTER
L_.str.4:                               ## @.str.4
	.asciz	"MAST"

L_.str.5:                               ## @.str.5
	.asciz	"SLAV"

	.no_dead_strip	_hci_read_connection_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_read_connection_list
_hci_read_connection_list:              ; @hci_read_connection_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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]
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _NG_HCI_MAX_CON_NUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_HCI_MAX_CON_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	w0, [sp, #96]
	mov	w1, #4
	bl	_calloc
	str	x0, [sp, #104]
	cbz	x0, LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_CON_LIST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_CON_LIST@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #96
	mov	x0, x20
	mov	w3, #16
	bl	_ioctl
	tbnz	x0, #63, LBB0_7
; %bb.2:
Lloh9:
	adrp	x22, _stdout@GOTPAGE
Lloh10:
	ldr	x22, [x22, _stdout@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w8, [sp, #96]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	str	w19, [sp, #76]                  ; 4-byte Folded Spill
	mov	x25, #0
	mov	w26, #48
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	str	w8, [sp, #92]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #104]
	add	x0, x8, x26
	bl	_hci_bdaddr2str
	str	x0, [sp, #80]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #104]
	add	x8, x8, x26
	ldur	x9, [x8, #-40]
Lloh13:
	adrp	x10, _NG_HCI_LINK_ACL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NG_HCI_LINK_ACL@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
Lloh16:
	adrp	x9, l_.str.3@PAGE
Lloh17:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh18:
	adrp	x10, l_.str.2@PAGE
Lloh19:
	add	x10, x10, l_.str.2@PAGEOFF
	csel	x19, x10, x9, eq
	ldur	x9, [x8, #-24]
Lloh20:
	adrp	x10, _NG_HCI_ROLE_MASTER@GOTPAGE
Lloh21:
	ldr	x10, [x10, _NG_HCI_ROLE_MASTER@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x9, x10
Lloh23:
	adrp	x9, l_.str.5@PAGE
Lloh24:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh25:
	adrp	x10, l_.str.4@PAGE
Lloh26:
	add	x10, x10, l_.str.4@PAGEOFF
	csel	x24, x10, x9, eq
	ldur	w0, [x8, #-4]
	ldur	w27, [x8, #-48]
	ldur	w28, [x8, #-32]
	mov	w1, #1
	bl	_hci_encrypt2str
	mov	x23, x0
	ldr	x8, [sp, #104]
	add	x8, x8, x26
	ldp	w21, w0, [x8, #-12]
	ldur	w20, [x8, #-16]
	bl	_hci_con_state2str
	stp	x21, x0, [sp, #56]
	stp	x23, x20, [sp, #40]
	stp	x28, x24, [sp, #24]
	stp	x27, x19, [sp, #8]
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	str	x8, [sp]
	ldr	w0, [sp, #92]                   ; 4-byte Folded Reload
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	add	x25, x25, #1
	ldrsw	x8, [sp, #96]
	add	x26, x26, #56
	cmp	x25, x8
	b.lt	LBB0_4
; %bb.5:
	ldr	w19, [sp, #76]                  ; 4-byte Folded Reload
	b	LBB0_8
LBB0_6:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _errno@GOTPAGE
Lloh33:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh34:
	str	w8, [x9]
Lloh35:
	adrp	x8, _ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w19, [x8]
	b	LBB0_9
LBB0_7:
Lloh38:
	adrp	x8, _ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w19, [x8]
LBB0_8:
	ldr	x0, [sp, #104]
	bl	_free
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	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	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_OK,4,2                         ; @OK
	.comm	_NG_HCI_MAX_CON_NUM,4,2         ; @NG_HCI_MAX_CON_NUM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_SIOC_HCI_RAW_NODE_GET_CON_LIST,4,2 ; @SIOC_HCI_RAW_NODE_GET_CON_LIST
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Remote BD_ADDR    Handle Type Mode Role Encrypt Pending Queue State\n"

l_.str.1:                               ; @.str.1
	.asciz	"%-17.17s %6d %4.4s %4d %4.4s %7.7s %7d %5d %s\n"

	.comm	_NG_HCI_LINK_ACL,8,3            ; @NG_HCI_LINK_ACL
l_.str.2:                               ; @.str.2
	.asciz	"ACL"

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

	.comm	_NG_HCI_ROLE_MASTER,8,3         ; @NG_HCI_ROLE_MASTER
l_.str.4:                               ; @.str.4
	.asciz	"MAST"

l_.str.5:                               ; @.str.5
	.asciz	"SLAV"

	.no_dead_strip	_hci_read_connection_list
.subsections_via_symbols
