	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function legacy_dvb_usb_getkeycode
_legacy_dvb_usb_getkeycode:             ## @legacy_dvb_usb_getkeycode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	callq	_input_get_drvdata
	movq	8(%rax), %r14
	movl	(%rax), %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_legacy_dvb_usb_get_keymap_index
	cmpl	%ebx, %eax
	jae	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	%eax, %eax
	movl	4(%r14,%rax,8), %ecx
	movl	%ecx, 12(%r12)
	movq	_KEY_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_4
## %bb.3:
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r12)
LBB0_4:
	movl	$4, (%r12)
	leaq	8(%r12), %rdi
	leaq	(%r14,%rax,8), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	%r15d, 4(%r12)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KEY_UNKNOWN,4,2                ## @KEY_UNKNOWN
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.no_dead_strip	_legacy_dvb_usb_getkeycode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function legacy_dvb_usb_getkeycode
_legacy_dvb_usb_getkeycode:             ; @legacy_dvb_usb_getkeycode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_input_get_drvdata
	ldr	x20, [x0, #8]
	ldr	w22, [x0]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_legacy_dvb_usb_get_keymap_index
	cmp	w0, w22
	b.hs	LBB0_4
; %bb.1:
	mov	x21, x0
	mov	w8, w0
	add	x9, x20, w0, uxtw #3
	ldr	w9, [x9, #4]
	str	w9, [x19, #12]
Lloh0:
	adrp	x10, _KEY_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _KEY_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _KEY_RESERVED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KEY_RESERVED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x19, #12]
LBB0_3:
	mov	w9, #4
	str	w9, [x19]
	add	x0, x19, #8
	add	x1, x20, x8, lsl #3
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	str	w21, [x19, #4]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KEY_UNKNOWN,4,2                ; @KEY_UNKNOWN
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.no_dead_strip	_legacy_dvb_usb_getkeycode
.subsections_via_symbols
