	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_connect                    ## -- Begin function hid_connect
	.p2align	4, 0x90
_hid_connect:                           ## @hid_connect
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$128, (%rdi)
	movq	_HID_CONNECT_HIDDEV@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	notl	%eax
	movl	$-1, %ebx
	cmovnel	%eax, %ebx
	andl	%esi, %ebx
	callq	_hid_hiddev
	xorl	%r15d, %r15d
	movq	_HID_CONNECT_HIDDEV_FORCE@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %r15d
LBB0_2:
	orl	%ebx, %r15d
	movq	_HID_CONNECT_HIDINPUT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_HID_CONNECT_HIDINPUT_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r15d, %esi
	movq	%r12, %rdi
	callq	_hidinput_connect
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
LBB0_5:
	testl	%r15d, (%r13)
	je	LBB0_9
## %bb.6:
	movq	56(%r12), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	(%r14), %esi
	andl	%r15d, %esi
	movq	%r12, %rdi
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_HID_CLAIMED_HIDDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
LBB0_9:
	movq	_HID_CONNECT_HIDRAW@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	callq	_hidraw_connect
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_HID_CLAIMED_HIDRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
LBB0_12:
	movl	4(%r12), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	testl	%eax, (%rbx)
	je	LBB0_19
## %bb.15:
	movq	_HID_CONNECT_FF@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_18
## %bb.16:
	movq	48(%r12), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	*%rax
	movl	4(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_19
LBB0_18:
	leaq	L_.str.9(%rip), %rsi
	leaq	-112(%rbp), %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movq	%rax, %r14
	movl	4(%r12), %eax
LBB0_19:
	movq	_HID_CLAIMED_HIDDEV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	movslq	%r14d, %rbx
	leaq	(%rbx,%rbp), %rdi
	addq	$-112, %rdi
	testl	%ebx, %ebx
	leaq	L_.str.12(%rip), %rax
	leaq	L_.str.11(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	8(%r12), %ecx
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	movq	%rax, %r14
	addl	%ebx, %r14d
	movl	4(%r12), %eax
LBB0_21:
	movq	_HID_CLAIMED_HIDRAW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.22:
	movslq	%r14d, %rax
	leaq	(%rax,%rbp), %rdi
	addq	$-112, %rdi
	testl	%eax, %eax
	leaq	L_.str.12(%rip), %rax
	leaq	L_.str.11(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	40(%r12), %rax
	movl	(%rax), %ecx
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
LBB0_23:
	movl	12(%r12), %eax
	leaq	L_.str(%rip), %r10
	testl	%eax, %eax
	je	LBB0_31
## %bb.24:
	movl	$8, %ebx
	xorl	%r13d, %r13d
	movq	_HID_COLLECTION_APPLICATION@GOTPCREL(%rip), %rsi
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %r8
	movq	_HID_UP_GENDESK@GOTPCREL(%rip), %rdi
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_25 Depth=1
	incq	%r13
	movl	%eax, %ecx
	addq	$16, %rbx
	cmpq	%rcx, %r13
	jae	LBB0_30
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %r14
	movq	-8(%r14,%rbx), %rcx
	cmpq	(%rsi), %rcx
	jne	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	(%r14,%rbx), %ecx
	movl	(%r8), %edx
	andl	%ecx, %edx
	cmpl	(%rdi), %edx
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	%r12, %r15
	movq	%rsi, %r12
	movzwl	%cx, %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	leaq	_hid_connect.types(%rip), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, -116(%rbp)                ## 4-byte Folded Reload
	jl	LBB0_34
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	12(%r15), %eax
	movq	%r12, %rsi
	movq	%r15, %r12
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %r8
	movq	_HID_UP_GENDESK@GOTPCREL(%rip), %rdi
	jmp	LBB0_29
LBB0_13:
	addq	$28, %r12
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_32
LBB0_30:
	leaq	L_.str(%rip), %r10
	jmp	LBB0_31
LBB0_34:
	movzwl	(%r14,%rbx), %eax
	leaq	_hid_connect.types(%rip), %rcx
	movq	(%rcx,%rax,8), %r10
	movq	%r15, %r12
LBB0_31:
	movl	(%r12), %eax
	movl	16(%r12), %r8d
	cmpl	$129, %eax
	leaq	L_.str.15(%rip), %rcx
	leaq	L_.str.16(%rip), %rdx
	cmoveq	%rcx, %rdx
	cmpl	$128, %eax
	leaq	L_.str.14(%rip), %rcx
	cmovneq	%rdx, %rcx
	leaq	28(%r12), %rdi
	movzbl	%r8b, %r9d
	sarl	$8, %r8d
	movl	24(%r12), %eax
	movl	20(%r12), %ebx
	subq	$8, %rsp
	leaq	L_.str.17(%rip), %rsi
	leaq	-112(%rbp), %rdx
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	_dev_info
	addq	$32, %rsp
	xorl	%eax, %eax
LBB0_32:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_35
## %bb.33:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @hid_connect.types
_hid_connect.types:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	L_.str.6
	.quad	L_.str.7

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device"

L_.str.1:                               ## @.str.1
	.asciz	"Pointer"

L_.str.2:                               ## @.str.2
	.asciz	"Mouse"

L_.str.3:                               ## @.str.3
	.asciz	"Joystick"

L_.str.4:                               ## @.str.4
	.asciz	"Gamepad"

L_.str.5:                               ## @.str.5
	.asciz	"Keyboard"

L_.str.6:                               ## @.str.6
	.asciz	"Keypad"

L_.str.7:                               ## @.str.7
	.asciz	"Multi-Axis Controller"

	.comm	_HID_CONNECT_HIDDEV,4,2         ## @HID_CONNECT_HIDDEV
	.comm	_HID_CONNECT_HIDDEV_FORCE,4,2   ## @HID_CONNECT_HIDDEV_FORCE
	.comm	_HID_CONNECT_HIDINPUT,4,2       ## @HID_CONNECT_HIDINPUT
	.comm	_HID_CONNECT_HIDINPUT_FORCE,4,2 ## @HID_CONNECT_HIDINPUT_FORCE
	.comm	_HID_CLAIMED_INPUT,4,2          ## @HID_CLAIMED_INPUT
	.comm	_HID_CLAIMED_HIDDEV,4,2         ## @HID_CLAIMED_HIDDEV
	.comm	_HID_CONNECT_HIDRAW,4,2         ## @HID_CONNECT_HIDRAW
	.comm	_HID_CLAIMED_HIDRAW,4,2         ## @HID_CLAIMED_HIDRAW
L_.str.8:                               ## @.str.8
	.asciz	"claimed by neither input, hiddev nor hidraw\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_HID_CONNECT_FF,4,2             ## @HID_CONNECT_FF
L_.str.9:                               ## @.str.9
	.asciz	"input"

L_.str.10:                              ## @.str.10
	.asciz	"%shiddev%d"

L_.str.11:                              ## @.str.11
	.asciz	","

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

L_.str.13:                              ## @.str.13
	.asciz	"%shidraw%d"

	.comm	_HID_COLLECTION_APPLICATION,8,3 ## @HID_COLLECTION_APPLICATION
	.comm	_HID_USAGE_PAGE,4,2             ## @HID_USAGE_PAGE
	.comm	_HID_UP_GENDESK,4,2             ## @HID_UP_GENDESK
L_.str.14:                              ## @.str.14
	.asciz	"USB"

L_.str.15:                              ## @.str.15
	.asciz	"BLUETOOTH"

L_.str.16:                              ## @.str.16
	.asciz	"<UNKNOWN>"

L_.str.17:                              ## @.str.17
	.asciz	"%s: %s HID v%x.%02x %s [%s] on %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_connect                    ; -- Begin function hid_connect
	.p2align	2
_hid_connect:                           ; @hid_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
Lloh3:
	adrp	x21, _HID_CONNECT_HIDDEV@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HID_CONNECT_HIDDEV@GOTPAGEOFF]
	ldr	w8, [x0]
	ldr	w9, [x21]
	cmp	w8, #128
	mov	w8, #-1
	csinv	w8, w8, w9, eq
	and	w20, w8, w1
	bl	_hid_hiddev
Lloh5:
	adrp	x22, _HID_CONNECT_HIDDEV_FORCE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _HID_CONNECT_HIDDEV_FORCE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w20
Lloh7:
	adrp	x8, _HID_CONNECT_HIDINPUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HID_CONNECT_HIDINPUT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w20, w8
	b.eq	LBB0_3
; %bb.1:
Lloh10:
	adrp	x8, _HID_CONNECT_HIDINPUT_FORCE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HID_CONNECT_HIDINPUT_FORCE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w1, w8, w20
	mov	x0, x19
	bl	_hidinput_connect
	cbnz	w0, LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _HID_CLAIMED_INPUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HID_CLAIMED_INPUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_3:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w9, [x22]
	and	w1, w9, w20
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_7
; %bb.6:
Lloh16:
	adrp	x8, _HID_CLAIMED_HIDDEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HID_CLAIMED_HIDDEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_7:
Lloh19:
	adrp	x8, _HID_CONNECT_HIDRAW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HID_CONNECT_HIDRAW@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_hidraw_connect
	cbz	w0, LBB0_27
LBB0_9:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_28
LBB0_10:
Lloh22:
	adrp	x21, _HID_CLAIMED_INPUT@GOTPAGE
Lloh23:
	ldr	x21, [x21, _HID_CLAIMED_INPUT@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
Lloh24:
	adrp	x8, _HID_CONNECT_FF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HID_CONNECT_FF@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.12:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	blr	x8
	ldr	w8, [x19, #4]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_14:
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x0, sp, #24
	bl	_sprintf
	mov	x20, x0
	ldr	w8, [x19, #4]
	b	LBB0_16
LBB0_15:
	mov	w20, #0
LBB0_16:
Lloh29:
	adrp	x9, _HID_CLAIMED_HIDDEV@GOTPAGE
Lloh30:
	ldr	x9, [x9, _HID_CLAIMED_HIDDEV@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x21, l_.str.11@PAGE
Lloh33:
	add	x21, x21, l_.str.11@PAGEOFF
Lloh34:
	adrp	x22, l_.str.12@PAGE
Lloh35:
	add	x22, x22, l_.str.12@PAGEOFF
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	add	x8, sp, #24
	add	x0, x8, w20, sxtw
	cmp	w20, #0
	csel	x8, x22, x21, eq
	ldr	w9, [x19, #8]
	stp	x8, x9, [sp]
Lloh36:
	adrp	x1, l_.str.10@PAGE
Lloh37:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_sprintf
	add	w20, w20, w0
	ldr	w8, [x19, #4]
LBB0_18:
Lloh38:
	adrp	x9, _HID_CLAIMED_HIDRAW@GOTPAGE
Lloh39:
	ldr	x9, [x9, _HID_CLAIMED_HIDRAW@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	add	x8, sp, #24
	add	x0, x8, w20, sxtw
	cmp	w20, #0
	csel	x8, x22, x21, eq
	ldr	x9, [x19, #40]
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh41:
	adrp	x1, l_.str.13@PAGE
Lloh42:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_sprintf
LBB0_20:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_29
; %bb.21:
	mov	x22, #0
	mov	x23, #0
Lloh43:
	adrp	x24, _HID_COLLECTION_APPLICATION@GOTPAGE
Lloh44:
	ldr	x24, [x24, _HID_COLLECTION_APPLICATION@GOTPAGEOFF]
Lloh45:
	adrp	x25, _HID_USAGE_PAGE@GOTPAGE
Lloh46:
	ldr	x25, [x25, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh47:
	adrp	x26, _HID_UP_GENDESK@GOTPAGE
Lloh48:
	ldr	x26, [x26, _HID_UP_GENDESK@GOTPAGEOFF]
Lloh49:
	adrp	x21, _hid_connect.types@PAGE
Lloh50:
	add	x21, x21, _hid_connect.types@PAGEOFF
Lloh51:
	adrp	x20, l_.str@PAGE
Lloh52:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, uxtw
	b.hs	LBB0_31
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #32]
	ldr	x9, [x27, x22]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x9, x27, x22
	ldr	w28, [x9, #8]
	ldr	w9, [x25]
	and	w9, w9, w28
	ldr	w10, [x26]
	cmp	w9, w10
	b.ne	LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, w28, uxth
	b.gt	LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x19, #12]
	b	LBB0_22
LBB0_27:
Lloh53:
	adrp	x8, _HID_CLAIMED_HIDRAW@GOTPAGE
Lloh54:
	ldr	x8, [x8, _HID_CLAIMED_HIDRAW@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_10
LBB0_28:
	add	x0, x19, #28
Lloh56:
	adrp	x1, l_.str.8@PAGE
Lloh57:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_err
Lloh58:
	adrp	x8, _ENODEV@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_32
LBB0_29:
Lloh61:
	adrp	x20, l_.str@PAGE
Lloh62:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_31
LBB0_30:
	add	x8, x27, x22
	ldrh	w8, [x8, #8]
	ldr	x20, [x21, x8, lsl #3]
LBB0_31:
	ldr	w8, [x19]
Lloh63:
	adrp	x9, l_.str.16@PAGE
Lloh64:
	add	x9, x9, l_.str.16@PAGEOFF
Lloh65:
	adrp	x10, l_.str.15@PAGE
Lloh66:
	add	x10, x10, l_.str.15@PAGEOFF
	cmp	w8, #129
	csel	x9, x10, x9, eq
Lloh67:
	adrp	x10, l_.str.14@PAGE
Lloh68:
	add	x10, x10, l_.str.14@PAGEOFF
	cmp	w8, #128
	csel	x3, x10, x9, eq
	add	x0, x19, #28
	ldp	w8, w9, [x19, #16]
	asr	w4, w8, #8
	and	w5, w8, #0xff
	ldr	w7, [x19, #24]
	str	w9, [sp]
Lloh69:
	adrp	x1, l_.str.17@PAGE
Lloh70:
	add	x1, x1, l_.str.17@PAGEOFF
	add	x2, sp, #24
	mov	x6, x20
	bl	_dev_info
	mov	w0, #0
LBB0_32:
	ldr	x8, [sp, #88]
Lloh71:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh72:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh73:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @hid_connect.types
_hid_connect.types:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device"

l_.str.1:                               ; @.str.1
	.asciz	"Pointer"

l_.str.2:                               ; @.str.2
	.asciz	"Mouse"

l_.str.3:                               ; @.str.3
	.asciz	"Joystick"

l_.str.4:                               ; @.str.4
	.asciz	"Gamepad"

l_.str.5:                               ; @.str.5
	.asciz	"Keyboard"

l_.str.6:                               ; @.str.6
	.asciz	"Keypad"

l_.str.7:                               ; @.str.7
	.asciz	"Multi-Axis Controller"

	.comm	_HID_CONNECT_HIDDEV,4,2         ; @HID_CONNECT_HIDDEV
	.comm	_HID_CONNECT_HIDDEV_FORCE,4,2   ; @HID_CONNECT_HIDDEV_FORCE
	.comm	_HID_CONNECT_HIDINPUT,4,2       ; @HID_CONNECT_HIDINPUT
	.comm	_HID_CONNECT_HIDINPUT_FORCE,4,2 ; @HID_CONNECT_HIDINPUT_FORCE
	.comm	_HID_CLAIMED_INPUT,4,2          ; @HID_CLAIMED_INPUT
	.comm	_HID_CLAIMED_HIDDEV,4,2         ; @HID_CLAIMED_HIDDEV
	.comm	_HID_CONNECT_HIDRAW,4,2         ; @HID_CONNECT_HIDRAW
	.comm	_HID_CLAIMED_HIDRAW,4,2         ; @HID_CLAIMED_HIDRAW
l_.str.8:                               ; @.str.8
	.asciz	"claimed by neither input, hiddev nor hidraw\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_HID_CONNECT_FF,4,2             ; @HID_CONNECT_FF
l_.str.9:                               ; @.str.9
	.asciz	"input"

l_.str.10:                              ; @.str.10
	.asciz	"%shiddev%d"

l_.str.11:                              ; @.str.11
	.asciz	","

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

l_.str.13:                              ; @.str.13
	.asciz	"%shidraw%d"

	.comm	_HID_COLLECTION_APPLICATION,8,3 ; @HID_COLLECTION_APPLICATION
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.comm	_HID_UP_GENDESK,4,2             ; @HID_UP_GENDESK
l_.str.14:                              ; @.str.14
	.asciz	"USB"

l_.str.15:                              ; @.str.15
	.asciz	"BLUETOOTH"

l_.str.16:                              ; @.str.16
	.asciz	"<UNKNOWN>"

l_.str.17:                              ; @.str.17
	.asciz	"%s: %s HID v%x.%02x %s [%s] on %s\n"

.subsections_via_symbols
