	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_gpio_intr_unmask
_mv_gpio_intr_unmask:                   ## @mv_gpio_intr_unmask
	.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, %rbx
	movl	8(%rdi), %edi
	callq	_device_get_softc
	movq	%rax, %r14
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jae	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_MV_GPIO_LOCK
	movq	8(%r14), %rax
	movq	_MV_GPIO_IN_IRQ_EDGE@GOTPCREL(%rip), %rcx
	movq	_MV_GPIO_IN_IRQ_DOUBLE_EDGE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	(%rbx), %rsi
	movl	8(%rbx), %edi
	testl	%edx, (%rax,%rsi,4)
	je	LBB0_3
## %bb.2:
	movl	$1, %edx
	callq	_mv_gpio_edge
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %edx
	callq	_mv_gpio_level
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MV_GPIO_UNLOCK                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MV_GPIO_IN_IRQ_EDGE,4,2        ## @MV_GPIO_IN_IRQ_EDGE
	.comm	_MV_GPIO_IN_IRQ_DOUBLE_EDGE,4,2 ## @MV_GPIO_IN_IRQ_DOUBLE_EDGE
	.no_dead_strip	_mv_gpio_intr_unmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_gpio_intr_unmask
_mv_gpio_intr_unmask:                   ; @mv_gpio_intr_unmask
	.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
	ldr	w0, [x0, #8]
	bl	_device_get_softc
	ldr	x8, [x19]
	ldr	x9, [x0]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_MV_GPIO_LOCK
	ldr	x8, [x20, #8]
	ldr	x1, [x19]
	ldr	w8, [x8, x1, lsl #2]
Lloh0:
	adrp	x9, _MV_GPIO_IN_IRQ_EDGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV_GPIO_IN_IRQ_EDGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MV_GPIO_IN_IRQ_DOUBLE_EDGE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MV_GPIO_IN_IRQ_DOUBLE_EDGE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w0, [x19, #8]
	mov	w2, #1
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	bl	_mv_gpio_edge
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_mv_gpio_level
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MV_GPIO_UNLOCK
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MV_GPIO_IN_IRQ_EDGE,4,2        ; @MV_GPIO_IN_IRQ_EDGE
	.comm	_MV_GPIO_IN_IRQ_DOUBLE_EDGE,4,2 ; @MV_GPIO_IN_IRQ_DOUBLE_EDGE
	.no_dead_strip	_mv_gpio_intr_unmask
.subsections_via_symbols
