	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbcir_keydown
_wbcir_keydown:                         ## @wbcir_keydown
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	cmpq	%rsi, (%rdi)
	jne	LBB0_3
## %bb.1:
	cmpq	%r14, 8(%r12)
	jne	LBB0_3
## %bb.2:
	cmpl	$0, 16(%r12)
	jne	LBB0_7
LBB0_3:
	movq	%r15, (%r12)
	cmpl	$0, 16(%r12)
	je	LBB0_5
## %bb.4:
	movl	20(%r12), %esi
	movl	40(%r12), %edi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	40(%r12), %edi
	callq	_input_sync
	movl	$0, 16(%r12)
LBB0_5:
	movl	40(%r12), %edi
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	callq	_input_event
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wbcir_do_getkeycode
	movl	%eax, %r15d
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_7
## %bb.6:
	movl	40(%r12), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_input_report_key
	movl	$1, 16(%r12)
	movl	%r15d, 20(%r12)
	movq	%r14, 8(%r12)
LBB0_7:
	movl	40(%r12), %edi
	callq	_input_sync
	movl	36(%r12), %edi
	cmpl	$0, 16(%r12)
	jne	LBB0_8
## %bb.9:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_LED_FULL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	callq	_led_trigger_event
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_IR_KEYPRESS_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%rbx, 24(%r12)
	addq	$32, %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_IR_KEYPRESS_TIMEOUT,4,2        ## @IR_KEYPRESS_TIMEOUT
	.no_dead_strip	_wbcir_keydown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbcir_keydown
_wbcir_keydown:                         ; @wbcir_keydown
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_7
LBB0_3:
	str	x21, [x19]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	w0, [x19, #40]
	ldr	w1, [x19, #20]
	mov	w2, #0
	bl	_input_report_key
	ldr	w0, [x19, #40]
	bl	_input_sync
	str	wzr, [x19, #16]
LBB0_5:
	ldr	w0, [x19, #40]
Lloh0:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, x21
	bl	_input_event
	mov	x0, x19
	mov	x1, x21
	bl	_wbcir_do_getkeycode
Lloh6:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x21, x0
	ldr	w0, [x19, #40]
	mov	w22, #1
	mov	x1, x21
	mov	w2, #1
	bl	_input_report_key
	stp	w22, w21, [x19, #16]
	str	x20, [x19, #8]
LBB0_7:
	ldr	w0, [x19, #40]
	bl	_input_sync
	ldr	w0, [x19, #36]
Lloh9:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
	ldr	w9, [x19, #16]
Lloh11:
	adrp	x10, _LED_OFF@GOTPAGE
Lloh12:
	ldr	x10, [x10, _LED_OFF@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	bl	_led_trigger_event
Lloh13:
	adrp	x8, _jiffies@GOTPAGE
Lloh14:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh15:
	ldr	x20, [x8]
Lloh16:
	adrp	x8, _IR_KEYPRESS_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IR_KEYPRESS_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	str	x1, [x19, #24]
	add	x0, x19, #32
	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
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_IR_KEYPRESS_TIMEOUT,4,2        ; @IR_KEYPRESS_TIMEOUT
	.no_dead_strip	_wbcir_keydown
.subsections_via_symbols
