	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max14577_muic_set_debounce_time
_max14577_muic_set_debounce_time:       ## @max14577_muic_set_debounce_time
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	%esi, %ecx
	andl	$-4, %ecx
	cmpl	$128, %ecx
	jne	LBB0_4
## %bb.1:
	movl	%esi, %eax
	movq	8(%r14), %rcx
	movl	(%rcx), %edi
	movq	_MAX14577_MUIC_REG_CONTROL3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CTRL3_ADCDBSET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CTRL3_ADCDBSET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_max14577_update_reg
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX14577_MUIC_REG_CONTROL3,4,2 ## @MAX14577_MUIC_REG_CONTROL3
	.comm	_CTRL3_ADCDBSET_MASK,4,2        ## @CTRL3_ADCDBSET_MASK
	.comm	_CTRL3_ADCDBSET_SHIFT,4,2       ## @CTRL3_ADCDBSET_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set ADC debounce time\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid ADC debounce time\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max14577_muic_set_debounce_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max14577_muic_set_debounce_time
_max14577_muic_set_debounce_time:       ; @max14577_muic_set_debounce_time
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	and	w8, w1, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _MAX14577_MUIC_REG_CONTROL3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX14577_MUIC_REG_CONTROL3@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CTRL3_ADCDBSET_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CTRL3_ADCDBSET_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w2, [x9]
Lloh6:
	adrp	x9, _CTRL3_ADCDBSET_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CTRL3_ADCDBSET_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w3, w1, w9
	mov	x1, x8
	bl	_max14577_update_reg
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX14577_MUIC_REG_CONTROL3,4,2 ; @MAX14577_MUIC_REG_CONTROL3
	.comm	_CTRL3_ADCDBSET_MASK,4,2        ; @CTRL3_ADCDBSET_MASK
	.comm	_CTRL3_ADCDBSET_SHIFT,4,2       ; @CTRL3_ADCDBSET_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set ADC debounce time\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid ADC debounce time\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_max14577_muic_set_debounce_time
.subsections_via_symbols
