	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_notify_init               ## -- Begin function nvkm_notify_init
	.p2align	4, 0x90
_nvkm_notify_init:                      ## @nvkm_notify_init
	.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
	movq	24(%rbp), %rbx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rsi, 24(%rbx)
	cmpl	$0, 16(%rsi)
	je	LBB0_9
## %bb.1:
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	8(%rsi), %rax
	movq	%r8, %rsi
	movq	%r9, %rdx
	movq	%rbx, %rcx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	movq	16(%rbp), %r13
	cmpq	%r13, (%rbx)
	jne	LBB0_3
## %bb.4:
	movl	$1, 8(%rbx)
	movq	%r12, 16(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.5:
	leaq	48(%rbx), %r15
	leaq	56(%rbx), %rdi
	movq	_nvkm_notify_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_NVKM_NOTIFY_WORK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_kmalloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:
	negl	%eax
LBB0_11:
	movq	$0, 24(%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	addq	$32, %rbx
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nvkm_notify_work,4,2           ## @nvkm_notify_work
	.comm	_NVKM_NOTIFY_WORK,4,2           ## @NVKM_NOTIFY_WORK
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_notify_init               ; -- Begin function nvkm_notify_init
	.p2align	2
_nvkm_notify_init:                      ; @nvkm_notify_init
	.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	x19, x7
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	x1, [x7, #24]
	ldr	w9, [x1, #16]
	cbz	w9, LBB0_6
; %bb.1:
	mov	x21, x6
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	mov	x1, x4
	mov	x2, x5
	mov	x3, x19
	blr	x8
	cbnz	w0, LBB0_11
; %bb.2:
	ldr	x8, [x19]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.3:
	mov	x24, x19
	str	xzr, [x24, #48]!
	mov	w8, #1
	stur	w8, [x24, #-40]
	stur	x23, [x24, #-32]
	stur	xzr, [x24, #-8]
	cbz	w22, LBB0_13
; %bb.4:
	add	x0, x19, #56
Lloh3:
	adrp	x8, _nvkm_notify_work@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nvkm_notify_work@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh6:
	adrp	x8, _NVKM_NOTIFY_WORK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVKM_NOTIFY_WORK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_set_bit
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kmalloc
	str	x0, [x19, #40]
	cbnz	x0, LBB0_13
; %bb.5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	cbnz	w8, LBB0_10
; %bb.7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	cbz	w8, LBB0_13
LBB0_10:
	neg	w0, w8
LBB0_11:
	str	xzr, [x19, #24]
LBB0_12:
	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_13:
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x19, #32
	add	x1, x20, #4
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nvkm_notify_work,4,2           ; @nvkm_notify_work
	.comm	_NVKM_NOTIFY_WORK,4,2           ; @NVKM_NOTIFY_WORK
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
