	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_get_addr_slow
_tls_get_addr_slow:                     ## @tls_get_addr_slow
	.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
	movl	%esi, %r15d
	movq	(%rdi), %r13
	movq	(%r13), %rax
	movq	_tls_dtv_generation@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r12
	movq	_rtld_bind_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_wlock_acquire
	movq	_tls_max_index@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %rbx
	addl	$2, %edi
	movl	$8, %esi
	callq	_xcalloc
	movl	8(%r13), %edx
	movl	(%rbx), %ecx
	cmpl	%edx, %ecx
	cmovll	%ecx, %edx
	movq	%rax, %rbx
	leaq	16(%rax), %rdi
	leaq	16(%r13), %rsi
	shll	$3, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	_tls_max_index@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%r13, %rdi
	callq	_free
	movq	_rtld_bind_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_lock_release
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, (%r12)
	movq	%rbx, %r13
LBB0_2:
	movslq	%r15d, %rbx
	movq	8(%r13,%rbx,8), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	%rdx, %r12
	incq	%rbx
	movq	_rtld_bind_lock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-44(%rbp), %rsi
	callq	_wlock_acquire
	cmpq	$0, (%r13,%rbx,8)
	jne	LBB0_5
## %bb.4:
	movl	%r15d, %edi
	callq	_allocate_module_tls
	movq	%rax, (%r13,%rbx,8)
LBB0_5:
	movl	(%r14), %edi
	leaq	-44(%rbp), %rsi
	callq	_lock_release
	movq	(%r13,%rbx,8), %rax
	movq	%r12, %rdx
LBB0_6:
	addq	%rdx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tls_dtv_generation,8,3         ## @tls_dtv_generation
	.comm	_rtld_bind_lock,4,2             ## @rtld_bind_lock
	.comm	_tls_max_index,4,2              ## @tls_max_index
	.no_dead_strip	_tls_get_addr_slow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_get_addr_slow
_tls_get_addr_slow:                     ; @tls_get_addr_slow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x21, x1
	ldr	x20, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x24, _tls_dtv_generation@GOTPAGE
Lloh1:
	ldr	x24, [x24, _tls_dtv_generation@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x22, x0
Lloh2:
	adrp	x25, _rtld_bind_lock@GOTPAGE
Lloh3:
	ldr	x25, [x25, _rtld_bind_lock@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x1, sp, #12
	bl	_wlock_acquire
Lloh4:
	adrp	x26, _tls_max_index@GOTPAGE
Lloh5:
	ldr	x26, [x26, _tls_max_index@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w0, w8, #2
	mov	w1, #8
	bl	_xcalloc
	mov	x23, x0
	ldr	w8, [x20, #8]
	ldr	w9, [x26]
	cmp	w9, w8
	csel	w8, w9, w8, lt
	add	x0, x0, #16
	add	x1, x20, #16
	lsl	w2, w8, #3
	bl	_memcpy
	ldr	x8, [x24]
	ldrsw	x9, [x26]
	stp	x8, x9, [x23]
	mov	x0, x20
	bl	_free
	ldr	w0, [x25]
	add	x1, sp, #12
	bl	_lock_release
	str	x23, [x22]
	mov	x20, x23
LBB0_2:
	add	w9, w21, #1
	ldr	x8, [x20, w9, sxtw #3]
	cbnz	x8, LBB0_6
; %bb.3:
	sxtw	x22, w9
Lloh6:
	adrp	x23, _rtld_bind_lock@GOTPAGE
Lloh7:
	ldr	x23, [x23, _rtld_bind_lock@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, sp, #12
	bl	_wlock_acquire
	ldr	x8, [x20, x22, lsl #3]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_allocate_module_tls
	str	x0, [x20, x22, lsl #3]
LBB0_5:
	ldr	w0, [x23]
	add	x1, sp, #12
	bl	_lock_release
	ldr	x8, [x20, x22, lsl #3]
LBB0_6:
	add	x0, x8, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_tls_dtv_generation,8,3         ; @tls_dtv_generation
	.comm	_rtld_bind_lock,4,2             ; @rtld_bind_lock
	.comm	_tls_max_index,4,2              ; @tls_max_index
	.no_dead_strip	_tls_get_addr_slow
.subsections_via_symbols
