	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvif_object_ioctl              ## -- Begin function nvif_object_ioctl
	.p2align	4, 0x90
_nvif_object_ioctl:                     ## @nvif_object_ioctl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$24, %edx
	jb	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	cmpq	$0, (%rsi)
	je	LBB0_2
LBB0_6:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	8(%rdi), %r12
	leaq	8(%r12), %rax
	cmpq	%rdi, %rax
	je	LBB0_3
## %bb.4:
	callq	_nvif_handle
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, 16(%r15)
	movq	_NVIF_IOCTL_V0_OWNER_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	(%r12), %esi
	movl	8(%r12), %edi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	movq	%r14, %r8
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVIF_IOCTL_V0_OWNER_ANY,4,2    ## @NVIF_IOCTL_V0_OWNER_ANY
	.comm	_ENOSYS,4,2                     ## @ENOSYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvif_object_ioctl              ; -- Begin function nvif_object_ioctl
	.p2align	2
_nvif_object_ioctl:                     ; @nvif_object_ioctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w2, #24
	b.lo	LBB0_2
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x3
	mov	x20, x2
	ldr	x22, [x0, #8]
	add	x8, x22, #8
	cmp	x8, x0
	b.eq	LBB0_5
; %bb.4:
	bl	_nvif_handle
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
Lloh3:
	adrp	x8, _NVIF_IOCTL_V0_OWNER_ANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVIF_IOCTL_V0_OWNER_ANY@GOTPAGEOFF]
	str	x0, [x21, #16]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldr	x8, [x22, #24]
	ldr	x5, [x8]
	ldr	w0, [x22, #8]
	ldr	w1, [x22]
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVIF_IOCTL_V0_OWNER_ANY,4,2    ; @NVIF_IOCTL_V0_OWNER_ANY
	.comm	_ENOSYS,4,2                     ; @ENOSYS
.subsections_via_symbols
