	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_imx_snvs_check_for_events
_imx_imx_snvs_check_for_events:         ## @imx_imx_snvs_check_for_events
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_check_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	movq	8(%rax), %r14
	movl	20(%rax), %edi
	movq	_SNVS_HPSR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	movq	_SNVS_HPSR_BTN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	andl	-20(%rbp), %ecx
	setne	%al
	movl	%eax, -20(%rbp)
	cmpl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	%eax, (%rbx)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movl	-20(%rbp), %ecx
	movq	%r14, %rdi
	callq	_input_event
	movq	%r14, %rdi
	callq	_input_sync
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_pm_relax
	movl	-20(%rbp), %eax
LBB0_2:
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	addq	$4, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_REPEAT_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mod_timer
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_check_timer,4,2                ## @check_timer
	.comm	_SNVS_HPSR_REG,4,2              ## @SNVS_HPSR_REG
	.comm	_SNVS_HPSR_BTN,4,2              ## @SNVS_HPSR_BTN
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_REPEAT_INTERVAL,4,2            ## @REPEAT_INTERVAL
	.comm	_pdata,8,3                      ## @pdata
	.no_dead_strip	_imx_imx_snvs_check_for_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_imx_snvs_check_for_events
_imx_imx_snvs_check_for_events:         ; @imx_imx_snvs_check_for_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _check_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _check_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x0, #20]
Lloh3:
	adrp	x8, _SNVS_HPSR_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNVS_HPSR_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _SNVS_HPSR_BTN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SNVS_HPSR_BTN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [sp, #12]
	ldr	w9, [x19]
	cmp	w9, w8
	b.eq	LBB0_2
; %bb.1:
	str	w8, [x19]
Lloh9:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	ldr	w3, [sp, #12]
	mov	x0, x20
	bl	_input_event
	mov	x0, x20
	bl	_input_sync
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_pm_relax
	ldr	w8, [sp, #12]
LBB0_2:
	cbz	w8, LBB0_4
; %bb.3:
	add	x19, x19, #4
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x20, [x8]
Lloh15:
	adrp	x8, _REPEAT_INTERVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REPEAT_INTERVAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	bl	_mod_timer
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_check_timer,4,2                ; @check_timer
	.comm	_SNVS_HPSR_REG,4,2              ; @SNVS_HPSR_REG
	.comm	_SNVS_HPSR_BTN,4,2              ; @SNVS_HPSR_BTN
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_REPEAT_INTERVAL,4,2            ; @REPEAT_INTERVAL
	.comm	_pdata,8,3                      ; @pdata
	.no_dead_strip	_imx_imx_snvs_check_for_events
.subsections_via_symbols
