	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_object_inc             ## -- Begin function nouveau_object_inc
	.p2align	4, 0x90
_nouveau_object_inc:                    ## @nouveau_object_inc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$1, %edi
	movq	%r15, %rsi
	callq	_atomic_add_return
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_atomic_read
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nv_trace
	cmpl	$1, %ebx
	jne	LBB0_13
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_nv_trace
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	callq	_nouveau_object_inc
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_nv_error
	jmp	LBB0_12
LBB0_4:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	callq	_nv_subdev
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	16(%r15), %rdi
	callq	_nouveau_object_inc
	movl	%eax, %r14d
	movq	16(%r15), %rdi
	callq	_nv_subdev
	movq	%rax, %rdi
	callq	_mutex_unlock
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nv_error
	jmp	LBB0_10
LBB0_7:
	movq	%r15, %rdi
	callq	_nv_ofuncs
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_nv_error
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_nv_subdev
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	16(%r15), %rdi
	xorl	%esi, %esi
	callq	_nouveau_object_dec
	movq	16(%r15), %rdi
	callq	_nv_subdev
	movq	%rax, %rdi
	callq	_mutex_unlock
LBB0_10:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	xorl	%esi, %esi
	callq	_nouveau_object_dec
LBB0_12:
	movq	%r15, %rdi
	callq	_atomic_dec
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_nv_debug
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"use(+1) == %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"initialising...\n"

L_.str.2:                               ## @.str.2
	.asciz	"parent failed, %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"engine failed, %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"init failed, %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"initialised\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_object_inc             ; -- Begin function nouveau_object_inc
	.p2align	2
_nouveau_object_inc:                    ; @nouveau_object_inc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #1
	mov	x1, x19
	bl	_atomic_add_return
	mov	x20, x0
	mov	x0, x19
	bl	_atomic_read
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_trace
	cmp	w20, #1
	b.ne	LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_nv_trace
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.2:
	bl	_nouveau_object_inc
	cbz	w0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_error
	b	LBB0_13
LBB0_4:
	mov	w20, #0
	b	LBB0_14
LBB0_5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.6:
	bl	_nv_subdev
	bl	_mutex_lock
	ldr	x0, [x19, #16]
	bl	_nouveau_object_inc
	mov	x20, x0
	ldr	x0, [x19, #16]
	bl	_nv_subdev
	bl	_mutex_unlock
	cbz	w20, LBB0_8
; %bb.7:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_error
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_nv_ofuncs
	ldr	x8, [x0]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_15
; %bb.9:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_error
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_nv_subdev
	bl	_mutex_lock
	ldr	x0, [x19, #16]
	mov	w1, #0
	bl	_nouveau_object_dec
	ldr	x0, [x19, #16]
	bl	_nv_subdev
	bl	_mutex_unlock
LBB0_11:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.12:
	mov	w1, #0
	bl	_nouveau_object_dec
LBB0_13:
	mov	x0, x19
	bl	_atomic_dec
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_nv_debug
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"use(+1) == %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"initialising...\n"

l_.str.2:                               ; @.str.2
	.asciz	"parent failed, %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"engine failed, %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"init failed, %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"initialised\n"

.subsections_via_symbols
