	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_devinfo                     ## -- Begin function bt_devinfo
	.p2align	4, 0x90
_bt_devinfo:                            ## @bt_devinfo
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	movl	88(%rdi), %edi
	callq	_bt_devopen
	testl	%eax, %eax
	js	LBB0_15
## %bb.2:
	movl	%eax, %r15d
	movl	$4, -36(%rbp)
	leaq	-32(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movl	%eax, %edi
	callq	_getsockname
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_13
## %bb.3:
	movl	88(%rbx), %edi
	movl	-32(%rbp), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SIOC_HCI_RAW_NODE_GET_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%r15d, %edi
	movl	$88, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_13
## %bb.4:
	movl	-44(%rbp), %eax
	movl	%eax, 84(%rbx)
	movq	_SIOC_HCI_RAW_NODE_GET_BDADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%r15d, %edi
	movl	$88, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_13
## %bb.5:
	leaq	80(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	callq	_bdaddr_copy
	movq	_SIOC_HCI_RAW_NODE_GET_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%r15d, %edi
	movl	$88, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_13
## %bb.6:
	movl	76(%rbx), %edi
	movl	-52(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	_SIOC_HCI_RAW_NODE_GET_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%r15d, %edi
	movl	$88, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_13
## %bb.7:
	movl	-56(%rbp), %eax
	movl	%eax, 72(%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, 68(%rbx)
	movl	-64(%rbp), %eax
	movl	%eax, 64(%rbx)
	movups	-80(%rbp), %xmm0
	movups	%xmm0, 48(%rbx)
	movq	_SIOC_HCI_RAW_NODE_GET_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%r15d, %edi
	movl	$88, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_13
## %bb.8:
	movups	-96(%rbp), %xmm0
	movups	%xmm0, 32(%rbx)
	movups	-112(%rbp), %xmm0
	movups	%xmm0, 16(%rbx)
	movq	_SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%r15d, %edi
	movl	$88, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_13
## %bb.9:
	movl	-116(%rbp), %eax
	movl	%eax, 12(%rbx)
	movq	_SIOC_HCI_RAW_NODE_GET_PACKET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%r15d, %edi
	movl	$88, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_13
## %bb.10:
	movl	-120(%rbp), %eax
	movl	%eax, 8(%rbx)
	movq	_SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%r15d, %edi
	movl	$88, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_13
## %bb.11:
	movl	-124(%rbp), %eax
	movl	%eax, 4(%rbx)
	movq	_SIOC_HCI_RAW_NODE_GET_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%r15d, %edi
	movl	$88, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_13
## %bb.12:
	movl	-128(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%r14d, %r14d
LBB0_13:
	movl	%r15d, %edi
	callq	_bt_devclose
	jmp	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_15:
	movl	$-1, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_SIOC_HCI_RAW_NODE_GET_STATE,4,2 ## @SIOC_HCI_RAW_NODE_GET_STATE
	.comm	_SIOC_HCI_RAW_NODE_GET_BDADDR,4,2 ## @SIOC_HCI_RAW_NODE_GET_BDADDR
	.comm	_SIOC_HCI_RAW_NODE_GET_FEATURES,4,2 ## @SIOC_HCI_RAW_NODE_GET_FEATURES
	.comm	_SIOC_HCI_RAW_NODE_GET_BUFFER,4,2 ## @SIOC_HCI_RAW_NODE_GET_BUFFER
	.comm	_SIOC_HCI_RAW_NODE_GET_STAT,4,2 ## @SIOC_HCI_RAW_NODE_GET_STAT
	.comm	_SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK,4,2 ## @SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK
	.comm	_SIOC_HCI_RAW_NODE_GET_PACKET_MASK,4,2 ## @SIOC_HCI_RAW_NODE_GET_PACKET_MASK
	.comm	_SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH,4,2 ## @SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH
	.comm	_SIOC_HCI_RAW_NODE_GET_DEBUG,4,2 ## @SIOC_HCI_RAW_NODE_GET_DEBUG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_devinfo                     ; -- Begin function bt_devinfo
	.p2align	2
_bt_devinfo:                            ; @bt_devinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #88]
	bl	_bt_devopen
	tbnz	w0, #31, LBB0_16
; %bb.2:
	mov	x19, x0
	mov	w8, #4
	str	w8, [sp, #12]
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_getsockname
	tbnz	x0, #63, LBB0_13
; %bb.3:
	ldr	w0, [x20, #88]
	ldr	w1, [sp, #16]
	mov	w2, #4
	bl	_strlcpy
Lloh0:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #88
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.4:
	ldr	w8, [sp, #108]
	str	w8, [x20, #84]
Lloh3:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_BDADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_BDADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x21, sp, #24
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #88
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.5:
	add	x0, x20, #80
	add	x1, x21, #80
	bl	_bdaddr_copy
Lloh6:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_FEATURES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_FEATURES@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #88
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.6:
	ldr	w0, [x20, #76]
	ldr	w1, [sp, #100]
	mov	w2, #4
	bl	_memcpy
Lloh9:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_BUFFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_BUFFER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #88
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.7:
	ldr	w8, [sp, #96]
	str	w8, [x20, #72]
	ldr	d0, [sp, #88]
	str	d0, [x20, #64]
	ldur	q0, [sp, #72]
	str	q0, [x20, #48]
Lloh12:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_STAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_STAT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #88
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.8:
	ldur	q0, [sp, #56]
	ldur	q1, [sp, #40]
	stp	q1, q0, [x20, #16]
Lloh15:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #88
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.9:
	ldr	w8, [sp, #36]
	str	w8, [x20, #12]
Lloh18:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_PACKET_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_PACKET_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #88
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.10:
	ldr	w8, [sp, #32]
	str	w8, [x20, #8]
Lloh21:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #88
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.11:
	ldr	w8, [sp, #28]
	str	w8, [x20, #4]
Lloh24:
	adrp	x8, _SIOC_HCI_RAW_NODE_GET_DEBUG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SIOC_HCI_RAW_NODE_GET_DEBUG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #88
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.12:
	mov	w21, #0
	ldr	w8, [sp, #24]
	str	w8, [x20]
	b	LBB0_14
LBB0_13:
	mov	w21, #-1
LBB0_14:
	mov	x0, x19
	bl	_bt_devclose
	b	LBB0_17
LBB0_15:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _errno@GOTPAGE
Lloh31:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh32:
	str	w8, [x9]
LBB0_16:
	mov	w21, #-1
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_SIOC_HCI_RAW_NODE_GET_STATE,4,2 ; @SIOC_HCI_RAW_NODE_GET_STATE
	.comm	_SIOC_HCI_RAW_NODE_GET_BDADDR,4,2 ; @SIOC_HCI_RAW_NODE_GET_BDADDR
	.comm	_SIOC_HCI_RAW_NODE_GET_FEATURES,4,2 ; @SIOC_HCI_RAW_NODE_GET_FEATURES
	.comm	_SIOC_HCI_RAW_NODE_GET_BUFFER,4,2 ; @SIOC_HCI_RAW_NODE_GET_BUFFER
	.comm	_SIOC_HCI_RAW_NODE_GET_STAT,4,2 ; @SIOC_HCI_RAW_NODE_GET_STAT
	.comm	_SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK,4,2 ; @SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK
	.comm	_SIOC_HCI_RAW_NODE_GET_PACKET_MASK,4,2 ; @SIOC_HCI_RAW_NODE_GET_PACKET_MASK
	.comm	_SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH,4,2 ; @SIOC_HCI_RAW_NODE_GET_ROLE_SWITCH
	.comm	_SIOC_HCI_RAW_NODE_GET_DEBUG,4,2 ; @SIOC_HCI_RAW_NODE_GET_DEBUG
.subsections_via_symbols
