	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_ioctl_path
_nvkm_ioctl_path:                       ## @nvkm_ioctl_path
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	24(%rbp), %r12
	movq	16(%rbp), %r15
	xorl	%edx, %edx
	callq	_nvkm_object_search
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_nvif_ioctl
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r15, %rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	_NVIF_IOCTL_V0_OWNER_ANY@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rax
	cmpq	%r14, (%rcx)
	jne	LBB0_6
## %bb.2:
	movq	%rax, %r14
	jmp	LBB0_3
LBB0_6:
	cmpq	%r14, %rax
	jne	LBB0_7
LBB0_3:
	movq	%r14, (%rdx)
	movl	8(%rbx), %eax
	movl	%eax, (%r12)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_nvkm_ioctl_v0@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpq	%r15, %rax
	jbe	LBB0_8
## %bb.4:
	movq	(%r12), %rax
	shlq	$4, %r15
	cmpq	$0, (%rax,%r15)
	jne	LBB0_8
## %bb.5:
	movq	8(%rax,%r15), %rax
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_nvif_ioctl
	movq	_EACCES@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"object not found\n"

	.comm	_NVIF_IOCTL_V0_OWNER_ANY,8,3    ## @NVIF_IOCTL_V0_OWNER_ANY
L_.str.1:                               ## @.str.1
	.asciz	"route != owner\n"

	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nvkm_ioctl_v0,8,3              ## @nvkm_ioctl_v0
	.no_dead_strip	_nvkm_ioctl_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_ioctl_path
_nvkm_ioctl_path:                       ; @nvkm_ioctl_path
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x7
	mov	x25, x6
	mov	x26, x5
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x20, x0
	mov	x2, #0
	bl	_nvkm_object_search
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_nvif_ioctl
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh2:
	adrp	x8, _NVIF_IOCTL_V0_OWNER_ANY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NVIF_IOCTL_V0_OWNER_ANY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x8]
	ldr	x8, [x22]
	cmp	x9, x26
	b.eq	LBB0_4
; %bb.3:
	cmp	x8, x26
	mov	x8, x26
	b.ne	LBB0_7
LBB0_4:
	str	x8, [x25]
	ldr	w8, [x22, #8]
Lloh5:
	adrp	x9, _EINVAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
	str	w8, [x24]
Lloh7:
	ldr	w8, [x9]
	neg	w24, w8
Lloh8:
	adrp	x25, _nvkm_ioctl_v0@GOTPAGE
Lloh9:
	ldr	x25, [x25, _nvkm_ioctl_v0@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	x0, x23
	b.ls	LBB0_8
; %bb.5:
	ldr	x8, [x25]
	lsl	x9, x23, #4
	ldr	x9, [x8, x9]
	cbnz	x9, LBB0_8
; %bb.6:
	add	x8, x8, x23, lsl #4
	ldr	x4, [x8, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x4
LBB0_7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nvif_ioctl
Lloh12:
	adrp	x8, _EACCES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"object not found\n"

	.comm	_NVIF_IOCTL_V0_OWNER_ANY,8,3    ; @NVIF_IOCTL_V0_OWNER_ANY
l_.str.1:                               ; @.str.1
	.asciz	"route != owner\n"

	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nvkm_ioctl_v0,8,3              ; @nvkm_ioctl_v0
	.no_dead_strip	_nvkm_ioctl_path
.subsections_via_symbols
