	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tivo_input_mapping
_tivo_input_mapping:                    ## @tivo_input_mapping
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rcx), %ecx
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ecx, %edx
	xorl	%eax, %eax
	cmpl	$129, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %edx
	jne	LBB0_10
## %bb.2:
	movq	_HID_USAGE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	addl	$-61, %ecx
	cmpl	$6, %ecx
	jae	LBB0_10
## %bb.3:
	movl	$51, %edx
	btl	%ecx, %edx
	jae	LBB0_10
## %bb.4:
	movslq	%ecx, %rax
	leaq	l_switch.table.tivo_input_mapping(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_HID_USAGE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	cmpl	$131, %ecx
	je	LBB0_6
## %bb.7:
	cmpl	$521, %ecx                      ## imm = 0x209
	jne	LBB0_10
## %bb.8:
	movq	_KEY_INFO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_KEY_ENTER@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	callq	_tivo_map_key_clear
	movl	$1, %eax
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_USAGE_PAGE,4,2             ## @HID_USAGE_PAGE
	.comm	_HID_USAGE,4,2                  ## @HID_USAGE
	.comm	_KEY_MEDIA,4,2                  ## @KEY_MEDIA
	.comm	_KEY_TV,4,2                     ## @KEY_TV
	.comm	_KEY_KPMINUS,4,2                ## @KEY_KPMINUS
	.comm	_KEY_KPPLUS,4,2                 ## @KEY_KPPLUS
	.comm	_KEY_ENTER,4,2                  ## @KEY_ENTER
	.comm	_KEY_INFO,4,2                   ## @KEY_INFO
	.no_dead_strip	_tivo_input_mapping
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tivo_input_mapping
l_switch.table.tivo_input_mapping:
	.quad	_KEY_MEDIA
	.quad	_KEY_TV
	.quad	_KEY_MEDIA
	.quad	_KEY_MEDIA
	.quad	_KEY_KPMINUS
	.quad	_KEY_KPPLUS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tivo_input_mapping
_tivo_input_mapping:                    ; @tivo_input_mapping
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _HID_USAGE_PAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
	cmp	w9, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w9, #128
	b.ne	LBB0_8
; %bb.2:
Lloh3:
	adrp	x9, _HID_USAGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HID_USAGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #61
	cmp	w8, #6
	b.hs	LBB0_8
; %bb.3:
	mov	w9, #51
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_8
; %bb.4:
Lloh6:
	adrp	x9, l_switch.table.tivo_input_mapping@PAGE
Lloh7:
	add	x9, x9, l_switch.table.tivo_input_mapping@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x9, _HID_USAGE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HID_USAGE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #131
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #521
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _KEY_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_INFO@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh13:
	adrp	x8, _KEY_ENTER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KEY_ENTER@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	bl	_tivo_map_key_clear
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.comm	_HID_USAGE,4,2                  ; @HID_USAGE
	.comm	_KEY_MEDIA,4,2                  ; @KEY_MEDIA
	.comm	_KEY_TV,4,2                     ; @KEY_TV
	.comm	_KEY_KPMINUS,4,2                ; @KEY_KPMINUS
	.comm	_KEY_KPPLUS,4,2                 ; @KEY_KPPLUS
	.comm	_KEY_ENTER,4,2                  ; @KEY_ENTER
	.comm	_KEY_INFO,4,2                   ; @KEY_INFO
	.no_dead_strip	_tivo_input_mapping
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tivo_input_mapping
l_switch.table.tivo_input_mapping:
	.quad	_KEY_MEDIA
	.quad	_KEY_TV
	.quad	_KEY_MEDIA
	.quad	_KEY_MEDIA
	.quad	_KEY_KPMINUS
	.quad	_KEY_KPPLUS

.subsections_via_symbols
