	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_bthid_command
_do_bthid_command:                      ## @do_bthid_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
	movl	%edi, %r12d
	movq	(%rdx), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-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	_sdp_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_print_bthid_command
	movq	_hid_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_print_bthid_command
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$129, %ebx
	jmp	LBB0_15
LBB0_4:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	decl	%r15d
	movq	8(%r14), %rbx
	addq	$8, %r14
LBB0_5:
	movq	_sdp_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_bthid_command
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_hid_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_bthid_command
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_13
## %bb.9:
	decl	%r15d
	addq	$8, %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	*(%r12)
	movl	%eax, %ebx
	leal	-129(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_15
## %bb.10:
	cmpl	$128, %ebx
	je	LBB0_13
## %bb.11:
	cmpl	$131, %ebx
	jne	LBB0_14
## %bb.12:
	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_15
LBB0_13:
	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
	jmp	LBB0_15
LBB0_7:
	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_15
LBB0_14:
	xorl	%edi, %edi
	callq	_assert
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_sdp_commands,4,2               ## @sdp_commands
	.comm	_hid_commands,4,2               ## @hid_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_bthid_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_bthid_command
_do_bthid_command:                      ; @do_bthid_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	x21, x2
	mov	x22, x1
	mov	x20, 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	w22, w22, #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, _sdp_commands@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sdp_commands@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_print_bthid_command
Lloh9:
	adrp	x8, _hid_commands@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hid_commands@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_print_bthid_command
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w20, #129
	b	LBB0_15
LBB0_3:
	ldr	x19, [x21, #8]!
LBB0_4:
Lloh14:
	adrp	x8, _sdp_commands@GOTPAGE
Lloh15:
	ldr	x8, [x8, _sdp_commands@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_bthid_command
	mov	x24, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _hid_commands@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hid_commands@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_bthid_command
	mov	x24, x0
	cbz	x0, LBB0_12
LBB0_6:
	cbz	x23, LBB0_11
; %bb.7:
	ldr	x8, [x24]
	sub	w1, w22, #1
	add	x2, x21, #8
	mov	x0, x20
	blr	x8
	mov	x20, x0
	sub	w8, w0, #129
	cmp	w8, #2
	b.lo	LBB0_15
; %bb.8:
	cmp	w20, #128
	b.eq	LBB0_11
; %bb.9:
	cmp	w20, #131
	b.ne	LBB0_14
; %bb.10:
Lloh20:
	adrp	x8, _stdout@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_strerror
	stp	x19, x0, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	b	LBB0_13
LBB0_11:
Lloh28:
	adrp	x8, _stdout@GOTPAGE
Lloh29:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldp	x8, x9, [x24, #8]
	stp	x8, x9, [sp]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	mov	w20, #128
	b	LBB0_15
LBB0_12:
Lloh33:
	adrp	x8, _stdout@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	bl	_fprintf
	mov	w20, #131
	b	LBB0_15
LBB0_14:
	mov	w0, #0
	bl	_assert
LBB0_15:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.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	_sdp_commands,4,2               ; @sdp_commands
	.comm	_hid_commands,4,2               ; @hid_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_bthid_command
.subsections_via_symbols
