	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_read_stored_link_key       ## -- Begin function hci_read_stored_link_key
	.p2align	4, 0x90
_hci_read_stored_link_key:              ## @hci_read_stored_link_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_hci_dev@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	addq	$8, %rax
	movq	_hci_link_key_results@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rcx
	movq	%rcx, (%rax)
	movq	%rbx, %rdi
	callq	_btmemb_free
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	addq	$8, %rax
	testq	%rsi, %rsi
	jne	LBB0_2
LBB0_3:
	movq	_PBUF_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HCI_R_STORED_LINK_KEY_PLEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_PBUF_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_btpbuf_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_HCI_R_STORED_LINK_KEY_OCF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HCI_HC_BB_OGF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rbx), %ecx
	movq	%rax, %rdi
	callq	_hci_cmd_ass
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	addq	$16, %rdi
	movq	(%r14), %rax
	movl	(%rax), %esi
	movl	$6, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movl	$1, 40(%rax)
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_physbusif_output
	movq	%rbx, %rdi
	callq	_btpbuf_free
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_ERROR
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hci_dev,8,3                    ## @hci_dev
	.comm	_hci_link_key_results,4,2       ## @hci_link_key_results
	.comm	_PBUF_RAW,4,2                   ## @PBUF_RAW
	.comm	_HCI_R_STORED_LINK_KEY_PLEN,4,2 ## @HCI_R_STORED_LINK_KEY_PLEN
	.comm	_PBUF_RAM,4,2                   ## @PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hci_read_stored_link_keys: Could not allocate memory for pbuf\n"

	.comm	_ERR_MEM,4,2                    ## @ERR_MEM
	.comm	_HCI_R_STORED_LINK_KEY_OCF,4,2  ## @HCI_R_STORED_LINK_KEY_OCF
	.comm	_HCI_HC_BB_OGF,4,2              ## @HCI_HC_BB_OGF
	.comm	_ERR_OK,4,2                     ## @ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_read_stored_link_key       ; -- Begin function hci_read_stored_link_key
	.p2align	2
_hci_read_stored_link_key:              ; @hci_read_stored_link_key
	.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
Lloh0:
	adrp	x20, _hci_dev@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hci_dev@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x1, [x8, #8]!
	cbz	x1, LBB0_3
; %bb.1:
Lloh2:
	adrp	x19, _hci_link_key_results@GOTPAGE
Lloh3:
	ldr	x19, [x19, _hci_link_key_results@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x1]
	str	x9, [x8]
	mov	x0, x19
	bl	_btmemb_free
	ldr	x8, [x20]
	ldr	x1, [x8, #8]!
	cbnz	x1, LBB0_2
LBB0_3:
Lloh4:
	adrp	x8, _PBUF_RAW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PBUF_RAW@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x19, _HCI_R_STORED_LINK_KEY_PLEN@GOTPAGE
Lloh8:
	ldr	x19, [x19, _HCI_R_STORED_LINK_KEY_PLEN@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh9:
	adrp	x8, _PBUF_RAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PBUF_RAM@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_btpbuf_alloc
	cbz	x0, LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _HCI_R_STORED_LINK_KEY_OCF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCI_R_STORED_LINK_KEY_OCF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _HCI_HC_BB_OGF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HCI_HC_BB_OGF@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	ldr	w3, [x19]
	bl	_hci_cmd_ass
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x0, x8, #16
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x19, #8]
	mov	w9, #1
	str	w9, [x8, #40]
	ldr	w1, [x19]
	mov	x0, x19
	bl	_physbusif_output
	mov	x0, x19
	bl	_btpbuf_free
Lloh18:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERROR
Lloh22:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_hci_dev,8,3                    ; @hci_dev
	.comm	_hci_link_key_results,4,2       ; @hci_link_key_results
	.comm	_PBUF_RAW,4,2                   ; @PBUF_RAW
	.comm	_HCI_R_STORED_LINK_KEY_PLEN,4,2 ; @HCI_R_STORED_LINK_KEY_PLEN
	.comm	_PBUF_RAM,4,2                   ; @PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hci_read_stored_link_keys: Could not allocate memory for pbuf\n"

	.comm	_ERR_MEM,4,2                    ; @ERR_MEM
	.comm	_HCI_R_STORED_LINK_KEY_OCF,4,2  ; @HCI_R_STORED_LINK_KEY_OCF
	.comm	_HCI_HC_BB_OGF,4,2              ; @HCI_HC_BB_OGF
	.comm	_ERR_OK,4,2                     ; @ERR_OK
.subsections_via_symbols
