	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_devinquiry                  ## -- Begin function bt_devinquiry
	.p2align	4, 0x90
_bt_devinquiry:                         ## @bt_devinquiry
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_HCI_DEVNAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	_bt_devany_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_bt_devenum
	movq	%r12, %rbx
	testl	%eax, %eax
	jle	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_bt_devopen
	movl	$-1, %r14d
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_bt_devfilter
	testq	%rax, %rax
	js	LBB0_9
## %bb.8:
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	$129, %esi
	callq	_bt_devfilter_evt_set
	movq	%r15, %rdi
	movl	$128, %esi
	callq	_bt_devfilter_evt_set
	movl	%ebx, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_bt_devfilter
LBB0_9:
	movl	%ebx, %edi
	callq	_bt_devclose
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r14d
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r14d, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %r14d
	jne	LBB0_10
## %bb.5:
	movq	$0, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HCI_DEVNAME_SIZE,4,2           ## @HCI_DEVNAME_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_bt_devany_cb,4,2               ## @bt_devany_cb
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NG_HCI_OGF_LINK_CONTROL,4,2    ## @NG_HCI_OGF_LINK_CONTROL
	.comm	_NG_HCI_OCF_INQUIRY,4,2         ## @NG_HCI_OCF_INQUIRY
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_devinquiry                  ; -- Begin function bt_devinquiry
	.p2align	2
_bt_devinquiry:                         ; @bt_devinquiry
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #16
	mov	x19, x3
	mov	x8, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-24]
Lloh3:
	adrp	x9, _HCI_DEVNAME_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HCI_DEVNAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	mov	x9, x2
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x2, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	cbz	x3, LBB0_7
; %bb.1:
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
Lloh8:
	adrp	x8, _bt_devany_cb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bt_devany_cb@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_bt_devenum
	mov	x8, x20
	cmp	w0, #0
	b.le	LBB0_11
LBB0_3:
	mov	x0, x8
	bl	_bt_devopen
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x19, x0
	sub	x2, x29, #32
	mov	x1, #0
	bl	_bt_devfilter
	tbnz	x0, #63, LBB0_6
; %bb.5:
	sub	x0, x29, #32
	mov	w1, #129
	bl	_bt_devfilter_evt_set
	sub	x0, x29, #32
	mov	w1, #128
	bl	_bt_devfilter_evt_set
	sub	x1, x29, #32
	mov	x0, x19
	mov	x2, #0
	bl	_bt_devfilter
LBB0_6:
	mov	x0, x19
	bl	_bt_devclose
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.10:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	cbnz	w0, LBB0_9
; %bb.12:
	str	xzr, [x19]
	b	LBB0_9
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HCI_DEVNAME_SIZE,4,2           ; @HCI_DEVNAME_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_bt_devany_cb,4,2               ; @bt_devany_cb
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NG_HCI_OGF_LINK_CONTROL,4,2    ; @NG_HCI_OGF_LINK_CONTROL
	.comm	_NG_HCI_OCF_INQUIRY,4,2         ; @NG_HCI_OCF_INQUIRY
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
