	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_bus_intr
_nv04_bus_intr:                         ## @nv04_bus_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	%r15, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	callq	_nvkm_rd32
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	$4416, %esi                     ## imm = 0x1140
	callq	_nvkm_rd32
	movl	%eax, %ebx
	andl	%r12d, %ebx
	testb	$1, %bl
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_nvkm_error
	andl	$-2, %ebx
	movq	%r15, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$1, %edx
	callq	_nvkm_wr32
LBB0_2:
	testl	$272, %ebx                      ## imm = 0x110
	je	LBB0_6
## %bb.3:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_nvkm_subdev_intr
LBB0_5:
	andl	$-273, %ebx                     ## imm = 0xFEEF
	movq	%r15, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$272, %edx                      ## imm = 0x110
	callq	_nvkm_wr32
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_nvkm_error
	movq	%r15, %rdi
	movl	$4416, %esi                     ## imm = 0x1140
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_mask                      ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUS ERROR\n"

L_.str.1:                               ## @.str.1
	.asciz	"intr %08x\n"

	.no_dead_strip	_nv04_bus_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_bus_intr
_nv04_bus_intr:                         ; @nv04_bus_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #4352
	bl	_nvkm_rd32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #4416
	bl	_nvkm_rd32
	and	w21, w0, w21
	tbz	w21, #0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_nvkm_error
	and	w21, w21, #0xfffffffe
	mov	x0, x19
	mov	w1, #4352
	mov	w2, #1
	bl	_nvkm_wr32
LBB0_2:
	mov	w8, #272
	tst	w21, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_nvkm_subdev_intr
LBB0_5:
	mov	w8, #-273
	and	w21, w21, w8
	mov	x0, x19
	mov	w1, #4352
	mov	w2, #272
	bl	_nvkm_wr32
LBB0_6:
	cbz	w21, LBB0_8
; %bb.7:
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #4416
	mov	x2, x21
	mov	w3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_nvkm_mask
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUS ERROR\n"

l_.str.1:                               ; @.str.1
	.asciz	"intr %08x\n"

	.no_dead_strip	_nv04_bus_intr
.subsections_via_symbols
