	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv31_mpeg_intr                 ## -- Begin function nv31_mpeg_intr
	.p2align	4, 0x90
_nv31_mpeg_intr:                        ## @nv31_mpeg_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nouveau_fifo
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_nv_engine
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$45848, %esi                    ## imm = 0xB318
	callq	_nv_rd32
	movl	%eax, %r14d
	andl	$1048575, %r14d                 ## imm = 0xFFFFF
	movq	%rbx, %rdi
	movl	$45312, %esi                    ## imm = 0xB100
	callq	_nv_rd32
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	$45616, %esi                    ## imm = 0xB230
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$45620, %esi                    ## imm = 0xB234
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$45624, %esi                    ## imm = 0xB238
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_nouveau_engctx_get
	movq	%r12, %rdi
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	*(%r12)
	movl	%eax, %r12d
	movl	%r13d, %r15d
	testl	$16777216, %r13d                ## imm = 0x1000000
	je	LBB0_8
## %bb.1:
	cmpl	$32, -56(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_4
## %bb.2:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$45832, %esi                    ## imm = 0xB308
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
	movl	%r13d, %r15d
	andl	$-16777217, %r15d               ## imm = 0xFEFFFFFF
	jmp	LBB0_8
LBB0_4:
	movl	%r13d, %r15d
	cmpl	$16, -56(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.5:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$12660, %esi                    ## imm = 0x3174
	callq	_nouveau_handle_get_class
	movq	%rax, %r12
	movl	%r13d, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nv_call
	movl	%r13d, %r15d
	andl	$-16777217, %r15d               ## imm = 0xFEFFFFFF
	testl	%eax, %eax
	cmovnel	%r13d, %r15d
LBB0_7:
	movq	%r12, %rdi
	callq	_nouveau_handle_put
	movl	-60(%rbp), %r12d                ## 4-byte Reload
LBB0_8:
	movq	%rbx, %rdi
	movl	$45312, %esi                    ## imm = 0xB100
	movl	%r13d, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$45616, %esi                    ## imm = 0xB230
	movl	$1, %edx
	callq	_nv_wr32
	testl	%r15d, %r15d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	shll	$4, %r14d
	movq	%r15, %rdi
	callq	_nouveau_client_name
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movl	%r13d, %r9d
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_nv_error
	addq	$32, %rsp
LBB0_10:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nouveau_engctx_put             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ch %d [0x%08x %s] 0x%08x 0x%08x 0x%08x 0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv31_mpeg_intr                 ; -- Begin function nv31_mpeg_intr
	.p2align	2
_nv31_mpeg_intr:                        ; @nv31_mpeg_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	bl	_nouveau_fifo
	mov	x26, x0
	mov	x0, x19
	bl	_nv_engine
	mov	x24, x0
	mov	x0, x19
	mov	w1, #45848
	bl	_nv_rd32
	and	w22, w0, #0xfffff
	mov	x0, x19
	mov	w1, #45312
	bl	_nv_rd32
	mov	x20, x0
	mov	x0, x19
	mov	w1, #45616
	bl	_nv_rd32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #45620
	bl	_nv_rd32
	mov	x23, x0
	mov	x0, x19
	mov	w1, #45624
	bl	_nv_rd32
	mov	x25, x0
	mov	x0, x24
	mov	x1, x22
	bl	_nouveau_engctx_get
	mov	x24, x0
	ldr	x8, [x26]
	mov	x0, x26
	mov	x1, x24
	blr	x8
	mov	x26, x0
	mov	x28, x20
	tbz	w20, #24, LBB0_8
; %bb.1:
	cmp	w21, #32
	b.ne	LBB0_4
; %bb.2:
	cbnz	w23, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #45832
	mov	w2, #0
	mov	w3, #0
	bl	_nv_mask
	and	w28, w20, #0xfeffffff
	b	LBB0_8
LBB0_4:
	mov	x28, x20
	cmp	w21, #16
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x24
	mov	w1, #12660
	bl	_nouveau_handle_get_class
	mov	x27, x0
	mov	x28, x20
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x27]
	mov	x1, x23
	mov	x2, x25
	bl	_nv_call
	and	w8, w20, #0xfeffffff
	cmp	w0, #0
	csel	w28, w8, w20, eq
LBB0_7:
	mov	x0, x27
	bl	_nouveau_handle_put
LBB0_8:
	mov	x0, x19
	mov	w1, #45312
	mov	x2, x20
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #45616
	mov	w2, #1
	bl	_nv_wr32
	cbz	w28, LBB0_10
; %bb.9:
	lsl	w22, w22, #4
	mov	x0, x24
	bl	_nouveau_client_name
	mov	x4, x0
	str	w25, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x26
	mov	x3, x22
	mov	x5, x20
	mov	x6, x21
	mov	x7, x23
	bl	_nv_error
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_nouveau_engctx_put
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ch %d [0x%08x %s] 0x%08x 0x%08x 0x%08x 0x%08x\n"

.subsections_via_symbols
