	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_instobj_release
_nv50_instobj_release:                  ## @nv50_instobj_release
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_nv50_instobj
	movq	%rax, %rbx
	movq	32(%rax), %r14
	xorl	%eax, %eax
	callq	_wmb
	leaq	8(%r14), %r15
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_nvkm_bar_flush
	leaq	24(%rbx), %rdi
	movq	%r15, %rsi
	callq	_refcount_dec_and_mutex_lock
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	8(%rbx), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
LBB0_4:
	movq	$0, (%rbx)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_instobj_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_instobj_release
_nv50_instobj_release:                  ; @nv50_instobj_release
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_nv50_instobj
	mov	x19, x0
	ldr	x21, [x0, #32]
	bl	_wmb
	add	x20, x21, #8
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_nvkm_bar_flush
	add	x0, x19, #24
	mov	x1, x20
	bl	_refcount_dec_and_mutex_lock
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x19
	ldr	w0, [x22, #8]!
	bl	_likely
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x22
	mov	x1, x21
	bl	_list_add_tail
LBB0_4:
	str	xzr, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_instobj_release
.subsections_via_symbols
