	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rsi, %r15
	movl	%edi, %r14d
	xorl	%edi, %edi
	callq	_hid_init
	movq	_NG_HCI_BDADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	L_.str(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %rbx
	jmp	LBB0_1
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	_hids_file@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$98, %eax
	jg	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$72, %eax
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$97, %eax
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	movq	%r13, %rsi
	callq	_bt_aton
	testl	%eax, %eax
	jne	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	callq	_bt_gethostbyname
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_h_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hstrerror
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_errx
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %esi
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$99, %eax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$118, %eax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_verbose@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_1
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	_config_file@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_1
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_15
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_15:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	(%r15,%r12,8), %rbx
	cmpq	$0, (%r15,%r12,8)
	jne	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	callq	_usage
LBB0_17:
	subl	%r12d, %r14d
	leaq	-44(%rbp), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_do_bthid_command
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_HCI_BDADDR_ANY,4,2          ## @NG_HCI_BDADDR_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a:c:H:hv"

	.comm	_optarg,8,3                     ## @optarg
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s"

	.comm	_h_errno,4,2                    ## @h_errno
	.comm	_config_file,8,3                ## @config_file
	.comm	_hids_file,8,3                  ## @hids_file
	.comm	_verbose,4,2                    ## @verbose
	.comm	_optind,8,3                     ## @optind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	mov	x0, #0
	bl	_hid_init
Lloh0:
	adrp	x8, _NG_HCI_BDADDR_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_HCI_BDADDR_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x25, _optarg@GOTPAGE
Lloh6:
	ldr	x25, [x25, _optarg@GOTPAGEOFF]
Lloh7:
	adrp	x26, _hids_file@GOTPAGE
Lloh8:
	ldr	x26, [x26, _hids_file@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh11:
	adrp	x28, _config_file@GOTPAGE
Lloh12:
	ldr	x28, [x28, _config_file@GOTPAGEOFF]
Lloh13:
	adrp	x27, _verbose@GOTPAGE
Lloh14:
	ldr	x27, [x27, _verbose@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25]
	str	x8, [x26]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_getopt
	cmp	w0, #98
	b.gt	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #72
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #97
	b.ne	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x25]
	add	x1, sp, #12
	bl	_bt_aton
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x25]
	bl	_bt_gethostbyname
	mov	x23, x0
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x24, [x25]
Lloh15:
	adrp	x8, _h_errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _h_errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_hstrerror
	mov	x3, x0
	mov	w0, #1
	mov	x1, x22
	mov	x2, x24
	bl	_errx
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #99
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #118
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25]
	str	x8, [x28]
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_15:
Lloh18:
	adrp	x8, _optind@GOTPAGE
Lloh19:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh20:
	ldr	x21, [x8]
	add	x20, x20, x21, lsl #3
	ldr	x8, [x20]
	cbnz	x8, LBB0_17
; %bb.16:
	bl	_usage
LBB0_17:
	sub	w1, w19, w21
	add	x0, sp, #12
	mov	x2, x20
	bl	_do_bthid_command
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_HCI_BDADDR_ANY,4,2          ; @NG_HCI_BDADDR_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a:c:H:hv"

	.comm	_optarg,8,3                     ; @optarg
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s"

	.comm	_h_errno,4,2                    ; @h_errno
	.comm	_config_file,8,3                ; @config_file
	.comm	_hids_file,8,3                  ; @hids_file
	.comm	_verbose,4,2                    ; @verbose
	.comm	_optind,8,3                     ; @optind
.subsections_via_symbols
