	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thd_start
_thd_start:                             ## @thd_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_tsd_fetch
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tsd_test_data_get
	movq	_MALLOC_TSD_TEST_DATA_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %edi
	callq	_assert_x_eq
	movl	$1, %edi
	callq	_malloc
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_assert_ptr_not_null
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_tsd_test_data_set
	movq	%rbx, %rdi
	callq	_tsd_test_data_get
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_assert_x_eq
	movq	%rbx, %rdi
	callq	_tsd_test_data_get
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_assert_x_eq
	movq	_data_cleanup@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_tsd_test_callback_set
	movq	%r15, %rdi
	callq	_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MALLOC_TSD_TEST_DATA_INIT,4,2  ## @MALLOC_TSD_TEST_DATA_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initial tsd get should return initialization value"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected malloc() failure"

L_.str.2:                               ## @.str.2
	.asciz	"After tsd set, tsd get should return value that was set"

L_.str.3:                               ## @.str.3
	.asciz	"Resetting local data should have no effect on tsd"

	.comm	_data_cleanup,4,2               ## @data_cleanup
	.no_dead_strip	_thd_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thd_start
_thd_start:                             ; @thd_start
	.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, x0
	bl	_tsd_fetch
	mov	x20, x0
	bl	_tsd_test_data_get
Lloh0:
	adrp	x8, _MALLOC_TSD_TEST_DATA_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MALLOC_TSD_TEST_DATA_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_assert_x_eq
	mov	w0, #1
	bl	_malloc
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_assert_ptr_not_null
	mov	x0, x20
	mov	x1, x19
	bl	_tsd_test_data_set
	mov	x0, x20
	bl	_tsd_test_data_get
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_assert_x_eq
	mov	x0, x20
	bl	_tsd_test_data_get
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_assert_x_eq
Lloh11:
	adrp	x1, _data_cleanup@GOTPAGE
Lloh12:
	ldr	x1, [x1, _data_cleanup@GOTPAGEOFF]
	mov	x0, x20
	bl	_tsd_test_callback_set
	mov	x0, x21
	bl	_free
	mov	x0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MALLOC_TSD_TEST_DATA_INIT,4,2  ; @MALLOC_TSD_TEST_DATA_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initial tsd get should return initialization value"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected malloc() failure"

l_.str.2:                               ; @.str.2
	.asciz	"After tsd set, tsd get should return value that was set"

l_.str.3:                               ; @.str.3
	.asciz	"Resetting local data should have no effect on tsd"

	.comm	_data_cleanup,4,2               ; @data_cleanup
	.no_dead_strip	_thd_start
.subsections_via_symbols
