	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_module_destroy              ## -- Begin function dt_module_destroy
	.p2align	4, 0x90
_dt_module_destroy:                     ## @dt_module_destroy
	.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	%rsi, %r12
	movq	%rdi, %r14
	movl	8(%rsi), %edi
	xorl	%esi, %esi
	callq	_dt_strtab_hash
	movq	(%r14), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r15
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r15d
LBB0_3:
	movq	24(%r14), %rbx
	leaq	16(%r14), %rdi
	movq	%r12, %rsi
	callq	_dt_list_delete
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	setne	%dil
	callq	_assert
	decq	8(%r14)
	movq	(%rbx,%r15,8), %rax
	cmpq	%r12, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_assert
	movq	(%rbx), %rax
	cmpq	%r12, %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_4:
	leaq	(%rbx,%r15,8), %rbx
LBB0_6:
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dt_module_unload
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_module_destroy              ; -- Begin function dt_module_destroy
	.p2align	2
_dt_module_destroy:                     ; @dt_module_destroy
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	mov	x1, #0
	bl	_dt_strtab_hash
	ldr	x8, [x20]
	udiv	x9, x0, x8
	msub	x8, x9, x8, x0
	ldr	x9, [x20, #24]
	add	x21, x9, x8, lsl #3
	add	x0, x20, #16
	mov	x1, x19
	bl	_dt_list_delete
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #8]
	sub	x8, x8, #1
	str	x8, [x20, #8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x8, x19
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x8
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	b	LBB0_1
LBB0_3:
	ldr	x8, [x19]
	str	x8, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_dt_module_unload
	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	_free
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
