	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_client_notify_new         ## -- Begin function nvkm_client_notify_new
	.p2align	4, 0x90
_nvkm_client_notify_new:                ## @nvkm_client_notify_new
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)
	movl	%ecx, -44(%rbp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpq	$0, (%rdi,%r12,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cmpq	%rax, %r12
	jb	LBB0_2
LBB0_4:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r12
	jne	LBB0_7
## %bb.5:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_nvif_ioctl
	movq	16(%r13), %rax
	movq	%rax, 16(%rsp)
	movups	(%r13), %xmm0
	movups	%xmm0, (%rsp)
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_nvif_unpack
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_12
## %bb.10:
	movl	16(%r13), %edx
	movq	(%r13), %rcx
	movl	12(%r13), %r8d
	movl	8(%r13), %r9d
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_nvif_ioctl
	movl	16(%r13), %eax
	movl	%eax, 32(%r14)
	movl	$12, (%r14)
	movl	16(%r13), %eax
	movl	%eax, 28(%r14)
	movl	12(%r13), %eax
	movl	%eax, 24(%r14)
	movl	8(%r13), %eax
	movl	%eax, 20(%r14)
	movq	(%r13), %rax
	movq	_nvkm_client_notify@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-64(%rbp), %r8
	movl	-44(%rbp), %r9d
	movq	%r14, %rcx
	addq	$16, %rcx
	movq	%rcx, 8(%rsp)
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_nvkm_notify_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%r15), %rax
	movq	%r14, (%rax,%r12,8)
	movq	%r15, 8(%r14)
	movl	%r12d, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"notify new size %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"notify new vers %d reply %d route %02x token %llx\n"

	.comm	_nvkm_client_notify,4,2         ## @nvkm_client_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_client_notify_new         ; -- Begin function nvkm_client_notify_new
	.p2align	2
_nvkm_client_notify_new:                ; @nvkm_client_notify_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	x2, [sp, #72]
	str	w3, [sp, #68]
	ldr	x25, [x0]
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	mov	x26, #0
	cbz	x0, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	ldr	x8, [x0, x26, lsl #3]
	cbz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x26, x26, #1
	bl	_ARRAY_SIZE
	cmp	x26, x0
	b.lo	LBB0_1
LBB0_3:
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	x26, x0
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x22, x0
	neg	w24, w24
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_nvif_ioctl
	ldr	q0, [x21]
	str	q0, [sp, #32]
	ldr	x8, [x21, #16]
	str	x8, [sp, #48]
	add	x1, sp, #72
	add	x2, sp, #68
	add	x3, sp, #32
	mov	x0, x24
	mov	w4, #0
	mov	w5, #0
	mov	w6, #1
	bl	_nvif_unpack
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.7:
	ldp	w9, w2, [x21, #12]
	ldr	x8, [x21]
	ldr	w10, [x21, #8]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nvif_ioctl
	ldr	w8, [x21, #16]
	str	w8, [x22, #32]
	mov	w8, #12
	str	w8, [x22]
	ldr	w8, [x21, #16]
	str	w8, [x22, #28]
	ldr	w8, [x21, #12]
	str	w8, [x22, #24]
	ldr	w8, [x21, #8]
	str	w8, [x22, #20]
	ldr	x6, [x21]
Lloh12:
	adrp	x8, _nvkm_client_notify@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nvkm_client_notify@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	x4, [sp, #72]
	ldr	w5, [sp, #68]
	add	x7, x22, #16
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_nvkm_notify_init
	mov	x23, x0
	cbz	w0, LBB0_12
LBB0_8:
	mov	x0, x22
	bl	_kfree
	b	LBB0_11
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_12:
	ldr	x8, [x25]
	str	x22, [x8, x26, lsl #3]
	str	x25, [x22, #8]
	mov	x23, x26
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"notify new size %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"notify new vers %d reply %d route %02x token %llx\n"

	.comm	_nvkm_client_notify,4,2         ; @nvkm_client_notify
.subsections_via_symbols
