	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_devobj_init
_nouveau_devobj_init:                   ## @nouveau_devobj_init
	.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
	movq	%rdi, %r15
	addq	$16, %rdi
	callq	_nouveau_parent_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	cmpl	$0, (%r15)
	je	LBB0_14
## %bb.2:
	movq	_NVDEV_SUBDEV_NR@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.3:
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	-8(%rax,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_NV_ENGINE_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nv_iclass
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_nouveau_object_inc
	testl	%eax, %eax
	jne	LBB0_7
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%r15)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%r12), %rax
	movslq	(%r13), %rcx
	cmpq	%rcx, %r12
	movq	%rax, %r12
	jl	LBB0_4
LBB0_14:
	movl	$1, (%r15)
	xorl	%r14d, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%eax, %r14d
	cmpl	$1, %r12d
	jne	LBB0_8
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	decq	%r12
	cmpq	$1, %r12
	jle	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	-16(%rax,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_NV_ENGINE_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nv_iclass
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_nouveau_object_dec
	jmp	LBB0_11
	.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_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_devobj_init
_nouveau_devobj_init:                   ; @nouveau_devobj_init
	.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	x19, x0
	add	x0, x0, #16
	bl	_nouveau_parent_init
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x21, _NVDEV_SUBDEV_NR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NVDEV_SUBDEV_NR@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, #0
	ccmp	w9, #1, #8, ne
	b.ge	LBB0_4
LBB0_2:
	mov	w20, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	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
LBB0_4:
	mov	x23, #0
Lloh2:
	adrp	x22, _NV_ENGINE_CLASS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NV_ENGINE_CLASS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldr	w8, [x19]
	ldrsw	x9, [x21]
	cmp	w8, #0
	ccmp	x23, x9, #0, ne
	b.ge	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x23, lsl #3]
	cbz	x20, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_nv_iclass
	cbnz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_nouveau_object_inc
	cbz	w0, LBB0_5
; %bb.9:
	mov	x20, x0
	cbz	w23, LBB0_3
; %bb.10:
	sub	x23, x23, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x23, #1
	sub	x23, x23, #1
	cmp	x8, #1
	b.le	LBB0_3
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x21, [x8, x23, lsl #3]
	cbz	x21, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x22]
	mov	x0, x21
	bl	_nv_iclass
	cbnz	w0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	mov	w1, #0
	bl	_nouveau_object_dec
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.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_init
.subsections_via_symbols
