	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_gpio_intr                 ## -- Begin function nv50_gpio_intr
	.p2align	4, 0x90
_nv50_gpio_intr:                        ## @nv50_gpio_intr
	.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
	movq	%rdi, %r12
	movl	$57428, %esi                    ## imm = 0xE054
	callq	_nv_rd32
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$57424, %esi                    ## imm = 0xE050
	callq	_nv_rd32
	movl	%eax, %r14d
	andl	%ebx, %r14d
	movq	%r12, %rdi
	callq	_nv_device
	xorl	%r15d, %r15d
	cmpl	$144, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$57460, %esi                    ## imm = 0xE074
	callq	_nv_rd32
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$57456, %esi                    ## imm = 0xE070
	callq	_nv_rd32
	movl	%eax, %r15d
	andl	%ebx, %r15d
LBB0_2:
	movzwl	%r14w, %eax
	movl	%r15d, %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	%r14d, %eax
	sarl	$16, %eax
	movl	%r15d, %r13d
	andl	$-65536, %r13d                  ## imm = 0xFFFF0000
	orl	%eax, %r13d
	orl	%ecx, %r13d
	je	LBB0_7
## %bb.3:
	movl	$-1, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$31, %ebx
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	btl	%ebx, %r13d
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_nouveau_event_trigger
	jmp	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	movl	$57428, %esi                    ## imm = 0xE054
	movl	%r14d, %edx
	callq	_nv_wr32
	movq	%r12, %rdi
	callq	_nv_device
	cmpl	$144, (%rax)
	jl	LBB0_8
## %bb.9:
	movq	%r12, %rdi
	movl	$57460, %esi                    ## imm = 0xE074
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_gpio_intr                 ; -- Begin function nv50_gpio_intr
	.p2align	2
_nv50_gpio_intr:                        ; @nv50_gpio_intr
	.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, x0
	mov	w1, #57428
	bl	_nv_rd32
	mov	x20, x0
	mov	x0, x19
	mov	w1, #57424
	bl	_nv_rd32
	and	w20, w0, w20
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #144
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #57460
	bl	_nv_rd32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #57456
	bl	_nv_rd32
	and	w21, w0, w21
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
	and	w8, w21, #0xffff0000
	orr	w8, w8, w20, asr #16
	mov	x9, x20
	bfi	w9, w21, #16, #16
	orr	w23, w8, w9
	cbz	w23, LBB0_8
; %bb.4:
	mov	w22, #-1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #31
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	lsr	w8, w23, w22
	tbz	w8, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19]
	mov	x1, x22
	bl	_nouveau_event_trigger
	b	LBB0_5
LBB0_8:
	mov	x0, x19
	mov	w1, #57428
	mov	x2, x20
	bl	_nv_wr32
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #144
	b.lt	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #57460
	mov	x2, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nv_wr32
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
