	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function leb_write_trylock
_leb_write_trylock:                     ## @leb_write_trylock
	.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	%rdi, %r14
	callq	_ltree_add_entry
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	12(%rbx), %rdi
	callq	_down_write_trylock
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_lock
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_ubi_assert
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	addq	$8, %rdi
	leaq	4(%r14), %rsi
	callq	_rb_erase
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	$1, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_leb_write_trylock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function leb_write_trylock
_leb_write_trylock:                     ; @leb_write_trylock
	.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	x19, x0
	bl	_ltree_add_entry
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	add	x0, x20, #12
	bl	_down_write_trylock
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x20]
	sub	x9, x8, #1
	str	x9, [x20]
	cmp	x8, #0
	cset	w0, gt
	bl	_ubi_assert
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
; %bb.5:
	add	x0, x20, #8
	add	x1, x19, #4
	bl	_rb_erase
	mov	x0, x20
	bl	_kfree
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_leb_write_trylock
.subsections_via_symbols
