	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	_HID_QUIRK_HIDDEV_FORCE@GOTPCREL(%rip), %rcx
	movl	(%rdi), %eax
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movl	4(%rdi), %edi
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	movq	_HID_CONNECT_HIDDEV_FORCE@GOTPCREL(%rip), %r14
	movq	_HID_CONNECT_HIDDEV@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	(%r14), %ecx
	orl	%edx, %ecx
	testl	%ebx, %ebx
	cmovel	%ebx, %ecx
	orl	%esi, %ecx
	movq	_HID_QUIRK_HIDINPUT_FORCE@GOTPCREL(%rip), %rsi
	movq	_HID_CONNECT_HIDINPUT_FORCE@GOTPCREL(%rip), %r13
	andl	(%rsi), %eax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %eax
LBB0_2:
	orl	%eax, %ecx
	cmpl	$128, %edi
	notl	%edx
	movl	$-1, %ebx
	cmovnel	%edx, %ebx
	andl	%ecx, %ebx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_hid_hiddev
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %ecx
LBB0_4:
	orl	%ecx, %ebx
	movq	_HID_CONNECT_HIDINPUT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.5:
	movl	(%r13), %esi
	andl	%ebx, %esi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_hidinput_connect
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	orl	%eax, 8(%rcx)
LBB0_7:
	testl	%ebx, (%r15)
	je	LBB0_11
## %bb.8:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	72(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	(%r14), %esi
	andl	%ebx, %esi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_HID_CLAIMED_HIDDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	orl	%eax, 8(%rcx)
LBB0_11:
	movq	_HID_CONNECT_HIDRAW@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.12:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_hidraw_connect
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_HID_CLAIMED_HIDRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	orl	%eax, 8(%rcx)
LBB0_14:
	movq	_HID_CONNECT_DRIVER@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.16:
	movq	_HID_CLAIMED_DRIVER@GOTPCREL(%rip), %rcx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	8(%rdx), %eax
	orl	(%rcx), %eax
	movl	%eax, 8(%rdx)
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_18
LBB0_15:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_20
LBB0_18:
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	64(%rcx), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_19
LBB0_20:
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	testl	%eax, (%r15)
	je	LBB0_25
## %bb.21:
	movq	_HID_CONNECT_FF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_24
## %bb.22:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	56(%rax), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	*%rax
	movl	8(%rbx), %eax
	testl	%eax, (%r15)
	je	LBB0_25
LBB0_24:
	leaq	L_.str.9(%rip), %rsi
	leaq	-112(%rbp), %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movq	%rax, %r14
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %eax
LBB0_25:
	movq	_HID_CLAIMED_HIDDEV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_27
## %bb.26:
	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
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	48(%r15), %rax
	movl	(%rax), %ecx
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	movq	%rax, %r14
	addl	%ebx, %r14d
	movl	8(%r15), %eax
LBB0_27:
	movq	_HID_CLAIMED_HIDRAW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_29
## %bb.28:
	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	-120(%rbp), %rax                ## 8-byte Reload
	movq	40(%rax), %rax
	movl	(%rax), %ecx
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
LBB0_29:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	12(%rax), %eax
	leaq	L_.str(%rip), %r15
	testl	%eax, %eax
	je	LBB0_37
## %bb.30:
	movl	$8, %ebx
	xorl	%r13d, %r13d
	movq	_HID_COLLECTION_APPLICATION@GOTPCREL(%rip), %r15
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %r12
	movq	_HID_UP_GENDESK@GOTPCREL(%rip), %rdi
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	12(%rax), %eax
	movq	_HID_UP_GENDESK@GOTPCREL(%rip), %rdi
LBB0_35:                                ##   in Loop: Header=BB0_31 Depth=1
	incq	%r13
	movl	%eax, %ecx
	addq	$16, %rbx
	cmpq	%rcx, %r13
	jae	LBB0_36
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	32(%rcx), %r14
	movq	-8(%r14,%rbx), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movl	(%r14,%rbx), %ecx
	movl	(%r12), %edx
	andl	%ecx, %edx
	cmpl	(%rdi), %edx
	jne	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	movzwl	%cx, %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	leaq	_hid_connect.types(%rip), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, -124(%rbp)                ## 4-byte Folded Reload
	jge	LBB0_34
## %bb.45:
	movzwl	(%r14,%rbx), %eax
	leaq	_hid_connect.types(%rip), %rcx
	movq	(%rcx,%rax,8), %r15
	jmp	LBB0_37
LBB0_36:
	leaq	L_.str(%rip), %r15
LBB0_37:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_38
## %bb.39:
	cltq
	leaq	l_reltable.hid_connect(%rip), %rcx
	movslq	(%rcx,%rax,4), %r14
	addq	%rcx, %r14
	jmp	LBB0_40
LBB0_38:
	leaq	L_.str.17(%rip), %r14
LBB0_40:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	28(%rax), %rdi
	movq	_dev_attr_country@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_42
## %bb.41:
	leaq	L_.str.18(%rip), %rsi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %edx
	callq	_hid_warn
LBB0_42:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	16(%rdi), %r8d
	movl	20(%rdi), %eax
	movzbl	%r8b, %r9d
	sarl	$8, %r8d
	movl	24(%rdi), %ebx
	subq	$8, %rsp
	leaq	L_.str.19(%rip), %rsi
	leaq	-112(%rbp), %rdx
	movq	%r14, %rcx
	pushq	%rax
	pushq	%rbx
	pushq	%r15
	callq	_hid_info
	addq	$32, %rsp
	xorl	%eax, %eax
LBB0_43:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_46
## %bb.44:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	leaq	L_.str.8(%rip), %rsi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_hid_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_43
LBB0_46:
	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_QUIRK_HIDDEV_FORCE,4,2     ## @HID_QUIRK_HIDDEV_FORCE
	.comm	_HID_CONNECT_HIDDEV_FORCE,4,2   ## @HID_CONNECT_HIDDEV_FORCE
	.comm	_HID_CONNECT_HIDDEV,4,2         ## @HID_CONNECT_HIDDEV
	.comm	_HID_QUIRK_HIDINPUT_FORCE,4,2   ## @HID_QUIRK_HIDINPUT_FORCE
	.comm	_HID_CONNECT_HIDINPUT_FORCE,4,2 ## @HID_CONNECT_HIDINPUT_FORCE
	.comm	_HID_CONNECT_HIDINPUT,4,2       ## @HID_CONNECT_HIDINPUT
	.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
	.comm	_HID_CONNECT_DRIVER,4,2         ## @HID_CONNECT_DRIVER
	.comm	_HID_CLAIMED_DRIVER,4,2         ## @HID_CLAIMED_DRIVER
L_.str.8:                               ## @.str.8
	.asciz	"device has no listeners, quitting\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	"I2C"

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

	.comm	_dev_attr_country,4,2           ## @dev_attr_country
L_.str.18:                              ## @.str.18
	.asciz	"can't create sysfs country code attribute err: %d\n"

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

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.hid_connect
l_reltable.hid_connect:
	.long	L_.str.14-l_reltable.hid_connect
	.long	L_.str.16-l_reltable.hid_connect
	.long	L_.str.15-l_reltable.hid_connect

.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]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
Lloh3:
	adrp	x8, _HID_QUIRK_HIDDEV_FORCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_QUIRK_HIDDEV_FORCE@GOTPAGEOFF]
Lloh5:
	adrp	x21, _HID_CONNECT_HIDDEV_FORCE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _HID_CONNECT_HIDDEV_FORCE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x21]
Lloh8:
	adrp	x22, _HID_CONNECT_HIDDEV@GOTPAGE
Lloh9:
	ldr	x22, [x22, _HID_CONNECT_HIDDEV@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w9, w10, w9
	ldp	w11, w12, [x0]
	tst	w8, w11
	csel	w8, wzr, w9, eq
Lloh10:
	adrp	x9, _HID_QUIRK_HIDINPUT_FORCE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HID_QUIRK_HIDINPUT_FORCE@GOTPAGEOFF]
	orr	w8, w8, w1
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x24, _HID_CONNECT_HIDINPUT_FORCE@GOTPAGE
Lloh14:
	ldr	x24, [x24, _HID_CONNECT_HIDINPUT_FORCE@GOTPAGEOFF]
	tst	w9, w11
	ldr	w9, [x24]
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
	cmp	w12, #128
	mov	w9, #-1
	csinv	w9, w9, w10, eq
	and	w20, w8, w9
	bl	_hid_hiddev
	ldr	w8, [x21]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w23, w20, w8
Lloh15:
	adrp	x8, _HID_CONNECT_HIDINPUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HID_CONNECT_HIDINPUT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x20, _HID_CLAIMED_INPUT@GOTPAGE
Lloh19:
	ldr	x20, [x20, _HID_CLAIMED_INPUT@GOTPAGEOFF]
	tst	w23, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x24]
	and	w1, w8, w23
	mov	x0, x19
	bl	_hidinput_connect
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [x20]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_3:
	ldr	w8, [x22]
Lloh20:
	adrp	x22, _HID_CLAIMED_HIDDEV@GOTPAGE
Lloh21:
	ldr	x22, [x22, _HID_CLAIMED_HIDDEV@GOTPAGEOFF]
	tst	w8, w23
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w9, [x21]
	and	w1, w9, w23
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x22]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_7:
Lloh22:
	adrp	x8, _HID_CONNECT_HIDRAW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HID_CONNECT_HIDRAW@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x21, _HID_CLAIMED_HIDRAW@GOTPAGE
Lloh26:
	ldr	x21, [x21, _HID_CLAIMED_HIDRAW@GOTPAGEOFF]
	tst	w8, w23
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_hidraw_connect
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w8, [x21]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_10:
Lloh27:
	adrp	x8, _HID_CONNECT_DRIVER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HID_CONNECT_DRIVER@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_12
; %bb.11:
Lloh30:
	adrp	x8, _HID_CLAIMED_DRIVER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HID_CLAIMED_DRIVER@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	cbnz	w8, LBB0_14
	b	LBB0_13
LBB0_12:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_14
LBB0_13:
	ldr	x9, [x19, #64]
	ldr	w9, [x9]
	cbz	w9, LBB0_41
LBB0_14:
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.15:
Lloh33:
	adrp	x8, _HID_CONNECT_FF@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HID_CONNECT_FF@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_18
; %bb.16:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	blr	x8
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_19
LBB0_18:
Lloh36:
	adrp	x1, l_.str.9@PAGE
Lloh37:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x0, sp, #16
	bl	_sprintf
	mov	x20, x0
	ldr	w8, [x19, #8]
	b	LBB0_20
LBB0_19:
	mov	w20, #0
LBB0_20:
	ldr	w9, [x22]
Lloh38:
	adrp	x22, l_.str.11@PAGE
Lloh39:
	add	x22, x22, l_.str.11@PAGEOFF
Lloh40:
	adrp	x23, l_.str.12@PAGE
Lloh41:
	add	x23, x23, l_.str.12@PAGEOFF
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	add	x8, sp, #16
	add	x0, x8, w20, sxtw
	cmp	w20, #0
	csel	x8, x23, x22, eq
	ldr	x9, [x19, #48]
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh42:
	adrp	x1, l_.str.10@PAGE
Lloh43:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_sprintf
	add	w20, w20, w0
	ldr	w8, [x19, #8]
LBB0_22:
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
	add	x8, sp, #16
	add	x0, x8, w20, sxtw
	cmp	w20, #0
	csel	x8, x23, x22, eq
	ldr	x9, [x19, #40]
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh44:
	adrp	x1, l_.str.13@PAGE
Lloh45:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_sprintf
LBB0_24:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_32
; %bb.25:
	mov	x22, #0
	mov	x23, #0
Lloh46:
	adrp	x24, _HID_COLLECTION_APPLICATION@GOTPAGE
Lloh47:
	ldr	x24, [x24, _HID_COLLECTION_APPLICATION@GOTPAGEOFF]
Lloh48:
	adrp	x25, _HID_USAGE_PAGE@GOTPAGE
Lloh49:
	ldr	x25, [x25, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh50:
	adrp	x26, _HID_UP_GENDESK@GOTPAGE
Lloh51:
	ldr	x26, [x26, _HID_UP_GENDESK@GOTPAGEOFF]
Lloh52:
	adrp	x21, _hid_connect.types@PAGE
Lloh53:
	add	x21, x21, _hid_connect.types@PAGEOFF
Lloh54:
	adrp	x20, l_.str@PAGE
Lloh55:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	w8, [x19, #12]
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, uxtw
	b.hs	LBB0_33
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #32]
	ldr	x9, [x27, x22]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 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_27
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, w28, uxth
	b.le	LBB0_26
; %bb.31:
	add	x8, x27, x22
	ldrh	w8, [x8, #8]
	ldr	x20, [x21, x8, lsl #3]
	b	LBB0_33
LBB0_32:
Lloh56:
	adrp	x20, l_.str@PAGE
Lloh57:
	add	x20, x20, l_.str@PAGEOFF
LBB0_33:
	ldr	w8, [x19, #4]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_35
; %bb.34:
Lloh58:
	adrp	x9, l_switch.table.hid_connect@PAGE
Lloh59:
	add	x9, x9, l_switch.table.hid_connect@PAGEOFF
	ldr	x21, [x9, w8, sxtw #3]
	b	LBB0_36
LBB0_35:
Lloh60:
	adrp	x21, l_.str.17@PAGE
Lloh61:
	add	x21, x21, l_.str.17@PAGEOFF
LBB0_36:
	add	x0, x19, #28
Lloh62:
	adrp	x1, _dev_attr_country@GOTPAGE
Lloh63:
	ldr	x1, [x1, _dev_attr_country@GOTPAGEOFF]
	bl	_device_create_file
	cbz	w0, LBB0_38
; %bb.37:
	mov	x2, x0
Lloh64:
	adrp	x1, l_.str.18@PAGE
Lloh65:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_hid_warn
LBB0_38:
	ldp	w8, w9, [x19, #16]
	asr	w4, w8, #8
	and	w5, w8, #0xff
	ldr	w7, [x19, #24]
	str	w9, [sp]
Lloh66:
	adrp	x1, l_.str.19@PAGE
Lloh67:
	add	x1, x1, l_.str.19@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	mov	x3, x21
	mov	x6, x20
	bl	_hid_info
	mov	w0, #0
LBB0_39:
	ldr	x8, [sp, #88]
Lloh68:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh69:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_42
; %bb.40:
	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_41:
Lloh71:
	adrp	x1, l_.str.8@PAGE
Lloh72:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_hid_err
Lloh73:
	adrp	x8, _ENODEV@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_39
LBB0_42:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh71, Lloh72
	.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_QUIRK_HIDDEV_FORCE,4,2     ; @HID_QUIRK_HIDDEV_FORCE
	.comm	_HID_CONNECT_HIDDEV_FORCE,4,2   ; @HID_CONNECT_HIDDEV_FORCE
	.comm	_HID_CONNECT_HIDDEV,4,2         ; @HID_CONNECT_HIDDEV
	.comm	_HID_QUIRK_HIDINPUT_FORCE,4,2   ; @HID_QUIRK_HIDINPUT_FORCE
	.comm	_HID_CONNECT_HIDINPUT_FORCE,4,2 ; @HID_CONNECT_HIDINPUT_FORCE
	.comm	_HID_CONNECT_HIDINPUT,4,2       ; @HID_CONNECT_HIDINPUT
	.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
	.comm	_HID_CONNECT_DRIVER,4,2         ; @HID_CONNECT_DRIVER
	.comm	_HID_CLAIMED_DRIVER,4,2         ; @HID_CLAIMED_DRIVER
l_.str.8:                               ; @.str.8
	.asciz	"device has no listeners, quitting\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	"I2C"

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

	.comm	_dev_attr_country,4,2           ; @dev_attr_country
l_.str.18:                              ; @.str.18
	.asciz	"can't create sysfs country code attribute err: %d\n"

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

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.hid_connect
l_switch.table.hid_connect:
	.quad	l_.str.14
	.quad	l_.str.16
	.quad	l_.str.15

.subsections_via_symbols
