	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_parent_sclass          ## -- Begin function nouveau_parent_sclass
	.p2align	4, 0x90
_nouveau_parent_sclass:                 ## @nouveau_parent_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_nv_parent
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rcx
	movzwl	(%rcx), %ecx
	cmpl	%ebx, %ecx
	je	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_1
LBB0_3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_nv_parent
	movq	(%rax), %r14
	testq	%r14, %r14
	jne	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	$-2, %rax
	movl	%r13d, %ecx
	rolq	%cl, %rax
	andq	%rax, %r14
	je	LBB0_4
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	bsfq	%r14, %r13
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_nouveau_engine
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rax), %r15
	cmpq	$0, 8(%r15)
	je	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzwl	(%r15), %ecx
	cmpl	%ebx, %ecx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpq	$0, 24(%r15)
	leaq	16(%r15), %r15
	jne	LBB0_8
	jmp	LBB0_5
LBB0_10:
	movq	%rax, %rdi
	callq	_nv_object
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	jmp	LBB0_12
LBB0_11:
	movq	(%r12), %rcx
	movq	%rcx, (%r15)
	movq	8(%rax), %rax
	movq	%rax, (%r14)
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_parent_sclass          ; -- Begin function nouveau_parent_sclass
	.p2align	2
_nouveau_parent_sclass:                 ; @nouveau_parent_sclass
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_nv_parent
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #8]
	ldrh	w9, [x9]
	cmp	w9, w22
	b.eq	LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x8]
	cbnz	x8, LBB0_1
LBB0_3:
	mov	x0, x21
	bl	_nv_parent
	ldr	x24, [x0]
	cbz	x24, LBB0_12
; %bb.4:
	mov	w25, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	lsl	x8, x25, x23
	bics	x24, x24, x8
	b.eq	LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	rbit	x8, x24
	clz	x23, x8
	mov	x0, x21
	mov	x1, x23
	bl	_nouveau_engine
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [x0]
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_5
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrh	w8, [x26]
	cmp	w8, w22
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x26, #24]
	add	x26, x26, #16
	cbnz	x8, LBB0_8
	b	LBB0_5
LBB0_10:
	bl	_nv_object
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20]
	str	x26, [x19]
	b	LBB0_13
LBB0_11:
	mov	w0, #0
	ldr	x9, [x21]
	str	x9, [x20]
	ldr	x8, [x8, #8]
	str	x8, [x19]
	b	LBB0_13
LBB0_12:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
