	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resize
_resize:                                ## @resize
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_DSHASH_NUM_PARTITIONS@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_PARTITION_LOCK
	movl	%eax, %edi
	callq	_LWLockHeldByMe
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_PARTITION_LOCK
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_LWLockAcquire
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	cmpq	%r13, (%rax)
	jb	LBB0_4
## %bb.14:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_PARTITION_LOCK
	movl	%eax, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
LBB0_5:
	movq	16(%r12), %rax
	movq	(%rax), %rax
	incq	%rax
	xorl	%edi, %edi
	cmpq	%r13, %rax
	sete	%dil
	callq	_Assert
	movl	(%r12), %edi
	movl	$4, %esi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %ecx
	shlq	%cl, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dsa_allocate0
	movl	(%r12), %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_dsa_get_address
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	%rdx, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rax
	testq	%rax, %rax
	jne	LBB0_10
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%r12), %rax
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rdx,4), %r15d
	movl	%r15d, %edi
	callq	_DsaPointerIsValid
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_dsa_get_address
	movq	%rax, %r13
	movl	(%rax), %edi
	movl	4(%rax), %r14d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_BUCKET_INDEX_FOR_HASH_AND_SIZE
	leaq	(%rbx,%rax,4), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_insert_item_into_bucket
	movl	%r14d, %edi
	callq	_DsaPointerIsValid
	movl	%r14d, %r15d
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_10:
	movq	16(%r12), %rax
	movl	8(%rax), %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movl	(%r12), %edi
	callq	_dsa_free
	movq	_DSHASH_NUM_PARTITIONS@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_PARTITION_LOCK
	movl	%eax, %edi
	callq	_LWLockRelease
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_12
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSHASH_NUM_PARTITIONS,8,3      ## @DSHASH_NUM_PARTITIONS
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.no_dead_strip	_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resize
_resize:                                ; @resize
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _DSHASH_NUM_PARTITIONS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DSHASH_NUM_PARTITIONS@GOTPAGEOFF]
	ldr	x8, [x26]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x22, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LW_EXCLUSIVE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x8, [x26]
	cmp	x21, x8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_PARTITION_LOCK
	bl	_LWLockHeldByMe
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	mov	x1, x21
	bl	_PARTITION_LOCK
	ldr	w1, [x22]
	bl	_LWLockAcquire
	cbnz	x21, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x8, x20
	b.lo	LBB0_2
; %bb.5:
	mov	x0, x19
	mov	x1, #0
	bl	_PARTITION_LOCK
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_LWLockRelease
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x8, x8, #1
	cmp	x8, x20
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x19]
	mov	w8, #4
	lsl	x1, x8, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_dsa_allocate0
	mov	x21, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_dsa_get_address
	mov	x22, x0
	mov	x27, #0
	ldr	x8, [x19, #16]
	ldr	x28, [x8]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x27, x27, #1
	lsr	x8, x27, x28
	cbnz	x8, LBB0_10
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x19, #8]
	ldr	w23, [x8, x27, lsl #2]
	mov	x0, x23
	bl	_DsaPointerIsValid
	cbz	x0, LBB0_7
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19]
	mov	x1, x23
	bl	_dsa_get_address
	mov	x24, x0
	ldp	w0, w25, [x0]
	mov	x1, x20
	bl	_BUCKET_INDEX_FOR_HASH_AND_SIZE
	add	x3, x22, x0, lsl #2
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_insert_item_into_bucket
	mov	x0, x25
	bl	_DsaPointerIsValid
	mov	x23, x25
	cbnz	x0, LBB0_9
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	w1, [x8, #8]
	str	w21, [x8, #8]
	str	x20, [x8]
	str	x22, [x19, #8]
	ldr	w0, [x19]
	bl	_dsa_free
	ldr	x8, [x26]
	cbz	x8, LBB0_13
; %bb.11:
	mov	x20, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_PARTITION_LOCK
	bl	_LWLockRelease
	add	x20, x20, #1
	ldr	x8, [x26]
	cmp	x20, x8
	b.lo	LBB0_12
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DSHASH_NUM_PARTITIONS,8,3      ; @DSHASH_NUM_PARTITIONS
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.no_dead_strip	_resize
.subsections_via_symbols
