	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unshare_variable
_unshare_variable:                      ## @unshare_variable
	.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	%rsi, %r13
	movq	%rdi, %rbx
	movq	_var_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pool_alloc
	movq	%rax, %r15
	movl	8(%r13), %r12d
	movl	%r12d, 8(%rax)
	movl	$1, (%rax)
	decl	(%r13)
	movl	4(%r13), %eax
	movl	%eax, 4(%r15)
	cmpl	$0, 4(%r13)
	jle	LBB0_11
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_loc_chain_pool@GOTPCREL(%rip), %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdx), %rdx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, (%rax,%rcx,8)
	incq	%r12
	movslq	4(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	16(%r13), %rcx
	leaq	(,%r12,8), %rax
	leaq	(%rax,%rax,2), %rdx
	movl	16(%rcx,%rdx), %esi
	movq	16(%r15), %rax
	movl	%esi, 16(%rax,%rdx)
	movq	8(%rcx,%rdx), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r13
	leaq	(%r12,%r12,2), %rcx
	leaq	(%rax,%rcx,8), %r15
	addq	$8, %r15
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	callq	_pool_alloc
	movq	$0, 8(%rax)
	movq	(%r14), %rcx
	movq	%rcx, (%rax)
	movq	%rax, (%r15)
	leaq	8(%rax), %r15
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r15
	movq	16(%r13), %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r12,2), %rcx
	movq	8(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_10:
	movl	8(%r15), %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movl	(%rbx), %ebx
	movl	%r12d, %edi
	callq	_VARIABLE_HASH_VAL
	movq	_INSERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_htab_find_slot_with_hash
	movq	%r15, (%rax)
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_var_pool,4,2                   ## @var_pool
	.comm	_loc_chain_pool,4,2             ## @loc_chain_pool
	.comm	_INSERT,4,2                     ## @INSERT
	.no_dead_strip	_unshare_variable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unshare_variable
_unshare_variable:                      ; @unshare_variable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _var_pool@GOTPAGE
Lloh1:
	ldr	x8, [x8, _var_pool@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_pool_alloc
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	ldp	w8, w9, [x21]
	str	w9, [x0, #4]
	ldp	w9, w22, [x21, #4]
	str	w22, [x0, #8]
	sub	w8, w8, #1
	str	w8, [x21]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x22, #0
	mov	w23, #24
Lloh3:
	adrp	x24, _loc_chain_pool@GOTPAGE
Lloh4:
	ldr	x24, [x24, _loc_chain_pool@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mul	x10, x22, x23
	str	x9, [x8, x10]
	add	x22, x22, #1
	ldrsw	x8, [x21, #4]
	cmp	x22, x8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x21, #16]
	add	x9, x22, x22, lsl #1
	lsl	x9, x9, #3
	add	x10, x8, x9
	ldr	w11, [x10, #16]
	ldr	x8, [x19, #16]
	add	x9, x8, x9
	str	w11, [x9, #16]
	ldr	x25, [x10, #8]
	cbz	x25, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x22, x23, x8
	add	x26, x8, #8
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	bl	_pool_alloc
	mov	x8, x0
	str	xzr, [x8, #8]!
	ldr	x9, [x25]
	str	x9, [x0]
	str	x0, [x26]
	ldr	x25, [x25, #8]
	mov	x26, x8
	cbnz	x25, LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x9, x22, x23, x8
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x9]
	b	LBB0_2
LBB0_9:
	ldr	w22, [x19, #8]
LBB0_10:
	ldr	w20, [x20]
	mov	x0, x22
	bl	_VARIABLE_HASH_VAL
	mov	x2, x0
Lloh5:
	adrp	x8, _INSERT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INSERT@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_htab_find_slot_with_hash
	str	x19, [x0]
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_var_pool,4,2                   ; @var_pool
	.comm	_loc_chain_pool,4,2             ; @loc_chain_pool
	.comm	_INSERT,4,2                     ; @INSERT
	.no_dead_strip	_unshare_variable
.subsections_via_symbols
