	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_gpio_debounce_init
_mv_gpio_debounce_init:                 ## @mv_gpio_debounce_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	callq	_device_get_softc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_MV_GPIO_ASSERT_LOCKED
	movq	(%rbx), %r12
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_mv_gpio_value_get
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	jne	LBB0_1
## %bb.2:
	movq	_DEBOUNCE_LO_HI_MS@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_1:
	movq	_DEBOUNCE_HI_LO_MS@GOTPCREL(%rip), %r13
LBB0_3:
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_mv_gpio_polarity
	movl	(%r13), %eax
	movq	_DEBOUNCE_CHECK_MS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movslq	%r14d, %rcx
	movl	%eax, (%r12,%rcx,4)
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mv_gpio_debounced_state_set
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBOUNCE_HI_LO_MS,4,2          ## @DEBOUNCE_HI_LO_MS
	.comm	_DEBOUNCE_CHECK_MS,4,2          ## @DEBOUNCE_CHECK_MS
	.comm	_DEBOUNCE_LO_HI_MS,4,2          ## @DEBOUNCE_LO_HI_MS
	.no_dead_strip	_mv_gpio_debounce_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_gpio_debounce_init
_mv_gpio_debounce_init:                 ; @mv_gpio_debounce_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_device_get_softc
	mov	x21, x0
	bl	_MV_GPIO_ASSERT_LOCKED
	ldr	x22, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_mv_gpio_value_get
	cmp	x0, #0
	cset	w21, ne
Lloh0:
	adrp	x8, _DEBOUNCE_LO_HI_MS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBOUNCE_LO_HI_MS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DEBOUNCE_HI_LO_MS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DEBOUNCE_HI_LO_MS@GOTPAGEOFF]
	csel	x23, x8, x9, eq
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	bl	_mv_gpio_polarity
	ldr	w8, [x23]
Lloh4:
	adrp	x9, _DEBOUNCE_CHECK_MS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DEBOUNCE_CHECK_MS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	str	w8, [x22, w19, sxtw #2]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mv_gpio_debounced_state_set
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBOUNCE_HI_LO_MS,4,2          ; @DEBOUNCE_HI_LO_MS
	.comm	_DEBOUNCE_CHECK_MS,4,2          ; @DEBOUNCE_CHECK_MS
	.comm	_DEBOUNCE_LO_HI_MS,4,2          ; @DEBOUNCE_LO_HI_MS
	.no_dead_strip	_mv_gpio_debounce_init
.subsections_via_symbols
