	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_fifo_fault
_gf100_fifo_fault:                      ## @gf100_fifo_fault
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_gf100_fifo
	movq	%rax, %r14
	movq	(%rax), %r13
	movq	$0, -56(%rbp)
	movq	_gf100_fifo_fault_reason@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_nvkm_enum_find
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_gf100_fifo_fault_engine@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_nvkm_enum_find
	movq	%rax, %r12
	cmpq	$0, 32(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_gf100_fifo_fault_hubclient@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	_nvkm_enum_find
	movq	%rax, %r15
	testq	%r12, %r12
	jne	LBB0_3
	jmp	LBB0_7
LBB0_2:
	movq	_gf100_fifo_fault_gpcclient@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	_nvkm_enum_find
	movq	%rax, %r15
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-56(%rbp), %rdi
	movl	$8, %esi
	callq	_snprintf
	testq	%r12, %r12
	je	LBB0_7
LBB0_3:
	movl	(%r12), %esi
	cmpl	$128, %esi
	jg	LBB0_8
## %bb.4:
	testl	%esi, %esi
	je	LBB0_7
## %bb.5:
	cmpl	$128, %esi
	jne	LBB0_11
## %bb.6:
	movq	%r13, %rdi
	callq	_nvkm_bar_bar2_reset
LBB0_7:
	xorl	%eax, %eax
LBB0_12:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_13:
	movl	4(%rbx), %esi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	_nvkm_fifo_chan_inst
	movq	%rax, %r13
	movq	%rax, -80(%rbp)
	cmpq	$0, 24(%rbx)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rax
	movq	%rax, %r9
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:
	movq	8(%r12), %r9
LBB0_15:
	movq	%rax, %r10
	testq	%r15, %r15
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:
	movq	8(%r15), %r10
LBB0_17:
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:
	movq	8(%rcx), %rax
LBB0_19:
	movq	%r14, %rdi
	movl	16(%rbx), %r8d
	movl	20(%rbx), %ecx
	movl	12(%rbx), %r11d
	movl	8(%rbx), %r15d
	testq	%r13, %r13
	je	LBB0_21
## %bb.20:
	movl	(%r13), %r12d
	movq	8(%r13), %rsi
	movq	(%rsi), %r14
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.5(%rip), %r14
	movl	$-1, %r12d
LBB0_22:
	movl	4(%rbx), %ebx
	leaq	L_.str.1(%rip), %rsi
	pushq	%r14
	movq	%rdi, %r14
	pushq	%rbx
	pushq	%r12
	pushq	%rax
	pushq	%r15
	pushq	%r10
	leaq	-56(%rbp), %rax
	pushq	%rax
	pushq	%r11
	callq	_nvkm_error
	addq	$64, %rsp
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.23:
	testq	%r13, %r13
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_gf100_fifo_recover
LBB0_25:
	movq	-72(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	callq	_nvkm_fifo_chan_put
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$130, %esi
	je	LBB0_26
## %bb.9:
	cmpl	$129, %esi
	jne	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_nvkm_bar_bar1_reset
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_11:
	movq	%r13, %rdi
	callq	_nvkm_device_engine
	jmp	LBB0_12
LBB0_26:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$5912, %esi                     ## imm = 0x1718
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_gf100_fifo_fault_reason,4,2    ## @gf100_fifo_fault_reason
	.comm	_gf100_fifo_fault_engine,4,2    ## @gf100_fifo_fault_engine
	.comm	_gf100_fifo_fault_hubclient,4,2 ## @gf100_fifo_fault_hubclient
	.comm	_gf100_fifo_fault_gpcclient,4,2 ## @gf100_fifo_fault_gpcclient
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPC%d/"

L_.str.1:                               ## @.str.1
	.asciz	"%s fault at %010llx engine %02x [%s] client %02x [%s%s] reason %02x [%s] on channel %d [%010llx %s]\n"

L_.str.2:                               ## @.str.2
	.asciz	"write"

L_.str.3:                               ## @.str.3
	.asciz	"read"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"unknown"

	.no_dead_strip	_gf100_fifo_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_fifo_fault
_gf100_fifo_fault:                      ; @gf100_fifo_fault
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	bl	_gf100_fifo
	mov	x19, x0
	ldr	x24, [x0]
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _gf100_fifo_fault_reason@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gf100_fifo_fault_reason@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_nvkm_enum_find
	mov	x21, x0
Lloh3:
	adrp	x8, _gf100_fifo_fault_engine@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gf100_fifo_fault_engine@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_nvkm_enum_find
	mov	x22, x0
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _gf100_fifo_fault_hubclient@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gf100_fifo_fault_hubclient@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_nvkm_enum_find
	mov	x23, x0
	cbnz	x22, LBB0_3
	b	LBB0_12
LBB0_2:
Lloh9:
	adrp	x8, _gf100_fifo_fault_gpcclient@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gf100_fifo_fault_gpcclient@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_nvkm_enum_find
	mov	x23, x0
	ldr	w3, [x20]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #40
	mov	w1, #8
	bl	_snprintf
	cbz	x22, LBB0_12
LBB0_3:
	ldr	w1, [x22]
	cmp	w1, #128
	b.gt	LBB0_7
; %bb.4:
	cbz	w1, LBB0_12
; %bb.5:
	cmp	w1, #128
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x24
	bl	_nvkm_bar_bar2_reset
	b	LBB0_12
LBB0_7:
	cmp	w1, #130
	b.eq	LBB0_11
; %bb.8:
	cmp	w1, #129
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x24
	bl	_nvkm_bar_bar1_reset
	b	LBB0_12
LBB0_10:
	mov	x0, x24
	bl	_nvkm_device_engine
	mov	x24, x0
	b	LBB0_13
LBB0_11:
	mov	x0, x24
	mov	w1, #5912
	mov	w2, #0
	mov	w3, #0
	bl	_nvkm_mask
LBB0_12:
	mov	x24, #0
LBB0_13:
	ldr	w1, [x20, #4]
	add	x2, sp, #48
	mov	x0, x19
	bl	_nvkm_fifo_chan_inst
	mov	x25, x0
	str	x0, [sp, #56]
	ldr	x8, [x20, #24]
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh16:
	adrp	x10, l_.str.3@PAGE
Lloh17:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
	cbz	x22, LBB0_16
; %bb.14:
	ldr	x5, [x22, #8]
	cbz	x23, LBB0_17
LBB0_15:
	ldr	x8, [x23, #8]
	b	LBB0_18
LBB0_16:
Lloh18:
	adrp	x5, l_.str.4@PAGE
Lloh19:
	add	x5, x5, l_.str.4@PAGEOFF
	cbnz	x23, LBB0_15
LBB0_17:
Lloh20:
	adrp	x8, l_.str.4@PAGE
Lloh21:
	add	x8, x8, l_.str.4@PAGEOFF
LBB0_18:
	ldp	w4, w3, [x20, #16]
	ldr	w6, [x20, #12]
	cbz	x21, LBB0_21
; %bb.19:
	ldr	x9, [x21, #8]
	ldr	w10, [x20, #8]
	cbz	x25, LBB0_22
LBB0_20:
	ldr	w11, [x25]
	ldr	x12, [x25, #8]
	ldr	x12, [x12]
	b	LBB0_23
LBB0_21:
Lloh22:
	adrp	x9, l_.str.4@PAGE
Lloh23:
	add	x9, x9, l_.str.4@PAGEOFF
	ldr	w10, [x20, #8]
	cbnz	x25, LBB0_20
LBB0_22:
Lloh24:
	adrp	x12, l_.str.5@PAGE
Lloh25:
	add	x12, x12, l_.str.5@PAGEOFF
	mov	w11, #-1
LBB0_23:
	ldr	w13, [x20, #4]
	str	x12, [sp, #32]
	stp	w11, w13, [sp, #24]
	str	x9, [sp, #16]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x7, sp, #40
	str	w10, [sp, #8]
	str	x8, [sp]
	mov	x0, x19
	bl	_nvkm_error
	cbz	x24, LBB0_26
; %bb.24:
	cbz	x25, LBB0_26
; %bb.25:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_gf100_fifo_recover
LBB0_26:
	ldr	x1, [sp, #48]
	add	x2, sp, #56
	mov	x0, x19
	bl	_nvkm_fifo_chan_put
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_gf100_fifo_fault_reason,4,2    ; @gf100_fifo_fault_reason
	.comm	_gf100_fifo_fault_engine,4,2    ; @gf100_fifo_fault_engine
	.comm	_gf100_fifo_fault_hubclient,4,2 ; @gf100_fifo_fault_hubclient
	.comm	_gf100_fifo_fault_gpcclient,4,2 ; @gf100_fifo_fault_gpcclient
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPC%d/"

l_.str.1:                               ; @.str.1
	.asciz	"%s fault at %010llx engine %02x [%s] client %02x [%s%s] reason %02x [%s] on channel %d [%010llx %s]\n"

l_.str.2:                               ; @.str.2
	.asciz	"write"

l_.str.3:                               ; @.str.3
	.asciz	"read"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"unknown"

	.no_dead_strip	_gf100_fifo_fault
.subsections_via_symbols
