	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_read_local_features        ## -- Begin function hci_read_local_features
	.p2align	4, 0x90
_hci_read_local_features:               ## @hci_read_local_features
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_PBUF_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HCI_R_LOC_FEAT_SIZE_PLEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_PBUF_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_btpbuf_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_HCI_R_LOC_FEATURES_OCF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HCI_INFO_PARAM_OGF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rbx), %ecx
	movq	%rax, %rdi
	callq	_hci_cmd_ass
	movq	%rax, %rbx
	movl	(%rax), %esi
	movq	%rax, %rdi
	callq	_physbusif_output
	movq	%rbx, %rdi
	callq	_btpbuf_free
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_ERROR
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBUF_RAW,4,2                   ## @PBUF_RAW
	.comm	_HCI_R_LOC_FEAT_SIZE_PLEN,4,2   ## @HCI_R_LOC_FEAT_SIZE_PLEN
	.comm	_PBUF_RAM,4,2                   ## @PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hci_read_local_features: Could not allocate memory for pbuf\n"

	.comm	_ERR_MEM,4,2                    ## @ERR_MEM
	.comm	_HCI_R_LOC_FEATURES_OCF,4,2     ## @HCI_R_LOC_FEATURES_OCF
	.comm	_HCI_INFO_PARAM_OGF,4,2         ## @HCI_INFO_PARAM_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_local_features        ; -- Begin function hci_read_local_features
	.p2align	2
_hci_read_local_features:               ; @hci_read_local_features
	.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	x8, _PBUF_RAW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBUF_RAW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x19, _HCI_R_LOC_FEAT_SIZE_PLEN@GOTPAGE
Lloh4:
	ldr	x19, [x19, _HCI_R_LOC_FEAT_SIZE_PLEN@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh5:
	adrp	x8, _PBUF_RAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PBUF_RAM@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_btpbuf_alloc
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _HCI_R_LOC_FEATURES_OCF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCI_R_LOC_FEATURES_OCF@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _HCI_INFO_PARAM_OGF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HCI_INFO_PARAM_OGF@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w3, [x19]
	bl	_hci_cmd_ass
	mov	x19, x0
	ldr	w1, [x0]
	bl	_physbusif_output
	mov	x0, x19
	bl	_btpbuf_free
Lloh14:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERROR
Lloh18:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PBUF_RAW,4,2                   ; @PBUF_RAW
	.comm	_HCI_R_LOC_FEAT_SIZE_PLEN,4,2   ; @HCI_R_LOC_FEAT_SIZE_PLEN
	.comm	_PBUF_RAM,4,2                   ; @PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hci_read_local_features: Could not allocate memory for pbuf\n"

	.comm	_ERR_MEM,4,2                    ; @ERR_MEM
	.comm	_HCI_R_LOC_FEATURES_OCF,4,2     ; @HCI_R_LOC_FEATURES_OCF
	.comm	_HCI_INFO_PARAM_OGF,4,2         ; @HCI_INFO_PARAM_OGF
	.comm	_ERR_OK,4,2                     ; @ERR_OK
.subsections_via_symbols
