	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_ioctl_sclass
_nvkm_ioctl_sclass:                     ## @nvkm_ioctl_sclass
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdx, -80(%rbp)
	movl	%ecx, -44(%rbp)
	movl	$0, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	%rdi, -56(%rbp)
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_nvif_ioctl
	movq	16(%r15), %rax
	movq	%rax, 16(%rsp)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rsp)
	leaq	-80(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_nvif_unpack
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	(%r15), %ecx
	movl	16(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_nvif_ioctl
	movslq	-44(%rbp), %rax
	movslq	(%r15), %rcx
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_10
## %bb.2:
	movq	(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	(%r14), %rax
	movq	(%rax), %rcx
	addq	$12, %rbx
	testq	%rcx, %rcx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	*%rcx
	testq	%rax, %rax
	js	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-64(%rbp), %eax
	movq	8(%r15), %rcx
	movl	%eax, 8(%rcx,%rbx)
	movl	-68(%rbp), %eax
	movq	8(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx)
	movl	-72(%rbp), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx)
	jmp	LBB0_7
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_8:
	movl	%r13d, (%r15)
	xorl	%r13d, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sclass size %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"sclass vers %d count %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nvkm_ioctl_sclass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_ioctl_sclass
_nvkm_ioctl_sclass:                     ; @nvkm_ioctl_sclass
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x2
	mov	x20, x1
	stur	x2, [x29, #-40]
	stur	w3, [x29, #-44]
	str	wzr, [sp, #48]
	str	xzr, [sp, #40]
	str	x0, [sp, #56]
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x3
	bl	_nvif_ioctl
	ldr	q0, [x19]
	str	q0, [sp, #16]
	ldr	x8, [x19, #16]
	str	x8, [sp, #32]
	sub	x1, x29, #40
	sub	x2, x29, #44
	add	x3, sp, #16
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	mov	w6, #1
	bl	_nvif_unpack
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	w2, [x19, #16]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nvif_ioctl
	ldursw	x8, [x29, #-44]
	ldrsw	x9, [x19]
	add	x9, x9, x9, lsl #1
	lsl	x9, x9, #2
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.3:
	mov	x22, #0
	mov	x21, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x22, x22, #12
	cbz	x8, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #40
	mov	x0, x20
	mov	x1, x21
	blr	x8
	tbnz	x0, #63, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #48]
	ldr	x9, [x19, #8]
	add	x9, x9, x22
	str	w8, [x9, #8]
	ldr	w8, [sp, #44]
	ldr	x9, [x19, #8]
	add	x9, x9, x22
	str	w8, [x9, #4]
	ldr	w8, [sp, #40]
	ldr	x9, [x19, #8]
	str	w8, [x9, x22]
	b	LBB0_4
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	w0, #0
	str	w21, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sclass size %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"sclass vers %d count %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nvkm_ioctl_sclass
.subsections_via_symbols
