	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adb_release
_adb_release:                           ## @adb_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rsi), %rbx
	movq	_adb_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	24(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
LBB0_4:
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_5:
	movq	_adb_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_adb_mutex,4,2                  ## @adb_mutex
	.no_dead_strip	_adb_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adb_release
_adb_release:                           ; @adb_release
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x19, [x1]
Lloh0:
	adrp	x0, _adb_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _adb_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	cbz	x19, LBB0_4
; %bb.1:
	str	xzr, [x20]
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x0, x19, #24
	bl	_atomic_read
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
LBB0_3:
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_4:
Lloh2:
	adrp	x0, _adb_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _adb_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_kfree
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_adb_mutex,4,2                  ; @adb_mutex
	.no_dead_strip	_adb_release
.subsections_via_symbols
