	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_devobj_fini
_nouveau_devobj_fini:                   ## @nouveau_devobj_fini
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_NVDEV_SUBDEV_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %r13d
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%r13), %rax
	testq	%r13, %r13
	movq	%rax, %r13
	jle	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NV_ENGINE_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nv_iclass
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_nouveau_object_dec
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_6
	jmp	LBB0_9
LBB0_7:
	movl	$-1, %r13d
LBB0_8:
	leaq	8(%r14), %rdi
	movl	%r15d, %esi
	callq	_nouveau_parent_fini
	movl	%eax, %r12d
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.10:
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.11:
	movq	_NVDEV_SUBDEV_NR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_18
## %bb.12:
	movslq	%r13d, %rbx
	incq	%rbx
	movq	_NV_ENGINE_CLASS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	-8(%rax,%rbx,8), %r15
	testq	%r15, %r15
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_nv_iclass
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	callq	_nouveau_object_inc
	movl	%eax, %r12d
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	1(%rbx), %rax
	movq	_NVDEV_SUBDEV_NR@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jl	LBB0_13
LBB0_18:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVDEV_SUBDEV_NR,4,2            ## @NVDEV_SUBDEV_NR
	.comm	_NV_ENGINE_CLASS,4,2            ## @NV_ENGINE_CLASS
	.no_dead_strip	_nouveau_devobj_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_devobj_fini
_nouveau_devobj_fini:                   ; @nouveau_devobj_fini
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _NVDEV_SUBDEV_NR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NVDEV_SUBDEV_NR@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _NV_ENGINE_CLASS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NV_ENGINE_CLASS@GOTPAGEOFF]
	subs	w24, w8, #1
	b.ge	LBB0_2
	b	LBB0_7
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x24, #1
	cmp	x24, #0
	mov	x24, x8
	b.le	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x20, [x8, x24, lsl #3]
	cbz	x20, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_nv_iclass
	cbnz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_nouveau_object_dec
	cbz	w21, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	cbz	w0, LBB0_1
	b	LBB0_8
LBB0_6:
	mov	w24, #-1
LBB0_7:
	add	x0, x19, #8
	mov	x1, x21
	bl	_nouveau_parent_fini
	mov	x20, x0
LBB0_8:
	cbz	w21, LBB0_17
; %bb.9:
	cbz	w20, LBB0_17
; %bb.10:
	ldr	w8, [x22]
	cmp	w24, w8
	b.ge	LBB0_17
; %bb.11:
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sxtw	x24, w24
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x21, [x8, x24, lsl #3]
	cbz	x21, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x23]
	mov	x0, x21
	bl	_nv_iclass
	cbnz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_nouveau_object_inc
	mov	x20, x0
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	w20, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.lt	LBB0_12
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NVDEV_SUBDEV_NR,4,2            ; @NVDEV_SUBDEV_NR
	.comm	_NV_ENGINE_CLASS,4,2            ; @NV_ENGINE_CLASS
	.no_dead_strip	_nouveau_devobj_fini
.subsections_via_symbols
