	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_eint_debounce_process
_mtk_eint_debounce_process:             ## @mtk_eint_debounce_process
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	3(%rbx), %r15d
	testl	%esi, %esi
	cmovnsl	%esi, %r15d
	andl	$-4, %r15d
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	addl	%r15d, %edi
	addq	(%r14), %rdi
	callq	_readl
	movq	_MTK_EINT_DBNC_SET_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subl	%r15d, %ebx
	shll	$3, %ebx
	movl	%ebx, %ecx
	shll	%cl, %edx
	testl	%eax, %edx
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rax
	movq	_MTK_EINT_DBNC_RST_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%ebx, %ecx
	shll	%cl, %edi
	addl	4(%rax), %r15d
	addq	(%r14), %r15
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_EINT_DBNC_SET_EN,4,2       ## @MTK_EINT_DBNC_SET_EN
	.comm	_MTK_EINT_DBNC_RST_BIT,4,2      ## @MTK_EINT_DBNC_RST_BIT
	.no_dead_strip	_mtk_eint_debounce_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_eint_debounce_process
_mtk_eint_debounce_process:             ; @mtk_eint_debounce_process
	.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, x1
	mov	x19, x0
	add	w8, w1, #3
	cmp	w1, #0
	csel	w8, w8, w1, lt
	and	w21, w8, #0xfffffffc
	ldp	x9, x8, [x0]
	ldr	w8, [x8]
	add	w8, w8, w21
	add	x0, x9, x8
	bl	_readl
Lloh0:
	adrp	x8, _MTK_EINT_DBNC_SET_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTK_EINT_DBNC_SET_EN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	sub	w8, w20, w21
	lsl	w8, w8, #3
	lsl	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_2
; %bb.1:
	ldp	x10, x9, [x19]
	ldr	w9, [x9, #4]
Lloh3:
	adrp	x11, _MTK_EINT_DBNC_RST_BIT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MTK_EINT_DBNC_RST_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	lsl	w0, w11, w8
	add	w8, w9, w21
	add	x1, x10, x8
	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	_writel
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_EINT_DBNC_SET_EN,4,2       ; @MTK_EINT_DBNC_SET_EN
	.comm	_MTK_EINT_DBNC_RST_BIT,4,2      ; @MTK_EINT_DBNC_RST_BIT
	.no_dead_strip	_mtk_eint_debounce_process
.subsections_via_symbols
