	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_hci_command
_do_hci_command:                        ## @do_hci_command
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdx), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_2:
	cmpl	$1, %r15d
	jg	LBB0_4
## %bb.3:
	movq	_stdout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_link_control_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_print_hci_command
	movq	_link_policy_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_print_hci_command
	movq	_host_controller_baseband_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_print_hci_command
	movq	_info_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_print_hci_command
	movq	_status_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_print_hci_command
	movq	_le_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_print_hci_command
	movq	_node_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_print_hci_command
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$129, %ebx
	jmp	LBB0_20
LBB0_4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	decl	%r15d
	movq	8(%r14), %rbx
	addq	$8, %r14
LBB0_5:
	movq	_link_control_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_hci_command
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.6:
	movq	_link_policy_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_hci_command
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:
	movq	_host_controller_baseband_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_hci_command
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movq	_info_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_hci_command
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	movq	_status_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_hci_command
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	_le_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_hci_command
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	_node_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_hci_command
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_12
LBB0_13:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_18
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_socket_open
	movl	%eax, %r13d
	decl	%r15d
	addq	$8, %r14
	movl	%eax, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	*(%r12)
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_close
	leal	-129(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_20
## %bb.15:
	cmpl	$128, %ebx
	je	LBB0_18
## %bb.16:
	cmpl	$131, %ebx
	jne	LBB0_19
## %bb.17:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$131, %ebx
	jmp	LBB0_20
LBB0_18:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rdx
	movq	16(%r12), %rcx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$128, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%edi, %edi
	callq	_assert
	jmp	LBB0_20
LBB0_12:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$131, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"help"

	.comm	_stdout,4,2                     ## @stdout
L_.str.1:                               ## @.str.1
	.asciz	"Supported commands:\n"

	.comm	_link_control_commands,4,2      ## @link_control_commands
	.comm	_link_policy_commands,4,2       ## @link_policy_commands
	.comm	_host_controller_baseband_commands,4,2 ## @host_controller_baseband_commands
	.comm	_info_commands,4,2              ## @info_commands
	.comm	_status_commands,4,2            ## @status_commands
	.comm	_le_commands,4,2                ## @le_commands
	.comm	_node_commands,4,2              ## @node_commands
L_.str.2:                               ## @.str.2
	.asciz	"\nFor more information use 'help command'\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unknown command: \"%s\"\n"

L_.str.4:                               ## @.str.4
	.asciz	"Could not execute command \"%s\". %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.5:                               ## @.str.5
	.asciz	"Usage: %s\n%s\n"

	.no_dead_strip	_do_hci_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_hci_command
_do_hci_command:                        ; @do_hci_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	mov	x23, x0
	cbnz	x0, LBB0_4
; %bb.1:
	subs	w21, w21, #1
	b.gt	LBB0_3
; %bb.2:
Lloh2:
	adrp	x19, _stdout@GOTPAGE
Lloh3:
	ldr	x19, [x19, _stdout@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
Lloh6:
	adrp	x8, _link_control_commands@GOTPAGE
Lloh7:
	ldr	x8, [x8, _link_control_commands@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_print_hci_command
Lloh9:
	adrp	x8, _link_policy_commands@GOTPAGE
Lloh10:
	ldr	x8, [x8, _link_policy_commands@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_print_hci_command
Lloh12:
	adrp	x8, _host_controller_baseband_commands@GOTPAGE
Lloh13:
	ldr	x8, [x8, _host_controller_baseband_commands@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_print_hci_command
Lloh15:
	adrp	x8, _info_commands@GOTPAGE
Lloh16:
	ldr	x8, [x8, _info_commands@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_print_hci_command
Lloh18:
	adrp	x8, _status_commands@GOTPAGE
Lloh19:
	ldr	x8, [x8, _status_commands@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_print_hci_command
Lloh21:
	adrp	x8, _le_commands@GOTPAGE
Lloh22:
	ldr	x8, [x8, _le_commands@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_print_hci_command
Lloh24:
	adrp	x8, _node_commands@GOTPAGE
Lloh25:
	ldr	x8, [x8, _node_commands@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_print_hci_command
	ldr	w0, [x19]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w20, #129
	b	LBB0_18
LBB0_3:
	ldr	x19, [x20, #8]!
LBB0_4:
Lloh29:
	adrp	x8, _link_control_commands@GOTPAGE
Lloh30:
	ldr	x8, [x8, _link_control_commands@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_hci_command
	mov	x24, x0
	cbnz	x0, LBB0_11
; %bb.5:
Lloh32:
	adrp	x8, _link_policy_commands@GOTPAGE
Lloh33:
	ldr	x8, [x8, _link_policy_commands@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_hci_command
	mov	x24, x0
	cbnz	x0, LBB0_11
; %bb.6:
Lloh35:
	adrp	x8, _host_controller_baseband_commands@GOTPAGE
Lloh36:
	ldr	x8, [x8, _host_controller_baseband_commands@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_hci_command
	mov	x24, x0
	cbnz	x0, LBB0_11
; %bb.7:
Lloh38:
	adrp	x8, _info_commands@GOTPAGE
Lloh39:
	ldr	x8, [x8, _info_commands@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_hci_command
	mov	x24, x0
	cbnz	x0, LBB0_11
; %bb.8:
Lloh41:
	adrp	x8, _status_commands@GOTPAGE
Lloh42:
	ldr	x8, [x8, _status_commands@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_hci_command
	mov	x24, x0
	cbnz	x0, LBB0_11
; %bb.9:
Lloh44:
	adrp	x8, _le_commands@GOTPAGE
Lloh45:
	ldr	x8, [x8, _le_commands@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_hci_command
	mov	x24, x0
	cbnz	x0, LBB0_11
; %bb.10:
Lloh47:
	adrp	x8, _node_commands@GOTPAGE
Lloh48:
	ldr	x8, [x8, _node_commands@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_hci_command
	mov	x24, x0
	cbz	x0, LBB0_20
LBB0_11:
	cbz	x23, LBB0_17
; %bb.12:
	mov	x0, x22
	bl	_socket_open
	mov	x22, x0
	ldr	x8, [x24]
	sub	w1, w21, #1
	add	x2, x20, #8
	blr	x8
	mov	x20, x0
	mov	x0, x22
	bl	_close
	sub	w8, w20, #129
	cmp	w8, #2
	b.lo	LBB0_18
; %bb.13:
	cmp	w20, #128
	b.eq	LBB0_17
; %bb.14:
	cmp	w20, #131
	b.ne	LBB0_19
; %bb.15:
Lloh50:
	adrp	x8, _stdout@GOTPAGE
Lloh51:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh52:
	ldr	w20, [x8]
Lloh53:
	adrp	x8, _errno@GOTPAGE
Lloh54:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	bl	_strerror
	stp	x19, x0, [sp]
Lloh56:
	adrp	x1, l_.str.4@PAGE
Lloh57:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
LBB0_16:
	bl	_fprintf
	mov	w20, #131
	b	LBB0_18
LBB0_17:
Lloh58:
	adrp	x8, _stdout@GOTPAGE
Lloh59:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	ldp	x8, x9, [x24, #8]
	stp	x8, x9, [sp]
Lloh61:
	adrp	x1, l_.str.5@PAGE
Lloh62:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	mov	w20, #128
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
	mov	w0, #0
	bl	_assert
	b	LBB0_18
LBB0_20:
Lloh63:
	adrp	x8, _stdout@GOTPAGE
Lloh64:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh66:
	adrp	x1, l_.str.3@PAGE
Lloh67:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"help"

	.comm	_stdout,4,2                     ; @stdout
l_.str.1:                               ; @.str.1
	.asciz	"Supported commands:\n"

	.comm	_link_control_commands,4,2      ; @link_control_commands
	.comm	_link_policy_commands,4,2       ; @link_policy_commands
	.comm	_host_controller_baseband_commands,4,2 ; @host_controller_baseband_commands
	.comm	_info_commands,4,2              ; @info_commands
	.comm	_status_commands,4,2            ; @status_commands
	.comm	_le_commands,4,2                ; @le_commands
	.comm	_node_commands,4,2              ; @node_commands
l_.str.2:                               ; @.str.2
	.asciz	"\nFor more information use 'help command'\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unknown command: \"%s\"\n"

l_.str.4:                               ; @.str.4
	.asciz	"Could not execute command \"%s\". %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.5:                               ; @.str.5
	.asciz	"Usage: %s\n%s\n"

	.no_dead_strip	_do_hci_command
.subsections_via_symbols
