	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_abi16_usif             ## -- Begin function nouveau_abi16_usif
	.p2align	4, 0x90
_nouveau_abi16_usif:                    ## @nouveau_abi16_usif
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, -32(%rbp)
	movl	%edx, -20(%rbp)
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	movups	(%rsi), %xmm0
	movups	16(%rsi), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	leaq	-32(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_nvif_unpack
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_nouveau_abi16
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	8(%rbx), %rsi
	movq	%rax, %rdi
	cmpq	$-1, %rsi
	je	LBB0_10
## %bb.7:
	callq	_nouveau_abi16_chan
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	(%rax), %rdi
LBB0_10:
	callq	_nvif_handle
	movq	%rax, 24(%rbx)
	movq	_NVIF_IOCTL_V0_OWNER_ANY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_2:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NVIF_IOCTL_V0_OWNER_ANY,8,3    ## @NVIF_IOCTL_V0_OWNER_ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_abi16_usif             ; -- Begin function nouveau_abi16_usif
	.p2align	2
_nouveau_abi16_usif:                    ; @nouveau_abi16_usif
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	stur	x1, [x29, #-24]
	stur	w2, [x29, #-28]
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	q0, q1, [x1]
	stp	q0, q1, [sp]
	sub	x1, x29, #24
	sub	x2, x29, #28
	mov	x3, sp
	mov	w4, #0
	mov	w5, #0
	mov	w6, #1
	bl	_nvif_unpack
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_nouveau_abi16
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x1, [x19, #8]
	cmn	x1, #1
	b.eq	LBB0_6
; %bb.4:
	bl	_nouveau_abi16_chan
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x0, [x0]
LBB0_6:
	bl	_nvif_handle
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _NVIF_IOCTL_V0_OWNER_ANY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVIF_IOCTL_V0_OWNER_ANY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	b	LBB0_11
LBB0_7:
Lloh6:
	adrp	x8, _EACCES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NVIF_IOCTL_V0_OWNER_ANY,8,3    ; @NVIF_IOCTL_V0_OWNER_ANY
.subsections_via_symbols
