	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adbhid_probe
_adbhid_probe:                          ## @adbhid_probe
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ADB_MOUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_adbhid_mouse_input@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_mouse_ids@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_adb_register
	movq	_ADB_KEYBOARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_adbhid_keyboard_input@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_keyboard_ids@GOTPCREL(%rip), %r13
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_adb_register
	movq	_ADB_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_adbhid_buttons_input@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_buttons_ids@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	callq	_adb_register
	cmpl	$0, (%r13)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %r14d
	movl	%r14d, %edi
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_adb_get_infos
	movq	_ADBREQ_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_KEYB_LEDREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_ADB_WRITEREG
	movl	$255, (%rsp)
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	$3, %ecx
	movl	%eax, %r8d
	movl	$255, %r9d
	xorl	%eax, %eax
	callq	_adb_request
	movl	%r14d, %edi
	movl	$3, %esi
	callq	_adb_try_handler_change
	testq	%rax, %rax
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printk
	movl	%r14d, %edi
	leaq	-44(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	_adb_get_infos
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-52(%rbp), %ecx
	movl	%r14d, %edi
	xorl	%r8d, %r8d
	callq	_adbhid_input_reregister
	orl	%eax, %r12d
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_buttons_ids@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rax
	movl	(%rax,%rbx,4), %r13d
	movl	%r13d, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_adb_get_infos
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %ecx
	movl	%r13d, %edi
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	callq	_adbhid_input_reregister
	movq	_buttons_ids@GOTPCREL(%rip), %rcx
	orl	%eax, %r12d
	incq	%rbx
	movslq	(%rcx), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_mouse_ids@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_45
## %bb.7:
	leaq	-44(%rbp), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	callq	_init_microspeed
LBB0_44:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movl	%r13d, %edi
	leaq	-44(%rbp), %r14
	movq	%r14, %rsi
	leaq	-52(%rbp), %rdx
	callq	_adb_get_infos
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-52(%rbp), %ecx
	movl	%r13d, %edi
	movl	%ebx, %r8d
	callq	_adbhid_input_reregister
	orl	%eax, %r12d
	incq	%r15
	movq	_mouse_ids@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rax
	cmpq	%rax, %r15
	jge	LBB0_45
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rax
	movl	(%rax,%r15,4), %r13d
	movl	%r13d, %edi
	movq	%r14, %rsi
	leaq	-48(%rbp), %rdx
	callq	_adb_get_infos
	movl	%r13d, %edi
	movl	$4, %esi
	callq	_adb_try_handler_change
	leaq	L_.str.2(%rip), %rdi
	movq	_ADBMOUSE_EXTENDED@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	movl	$47, %esi
	callq	_adb_try_handler_change
	leaq	L_.str.3(%rip), %rdi
	movq	_ADBMOUSE_MICROSPEED@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	movl	$66, %esi
	callq	_adb_try_handler_change
	leaq	L_.str.4(%rip), %rdi
	movq	_ADBMOUSE_TRACKBALLPRO@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	movl	$102, %esi
	callq	_adb_try_handler_change
	leaq	L_.str.5(%rip), %rdi
	movq	_ADBMOUSE_MICROSPEED@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	movl	$95, %esi
	callq	_adb_try_handler_change
	leaq	L_.str.6(%rip), %rdi
	movq	_ADBMOUSE_MICROSPEED@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	movl	$3, %esi
	callq	_adb_try_handler_change
	leaq	L_.str.7(%rip), %rdi
	movq	_ADBMOUSE_MS_A3@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	movl	$2, %esi
	callq	_adb_try_handler_change
	testq	%rax, %rax
	leaq	L_.str.8(%rip), %rdi
	leaq	L_.str.9(%rip), %rax
	cmoveq	%rax, %rdi
	movq	_ADBMOUSE_STANDARD_200@GOTPCREL(%rip), %rbx
	cmoveq	_ADBMOUSE_STANDARD_100@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_printk
	movl	(%rbx), %ebx
	movq	_ADBMOUSE_TRACKBALLPRO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ADBMOUSE_MICROSPEED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ADBMOUSE_MS_A3@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	callq	_init_ms_a3
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_ADBMOUSE_EXTENDED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_44
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ADBREQ_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ADBREQ_SYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_ADB_READREG
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_adb_request
	movl	-72(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_44
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rax
	movl	4(%rax), %esi
	cmpl	$154, %esi
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%rax), %edx
	andl	$-2, %edx
	cmpl	$32, %edx
	jne	LBB0_32
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ADBMOUSE_TRACKBALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_init_trackball
	jmp	LBB0_44
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$3, %ecx
	jle	LBB0_44
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$75, %esi
	je	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=1
	movb	$1, %dl
	cmpl	$116, %esi
	jne	LBB0_37
## %bb.28:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$112, 8(%rax)
	jne	LBB0_37
## %bb.29:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$97, 12(%rax)
	jne	LBB0_37
## %bb.30:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$100, 16(%rax)
	jne	LBB0_37
## %bb.31:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ADBMOUSE_TRACKPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_init_trackpad
	jmp	LBB0_44
LBB0_32:                                ##   in Loop: Header=BB0_8 Depth=1
	movb	$1, %dl
	cmpl	$3, %ecx
	jle	LBB0_44
LBB0_37:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$9, %ecx
	jne	LBB0_44
LBB0_38:                                ##   in Loop: Header=BB0_8 Depth=1
	testb	%dl, %dl
	jne	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$79, 8(%rax)
	jne	LBB0_44
## %bb.40:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$73, 12(%rax)
	jne	LBB0_44
## %bb.41:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$84, 16(%rax)
	jne	LBB0_44
## %bb.42:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	movl	$66, %esi
	callq	_adb_try_handler_change
	testq	%rax, %rax
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.10(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_printk
	movq	_ADBMOUSE_MACALLY2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_44
LBB0_33:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$77, 8(%rax)
	jne	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$76, 12(%rax)
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$49, 16(%rax)
	jne	LBB0_36
## %bb.46:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ADBMOUSE_TURBOMOUSE5@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_init_turbomouse
	jmp	LBB0_44
LBB0_36:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edx, %edx
	cmpl	$9, %ecx
	je	LBB0_38
	jmp	LBB0_44
LBB0_45:
	movl	%r12d, %edi
	callq	_adbhid_input_devcleanup
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADB_MOUSE,4,2                  ## @ADB_MOUSE
	.comm	_mouse_ids,16,3                 ## @mouse_ids
	.comm	_adbhid_mouse_input,4,2         ## @adbhid_mouse_input
	.comm	_ADB_KEYBOARD,4,2               ## @ADB_KEYBOARD
	.comm	_keyboard_ids,16,3              ## @keyboard_ids
	.comm	_adbhid_keyboard_input,4,2      ## @adbhid_keyboard_input
	.comm	_ADB_MISC,4,2                   ## @ADB_MISC
	.comm	_buttons_ids,16,3               ## @buttons_ids
	.comm	_adbhid_buttons_input,4,2       ## @adbhid_buttons_input
	.comm	_ADBREQ_SYNC,4,2                ## @ADBREQ_SYNC
	.comm	_KEYB_LEDREG,4,2                ## @KEYB_LEDREG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ADB keyboard at %d, handler set to 3\n"

L_.str.1:                               ## @.str.1
	.asciz	"ADB keyboard at %d, handler 1\n"

L_.str.2:                               ## @.str.2
	.asciz	"ADB mouse at %d, handler set to 4"

	.comm	_ADBMOUSE_EXTENDED,4,2          ## @ADBMOUSE_EXTENDED
L_.str.3:                               ## @.str.3
	.asciz	"ADB mouse at %d, handler set to 0x2F"

	.comm	_ADBMOUSE_MICROSPEED,4,2        ## @ADBMOUSE_MICROSPEED
L_.str.4:                               ## @.str.4
	.asciz	"ADB mouse at %d, handler set to 0x42"

	.comm	_ADBMOUSE_TRACKBALLPRO,4,2      ## @ADBMOUSE_TRACKBALLPRO
L_.str.5:                               ## @.str.5
	.asciz	"ADB mouse at %d, handler set to 0x66"

L_.str.6:                               ## @.str.6
	.asciz	"ADB mouse at %d, handler set to 0x5F"

L_.str.7:                               ## @.str.7
	.asciz	"ADB mouse at %d, handler set to 3"

	.comm	_ADBMOUSE_MS_A3,4,2             ## @ADBMOUSE_MS_A3
L_.str.8:                               ## @.str.8
	.asciz	"ADB mouse at %d, handler set to 2"

	.comm	_ADBMOUSE_STANDARD_200,4,2      ## @ADBMOUSE_STANDARD_200
L_.str.9:                               ## @.str.9
	.asciz	"ADB mouse at %d, handler 1"

	.comm	_ADBMOUSE_STANDARD_100,4,2      ## @ADBMOUSE_STANDARD_100
	.comm	_ADBREQ_REPLY,4,2               ## @ADBREQ_REPLY
	.comm	_ADBMOUSE_TRACKBALL,4,2         ## @ADBMOUSE_TRACKBALL
	.comm	_ADBMOUSE_TRACKPAD,4,2          ## @ADBMOUSE_TRACKPAD
	.comm	_ADBMOUSE_TURBOMOUSE5,4,2       ## @ADBMOUSE_TURBOMOUSE5
L_.str.10:                              ## @.str.10
	.asciz	"\nADB MacAlly 2-button mouse at %d, handler set to 0x42"

	.comm	_ADBMOUSE_MACALLY2,4,2          ## @ADBMOUSE_MACALLY2
L_.str.11:                              ## @.str.11
	.asciz	"\n"

	.no_dead_strip	_adbhid_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adbhid_probe
_adbhid_probe:                          ; @adbhid_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, _ADB_MOUSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADB_MOUSE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _adbhid_mouse_input@GOTPAGE
Lloh4:
	ldr	x8, [x8, _adbhid_mouse_input@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x2, _mouse_ids@GOTPAGE
Lloh7:
	ldr	x2, [x2, _mouse_ids@GOTPAGEOFF]
	mov	w1, #0
	bl	_adb_register
Lloh8:
	adrp	x8, _ADB_KEYBOARD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADB_KEYBOARD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _adbhid_keyboard_input@GOTPAGE
Lloh12:
	ldr	x8, [x8, _adbhid_keyboard_input@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x22, _keyboard_ids@GOTPAGE
Lloh15:
	ldr	x22, [x22, _keyboard_ids@GOTPAGEOFF]
	mov	w1, #0
	mov	x2, x22
	bl	_adb_register
Lloh16:
	adrp	x8, _ADB_MISC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ADB_MISC@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _adbhid_buttons_input@GOTPAGE
Lloh20:
	ldr	x8, [x8, _adbhid_buttons_input@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x21, _buttons_ids@GOTPAGE
Lloh23:
	ldr	x21, [x21, _buttons_ids@GOTPAGEOFF]
	mov	w1, #0
	mov	x2, x21
	bl	_adb_register
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x25, #0
	mov	w20, #0
	mov	w27, #255
Lloh24:
	adrp	x28, l_.str@PAGE
Lloh25:
	add	x28, x28, l_.str@PAGEOFF
Lloh26:
	adrp	x19, l_.str.1@PAGE
Lloh27:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh28:
	adrp	x26, _ADBREQ_SYNC@GOTPAGE
Lloh29:
	ldr	x26, [x26, _ADBREQ_SYNC@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w23, [x8, x25, lsl #2]
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x23
	bl	_adb_get_infos
	ldr	w24, [x26]
Lloh30:
	adrp	x8, _KEYB_LEDREG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KEYB_LEDREG@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_ADB_WRITEREG
	mov	x4, x0
	stp	x27, x27, [sp]
	add	x0, sp, #32
	mov	x1, #0
	mov	x2, x24
	mov	w3, #3
	bl	_adb_request
	mov	x0, x23
	mov	w1, #3
	bl	_adb_try_handler_change
	cmp	x0, #0
	csel	x0, x19, x28, eq
	str	x23, [sp]
	bl	_printk
	add	x1, sp, #28
	add	x2, sp, #20
	mov	x0, x23
	bl	_adb_get_infos
	ldp	w2, w1, [sp, #24]
	ldr	w3, [sp, #20]
	mov	x0, x23
	mov	w4, #0
	bl	_adbhid_input_reregister
	orr	w20, w0, w20
	add	x25, x25, #1
	ldrsw	x8, [x22]
	cmp	x25, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x19, #0
Lloh33:
	adrp	x25, _mouse_ids@GOTPAGE
Lloh34:
	ldr	x25, [x25, _mouse_ids@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w22, [x8, x19, lsl #2]
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x22
	bl	_adb_get_infos
	ldp	w2, w1, [sp, #24]
	mov	x0, x22
	mov	x3, x2
	mov	w4, #0
	bl	_adbhid_input_reregister
	orr	w20, w0, w20
	add	x19, x19, #1
	ldrsw	x8, [x21]
	cmp	x19, x8
	b.lt	LBB0_6
	b	LBB0_8
LBB0_7:
Lloh35:
	adrp	x25, _mouse_ids@GOTPAGE
Lloh36:
	ldr	x25, [x25, _mouse_ids@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_55
; %bb.9:
	mov	x27, #0
Lloh37:
	adrp	x28, _ADBMOUSE_EXTENDED@GOTPAGE
Lloh38:
	ldr	x28, [x28, _ADBMOUSE_EXTENDED@GOTPAGEOFF]
Lloh39:
	adrp	x22, _ADBMOUSE_MICROSPEED@GOTPAGE
Lloh40:
	ldr	x22, [x22, _ADBMOUSE_MICROSPEED@GOTPAGEOFF]
Lloh41:
	adrp	x26, _ADBMOUSE_TRACKBALLPRO@GOTPAGE
Lloh42:
	ldr	x26, [x26, _ADBMOUSE_TRACKBALLPRO@GOTPAGEOFF]
Lloh43:
	adrp	x21, l_.str.11@PAGE
Lloh44:
	add	x21, x21, l_.str.11@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_init_microspeed
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_printk
	add	x1, sp, #28
	add	x2, sp, #20
	mov	x0, x23
	bl	_adb_get_infos
	ldp	w2, w1, [sp, #24]
	ldr	w3, [sp, #20]
	mov	x0, x23
	mov	x4, x24
	bl	_adbhid_input_reregister
	orr	w20, w0, w20
	add	x27, x27, #1
	ldrsw	x8, [x25]
	cmp	x27, x8
	b.ge	LBB0_55
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	ldr	w23, [x8, x27, lsl #2]
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x23
	bl	_adb_get_infos
	mov	x0, x23
	mov	w1, #4
	bl	_adb_try_handler_change
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh45:
	adrp	x0, l_.str.2@PAGE
Lloh46:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x19, x28
	b	LBB0_25
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	w1, #47
	bl	_adb_try_handler_change
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh47:
	adrp	x0, l_.str.3@PAGE
Lloh48:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x19, x22
	b	LBB0_25
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	w1, #66
	bl	_adb_try_handler_change
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh49:
	adrp	x0, l_.str.4@PAGE
Lloh50:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x19, x26
	b	LBB0_25
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	w1, #102
	bl	_adb_try_handler_change
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh51:
	adrp	x0, l_.str.5@PAGE
Lloh52:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x19, x22
	b	LBB0_25
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	w1, #95
	bl	_adb_try_handler_change
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh53:
	adrp	x0, l_.str.6@PAGE
Lloh54:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x19, x22
	b	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	w1, #3
	bl	_adb_try_handler_change
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh55:
	adrp	x0, l_.str.7@PAGE
Lloh56:
	add	x0, x0, l_.str.7@PAGEOFF
Lloh57:
	adrp	x19, _ADBMOUSE_MS_A3@GOTPAGE
Lloh58:
	ldr	x19, [x19, _ADBMOUSE_MS_A3@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	w1, #2
	bl	_adb_try_handler_change
	cmp	x0, #0
Lloh59:
	adrp	x8, l_.str.8@PAGE
Lloh60:
	add	x8, x8, l_.str.8@PAGEOFF
Lloh61:
	adrp	x9, l_.str.9@PAGE
Lloh62:
	add	x9, x9, l_.str.9@PAGEOFF
	csel	x0, x9, x8, eq
Lloh63:
	adrp	x8, _ADBMOUSE_STANDARD_200@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ADBMOUSE_STANDARD_200@GOTPAGEOFF]
Lloh65:
	adrp	x9, _ADBMOUSE_STANDARD_100@GOTPAGE
Lloh66:
	ldr	x9, [x9, _ADBMOUSE_STANDARD_100@GOTPAGEOFF]
	csel	x19, x9, x8, eq
LBB0_25:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x23, [sp]
	bl	_printk
	ldr	w24, [x19]
	ldr	w8, [x26]
	ldr	w9, [x22]
	cmp	w24, w8
	ccmp	w24, w9, #4, ne
	b.eq	LBB0_10
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh67:
	adrp	x8, _ADBMOUSE_MS_A3@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ADBMOUSE_MS_A3@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	cmp	w24, w8
Lloh70:
	adrp	x9, _ADBREQ_SYNC@GOTPAGE
Lloh71:
	ldr	x9, [x9, _ADBREQ_SYNC@GOTPAGEOFF]
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_init_ms_a3
	b	LBB0_11
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x28]
	cmp	w24, w8
	b.ne	LBB0_11
; %bb.29:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x9]
Lloh72:
	adrp	x9, _ADBREQ_REPLY@GOTPAGE
Lloh73:
	ldr	x9, [x9, _ADBREQ_REPLY@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	orr	w25, w9, w8
	mov	x0, x23
	mov	w1, #1
	bl	_ADB_READREG
	mov	x4, x0
	add	x0, sp, #32
	mov	x1, #0
	mov	x2, x25
	mov	w3, #1
	bl	_adb_request
	ldr	w9, [sp, #32]
	cbz	w9, LBB0_42
; %bb.30:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #40]
	ldr	w10, [x8, #4]
	cmp	w10, #154
	b.ne	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w10, [x8, #8]
	and	w10, w10, #0xfffffffe
	cmp	w10, #32
	b.ne	LBB0_40
; %bb.32:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh75:
	adrp	x8, _ADBMOUSE_TRACKBALL@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ADBMOUSE_TRACKBALL@GOTPAGEOFF]
Lloh77:
	ldr	w24, [x8]
	mov	x0, x23
	bl	_init_trackball
	b	LBB0_42
LBB0_33:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w9, #3
Lloh78:
	adrp	x25, _mouse_ids@GOTPAGE
Lloh79:
	ldr	x25, [x25, _mouse_ids@GOTPAGEOFF]
	b.le	LBB0_11
; %bb.34:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w10, #75
	b.eq	LBB0_44
; %bb.35:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w10, #116
	b.ne	LBB0_43
; %bb.36:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w10, [x8, #8]
	cmp	w10, #112
	b.ne	LBB0_43
; %bb.37:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w10, [x8, #12]
	cmp	w10, #97
	b.ne	LBB0_43
; %bb.38:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w10, [x8, #16]
	cmp	w10, #100
	b.ne	LBB0_43
; %bb.39:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh80:
	adrp	x8, _ADBMOUSE_TRACKPAD@GOTPAGE
Lloh81:
	ldr	x8, [x8, _ADBMOUSE_TRACKPAD@GOTPAGEOFF]
Lloh82:
	ldr	w24, [x8]
	mov	x0, x23
	bl	_init_trackpad
	b	LBB0_11
LBB0_40:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w9, #3
	b.le	LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w10, #1
Lloh83:
	adrp	x25, _mouse_ids@GOTPAGE
Lloh84:
	ldr	x25, [x25, _mouse_ids@GOTPAGEOFF]
	cmp	w9, #9
	b.eq	LBB0_49
	b	LBB0_11
LBB0_42:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh85:
	adrp	x25, _mouse_ids@GOTPAGE
Lloh86:
	ldr	x25, [x25, _mouse_ids@GOTPAGEOFF]
	b	LBB0_11
LBB0_43:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w10, #1
	cmp	w9, #9
	b.eq	LBB0_49
	b	LBB0_11
LBB0_44:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w10, [x8, #8]
	cmp	w10, #77
	b.ne	LBB0_48
; %bb.45:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w10, [x8, #12]
	cmp	w10, #76
	b.ne	LBB0_48
; %bb.46:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w10, [x8, #16]
	cmp	w10, #49
	b.ne	LBB0_48
; %bb.47:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh87:
	adrp	x8, _ADBMOUSE_TURBOMOUSE5@GOTPAGE
Lloh88:
	ldr	x8, [x8, _ADBMOUSE_TURBOMOUSE5@GOTPAGEOFF]
Lloh89:
	ldr	w24, [x8]
	mov	x0, x23
	bl	_init_turbomouse
	b	LBB0_11
LBB0_48:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w10, #0
	cmp	w9, #9
	b.ne	LBB0_11
LBB0_49:                                ;   in Loop: Header=BB0_12 Depth=1
	tbnz	w10, #0, LBB0_11
; %bb.50:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x8, #8]
	cmp	w9, #79
	b.ne	LBB0_11
; %bb.51:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x8, #12]
	cmp	w9, #73
	b.ne	LBB0_11
; %bb.52:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x8, #16]
	cmp	w8, #84
	b.ne	LBB0_11
; %bb.53:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	w1, #66
	bl	_adb_try_handler_change
	cbz	x0, LBB0_11
; %bb.54:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, x23
	str	x8, [sp]
Lloh90:
	adrp	x0, l_.str.10@PAGE
Lloh91:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printk
Lloh92:
	adrp	x8, _ADBMOUSE_MACALLY2@GOTPAGE
Lloh93:
	ldr	x8, [x8, _ADBMOUSE_MACALLY2@GOTPAGEOFF]
Lloh94:
	ldr	w24, [x8]
	b	LBB0_11
LBB0_55:
	mov	x0, x20
	bl	_adbhid_input_devcleanup
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh90, Lloh91
	.cfi_endproc
                                        ; -- End function
	.comm	_ADB_MOUSE,4,2                  ; @ADB_MOUSE
	.comm	_mouse_ids,16,3                 ; @mouse_ids
	.comm	_adbhid_mouse_input,4,2         ; @adbhid_mouse_input
	.comm	_ADB_KEYBOARD,4,2               ; @ADB_KEYBOARD
	.comm	_keyboard_ids,16,3              ; @keyboard_ids
	.comm	_adbhid_keyboard_input,4,2      ; @adbhid_keyboard_input
	.comm	_ADB_MISC,4,2                   ; @ADB_MISC
	.comm	_buttons_ids,16,3               ; @buttons_ids
	.comm	_adbhid_buttons_input,4,2       ; @adbhid_buttons_input
	.comm	_ADBREQ_SYNC,4,2                ; @ADBREQ_SYNC
	.comm	_KEYB_LEDREG,4,2                ; @KEYB_LEDREG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ADB keyboard at %d, handler set to 3\n"

l_.str.1:                               ; @.str.1
	.asciz	"ADB keyboard at %d, handler 1\n"

l_.str.2:                               ; @.str.2
	.asciz	"ADB mouse at %d, handler set to 4"

	.comm	_ADBMOUSE_EXTENDED,4,2          ; @ADBMOUSE_EXTENDED
l_.str.3:                               ; @.str.3
	.asciz	"ADB mouse at %d, handler set to 0x2F"

	.comm	_ADBMOUSE_MICROSPEED,4,2        ; @ADBMOUSE_MICROSPEED
l_.str.4:                               ; @.str.4
	.asciz	"ADB mouse at %d, handler set to 0x42"

	.comm	_ADBMOUSE_TRACKBALLPRO,4,2      ; @ADBMOUSE_TRACKBALLPRO
l_.str.5:                               ; @.str.5
	.asciz	"ADB mouse at %d, handler set to 0x66"

l_.str.6:                               ; @.str.6
	.asciz	"ADB mouse at %d, handler set to 0x5F"

l_.str.7:                               ; @.str.7
	.asciz	"ADB mouse at %d, handler set to 3"

	.comm	_ADBMOUSE_MS_A3,4,2             ; @ADBMOUSE_MS_A3
l_.str.8:                               ; @.str.8
	.asciz	"ADB mouse at %d, handler set to 2"

	.comm	_ADBMOUSE_STANDARD_200,4,2      ; @ADBMOUSE_STANDARD_200
l_.str.9:                               ; @.str.9
	.asciz	"ADB mouse at %d, handler 1"

	.comm	_ADBMOUSE_STANDARD_100,4,2      ; @ADBMOUSE_STANDARD_100
	.comm	_ADBREQ_REPLY,4,2               ; @ADBREQ_REPLY
	.comm	_ADBMOUSE_TRACKBALL,4,2         ; @ADBMOUSE_TRACKBALL
	.comm	_ADBMOUSE_TRACKPAD,4,2          ; @ADBMOUSE_TRACKPAD
	.comm	_ADBMOUSE_TURBOMOUSE5,4,2       ; @ADBMOUSE_TURBOMOUSE5
l_.str.10:                              ; @.str.10
	.asciz	"\nADB MacAlly 2-button mouse at %d, handler set to 0x42"

	.comm	_ADBMOUSE_MACALLY2,4,2          ; @ADBMOUSE_MACALLY2
l_.str.11:                              ; @.str.11
	.asciz	"\n"

	.no_dead_strip	_adbhid_probe
.subsections_via_symbols
