	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_thread_local
_test_thread_local:                     ## @test_thread_local
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_thread_local_destructor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_thread_local_key@GOTPCREL(%rip), %rdi
	callq	_CRYPTO_THREAD_init_local
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_thread_local_key@GOTPCREL(%rip), %rdi
	callq	_CRYPTO_THREAD_get_local
	movq	%rax, %rdi
	callq	_TEST_ptr_null
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_thread_local_thread_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdi
	callq	_run_thread
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	-12(%rbp), %edi
	callq	_wait_for_thread
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_thread_local_thread_cb_ok@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_thread_local_key@GOTPCREL(%rip), %rdi
	callq	_CRYPTO_THREAD_cleanup_local
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_thread_local_key,4,2           ## @thread_local_key
	.comm	_thread_local_destructor,4,2    ## @thread_local_destructor
	.comm	_thread_local_thread_cb,4,2     ## @thread_local_thread_cb
	.comm	_thread_local_thread_cb_ok,4,2  ## @thread_local_thread_cb_ok
	.comm	_destructor_run_count,4,2       ## @destructor_run_count
	.no_dead_strip	_test_thread_local
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_thread_local
_test_thread_local:                     ; @test_thread_local
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _thread_local_destructor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _thread_local_destructor@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _thread_local_key@GOTPAGE
Lloh4:
	ldr	x0, [x0, _thread_local_key@GOTPAGEOFF]
	bl	_CRYPTO_THREAD_init_local
	bl	_TEST_true
	cbz	w0, LBB0_6
; %bb.1:
Lloh5:
	adrp	x0, _thread_local_key@GOTPAGE
Lloh6:
	ldr	x0, [x0, _thread_local_key@GOTPAGEOFF]
	bl	_CRYPTO_THREAD_get_local
	bl	_TEST_ptr_null
	cbz	w0, LBB0_6
; %bb.2:
Lloh7:
	adrp	x8, _thread_local_thread_cb@GOTPAGE
Lloh8:
	ldr	x8, [x8, _thread_local_thread_cb@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	sub	x0, x29, #4
	bl	_run_thread
	bl	_TEST_true
	cbz	w0, LBB0_6
; %bb.3:
	ldur	w0, [x29, #-4]
	bl	_wait_for_thread
	bl	_TEST_true
	cbz	w0, LBB0_6
; %bb.4:
Lloh10:
	adrp	x8, _thread_local_thread_cb_ok@GOTPAGE
Lloh11:
	ldr	x8, [x8, _thread_local_thread_cb_ok@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, _thread_local_key@GOTPAGE
Lloh14:
	ldr	x0, [x0, _thread_local_key@GOTPAGEOFF]
	bl	_CRYPTO_THREAD_cleanup_local
	bl	_TEST_true
	cmp	w0, #0
	cset	w0, ne
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_thread_local_key,4,2           ; @thread_local_key
	.comm	_thread_local_destructor,4,2    ; @thread_local_destructor
	.comm	_thread_local_thread_cb,4,2     ; @thread_local_thread_cb
	.comm	_thread_local_thread_cb_ok,4,2  ; @thread_local_thread_cb_ok
	.comm	_destructor_run_count,4,2       ; @destructor_run_count
	.no_dead_strip	_test_thread_local
.subsections_via_symbols
