	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsa_release_in_place           ## -- Begin function dsa_release_in_place
	.p2align	4, 0x90
_dsa_release_in_place:                  ## @dsa_release_in_place
	.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
	leaq	32(%rdi), %r14
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_LWLockAcquire
	movl	(%r15), %eax
	movq	_DSA_SEGMENT_HEADER_MAGIC@GOTPCREL(%rip), %rcx
	xorl	(%rcx), %eax
	xorl	%edi, %edi
	cmpl	%eax, 36(%r15)
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 8(%r15)
	setg	%dil
	callq	_Assert
	decq	8(%r15)
	je	LBB0_1
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
LBB0_1:
	movl	16(%r15), %eax
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	$-1, %rbx
	movq	_DSM_HANDLE_INVALID@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rcx
	incq	%rbx
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rcx
	movq	8(%rcx,%rbx,8), %rdi
	cmpq	(%r12), %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_dsm_unpin_segment
	movl	16(%r15), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_DSA_SEGMENT_HEADER_MAGIC,4,2   ## @DSA_SEGMENT_HEADER_MAGIC
	.comm	_DSM_HANDLE_INVALID,8,3         ## @DSM_HANDLE_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsa_release_in_place           ; -- Begin function dsa_release_in_place
	.p2align	2
_dsa_release_in_place:                  ; @dsa_release_in_place
	.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
	add	x19, x0, #32
Lloh0:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LWLockAcquire
Lloh3:
	adrp	x8, _DSA_SEGMENT_HEADER_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSA_SEGMENT_HEADER_MAGIC@GOTPAGEOFF]
	ldr	w9, [x20, #36]
Lloh5:
	ldr	w8, [x8]
	ldr	w10, [x20]
	eor	w8, w10, w8
	cmp	w9, w8
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x20, #8]
	subs	x8, x8, #1
	str	x8, [x20, #8]
	b.eq	LBB0_2
LBB0_1:
	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	_LWLockRelease
LBB0_2:
	ldr	w8, [x20, #16]
	tbnz	w8, #31, LBB0_1
; %bb.3:
	mov	x21, #0
Lloh6:
	adrp	x22, _DSM_HANDLE_INVALID@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DSM_HANDLE_INVALID@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x21, w8, sxtw
	add	x21, x21, #1
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #24]
	ldr	x0, [x9, x21, lsl #3]
	ldr	x9, [x22]
	cmp	x0, x9
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_dsm_unpin_segment
	ldr	w8, [x20, #16]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_DSA_SEGMENT_HEADER_MAGIC,4,2   ; @DSA_SEGMENT_HEADER_MAGIC
	.comm	_DSM_HANDLE_INVALID,8,3         ; @DSM_HANDLE_INVALID
.subsections_via_symbols
