	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gv100_fault_buffer_process
LCPI0_0:
	.long	1                               ## 0x1
	.long	15                              ## 0xf
	.long	127                             ## 0x7f
	.long	31                              ## 0x1f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gv100_fault_buffer_process:            ## @gv100_fault_buffer_process
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	8(%rax), %rbx
	movq	24(%rdi), %r12
	movl	4(%rdi), %esi
	movq	%rbx, %rdi
	callq	_nvkm_rd32
	movl	%eax, %r15d
	movl	16(%r13), %esi
	movq	%rbx, %rdi
	callq	_nvkm_rd32
	cmpl	%r15d, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_nvkm_kmap
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	%r13, %rbx
	movl	(%rax), %r13d
	imull	%r15d, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_nvkm_ro32
	leal	4(%r13), %esi
	movq	%r12, %rdi
	callq	_nvkm_ro32
	leal	8(%r13), %esi
	movq	%r12, %rdi
	callq	_nvkm_ro32
	leal	12(%r13), %esi
	movq	%r12, %rdi
	callq	_nvkm_ro32
	leal	16(%r13), %esi
	movq	%r12, %rdi
	callq	_nvkm_ro32
	leal	20(%r13), %esi
	movq	%r12, %rdi
	callq	_nvkm_ro32
	leal	24(%r13), %esi
	movq	%r12, %rdi
	callq	_nvkm_ro32
	movl	%eax, %r14d
	addl	$28, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rbx, %r13
	callq	_nvkm_ro32
	incl	%r15d
	cmpl	(%rbx), %r15d
	movl	%eax, %ebx
	movl	$0, %eax
	cmovel	%eax, %r15d
	movl	4(%r13), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_nvkm_wr32
	movzbl	%r14b, %eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%eax, -84(%rbp)
	movl	%ebx, %eax
	shrl	$31, %eax
	movl	%eax, -80(%rbp)
	movl	%ebx, %eax
	shrl	$24, %eax
	andl	$31, %eax
	movl	%ebx, %ecx
	shrl	$20, %ecx
	movl	%ebx, %edx
	shrl	$16, %edx
	movd	%ecx, %xmm0
	movl	%ebx, %ecx
	shrl	$8, %ecx
	pinsrd	$1, %edx, %xmm0
	pinsrd	$2, %ecx, %xmm0
	pinsrd	$3, %ebx, %xmm0
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, -76(%rbp)
	pand	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, -72(%rbp)
	movl	(%rbx), %edi
	leaq	-96(%rbp), %rsi
	callq	_nvkm_fifo_fault
	cmpl	%r14d, %r15d
	jne	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	callq	_nvkm_done
LBB0_4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gv100_fault_buffer_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function gv100_fault_buffer_process
lCPI0_0:
	.long	4294967272                      ; 0xffffffe8
	.long	4294967276                      ; 0xffffffec
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
lCPI0_1:
	.long	31                              ; 0x1f
	.long	1                               ; 0x1
	.long	15                              ; 0xf
	.long	127                             ; 0x7f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_gv100_fault_buffer_process:            ; @gv100_fault_buffer_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, #8]
	ldr	x20, [x0, #24]
	ldr	w1, [x0, #4]
	mov	x0, x21
	bl	_nvkm_rd32
	mov	x22, x0
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_nvkm_rd32
	cmp	w0, w22
	b.eq	LBB0_4
; %bb.1:
	mov	x23, x0
	mov	x0, x20
	bl	_nvkm_kmap
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
Lloh2:
	adrp	x8, lCPI0_1@PAGE
Lloh3:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	mul	w24, w8, w22
	mov	x0, x20
	mov	x1, x24
	bl	_nvkm_ro32
	add	w1, w24, #4
	mov	x0, x20
	bl	_nvkm_ro32
	add	w1, w24, #8
	mov	x0, x20
	bl	_nvkm_ro32
	add	w1, w24, #12
	mov	x0, x20
	bl	_nvkm_ro32
	add	w1, w24, #16
	mov	x0, x20
	bl	_nvkm_ro32
	add	w1, w24, #20
	mov	x0, x20
	bl	_nvkm_ro32
	add	w1, w24, #24
	mov	x0, x20
	bl	_nvkm_ro32
	mov	x25, x0
	add	w1, w24, #28
	mov	x0, x20
	bl	_nvkm_ro32
	mov	x24, x0
	add	w8, w22, #1
	ldp	w9, w1, [x19]
	cmp	w8, w9
	csinc	w22, wzr, w22, eq
	mov	x0, x21
	mov	x2, x22
	bl	_nvkm_wr32
	and	w8, w25, #0xff
	lsr	w9, w24, #31
	stp	w8, w9, [sp, #52]
	dup.4s	v0, w24
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	ushl.4s	v0, v0, v1
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	and.16b	v0, v0, v1
	stur	q0, [sp, #60]
	and	w8, w24, #0x1f
	str	w8, [sp, #76]
	ldr	w0, [x21]
	add	x1, sp, #40
	bl	_nvkm_fifo_fault
	cmp	w22, w23
	b.ne	LBB0_2
; %bb.3:
	mov	x0, x20
	bl	_nvkm_done
LBB0_4:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gv100_fault_buffer_process
.subsections_via_symbols
