	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_pmic_eic_set_debounce
_sprd_pmic_eic_set_debounce:            ## @sprd_pmic_eic_set_debounce
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movq	_SPRD_PMIC_EIC_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_SPRD_PMIC_EIC_BIT
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,4), %r14d
	movl	4(%r12), %edi
	movl	(%r12), %esi
	addl	%r14d, %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_SPRD_PMIC_EIC_DBNC_MASK@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %ecx
	movl	%r15d, %edx
	imulq	$274877907, %rdx, %rdx          ## imm = 0x10624DD3
	shrq	$38, %rdx
	xorl	%ecx, %edx
	andl	(%rax), %edx
	xorl	%ecx, %edx
	movl	%edx, -36(%rbp)
	movl	4(%r12), %edi
	addl	(%r12), %r14d
	movl	%r14d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_regmap_write
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPRD_PMIC_EIC_CTRL0,4,2        ## @SPRD_PMIC_EIC_CTRL0
	.comm	_SPRD_PMIC_EIC_DBNC_MASK,4,2    ## @SPRD_PMIC_EIC_DBNC_MASK
	.no_dead_strip	_sprd_pmic_eic_set_debounce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sprd_pmic_eic_set_debounce
_sprd_pmic_eic_set_debounce:            ; @sprd_pmic_eic_set_debounce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_gpiochip_get_data
	mov	x19, x0
Lloh0:
	adrp	x8, _SPRD_PMIC_EIC_CTRL0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPRD_PMIC_EIC_CTRL0@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_SPRD_PMIC_EIC_BIT
	add	w21, w22, w0, lsl #2
	ldp	w8, w0, [x19]
	add	w1, w8, w21
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SPRD_PMIC_EIC_DBNC_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPRD_PMIC_EIC_DBNC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w9, w9, w8
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	umull	x10, w20, w10
	lsr	x10, x10, #38
	and	w8, w8, w10
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldp	w8, w0, [x19]
	add	w1, w8, w21
	bl	_regmap_write
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SPRD_PMIC_EIC_CTRL0,4,2        ; @SPRD_PMIC_EIC_CTRL0
	.comm	_SPRD_PMIC_EIC_DBNC_MASK,4,2    ; @SPRD_PMIC_EIC_DBNC_MASK
	.no_dead_strip	_sprd_pmic_eic_set_debounce
.subsections_via_symbols
