	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_known
_hid_known:                             ## @hid_known
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_read_config_file
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	xorl	%eax, %eax
	callq	_read_hids_file
	testq	%rax, %rax
	je	LBB0_2
LBB0_9:
	xorl	%eax, %eax
	callq	_clean_config
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	callq	_get_next_hid_device
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_get_next_hid_device
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AF_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bt_gethostbyaddr
	movq	%rax, %r13
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bt_ntoa
	movq	%r15, %rcx
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	cmoveq	%r15, %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILED,4,2                     ## @FAILED
	.comm	_OK,4,2                         ## @OK
	.comm	_AF_BLUETOOTH,4,2               ## @AF_BLUETOOTH
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s\n"

L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_hid_known
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_known
_hid_known:                             ; @hid_known
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_read_config_file
	cbnz	x0, LBB0_3
; %bb.1:
	bl	_read_hids_file
	cbz	x0, LBB0_4
LBB0_2:
	bl	_clean_config
LBB0_3:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x8, _OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_get_next_hid_device
	cbz	x0, LBB0_2
; %bb.5:
	mov	x20, x0
Lloh6:
	adrp	x24, _AF_BLUETOOTH@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AF_BLUETOOTH@GOTPAGEOFF]
Lloh8:
	adrp	x25, _stdout@GOTPAGE
Lloh9:
	ldr	x25, [x25, _stdout@GOTPAGEOFF]
Lloh10:
	adrp	x26, l_.str.1@PAGE
Lloh11:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh12:
	adrp	x21, l_.str@PAGE
Lloh13:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x23]
	cmp	x8, #0
	csel	x3, x26, x8, eq
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_fprintf
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_get_next_hid_device
	mov	x20, x0
	cbz	x0, LBB0_2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x24]
	mov	x0, x20
	mov	w1, #4
	bl	_bt_gethostbyaddr
	mov	x23, x0
	ldr	w22, [x25]
	mov	x0, x20
	mov	x1, #0
	bl	_bt_ntoa
	mov	x2, x0
	cbnz	x23, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x3, x26
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILED,4,2                     ; @FAILED
	.comm	_OK,4,2                         ; @OK
	.comm	_AF_BLUETOOTH,4,2               ; @AF_BLUETOOTH
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s\n"

l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_hid_known
.subsections_via_symbols
