	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_from_lock_heap
_remove_from_lock_heap:                 ## @remove_from_lock_heap
	.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, %r14
	movl	(%rdi), %ebx
	xorl	%edi, %edi
	movq	_LHN@GOTPCREL(%rip), %r15
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	cmpl	(%r15), %ebx
	jg	LBB0_3
## %bb.2:
	movq	_LH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	%r14, (%rax,%rbx,8)
	sete	%dil
LBB0_3:
	callq	_assert
	movl	$0, (%r14)
	movslq	(%r15), %rax
	leal	-1(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_locked_long_transactions@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	cmpl	%eax, %ebx
	jge	LBB0_4
## %bb.5:
	movq	_LH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lock_heap_adjust               ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LHN,4,2                        ## @LHN
	.comm	_LH,8,3                         ## @LH
	.comm	_locked_long_transactions,4,2   ## @locked_long_transactions
	.no_dead_strip	_remove_from_lock_heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_from_lock_heap
_remove_from_lock_heap:                 ; @remove_from_lock_heap
	.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	x20, x0
Lloh0:
	adrp	x22, _LHN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LHN@GOTPAGEOFF]
	ldr	w19, [x0]
	ldr	w8, [x22]
	cmp	w19, #1
	ccmp	w19, w8, #0, ge
Lloh2:
	adrp	x21, _LH@GOTPAGE
Lloh3:
	ldr	x21, [x21, _LH@GOTPAGEOFF]
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21]
	ldr	x8, [x8, x19, lsl #3]
	cmp	x8, x20
	cset	w0, eq
LBB0_3:
	bl	_assert
	str	wzr, [x20]
	ldrsw	x8, [x22]
	sub	w9, w8, #1
	str	w9, [x22]
Lloh4:
	adrp	x10, _locked_long_transactions@GOTPAGE
Lloh5:
	ldr	x10, [x10, _locked_long_transactions@GOTPAGEOFF]
Lloh6:
	str	w9, [x10]
	cmp	w19, w8
	b.ge	LBB0_5
; %bb.4:
	ldr	x9, [x21]
	ldr	x1, [x9, x8, lsl #3]
	mov	x0, x19
	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	_lock_heap_adjust
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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LHN,4,2                        ; @LHN
	.comm	_LH,8,3                         ; @LH
	.comm	_locked_long_transactions,4,2   ; @locked_long_transactions
	.no_dead_strip	_remove_from_lock_heap
.subsections_via_symbols
