	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_gpio_debounce_start
_mv_gpio_debounce_start:                ## @mv_gpio_debounce_start
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	%edi, -40(%rbp)
	movl	%esi, -36(%rbp)
	movq	$0, -32(%rbp)
	callq	_device_get_softc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_MV_GPIO_ASSERT_LOCKED
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_callout_pending
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_callout_active
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	leaq	-40(%rbp), %rdi
	callq	_mv_gpio_int_ack
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r14d, 4(%rax)
	movl	%r15d, 8(%rax)
	movq	_DEBOUNCE_CHECK_TICKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_mv_gpio_debounce@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movq	%rax, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_callout_reset                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_DEBOUNCE_CHECK_TICKS,4,2       ## @DEBOUNCE_CHECK_TICKS
	.comm	_mv_gpio_debounce,4,2           ## @mv_gpio_debounce
	.no_dead_strip	_mv_gpio_debounce_start
.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_start
_mv_gpio_debounce_start:                ; @mv_gpio_debounce_start
	.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, x1
	mov	x19, x0
	stp	w0, w1, [sp]
	str	xzr, [sp, #8]
	bl	_device_get_softc
	mov	x21, x0
	bl	_MV_GPIO_ASSERT_LOCKED
	ldr	x8, [x21]
	ldr	x21, [x8, w20, sxtw #3]
	cbz	x21, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_callout_pending
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_callout_active
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, sp
	bl	_mv_gpio_int_ack
	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
LBB0_4:
Lloh0:
	adrp	x8, _M_DEVBUF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_DEVBUF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.5:
	mov	x3, x0
	stp	w20, w19, [x0, #4]
Lloh6:
	adrp	x8, _DEBOUNCE_CHECK_TICKS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEBOUNCE_CHECK_TICKS@GOTPAGEOFF]
Lloh8:
	adrp	x9, _mv_gpio_debounce@GOTPAGE
Lloh9:
	ldr	x9, [x9, _mv_gpio_debounce@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w2, [x9]
	mov	x0, x21
	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
	b	_callout_reset
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_DEBOUNCE_CHECK_TICKS,4,2       ; @DEBOUNCE_CHECK_TICKS
	.comm	_mv_gpio_debounce,4,2           ; @mv_gpio_debounce
	.no_dead_strip	_mv_gpio_debounce_start
.subsections_via_symbols
