	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_inquiry_result_evt
_hci_inquiry_result_evt:                ## @hci_inquiry_result_evt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	movl	(%r13), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movq	_MEMB_NUM_HCI_INQ@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.2:
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_hci_inq_results@GOTPCREL(%rip), %rdi
	callq	_btmemb_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	leal	1(%r15), %eax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_bd_addr_set
	movq	(%r12), %rax
	leal	7(%r15), %ecx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, (%rbx)
	leal	8(%r15), %ecx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 4(%rbx)
	movl	20(%rbx), %edi
	movl	%r15d, %r13d
	leaq	(%rax,%r13,4), %rsi
	addq	$40, %rsi
	movl	$3, %edx
	callq	_memcpy
	movq	(%r12), %rax
	movl	52(%rax,%r13,4), %edi
	callq	_le16toh
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	_hci_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_HCI_REG
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	jb	LBB0_7
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_ERROR
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	jae	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_MEMB_NUM_HCI_INQ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %r13
	addl	$14, %r15d
	incq	%r14
	jmp	LBB0_3
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMB_NUM_HCI_INQ,4,2           ## @MEMB_NUM_HCI_INQ
	.comm	_hci_inq_results,4,2            ## @hci_inq_results
	.comm	_hci_dev,8,3                    ## @hci_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hci_inquriy_result_evt: Could not allocate memory for inquiry result\n"

	.no_dead_strip	_hci_inquiry_result_evt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_inquiry_result_evt
_hci_inquiry_result_evt:                ; @hci_inquiry_result_evt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x28, [x0]
	ldr	w23, [x28]
Lloh0:
	adrp	x24, _MEMB_NUM_HCI_INQ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MEMB_NUM_HCI_INQ@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w23, #1
	ccmp	w8, #1, #8, ge
	b.ge	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	mov	w25, #0
	mov	w26, #1
Lloh2:
	adrp	x20, _hci_inq_results@GOTPAGE
Lloh3:
	ldr	x20, [x20, _hci_inq_results@GOTPAGEOFF]
Lloh4:
	adrp	x27, _hci_dev@GOTPAGE
Lloh5:
	ldr	x27, [x27, _hci_dev@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_btmemb_alloc
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	add	w8, w25, #1
	add	x1, x28, w8, uxtw #2
	add	x0, x0, #24
	bl	_bd_addr_set
	ldr	x8, [x19]
	add	w9, w25, #7
	ldr	w9, [x8, w9, uxtw #2]
	str	w9, [x22]
	add	w9, w25, #8
	ldr	w9, [x8, w9, uxtw #2]
	str	w9, [x22, #4]
	ldr	w0, [x22, #20]
	mov	w9, w25
	lsl	x28, x9, #2
	add	x8, x8, x28
	add	x1, x8, #40
	mov	w2, #3
	bl	_memcpy
	ldr	x8, [x19]
	add	x8, x8, x28
	ldr	w0, [x8, #52]
	bl	_le16toh
	str	w0, [x22, #16]
	str	xzr, [x22, #8]
	ldr	x0, [x27]
	mov	x1, x22
	bl	_HCI_REG
	cmp	x26, x23
	b.lo	LBB0_6
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_ERROR
	cmp	x26, x23
	b.hs	LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x24]
	cmp	x26, x8
	b.ge	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x28, [x19]
	add	w25, w25, #14
	add	x26, x26, #1
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMB_NUM_HCI_INQ,4,2           ; @MEMB_NUM_HCI_INQ
	.comm	_hci_inq_results,4,2            ; @hci_inq_results
	.comm	_hci_dev,8,3                    ; @hci_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hci_inquriy_result_evt: Could not allocate memory for inquiry result\n"

	.no_dead_strip	_hci_inquiry_result_evt
.subsections_via_symbols
