	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adbhid_buttons_input
_adbhid_buttons_input:                  ## @adbhid_buttons_input
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movzbl	(%rdi), %esi
	movq	%rsi, %r15
	shrq	$4, %r15
	movq	_adbhid@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.1:
	movzbl	1(%rdi), %ebx
	movl	%ebx, %ecx
	andl	$15, %ecx
	xorl	%edx, %edx
	cmpb	$16, %bl
	setb	%dl
	cmpl	$31, (%rax)
	jne	LBB0_2
## %bb.6:
	addl	$-6, %ecx
	cmpl	$9, %ecx
	ja	LBB0_20
## %bb.7:
	leaq	LJTI0_1(%rip), %r8
	movslq	(%r8,%rcx,4), %rcx
	addq	%r8, %rcx
	jmpq	*%rcx
LBB0_13:
	movl	4(%rax), %edi
	movq	_KEY_BRIGHTNESSUP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_25:
	movzbl	%r15b, %esi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_2:
	cmpl	$3, %ecx
	ja	LBB0_20
## %bb.3:
	movl	%ecx, %ecx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_4:
	movl	4(%rax), %edi
	movq	_KEY_SOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movl	4(%rax), %edi
	movq	_KEY_MUTE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movl	4(%rax), %edi
	movq	_KEY_VOLUMEDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	movl	4(%rax), %edi
	movq	_KEY_VOLUMEUP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movl	4(%rax), %edi
	movq	_KEY_BRIGHTNESSDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movl	4(%rax), %edi
	movq	_KEY_EJECTCD@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_14:
	movl	4(%rax), %edi
	movq	_KEY_SWITCHVIDEOMODE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movl	4(%rax), %edi
	movq	_KEY_KBDILLUMTOGGLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_16:
	movl	4(%rax), %edi
	movq	_KEY_KBDILLUMDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_17:
	cmpb	$14, %bl
	jg	LBB0_22
## %bb.18:
	cmpb	$-113, %bl
	je	LBB0_24
## %bb.19:
	cmpb	$-1, %bl
	je	LBB0_21
	jmp	LBB0_20
LBB0_22:
	cmpb	$127, %bl
	je	LBB0_21
## %bb.23:
	cmpb	$15, %bl
	jne	LBB0_20
LBB0_24:
	movl	4(%rax), %edi
	movq	_KEY_KBDILLUMUP@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	callq	_input_report_key
LBB0_21:
	movq	(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movl	4(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_20:
	movzbl	2(%rdi), %ecx
	movzbl	3(%rdi), %r8d
	movzbl	%sil, %esi
	movzbl	%bl, %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
LJTI0_1:
	.long	L0_1_set_10
	.long	L0_1_set_9
	.long	L0_1_set_8
	.long	L0_1_set_13
	.long	L0_1_set_12
	.long	L0_1_set_11
	.long	L0_1_set_14
	.long	L0_1_set_15
	.long	L0_1_set_16
	.long	L0_1_set_17
	.end_data_region
                                        ## -- End function
	.comm	_adbhid,8,3                     ## @adbhid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ADB HID on ID %d not yet registered\n"

	.comm	_KEY_SOUND,4,2                  ## @KEY_SOUND
	.comm	_KEY_MUTE,4,2                   ## @KEY_MUTE
	.comm	_KEY_VOLUMEDOWN,4,2             ## @KEY_VOLUMEDOWN
	.comm	_KEY_VOLUMEUP,4,2               ## @KEY_VOLUMEUP
L_.str.1:                               ## @.str.1
	.asciz	"Unhandled ADB_MISC event %02x, %02x, %02x, %02x\n"

	.comm	_KEY_EJECTCD,4,2                ## @KEY_EJECTCD
	.comm	_KEY_BRIGHTNESSDOWN,4,2         ## @KEY_BRIGHTNESSDOWN
	.comm	_KEY_BRIGHTNESSUP,4,2           ## @KEY_BRIGHTNESSUP
	.comm	_KEY_SWITCHVIDEOMODE,4,2        ## @KEY_SWITCHVIDEOMODE
	.comm	_KEY_KBDILLUMTOGGLE,4,2         ## @KEY_KBDILLUMTOGGLE
	.comm	_KEY_KBDILLUMDOWN,4,2           ## @KEY_KBDILLUMDOWN
	.comm	_KEY_KBDILLUMUP,4,2             ## @KEY_KBDILLUMUP
	.no_dead_strip	_adbhid_buttons_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adbhid_buttons_input
_adbhid_buttons_input:                  ; @adbhid_buttons_input
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldrb	w1, [x0]
	lsr	w19, w1, #4
Lloh0:
	adrp	x20, _adbhid@GOTPAGE
Lloh1:
	ldr	x20, [x20, _adbhid@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x8, w19, uxtw #3]
	cbz	x9, LBB0_5
; %bb.1:
	ldr	w11, [x9]
	ldrb	w8, [x0, #1]
	cmp	w8, #16
	cset	w2, lo
	and	w10, w8, #0xf
	cmp	w11, #31
	b.ne	LBB0_6
; %bb.2:
	sub	w10, w10, #6
	cmp	w10, #9
	b.hi	LBB0_25
; %bb.3:
Lloh2:
	adrp	x11, lJTI0_1@PAGE
Lloh3:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x12, LBB0_4
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_4:
	ldr	w0, [x9, #4]
Lloh4:
	adrp	x8, _KEY_BRIGHTNESSUP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KEY_BRIGHTNESSUP@GOTPAGEOFF]
	b	LBB0_23
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_err
LBB0_6:
	cmp	w10, #3
	b.hi	LBB0_25
; %bb.7:
Lloh8:
	adrp	x8, lJTI0_0@PAGE
Lloh9:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x11, LBB0_8
	ldrb	w12, [x8, x10]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_8:
	ldr	w0, [x9, #4]
Lloh10:
	adrp	x8, _KEY_SOUND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KEY_SOUND@GOTPAGEOFF]
	b	LBB0_23
LBB0_9:
	ldr	w0, [x9, #4]
Lloh12:
	adrp	x8, _KEY_MUTE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_MUTE@GOTPAGEOFF]
	b	LBB0_23
LBB0_10:
	ldr	w0, [x9, #4]
Lloh14:
	adrp	x8, _KEY_VOLUMEDOWN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEY_VOLUMEDOWN@GOTPAGEOFF]
	b	LBB0_23
LBB0_11:
	ldr	w0, [x9, #4]
Lloh16:
	adrp	x8, _KEY_VOLUMEUP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KEY_VOLUMEUP@GOTPAGEOFF]
	b	LBB0_23
LBB0_12:
	ldr	w0, [x9, #4]
Lloh18:
	adrp	x8, _KEY_BRIGHTNESSDOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KEY_BRIGHTNESSDOWN@GOTPAGEOFF]
	b	LBB0_23
LBB0_13:
	ldr	w0, [x9, #4]
Lloh20:
	adrp	x8, _KEY_EJECTCD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KEY_EJECTCD@GOTPAGEOFF]
	b	LBB0_23
LBB0_14:
	ldr	w0, [x9, #4]
Lloh22:
	adrp	x8, _KEY_SWITCHVIDEOMODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KEY_SWITCHVIDEOMODE@GOTPAGEOFF]
	b	LBB0_23
LBB0_15:
	ldr	w0, [x9, #4]
Lloh24:
	adrp	x8, _KEY_KBDILLUMTOGGLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KEY_KBDILLUMTOGGLE@GOTPAGEOFF]
	b	LBB0_23
LBB0_16:
	ldr	w0, [x9, #4]
Lloh26:
	adrp	x8, _KEY_KBDILLUMDOWN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _KEY_KBDILLUMDOWN@GOTPAGEOFF]
	b	LBB0_23
LBB0_17:
	cmp	w8, #142
	b.gt	LBB0_20
; %bb.18:
	cmp	w8, #15
	b.eq	LBB0_22
; %bb.19:
	cmp	w8, #127
	b.eq	LBB0_24
	b	LBB0_25
LBB0_20:
	cmp	w8, #255
	b.eq	LBB0_24
; %bb.21:
	cmp	w8, #143
	b.ne	LBB0_25
LBB0_22:
	ldr	w0, [x9, #4]
Lloh28:
	adrp	x8, _KEY_KBDILLUMUP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _KEY_KBDILLUMUP@GOTPAGEOFF]
LBB0_23:
	ldr	w1, [x8]
	bl	_input_report_key
LBB0_24:
	ldr	x8, [x20]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w0, [x8, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
LBB0_25:
	ldrb	w3, [x0, #2]
	ldrb	w4, [x0, #3]
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x8
	bl	_pr_info
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
lJTI0_1:
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
                                        ; -- End function
	.comm	_adbhid,8,3                     ; @adbhid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ADB HID on ID %d not yet registered\n"

	.comm	_KEY_SOUND,4,2                  ; @KEY_SOUND
	.comm	_KEY_MUTE,4,2                   ; @KEY_MUTE
	.comm	_KEY_VOLUMEDOWN,4,2             ; @KEY_VOLUMEDOWN
	.comm	_KEY_VOLUMEUP,4,2               ; @KEY_VOLUMEUP
l_.str.1:                               ; @.str.1
	.asciz	"Unhandled ADB_MISC event %02x, %02x, %02x, %02x\n"

	.comm	_KEY_EJECTCD,4,2                ; @KEY_EJECTCD
	.comm	_KEY_BRIGHTNESSDOWN,4,2         ; @KEY_BRIGHTNESSDOWN
	.comm	_KEY_BRIGHTNESSUP,4,2           ; @KEY_BRIGHTNESSUP
	.comm	_KEY_SWITCHVIDEOMODE,4,2        ; @KEY_SWITCHVIDEOMODE
	.comm	_KEY_KBDILLUMTOGGLE,4,2         ; @KEY_KBDILLUMTOGGLE
	.comm	_KEY_KBDILLUMDOWN,4,2           ; @KEY_KBDILLUMDOWN
	.comm	_KEY_KBDILLUMUP,4,2             ; @KEY_KBDILLUMUP
	.no_dead_strip	_adbhid_buttons_input
.subsections_via_symbols
