	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_global_item_unref          ## -- Begin function drm_global_item_unref
	.p2align	4, 0x90
_drm_global_item_unref:                 ## @drm_global_item_unref
	.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
	movq	%rdi, %r15
	movq	_glob@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%rdi), %rax
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r12,%rbx,8), %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%edi, %edi
	cmpq	$0, (%r12,%rbx,8)
	sete	%dil
	callq	_BUG_ON
	movq	16(%r15), %rax
	xorl	%edi, %edi
	cmpq	16(%r12,%rbx,8), %rax
	setne	%dil
	callq	_BUG_ON
	decq	(%r12,%rbx,8)
	jne	LBB0_2
## %bb.1:
	leaq	(%r12,%rbx,8), %rbx
	addq	$16, %rbx
	movq	%r15, %rdi
	callq	*8(%r15)
	movq	$0, (%rbx)
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_glob,8,3                       ## @glob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_global_item_unref          ; -- Begin function drm_global_item_unref
	.p2align	2
_drm_global_item_unref:                 ; @drm_global_item_unref
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _glob@GOTPAGE
Lloh1:
	ldr	x8, [x8, _glob@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	mov	w10, #24
	madd	x22, x9, x10, x8
	add	x20, x22, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #16]
	mov	x21, x22
	ldr	x9, [x21, #16]!
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
	ldr	x8, [x22]
	subs	x8, x8, #1
	str	x8, [x22]
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	str	xzr, [x21]
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_glob,8,3                       ; @glob
.subsections_via_symbols
