	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g94_gpio_intr_mask             ## -- Begin function g94_gpio_intr_mask
	.p2align	4, 0x90
_g94_gpio_intr_mask:                    ## @g94_gpio_intr_mask
	.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	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	(%rdi), %r14
	movq	%r14, %rdi
	movl	$57424, %esi                    ## imm = 0xE050
	callq	_nvkm_rd32
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	$57456, %esi                    ## imm = 0xE070
	callq	_nvkm_rd32
	movq	_NVKM_GPIO_LO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%r12d, %edx
	je	LBB0_2
## %bb.1:
	movl	%ebx, %ecx
	shll	$16, %ecx
	notl	%ecx
	andl	%ecx, %r13d
	movl	%r15d, %ecx
	shll	$16, %ecx
	orl	%ecx, %r13d
LBB0_2:
	movq	_NVKM_GPIO_HI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %esi
	notl	%esi
	testl	%r12d, %ecx
	je	LBB0_4
## %bb.3:
	movl	%esi, %edi
	orl	$-65536, %edi                   ## imm = 0xFFFF0000
	andl	%edi, %r13d
	movzwl	%r15w, %edi
	orl	%edi, %r13d
LBB0_4:
	testl	%r12d, %edx
	je	LBB0_6
## %bb.5:
	orl	$65535, %esi                    ## imm = 0xFFFF
	andl	%esi, %eax
	movl	%r15d, %edx
	andl	$-65536, %edx                   ## imm = 0xFFFF0000
	orl	%edx, %eax
LBB0_6:
	sarl	$16, %r15d
	sarl	$16, %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	%r15d, %ebx
	testl	%r12d, %ecx
	cmovel	%eax, %ebx
	movq	%r14, %rdi
	movl	$57424, %esi                    ## imm = 0xE050
	movl	%r13d, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$57456, %esi                    ## imm = 0xE070
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_GPIO_LO,4,2               ## @NVKM_GPIO_LO
	.comm	_NVKM_GPIO_HI,4,2               ## @NVKM_GPIO_HI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g94_gpio_intr_mask             ; -- Begin function g94_gpio_intr_mask
	.p2align	2
_g94_gpio_intr_mask:                    ; @g94_gpio_intr_mask
	.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, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
	mov	x0, x22
	mov	w1, #57424
	bl	_nvkm_rd32
	mov	x23, x0
	mov	x0, x22
	mov	w1, #57456
	bl	_nvkm_rd32
Lloh0:
	adrp	x8, _NVKM_GPIO_LO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_GPIO_LO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w8, w8, w21
	bic	w9, w23, w20, lsl #16
	orr	w9, w9, w19, lsl #16
	csel	w9, w23, w9, eq
Lloh3:
	adrp	x10, _NVKM_GPIO_HI@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NVKM_GPIO_HI@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ands	w10, w10, w21
	mvn	w11, w20
	orr	w12, w11, #0xffff0000
	and	w12, w9, w12
	and	w13, w19, #0xffff
	orr	w12, w12, w13
	csel	w2, w9, w12, eq
	orr	w9, w11, #0xffff
	and	w9, w0, w9
	and	w11, w19, #0xffff0000
	orr	w9, w9, w11
	cmp	w8, #0
	csel	w8, w0, w9, eq
	bic	w9, w8, w20, asr #16
	orr	w9, w9, w19, asr #16
	cmp	w10, #0
	csel	w19, w8, w9, eq
	mov	x0, x22
	mov	w1, #57424
	bl	_nvkm_wr32
	mov	x0, x22
	mov	w1, #57456
	mov	x2, x19
	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
	b	_nvkm_wr32
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_GPIO_LO,4,2               ; @NVKM_GPIO_LO
	.comm	_NVKM_GPIO_HI,4,2               ; @NVKM_GPIO_HI
.subsections_via_symbols
