	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usif_notify_get
_usif_notify_get:                       ## @usif_notify_get
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, -72(%rbp)
	movl	%edx, -48(%rbp)
	callq	_nouveau_cli
	movq	%rax, %r12
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	movl	(%rbx), %ecx
	movl	$1, (%rsp)
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_nvif_unpack
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_usif_notify_find
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	leaq	8(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %esi
	callq	_atomic_xchg
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	movq	16(%r13), %rdi
	addq	$32, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, (%r13)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, 24(%rax)
	movq	%r15, 16(%rax)
	movq	_DRM_NOUVEAU_EVENT_NVIF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	16(%r13), %rcx
	addq	$16, %rcx
	movq	%rcx, (%rax)
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_nvif_client_ioctl
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_8
	jmp	LBB0_9
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_9
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_atomic_set
	movq	(%r13), %rdi
	callq	_kfree
	movl	%ebx, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_NOUVEAU_EVENT_NVIF,4,2     ## @DRM_NOUVEAU_EVENT_NVIF
	.no_dead_strip	_usif_notify_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usif_notify_get
_usif_notify_get:                       ; @usif_notify_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x4
	mov	x20, x3
	mov	x23, x1
	mov	x21, x0
	str	x1, [sp, #8]
	str	w2, [sp, #4]
	bl	_nouveau_cli
	mov	x22, x0
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	w3, [x23]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	w4, #0
	mov	w5, #0
	mov	w6, #1
	bl	_nvif_unpack
	mov	x25, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_usif_notify_find
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, x0
	add	x24, x0, #8
	mov	x0, x24
	mov	w1, #1
	bl	_atomic_xchg
	cbz	x0, LBB0_6
; %bb.4:
	mov	w25, #0
	b	LBB0_1
LBB0_5:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_1
LBB0_6:
	ldr	x8, [x23, #16]
	add	x0, x8, #32
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kmalloc
	str	x0, [x23]
	cbz	x0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _DRM_NOUVEAU_EVENT_NVIF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_NOUVEAU_EVENT_NVIF@GOTPAGEOFF]
	stp	x21, x0, [x0, #16]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	ldr	x8, [x23, #16]
	add	x8, x8, #16
	str	x8, [x0]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_nvif_client_ioctl
	mov	x25, x0
	cbnz	w25, LBB0_9
	b	LBB0_1
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w25, w8
	cbz	w25, LBB0_1
LBB0_9:
	mov	x0, x24
	mov	w1, #0
	bl	_atomic_set
	ldr	x0, [x23]
	bl	_kfree
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_NOUVEAU_EVENT_NVIF,4,2     ; @DRM_NOUVEAU_EVENT_NVIF
	.no_dead_strip	_usif_notify_get
.subsections_via_symbols
