	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_gpio_intr_mask
_nv50_gpio_intr_mask:                   ## @nv50_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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
	movq	_NVKM_GPIO_LO@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	%ebx, %ecx
	shll	$16, %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%r15d, %ecx
	shll	$16, %ecx
	orl	%ecx, %eax
LBB0_2:
	movq	_NVKM_GPIO_HI@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r12d
	notl	%ebx
	andl	%eax, %ebx
	orl	%r15d, %ebx
	testl	%r12d, %r12d
	cmovel	%eax, %ebx
	movq	%r14, %rdi
	movl	$57424, %esi                    ## imm = 0xE050
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	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
	.no_dead_strip	_nv50_gpio_intr_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_gpio_intr_mask
_nv50_gpio_intr_mask:                   ; @nv50_gpio_intr_mask
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
	mov	x0, x22
	mov	w1, #57424
	bl	_nvkm_rd32
Lloh0:
	adrp	x8, _NVKM_GPIO_LO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_GPIO_LO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	bic	w8, w0, w20, lsl #16
	orr	w8, w8, w19, lsl #16
	csel	w8, w0, w8, eq
Lloh3:
	adrp	x9, _NVKM_GPIO_HI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVKM_GPIO_HI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w10, w8, w20
	orr	w10, w10, w19
	tst	w9, w21
	csel	w2, w8, w10, eq
	mov	x0, x22
	mov	w1, #57424
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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
	.no_dead_strip	_nv50_gpio_intr_mask
.subsections_via_symbols
