	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_hash_insert
_dm_hash_insert:                        ## @dm_hash_insert
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_alloc_cell
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	__hash_lock@GOTPCREL(%rip), %rdi
	callq	_down_write
	movq	%rbx, %rdi
	callq	___get_name_cell
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	movl	4(%r13), %edi
	callq	_dm_put
	movq	__hash_lock@GOTPCREL(%rip), %rdi
	callq	_up_write
	movq	%r15, %rdi
	callq	_free_cell
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rcx
	addq	$8, %rcx
	movq	__name_buckets@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rbx, %rdi
	movq	%rcx, %rbx
	callq	_hash_str
	addq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_list_add
	testq	%r12, %r12
	je	LBB0_9
## %bb.4:
	movq	%r12, %rdi
	callq	___get_uuid_cell
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_list_del
	jmp	LBB0_6
LBB0_8:
	movq	__uuid_buckets@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_hash_str
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_list_add
LBB0_9:
	movq	%r14, %rdi
	callq	_dm_get
	movq	_dm_hash_cells_mutex@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dm_set_mdptr
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	__hash_lock@GOTPCREL(%rip), %rdi
	callq	_up_write
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	__hash_lock,4,2                 ## @_hash_lock
	.comm	__name_buckets,8,3              ## @_name_buckets
	.comm	__uuid_buckets,8,3              ## @_uuid_buckets
	.comm	_dm_hash_cells_mutex,4,2        ## @dm_hash_cells_mutex
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_dm_hash_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_hash_insert
_dm_hash_insert:                        ; @dm_hash_insert
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_alloc_cell
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x0, __hash_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, __hash_lock@GOTPAGEOFF]
	bl	_down_write
	mov	x0, x22
	bl	___get_name_cell
	mov	x24, x0
	cbz	x0, LBB0_6
LBB0_2:
	ldr	w0, [x24, #4]
	bl	_dm_put
Lloh2:
	adrp	x0, __hash_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, __hash_lock@GOTPAGEOFF]
	bl	_up_write
	mov	x0, x19
	bl	_free_cell
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x23, x19, #8
Lloh8:
	adrp	x8, __name_buckets@GOTPAGE
Lloh9:
	ldr	x8, [x8, __name_buckets@GOTPAGEOFF]
Lloh10:
	ldr	x24, [x8]
	mov	x0, x22
	bl	_hash_str
	add	x1, x0, x24
	mov	x0, x23
	bl	_list_add
	cbz	x21, LBB0_10
; %bb.7:
	mov	x0, x21
	bl	___get_uuid_cell
	cbz	x0, LBB0_9
; %bb.8:
	mov	x24, x0
	mov	x0, x23
	bl	_list_del
	b	LBB0_2
LBB0_9:
Lloh11:
	adrp	x8, __uuid_buckets@GOTPAGE
Lloh12:
	ldr	x8, [x8, __uuid_buckets@GOTPAGEOFF]
Lloh13:
	ldr	x22, [x8]
	mov	x0, x21
	bl	_hash_str
	add	x1, x0, x22
	mov	x0, x19
	bl	_list_add
LBB0_10:
	mov	x0, x20
	bl	_dm_get
Lloh14:
	adrp	x21, _dm_hash_cells_mutex@GOTPAGE
Lloh15:
	ldr	x21, [x21, _dm_hash_cells_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x19
	bl	_dm_set_mdptr
	mov	x0, x21
	bl	_mutex_unlock
Lloh16:
	adrp	x0, __hash_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, __hash_lock@GOTPAGEOFF]
	bl	_up_write
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	__hash_lock,4,2                 ; @_hash_lock
	.comm	__name_buckets,8,3              ; @_name_buckets
	.comm	__uuid_buckets,8,3              ; @_uuid_buckets
	.comm	_dm_hash_cells_mutex,4,2        ; @dm_hash_cells_mutex
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_dm_hash_insert
.subsections_via_symbols
