	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsm_detach_all                 ## -- Begin function dsm_detach_all
	.p2align	4, 0x90
_dsm_detach_all:                        ## @dsm_detach_all
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dsm_control@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, -48(%rbp)
	movq	_dsm_segment_list@GOTPCREL(%rip), %rdi
	callq	_dlist_is_empty
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_dsm_segment@GOTPCREL(%rip), %r15
	movq	_node@GOTPCREL(%rip), %r12
	movq	_dsm_segment_list@GOTPCREL(%rip), %rbx
	movq	_seg@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r12), %esi
	movq	%rbx, %rdx
	callq	_dlist_head_element
	movl	%eax, (%r13)
	movl	%eax, %edi
	callq	_dsm_detach
	movq	%rbx, %rdi
	callq	_dlist_is_empty
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	_DSM_OP_DETACH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dsm_control_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	_dsm_control_impl_private@GOTPCREL(%rip), %rcx
	movq	_dsm_control_mapped_size@GOTPCREL(%rip), %r9
	leaq	-48(%rbp), %r8
	xorl	%edx, %edx
	callq	_dsm_impl_op
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dsm_control,8,3                ## @dsm_control
	.comm	_dsm_segment_list,4,2           ## @dsm_segment_list
	.comm	_dsm_segment,4,2                ## @dsm_segment
	.comm	_seg,4,2                        ## @seg
	.comm	_node,4,2                       ## @node
	.comm	_DSM_OP_DETACH,4,2              ## @DSM_OP_DETACH
	.comm	_dsm_control_handle,4,2         ## @dsm_control_handle
	.comm	_dsm_control_impl_private,4,2   ## @dsm_control_impl_private
	.comm	_dsm_control_mapped_size,4,2    ## @dsm_control_mapped_size
	.comm	_ERROR,4,2                      ## @ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsm_detach_all                 ; -- Begin function dsm_detach_all
	.p2align	2
_dsm_detach_all:                        ; @dsm_detach_all
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _dsm_control@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dsm_control@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	str	x20, [sp, #8]
Lloh3:
	adrp	x0, _dsm_segment_list@GOTPAGE
Lloh4:
	ldr	x0, [x0, _dsm_segment_list@GOTPAGEOFF]
	bl	_dlist_is_empty
	cbnz	w0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x21, _dsm_segment@GOTPAGE
Lloh6:
	ldr	x21, [x21, _dsm_segment@GOTPAGEOFF]
Lloh7:
	adrp	x22, _node@GOTPAGE
Lloh8:
	ldr	x22, [x22, _node@GOTPAGEOFF]
Lloh9:
	adrp	x19, _dsm_segment_list@GOTPAGE
Lloh10:
	ldr	x19, [x19, _dsm_segment_list@GOTPAGEOFF]
Lloh11:
	adrp	x23, _seg@GOTPAGE
Lloh12:
	ldr	x23, [x23, _seg@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	x2, x19
	bl	_dlist_head_element
	str	w0, [x23]
	bl	_dsm_detach
	mov	x0, x19
	bl	_dlist_is_empty
	cbz	w0, LBB0_2
LBB0_3:
	cbz	x20, LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _DSM_OP_DETACH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DSM_OP_DETACH@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _dsm_control_handle@GOTPAGE
Lloh17:
	ldr	x8, [x8, _dsm_control_handle@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w6, [x8]
Lloh22:
	adrp	x3, _dsm_control_impl_private@GOTPAGE
Lloh23:
	ldr	x3, [x3, _dsm_control_impl_private@GOTPAGEOFF]
Lloh24:
	adrp	x5, _dsm_control_mapped_size@GOTPAGE
Lloh25:
	ldr	x5, [x5, _dsm_control_mapped_size@GOTPAGEOFF]
	add	x4, sp, #8
	mov	w2, #0
	bl	_dsm_impl_op
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_dsm_control,8,3                ; @dsm_control
	.comm	_dsm_segment_list,4,2           ; @dsm_segment_list
	.comm	_dsm_segment,4,2                ; @dsm_segment
	.comm	_seg,4,2                        ; @seg
	.comm	_node,4,2                       ; @node
	.comm	_DSM_OP_DETACH,4,2              ; @DSM_OP_DETACH
	.comm	_dsm_control_handle,4,2         ; @dsm_control_handle
	.comm	_dsm_control_impl_private,4,2   ; @dsm_control_impl_private
	.comm	_dsm_control_mapped_size,4,2    ; @dsm_control_mapped_size
	.comm	_ERROR,4,2                      ; @ERROR
.subsections_via_symbols
