	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv31_bus_intr
_nv31_bus_intr:                         ## @nv31_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_nouveau_bus
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	callq	_nv_rd32
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$4416, %esi                     ## imm = 0x1140
	callq	_nv_rd32
	movl	%eax, %r15d
	andl	%ebx, %r15d
	movq	%r14, %rdi
	movl	$4356, %esi                     ## imm = 0x1104
	callq	_nv_rd32
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$4420, %esi                     ## imm = 0x1144
	callq	_nv_rd32
	testl	%ebx, %eax
	je	LBB0_4
## %bb.1:
	movq	_NVDEV_SUBDEV_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nouveau_subdev
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	*%rcx
LBB0_4:
	testb	$8, %r15b
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$36996, %esi                    ## imm = 0x9084
	callq	_nv_rd32
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$37000, %esi                    ## imm = 0x9088
	callq	_nv_rd32
	testb	$2, %bl
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	andl	$16777212, %ebx                 ## imm = 0xFFFFFC
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_nv_error
	andl	$-9, %r15d
	movq	%r14, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$8, %edx
	callq	_nv_wr32
LBB0_6:
	testl	$458752, %r15d                  ## imm = 0x70000
	je	LBB0_11
## %bb.7:
	movq	_NVDEV_SUBDEV_THERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nouveau_subdev
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movq	%rax, %rdi
	callq	*%rcx
LBB0_10:
	andl	$-458753, %r15d                 ## imm = 0xFFF8FFFF
	movq	%r14, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$458752, %edx                   ## imm = 0x70000
	callq	_nv_wr32
LBB0_11:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r14, %rdi
	movl	$4416, %esi                     ## imm = 0x1140
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_mask                        ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVDEV_SUBDEV_GPIO,4,2          ## @NVDEV_SUBDEV_GPIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MMIO %s of 0x%08x FAULT at 0x%06x\n"

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

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

	.comm	_NVDEV_SUBDEV_THERM,4,2         ## @NVDEV_SUBDEV_THERM
L_.str.3:                               ## @.str.3
	.asciz	"unknown intr 0x%08x\n"

	.no_dead_strip	_nv31_bus_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv31_bus_intr
_nv31_bus_intr:                         ; @nv31_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
	bl	_nouveau_bus
	mov	x19, x0
	mov	w1, #4352
	bl	_nv_rd32
	mov	x20, x0
	mov	x0, x19
	mov	w1, #4416
	bl	_nv_rd32
	and	w20, w0, w20
	mov	x0, x19
	mov	w1, #4356
	bl	_nv_rd32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #4420
	bl	_nv_rd32
	tst	w0, w21
	b.eq	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _NVDEV_SUBDEV_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVDEV_SUBDEV_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nouveau_subdev
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.3:
	blr	x8
LBB0_4:
	tbz	w20, #3, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #36996
	bl	_nv_rd32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #37000
	bl	_nv_rd32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	tst	w21, #0x2
	csel	x8, x9, x8, eq
	and	w9, w21, #0xfffffc
	stp	x0, x9, [sp, #8]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	and	w20, w20, #0xfffffff7
	mov	x0, x19
	mov	w1, #4352
	mov	w2, #8
	bl	_nv_wr32
LBB0_6:
	tst	w20, #0x70000
	b.eq	LBB0_11
; %bb.7:
Lloh9:
	adrp	x8, _NVDEV_SUBDEV_THERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NVDEV_SUBDEV_THERM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nouveau_subdev
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.9:
	blr	x8
LBB0_10:
	and	w20, w20, #0xfff8ffff
	mov	x0, x19
	mov	w1, #4352
	mov	w2, #458752
	bl	_nv_wr32
LBB0_11:
	cbz	w20, LBB0_13
; %bb.12:
	str	x20, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	w1, #4416
	mov	x2, x20
	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	_nv_mask
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NVDEV_SUBDEV_GPIO,4,2          ; @NVDEV_SUBDEV_GPIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MMIO %s of 0x%08x FAULT at 0x%06x\n"

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

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

	.comm	_NVDEV_SUBDEV_THERM,4,2         ; @NVDEV_SUBDEV_THERM
l_.str.3:                               ; @.str.3
	.asciz	"unknown intr 0x%08x\n"

	.no_dead_strip	_nv31_bus_intr
.subsections_via_symbols
