	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_fb_intr
_nv50_fb_intr:                          ## @nv50_fb_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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_nv50_fb
	movq	%rax, %r15
	movq	(%rax), %rbx
	movq	8(%rbx), %r12
	movq	%rbx, %rdi
	movl	$1051792, %esi                  ## imm = 0x100C90
	callq	_nvkm_rd32
	testl	%eax, %eax
	jns	LBB0_25
## %bb.1:
	movl	%eax, %r14d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	andl	$16777215, %r14d                ## imm = 0xFFFFFF
	movq	%rbx, %rdi
	movl	$1051792, %esi                  ## imm = 0x100C90
	movl	%r14d, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1051796, %esi                  ## imm = 0x100C94
	callq	_nvkm_rd32
	movl	%eax, %r13d
	leal	16777216(%r14), %edx
	movq	%rbx, %rdi
	movl	$1051792, %esi                  ## imm = 0x100C90
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1051796, %esi                  ## imm = 0x100C94
	callq	_nvkm_rd32
	movl	%eax, %r12d
	leal	33554432(%r14), %edx
	movq	%rbx, %rdi
	movl	$1051792, %esi                  ## imm = 0x100C90
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1051796, %esi                  ## imm = 0x100C94
	callq	_nvkm_rd32
	movl	%eax, %r15d
	leal	50331648(%r14), %edx
	movq	%rbx, %rdi
	movl	$1051792, %esi                  ## imm = 0x100C90
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1051796, %esi                  ## imm = 0x100C94
	callq	_nvkm_rd32
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leal	67108864(%r14), %edx
	movq	%rbx, %rdi
	movl	$1051792, %esi                  ## imm = 0x100C90
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1051796, %esi                  ## imm = 0x100C94
	callq	_nvkm_rd32
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leal	83886080(%r14), %edx
	movq	%rbx, %rdi
	movl	$1051792, %esi                  ## imm = 0x100C90
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1051796, %esi                  ## imm = 0x100C94
	callq	_nvkm_rd32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	orl	$-2147483648, %r14d             ## imm = 0x80000000
	movq	%rbx, %rdi
	movl	$1051792, %esi                  ## imm = 0x100C90
	movl	%r14d, %edx
	callq	_nvkm_wr32
	movl	(%rbx), %eax
	cmpl	$163, %eax
	jl	LBB0_4
## %bb.2:
	cmpl	$172, %eax
	je	LBB0_4
## %bb.3:
	cmpl	$170, %eax
	jne	LBB0_11
LBB0_4:
	movl	%r13d, %esi
	andl	$15, %esi
	movl	%r13d, %ebx
	shrl	$4, %ebx
	andl	$15, %ebx
	movl	%r13d, %r14d
	shrl	$8, %r14d
	andl	$15, %r14d
	shrl	$12, %r13d
	andl	$15, %r13d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
LBB0_5:
	shll	$28, %r15d
	shll	$12, %r12d
	orl	%r15d, %r12d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	_vm_engine@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nvkm_enum_find
	movq	%rax, %r15
	movq	_vm_fault@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%ebx, %esi
	callq	_nvkm_enum_find
	movq	%rax, %rbx
	movq	_vm_client@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r14d, %esi
	callq	_nvkm_enum_find
	movq	%rax, %r12
	testq	%rax, %rax
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.6:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
LBB0_7:
	testq	%r15, %r15
	je	LBB0_12
## %bb.8:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
LBB0_9:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nvkm_enum_find
	movq	%rax, %r13
	jmp	LBB0_13
LBB0_12:
	xorl	%r13d, %r13d
LBB0_13:
	leaq	-128(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nvkm_fifo_chan_inst
	movq	%rax, -136(%rbp)
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	testl	$256, %esi                      ## imm = 0x100
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	(%rax), %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	(%rax), %r11
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.3(%rip), %r11
	movl	$-1, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_16:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, %r10
	testq	%r15, %r15
	je	LBB0_18
## %bb.17:
	movq	(%r15), %r10
LBB0_18:
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_20
## %bb.19:
	movq	(%r12), %r15
LBB0_20:
	movq	%rax, %rbx
	testq	%r13, %r13
	je	LBB0_22
## %bb.21:
	movq	(%r13), %rbx
LBB0_22:
	movzbl	%sil, %ecx
	movzwl	-56(%rbp), %r8d                 ## 2-byte Folded Reload
	movzwl	-60(%rbp), %r9d                 ## 2-byte Folded Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_24
## %bb.23:
	movq	(%rsi), %rax
LBB0_24:
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	pushq	%rax
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	%rbx
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	pushq	%r14
	pushq	%r10
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	%r11
	pushq	%r12
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_nvkm_error
	addq	$96, %rsp
	movq	-128(%rbp), %rsi
	leaq	-136(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvkm_fifo_chan_put
LBB0_25:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r13, %rcx
	movzbl	%cl, %esi
	movzbl	%ch, %ebx
	movl	%ecx, %eax
	shrl	$16, %eax
	movzbl	%al, %r14d
	shrl	$24, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_vm_engine,8,3                  ## @vm_engine
	.comm	_vm_fault,8,3                   ## @vm_fault
	.comm	_vm_client,8,3                  ## @vm_client
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trapped %s at %02x%04x%04x on channel %d [%08x %s] engine %02x [%s] client %02x [%s] subclient %02x [%s] reason %08x [%s]\n"

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

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

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

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

	.no_dead_strip	_nv50_fb_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_fb_intr
_nv50_fb_intr:                          ; @nv50_fb_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	w19, #3216
	movk	w19, #16, lsl #16
	bl	_nv50_fb
	mov	x20, x0
	ldr	x22, [x0]
	ldr	x25, [x22, #8]
	mov	x0, x22
	mov	w1, #3216
	movk	w1, #16, lsl #16
	bl	_nvkm_rd32
	tbz	w0, #31, LBB0_24
; %bb.1:
	mov	x24, x0
	and	w2, w0, #0xffffff
	mov	x0, x22
	mov	w1, #3216
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
	add	w23, w19, #4
	mov	x0, x22
	mov	x1, x23
	bl	_nvkm_rd32
	mov	x26, x0
	mov	w2, #16777216
	bfxil	w2, w24, #0, #24
	mov	x0, x22
	mov	w1, #3216
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
	mov	x0, x22
	mov	x1, x23
	bl	_nvkm_rd32
	mov	x21, x0
	mov	w2, #33554432
	bfxil	w2, w24, #0, #24
	mov	x0, x22
	mov	w1, #3216
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
	mov	x0, x22
	mov	x1, x23
	bl	_nvkm_rd32
	mov	x28, x0
	mov	w2, #50331648
	bfxil	w2, w24, #0, #24
	mov	x0, x22
	mov	w1, #3216
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
	mov	x0, x22
	mov	x1, x23
	bl	_nvkm_rd32
	mov	x19, x0
	mov	w2, #67108864
	bfxil	w2, w24, #0, #24
	mov	x0, x22
	mov	w1, #3216
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
	mov	x0, x22
	mov	x1, x23
	bl	_nvkm_rd32
	str	w0, [sp, #80]                   ; 4-byte Folded Spill
	mov	w2, #83886080
	bfxil	w2, w24, #0, #24
	mov	x0, x22
	mov	w1, #3216
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
	mov	x0, x22
	mov	x1, x23
	bl	_nvkm_rd32
	mov	x27, x0
	mov	w2, #-2147483648
	bfxil	w2, w24, #0, #24
	mov	x0, x22
	mov	w1, #3216
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
	ldr	w8, [x22]
	cmp	w8, #163
	str	x25, [sp, #88]                  ; 8-byte Folded Spill
	b.lt	LBB0_4
; %bb.2:
	cmp	w8, #172
	b.eq	LBB0_4
; %bb.3:
	cmp	w8, #170
	b.ne	LBB0_25
LBB0_4:
	ubfx	w25, w26, #4, #4
	and	w22, w26, #0xf
	ubfx	w24, w26, #8, #4
	ubfx	w8, w26, #12, #4
LBB0_5:
	str	w8, [sp, #84]                   ; 4-byte Folded Spill
	lsl	w8, w21, #12
	orr	w28, w8, w28, lsl #28
Lloh0:
	adrp	x8, _vm_engine@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vm_engine@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	mov	x1, x22
	bl	_nvkm_enum_find
	mov	x23, x0
Lloh3:
	adrp	x8, _vm_fault@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vm_fault@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	mov	x1, x25
	bl	_nvkm_enum_find
	mov	x21, x0
Lloh6:
	adrp	x8, _vm_client@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vm_client@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	mov	x1, x24
	bl	_nvkm_enum_find
	mov	x26, x0
	str	w24, [sp, #76]                  ; 4-byte Folded Spill
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x26, #8]
	cbnz	x0, LBB0_9
LBB0_7:
	cbz	x23, LBB0_10
; %bb.8:
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_10
LBB0_9:
	mov	x24, x22
	mov	x22, x19
	ldr	w1, [sp, #84]                   ; 4-byte Folded Reload
	bl	_nvkm_enum_find
	mov	x19, x0
	b	LBB0_11
LBB0_10:
	mov	x24, x22
	mov	x22, x19
	mov	x19, #0
LBB0_11:
	add	x2, sp, #96
	ldr	x0, [sp, #88]                   ; 8-byte Folded Reload
	mov	x1, x28
	bl	_nvkm_fifo_chan_inst
	stur	x0, [x29, #-88]
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
	tst	w27, #0x100
	csel	x2, x9, x8, eq
	cbz	x0, LBB0_15
; %bb.12:
	ldr	w6, [x0]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x23, LBB0_16
LBB0_13:
	ldr	x9, [x23]
	cbz	x26, LBB0_17
LBB0_14:
	ldr	x10, [x26]
	b	LBB0_18
LBB0_15:
Lloh13:
	adrp	x8, l_.str.3@PAGE
Lloh14:
	add	x8, x8, l_.str.3@PAGEOFF
	mov	w6, #-1
	cbnz	x23, LBB0_13
LBB0_16:
Lloh15:
	adrp	x9, l_.str.4@PAGE
Lloh16:
	add	x9, x9, l_.str.4@PAGEOFF
	cbnz	x26, LBB0_14
LBB0_17:
Lloh17:
	adrp	x10, l_.str.4@PAGE
Lloh18:
	add	x10, x10, l_.str.4@PAGEOFF
LBB0_18:
	and	w3, w27, #0xff
	ldr	w11, [sp, #80]                  ; 4-byte Folded Reload
	and	w4, w11, #0xffff
	and	w5, w22, #0xffff
	cbz	x19, LBB0_21
; %bb.19:
	ldr	x11, [x19]
	cbz	x21, LBB0_22
LBB0_20:
	ldr	x12, [x21]
	b	LBB0_23
LBB0_21:
Lloh19:
	adrp	x11, l_.str.4@PAGE
Lloh20:
	add	x11, x11, l_.str.4@PAGEOFF
	cbnz	x21, LBB0_20
LBB0_22:
Lloh21:
	adrp	x12, l_.str.4@PAGE
Lloh22:
	add	x12, x12, l_.str.4@PAGEOFF
LBB0_23:
	str	x12, [sp, #64]
	str	w25, [sp, #56]
	str	x11, [sp, #48]
	ldr	w11, [sp, #84]                  ; 4-byte Folded Reload
	str	w11, [sp, #40]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	str	x10, [sp, #32]
	ldr	w10, [sp, #76]                  ; 4-byte Folded Reload
	str	w10, [sp, #24]
	str	x9, [sp, #16]
	str	w24, [sp, #8]
	str	x8, [sp]
	mov	x0, x20
	mov	x7, x28
	bl	_nvkm_error
	ldp	x0, x1, [sp, #88]               ; 8-byte Folded Reload
	sub	x2, x29, #88
	bl	_nvkm_fifo_chan_put
LBB0_24:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_25:
	ubfx	w25, w26, #8, #8
	and	w22, w26, #0xff
	ubfx	w24, w26, #16, #8
	lsr	w8, w26, #24
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_vm_engine,8,3                  ; @vm_engine
	.comm	_vm_fault,8,3                   ; @vm_fault
	.comm	_vm_client,8,3                  ; @vm_client
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trapped %s at %02x%04x%04x on channel %d [%08x %s] engine %02x [%s] client %02x [%s] subclient %02x [%s] reason %08x [%s]\n"

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

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

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

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

	.no_dead_strip	_nv50_fb_intr
.subsections_via_symbols
