	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_bus_intr                  ## -- Begin function nv50_bus_intr
	.p2align	4, 0x90
_nv50_bus_intr:                         ## @nv50_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	$8, %bl
	jne	LBB0_1
## %bb.2:
	testl	$65536, %ebx                    ## imm = 0x10000
	jne	LBB0_3
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_8:
	leaq	L_.str.3(%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_1:
	movq	%r15, %rdi
	movl	$36996, %esi                    ## imm = 0x9084
	callq	_nvkm_rd32
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	$37000, %esi                    ## imm = 0x9088
	callq	_nvkm_rd32
	testb	$2, %r12b
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	andl	$16777212, %r12d                ## imm = 0xFFFFFC
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_nvkm_error
	andl	$-9, %ebx
	movq	%r15, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$8, %edx
	callq	_nvkm_wr32
	testl	$65536, %ebx                    ## imm = 0x10000
	je	LBB0_6
LBB0_3:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_nvkm_subdev_intr
LBB0_5:
	andl	$-65537, %ebx                   ## imm = 0xFFFEFFFF
	movq	%r15, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_nvkm_wr32
	testl	%ebx, %ebx
	jne	LBB0_8
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	"MMIO %s of %08x FAULT at %06x\n"

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

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_bus_intr                  ; -- Begin function nv50_bus_intr
	.p2align	2
_nv50_bus_intr:                         ; @nv50_bus_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	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
	tbnz	w21, #3, LBB0_4
; %bb.1:
	tbnz	w21, #16, LBB0_5
LBB0_2:
	cbz	w21, LBB0_8
LBB0_3:
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str.3@PAGE
Lloh1:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #4416
	mov	x2, x21
	mov	w3, #0
	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
	add	sp, sp, #80
	b	_nvkm_mask
LBB0_4:
	mov	x0, x19
	mov	w1, #36996
	bl	_nvkm_rd32
	mov	x22, x0
	mov	x0, x19
	mov	w1, #37000
	bl	_nvkm_rd32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
	tst	w22, #0x2
	csel	x8, x9, x8, eq
	and	w9, w22, #0xfffffc
	stp	x0, x9, [sp, #8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_nvkm_error
	and	w21, w21, #0xfffffff7
	mov	x0, x19
	mov	w1, #4352
	mov	w2, #8
	bl	_nvkm_wr32
	tbz	w21, #16, LBB0_2
LBB0_5:
	ldr	x0, [x19]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_nvkm_subdev_intr
LBB0_7:
	and	w21, w21, #0xfffeffff
	mov	x0, x19
	mov	w1, #4352
	mov	w2, #65536
	bl	_nvkm_wr32
	cbnz	w21, LBB0_3
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MMIO %s of %08x FAULT at %06x\n"

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

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

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

.subsections_via_symbols
