	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_fifo_intr_engine_unit
_gf100_fifo_intr_engine_unit:           ## @gf100_fifo_intr_engine_unit
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	leal	9640(,%rsi,4), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_nvkm_rd32
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	$9768, %esi                     ## imm = 0x2628
	callq	_nvkm_rd32
	movl	%eax, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %r13d
	movl	%r12d, %edx
	callq	_nvkm_wr32
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	addl	$4, %r14d
	cmpl	$8, %r15d
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r12d
	movl	%r14d, %ecx
	sarl	%cl, %r12d
	andl	%ebx, %r12d
	testb	$1, %r12b
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvkm_fifo_uevent
	andl	$-2, %r12d
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_nvkm_error
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$9768, %esi                     ## imm = 0x2628
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	jmp	LBB0_5
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENGINE %d %d %01x"

	.no_dead_strip	_gf100_fifo_intr_engine_unit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_fifo_intr_engine_unit
_gf100_fifo_intr_engine_unit:           ; @gf100_fifo_intr_engine_unit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	mov	w8, #9640
	add	w24, w8, w1, lsl #2
	mov	x0, x21
	mov	x1, x24
	bl	_nvkm_rd32
	mov	x22, x0
	mov	x0, x21
	mov	w1, #9768
	bl	_nvkm_rd32
	mov	x23, x0
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	bl	_nvkm_wr32
	mov	w27, #0
	mov	w24, #0
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	add	w27, w27, #4
	cmp	w24, #8
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	asr	w8, w22, w27
	and	w26, w8, w23
	tbz	w26, #0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_nvkm_fifo_uevent
	and	w26, w26, #0xfffffffe
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w26, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x25
	mov	x2, x19
	mov	x3, x24
	mov	x4, x26
	bl	_nvkm_error
	mov	x0, x21
	mov	w1, #9768
	mov	x2, x26
	mov	w3, #0
	bl	_nvkm_mask
	b	LBB0_1
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENGINE %d %d %01x"

	.no_dead_strip	_gf100_fifo_intr_engine_unit
.subsections_via_symbols
