	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_read_local_version_information
_hci_read_local_version_information:    ## @hci_read_local_version_information
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movl	$24, -44(%rbp)
	movq	_NG_HCI_OGF_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NG_HCI_OCF_READ_LOCAL_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NG_HCI_OPCODE
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_hci_simple_request
	movq	_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	movl	-40(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.2:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_hci_status2str
	movl	-40(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movl	-36(%rbp), %edi
	callq	_le16toh
	movl	%eax, -36(%rbp)
	movq	_stdout@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	-32(%rbp), %edi
	callq	_hci_ver2str
	movl	-32(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %ebx
	movl	-28(%rbp), %edi
	callq	_le16toh
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %ebx
	movl	-24(%rbp), %edi
	callq	_hci_lmpver2str
	movl	-24(%rbp), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %ebx
	movl	-20(%rbp), %edi
	callq	_le16toh
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %ebx
	movl	-36(%rbp), %edi
	callq	_hci_manufacturer2str
	movl	-36(%rbp), %ecx
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_OK@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_HCI_OGF_INFO,4,2            ## @NG_HCI_OGF_INFO
	.comm	_NG_HCI_OCF_READ_LOCAL_VER,4,2  ## @NG_HCI_OCF_READ_LOCAL_VER
	.comm	_ERROR,8,3                      ## @ERROR
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Status: %s [%#02x]\n"

	.comm	_FAILED,4,2                     ## @FAILED
L_.str.1:                               ## @.str.1
	.asciz	"HCI version: %s [%#02x]\n"

L_.str.2:                               ## @.str.2
	.asciz	"HCI revision: %#04x\n"

L_.str.3:                               ## @.str.3
	.asciz	"LMP version: %s [%#02x]\n"

L_.str.4:                               ## @.str.4
	.asciz	"LMP sub-version: %#04x\n"

L_.str.5:                               ## @.str.5
	.asciz	"Manufacturer: %s [%#04x]\n"

	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_hci_read_local_version_information
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_read_local_version_information
_hci_read_local_version_information:    ; @hci_read_local_version_information
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #24
	str	w8, [sp, #20]
Lloh0:
	adrp	x8, _NG_HCI_OGF_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_HCI_OGF_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _NG_HCI_OCF_READ_LOCAL_VER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_HCI_OCF_READ_LOCAL_VER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_NG_HCI_OPCODE
	mov	x1, x0
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x19
	bl	_hci_simple_request
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.1:
	ldr	w0, [sp, #24]
	cbz	w0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _stdout@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	bl	_hci_status2str
	ldr	w8, [sp, #24]
	stp	x0, x8, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh14:
	adrp	x8, _FAILED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w0, [sp, #28]
	bl	_le16toh
	str	w0, [sp, #28]
Lloh16:
	adrp	x20, _stdout@GOTPAGE
Lloh17:
	ldr	x20, [x20, _stdout@GOTPAGEOFF]
	ldr	w19, [x20]
	ldr	w0, [sp, #32]
	bl	_hci_ver2str
	ldr	w8, [sp, #32]
	stp	x0, x8, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	w19, [x20]
	ldr	w0, [sp, #36]
	bl	_le16toh
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	w19, [x20]
	ldr	w0, [sp, #40]
	bl	_hci_lmpver2str
	ldr	w8, [sp, #40]
	stp	x0, x8, [sp]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	w19, [x20]
	ldr	w0, [sp, #44]
	bl	_le16toh
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	w19, [x20]
	ldr	w0, [sp, #28]
	bl	_hci_manufacturer2str
	ldr	w8, [sp, #28]
	stp	x0, x8, [sp]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh28:
	adrp	x8, _OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_HCI_OGF_INFO,4,2            ; @NG_HCI_OGF_INFO
	.comm	_NG_HCI_OCF_READ_LOCAL_VER,4,2  ; @NG_HCI_OCF_READ_LOCAL_VER
	.comm	_ERROR,8,3                      ; @ERROR
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Status: %s [%#02x]\n"

	.comm	_FAILED,4,2                     ; @FAILED
l_.str.1:                               ; @.str.1
	.asciz	"HCI version: %s [%#02x]\n"

l_.str.2:                               ; @.str.2
	.asciz	"HCI revision: %#04x\n"

l_.str.3:                               ; @.str.3
	.asciz	"LMP version: %s [%#02x]\n"

l_.str.4:                               ; @.str.4
	.asciz	"LMP sub-version: %#04x\n"

l_.str.5:                               ; @.str.5
	.asciz	"Manufacturer: %s [%#04x]\n"

	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_hci_read_local_version_information
.subsections_via_symbols
