	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tu102_mc_intr_hack
_tu102_mc_intr_hack:                    ## @tu102_mc_intr_hack
	.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	%rsi, %r14
	movq	(%rdi), %r15
	movq	%r15, %rdi
	movl	$12062736, %esi                 ## imm = 0xB81010
	callq	_nvkm_rd32
	movl	%eax, %ebx
	andl	$80, %ebx
	je	LBB0_4
## %bb.1:
	movq	_NVKM_SUBDEV_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nvkm_device_subdev
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	$12062736, %esi                 ## imm = 0xB81010
	movl	%ebx, %edx
	callq	_nvkm_wr32
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_nvkm_subdev_intr
LBB0_3:
	movl	$1, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_SUBDEV_FAULT,4,2          ## @NVKM_SUBDEV_FAULT
	.no_dead_strip	_tu102_mc_intr_hack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tu102_mc_intr_hack
_tu102_mc_intr_hack:                    ; @tu102_mc_intr_hack
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	ldr	x20, [x0]
	mov	x0, x20
	mov	w1, #4112
	movk	w1, #184, lsl #16
	bl	_nvkm_rd32
	mov	w8, #80
	ands	w21, w0, w8
	b.eq	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _NVKM_SUBDEV_FAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_SUBDEV_FAULT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_nvkm_device_subdev
	mov	x22, x0
	mov	x0, x20
	mov	w1, #4112
	movk	w1, #184, lsl #16
	mov	x2, x21
	bl	_nvkm_wr32
	cbz	x22, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_nvkm_subdev_intr
LBB0_3:
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_SUBDEV_FAULT,4,2          ; @NVKM_SUBDEV_FAULT
	.no_dead_strip	_tu102_mc_intr_hack
.subsections_via_symbols
