	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv31_mpeg_intr
_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_nv31_mpeg
	movq	%rax, %rbx
	movq	%rax, %r12
	movq	8(%rax), %r13
	movq	%r13, %rdi
	movl	$45312, %esi                    ## imm = 0xB100
	callq	_nvkm_rd32
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	$45616, %esi                    ## imm = 0xB230
	callq	_nvkm_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$45620, %esi                    ## imm = 0xB234
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$45624, %esi                    ## imm = 0xB238
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	%r14d, %r15d
	testl	$16777216, %r14d                ## imm = 0x1000000
	je	LBB0_6
## %bb.1:
	cmpl	$32, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_4
## %bb.2:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movl	$45832, %esi                    ## imm = 0xB308
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movl	%r14d, %r15d
	andl	$-16777217, %r15d               ## imm = 0xFEFFFFFF
	jmp	LBB0_6
LBB0_4:
	movl	%r14d, %r15d
	cmpl	$16, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nv31_mpeg_mthd
	movl	%r14d, %r15d
	andl	$-16777217, %r15d               ## imm = 0xFEFFFFFF
	testq	%rax, %rax
	cmovel	%r14d, %r15d
LBB0_6:
	movq	%r13, %rdi
	movl	$45312, %esi                    ## imm = 0xB100
	movl	%r14d, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$45616, %esi                    ## imm = 0xB230
	movl	$1, %edx
	callq	_nvkm_wr32
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.7:
	addq	$8, %rbx
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rax), %edx
	movq	(%rcx), %rcx
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rcx
	movl	$-1, %edx
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_nvkm_error
	addq	$16, %rsp
LBB0_11:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ch %d [%s] %08x %08x %08x %08x\n"

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

	.no_dead_strip	_nv31_mpeg_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv31_mpeg_intr
_nv31_mpeg_intr:                        ; @nv31_mpeg_intr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_nv31_mpeg
	mov	x19, x0
	mov	x20, x0
	ldr	x25, [x20, #8]!
	mov	x0, x25
	mov	w1, #45312
	bl	_nvkm_rd32
	mov	x21, x0
	mov	x0, x25
	mov	w1, #45616
	bl	_nvkm_rd32
	mov	x22, x0
	mov	x0, x25
	mov	w1, #45620
	bl	_nvkm_rd32
	mov	x23, x0
	mov	x0, x25
	mov	w1, #45624
	bl	_nvkm_rd32
	mov	x24, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x26, x21
	tbz	w21, #24, LBB0_5
; %bb.1:
	cmp	w22, #32
	ccmp	w23, #0, #0, eq
	b.eq	LBB0_4
; %bb.2:
	mov	x26, x21
	cmp	w22, #16
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_nv31_mpeg_mthd
	and	w8, w21, #0xfeffffff
	cmp	x0, #0
	csel	w26, w21, w8, eq
	b	LBB0_5
LBB0_4:
	mov	x0, x25
	mov	w1, #45832
	mov	w2, #0
	mov	w3, #0
	bl	_nvkm_mask
	and	w26, w21, #0xfeffffff
LBB0_5:
	mov	x0, x25
	mov	w1, #45312
	mov	x2, x21
	bl	_nvkm_wr32
	mov	x0, x25
	mov	w1, #45616
	mov	w2, #1
	bl	_nvkm_wr32
	cbz	w26, LBB0_10
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldp	x8, x9, [x8]
	ldr	w2, [x9]
	ldr	x3, [x8]
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x3, l_.str.1@PAGE
Lloh1:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #-1
LBB0_9:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x21
	mov	x5, x22
	mov	x6, x23
	mov	x7, x24
	bl	_nvkm_error
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ch %d [%s] %08x %08x %08x %08x\n"

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

	.no_dead_strip	_nv31_mpeg_intr
.subsections_via_symbols
