	.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, %r15
	callq	_nouveau_bus
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	callq	_nv_rd32
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	$4416, %esi                     ## imm = 0x1140
	callq	_nv_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	_nv_error
	andl	$-2, %ebx
	movq	%r14, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$1, %edx
	callq	_nv_wr32
LBB0_2:
	testl	$272, %ebx                      ## imm = 0x110
	je	LBB0_7
## %bb.3:
	movq	_NVDEV_SUBDEV_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nouveau_subdev
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	callq	*%rcx
LBB0_6:
	andl	$-273, %ebx                     ## imm = 0xFEEF
	movq	%r14, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$272, %edx                      ## imm = 0x110
	callq	_nv_wr32
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r14, %rdi
	movl	$4416, %esi                     ## imm = 0x1140
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_mask                        ## TAILCALL
LBB0_8:
	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"

	.comm	_NVDEV_SUBDEV_GPIO,4,2          ## @NVDEV_SUBDEV_GPIO
L_.str.1:                               ## @.str.1
	.asciz	"unknown intr 0x%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	x21, x0
	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
	tbz	w20, #0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	and	w20, w20, #0xfffffffe
	mov	x0, x19
	mov	w1, #4352
	mov	w2, #1
	bl	_nv_wr32
LBB0_2:
	mov	w8, #272
	tst	w20, w8
	b.eq	LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, _NVDEV_SUBDEV_GPIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NVDEV_SUBDEV_GPIO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_nouveau_subdev
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.5:
	blr	x8
LBB0_6:
	mov	w8, #-273
	and	w20, w20, w8
	mov	x0, x19
	mov	w1, #4352
	mov	w2, #272
	bl	_nv_wr32
LBB0_7:
	cbz	w20, LBB0_9
; %bb.8:
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	w1, #4416
	mov	x2, x20
	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	_nv_mask
LBB0_9:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUS ERROR\n"

	.comm	_NVDEV_SUBDEV_GPIO,4,2          ; @NVDEV_SUBDEV_GPIO
l_.str.1:                               ; @.str.1
	.asciz	"unknown intr 0x%08x\n"

	.no_dead_strip	_nv04_bus_intr
.subsections_via_symbols
