	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thread_callback
_thread_callback:                       ## @thread_callback
	.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
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_THREAD_UNSET@GOTPCREL(%rip), %rbx
LBB0_6:
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %r15
	movq	_THREAD_SHALLOW@GOTPCREL(%rip), %rbx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.5:
	movq	_THREAD_DEEP@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_THREAD_UNSET,4,2               ## @THREAD_UNSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shallow"

	.comm	_THREAD_SHALLOW,4,2             ## @THREAD_SHALLOW
L_.str.1:                               ## @.str.1
	.asciz	"deep"

	.comm	_THREAD_DEEP,4,2                ## @THREAD_DEEP
	.no_dead_strip	_thread_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thread_callback
_thread_callback:                       ; @thread_callback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	cbz	w2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _THREAD_UNSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THREAD_UNSET@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x19, x1
	cbz	x1, LBB0_6
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.5:
	mov	w0, #1
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _THREAD_SHALLOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THREAD_SHALLOW@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _THREAD_DEEP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _THREAD_DEEP@GOTPAGEOFF]
LBB0_8:
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_THREAD_UNSET,4,2               ; @THREAD_UNSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shallow"

	.comm	_THREAD_SHALLOW,4,2             ; @THREAD_SHALLOW
l_.str.1:                               ; @.str.1
	.asciz	"deep"

	.comm	_THREAD_DEEP,4,2                ; @THREAD_DEEP
	.no_dead_strip	_thread_callback
.subsections_via_symbols
