	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function appleir_raw_event
_appleir_raw_event:                     ## @appleir_raw_event
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rdi, %r12
	callq	_hid_get_drvdata
	cmpl	$5, %ebx
	jne	LBB0_13
## %bb.1:
	movq	%rax, %r14
	leaq	_appleir_raw_event.keydown(%rip), %rsi
	movq	%r13, %rdi
	movl	$12, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.9:
	movl	$0, (%r14)
	leaq	_appleir_raw_event.keyrepeat(%rip), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	leaq	_appleir_raw_event.flatbattery(%rip), %rsi
	movq	%r13, %rdi
	movl	$12, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_battery_flat
	jmp	LBB0_13
LBB0_2:
	leaq	12(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	8(%r14), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_key_up
LBB0_4:
	movl	(%r14), %eax
	testl	%eax, %eax
	jg	LBB0_6
## %bb.5:
	movl	16(%r13), %edi
	callq	_get_key
	testl	%eax, %eax
	js	LBB0_7
LBB0_6:
	movq	16(%r14), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %edx
	movl	%edx, 8(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_key_down
	movq	%r14, %rdi
	addq	$4, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	movslq	%edx, %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
	xorl	%eax, %eax
LBB0_8:
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_13
LBB0_10:
	movl	8(%r14), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_key_down
	addq	$4, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	movslq	%edx, %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_mod_timer
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	negl	%eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @appleir_raw_event.keydown
_appleir_raw_event.keydown:
	.long	37                              ## 0x25
	.long	135                             ## 0x87
	.long	238                             ## 0xee

	.p2align	2                               ## @appleir_raw_event.keyrepeat
_appleir_raw_event.keyrepeat:
	.long	38                              ## 0x26

	.p2align	2                               ## @appleir_raw_event.flatbattery
_appleir_raw_event.flatbattery:
	.long	37                              ## 0x25
	.long	135                             ## 0x87
	.long	224                             ## 0xe0

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_appleir_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function appleir_raw_event
_appleir_raw_event:                     ; @appleir_raw_event
	.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	x21, x3
	mov	x22, x2
	mov	x20, x0
	bl	_hid_get_drvdata
	cmp	w21, #5
	b.ne	LBB0_12
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, _appleir_raw_event.keydown@PAGE
Lloh1:
	add	x1, x1, _appleir_raw_event.keydown@PAGEOFF
	mov	x0, x22
	mov	w2, #12
	bl	_memcmp
	cbz	w0, LBB0_5
; %bb.2:
	str	wzr, [x19]
Lloh2:
	adrp	x1, _appleir_raw_event.keyrepeat@PAGE
Lloh3:
	add	x1, x1, _appleir_raw_event.keyrepeat@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.3:
Lloh4:
	adrp	x1, _appleir_raw_event.flatbattery@PAGE
Lloh5:
	add	x1, x1, _appleir_raw_event.flatbattery@PAGEOFF
	mov	x0, x22
	mov	w2, #12
	bl	_memcmp
	cbnz	w0, LBB0_12
; %bb.4:
	mov	x0, x19
	bl	_battery_flat
	b	LBB0_12
LBB0_5:
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w2, [x19, #8]
	cbz	w2, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_key_up
LBB0_7:
	ldr	w0, [x19]
	cmp	w0, #0
	b.gt	LBB0_9
; %bb.8:
	ldr	w0, [x22, #16]
	bl	_get_key
	tbnz	w0, #31, LBB0_13
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	w2, [x8, w0, uxtw #2]
	str	w2, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_key_down
	add	x0, x19, #4
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _HZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	add	x1, x8, w9, sxtw
	bl	_mod_timer
	mov	w8, #0
LBB0_10:
	str	w8, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	b	LBB0_12
LBB0_11:
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_key_down
	add	x0, x19, #4
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _HZ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	add	x1, x8, w9, sxtw
	bl	_mod_timer
LBB0_12:
	mov	w0, #0
	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
LBB0_13:
	neg	w8, w0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @appleir_raw_event.keydown
_appleir_raw_event.keydown:
	.long	37                              ; 0x25
	.long	135                             ; 0x87
	.long	238                             ; 0xee

	.p2align	2                               ; @appleir_raw_event.keyrepeat
_appleir_raw_event.keyrepeat:
	.long	38                              ; 0x26

	.p2align	2                               ; @appleir_raw_event.flatbattery
_appleir_raw_event.flatbattery:
	.long	37                              ; 0x25
	.long	135                             ; 0x87
	.long	224                             ; 0xe0

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_appleir_raw_event
.subsections_via_symbols
