	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usif_object_new
_usif_object_new:                       ## @usif_object_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %rbx
	movq	%rsi, %r12
	movq	%rsi, -72(%rbp)
	movl	%edx, -48(%rbp)
	callq	_nouveau_cli
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	negl	%r15d
	movq	%rax, %rdi
	addq	$12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add
	movq	(%r12), %rcx
	movl	8(%r12), %r8d
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	xorl	%r9d, %r9d
	pushq	$1
	pushq	$0
	callq	_nvif_unpack
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$4, %rdi
	movl	8(%r12), %eax
	movl	%eax, 8(%r13)
	movq	(%r12), %rax
	movq	%rax, (%r13)
	movq	_NVDRM_OBJECT_USIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r13, (%r12)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_nvif_client_ioctl
	movl	%eax, %ebx
	movq	(%r13), %rax
	movq	%rax, (%r12)
	movl	8(%r13), %eax
	movl	%eax, 8(%r12)
	testl	%ebx, %ebx
	je	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	callq	_usif_object_dtor
	movl	%ebx, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NVDRM_OBJECT_USIF,4,2          ## @NVDRM_OBJECT_USIF
	.no_dead_strip	_usif_object_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usif_object_new
_usif_object_new:                       ; @usif_object_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x4
	mov	x21, x3
	mov	x19, x1
	str	x1, [sp, #8]
	str	w2, [sp, #4]
	bl	_nouveau_cli
	mov	x23, x0
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	neg	w24, w24
	add	x0, x0, #12
	mov	x1, x23
	bl	_list_add
	ldp	x3, x4, [x19]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x24
	mov	w5, #0
	mov	w6, #0
	mov	w7, #1
	bl	_nvif_unpack
	mov	x24, x0
	cbnz	w0, LBB0_3
; %bb.2:
	add	x0, x23, #4
	ldr	w8, [x19, #8]
	str	w8, [x22, #8]
	ldr	x8, [x19]
	str	x8, [x22]
Lloh6:
	adrp	x8, _NVDRM_OBJECT_USIF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVDRM_OBJECT_USIF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	str	x22, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_nvif_client_ioctl
	mov	x24, x0
	ldr	x8, [x22]
	str	x8, [x19]
	ldr	w8, [x22, #8]
	str	w8, [x19, #8]
	cbz	w0, LBB0_5
LBB0_3:
	mov	x0, x22
	bl	_usif_object_dtor
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_5:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NVDRM_OBJECT_USIF,4,2          ; @NVDRM_OBJECT_USIF
	.no_dead_strip	_usif_object_new
.subsections_via_symbols
