	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvif_notify                    ## -- Begin function nvif_notify
	.p2align	4, 0x90
_nvif_notify:                           ## @nvif_notify
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	_NVIF_NOTIFY_DROP@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	cmpl	$24, %esi
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	movq	32(%rbx), %rax
	movq	(%rax), %r13
	xorl	%edi, %edi
	cmpl	%r15d, (%rbx)
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	leaq	24(%rbx), %rdi
	callq	_atomic_inc
	movq	_NVIF_NOTIFY_WORK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_schedule_work
	movq	_NVIF_NOTIFY_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_10
LBB0_8:
	movl	8(%rbx), %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movl	(%r13), %r12d
LBB0_10:
	movl	%r12d, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	16(%rbx), %rbx
	jmp	LBB0_4
LBB0_13:
	movq	%r14, 8(%rbx)
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nvif_notify_func
	movq	$0, 8(%rbx)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_NVIF_NOTIFY_DROP,4,2           ## @NVIF_NOTIFY_DROP
	.comm	_NVIF_NOTIFY_WORK,4,2           ## @NVIF_NOTIFY_WORK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvif_notify                    ; -- Begin function nvif_notify
	.p2align	2
_nvif_notify:                           ; @nvif_notify
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x2
Lloh0:
	adrp	x23, _NVIF_NOTIFY_DROP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NVIF_NOTIFY_DROP@GOTPAGEOFF]
	ldr	w22, [x23]
	cmp	w1, #24
	b.ne	LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
LBB0_2:
	mov	x21, #0
LBB0_3:
	cmp	x21, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_9
; %bb.4:
	ldr	x8, [x21, #32]
	ldr	x24, [x8]
	ldr	w8, [x21]
	cmp	w8, w20
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_9
; %bb.5:
	add	x0, x21, #24
	bl	_atomic_inc
Lloh2:
	adrp	x8, _NVIF_NOTIFY_WORK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NVIF_NOTIFY_WORK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x21, #20
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.6:
	ldr	x0, [x21, #8]
	mov	x1, x19
	mov	x2, x20
	bl	_memcpy
	add	x0, x21, #16
	bl	_schedule_work
	b	LBB0_8
LBB0_7:
	ldr	w0, [x21, #8]
	bl	_WARN_ON
	cbz	x0, LBB0_11
LBB0_8:
	ldr	w22, [x23]
LBB0_9:
	mov	x0, x22
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x21, [x21, #16]
	b	LBB0_3
LBB0_12:
	str	x19, [x21, #8]
	ldr	x8, [x24]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_nvif_notify_func
	str	xzr, [x21, #8]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NVIF_NOTIFY_DROP,4,2           ; @NVIF_NOTIFY_DROP
	.comm	_NVIF_NOTIFY_WORK,4,2           ; @NVIF_NOTIFY_WORK
.subsections_via_symbols
