	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_stack_free                ## -- Begin function _thr_stack_free
	.p2align	4, 0x90
__thr_stack_free:                       ## @_thr_stack_free
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	_THR_STACK_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_7
## %bb.2:
	movq	16(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.3:
	movslq	4(%rbx), %r15
	leaq	(%r12,%r15), %r14
	addq	$-24, %r14
	movl	%r15d, %edi
	callq	_round_up
	movq	%rax, -24(%r12,%r15)
	movl	8(%rbx), %edi
	callq	_round_up
	movq	%rax, -16(%r12,%r15)
	movq	16(%rbx), %rcx
	movq	%rcx, -8(%r12,%r15)
	movq	-24(%r12,%r15), %rcx
	movq	_THR_STACK_DEFAULT@GOTPCREL(%rip), %rdx
	xorq	(%rdx), %rcx
	movq	__thr_guard_default@GOTPCREL(%rip), %rdx
	xorq	(%rdx), %rax
	movq	_qe@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orq	%rcx, %rax
	jne	LBB0_4
## %bb.5:
	movq	_dstackq@GOTPCREL(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	movq	_mstackq@GOTPCREL(%rip), %rdi
LBB0_6:
	movq	%r14, %rsi
	callq	_LIST_INSERT_HEAD
	movq	$0, 16(%rbx)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THR_STACK_USER,4,2             ## @THR_STACK_USER
	.comm	_THR_STACK_DEFAULT,8,3          ## @THR_STACK_DEFAULT
	.comm	__thr_guard_default,8,3         ## @_thr_guard_default
	.comm	_dstackq,4,2                    ## @dstackq
	.comm	_qe,4,2                         ## @qe
	.comm	_mstackq,4,2                    ## @mstackq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_stack_free                ; -- Begin function _thr_stack_free
	.p2align	2
__thr_stack_free:                       ; @_thr_stack_free
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _THR_STACK_USER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _THR_STACK_USER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldrsw	x0, [x19, #4]
	add	x20, x8, x0
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_round_up
	str	x0, [x20, #-24]!
	ldr	w0, [x19, #8]
	bl	_round_up
	ldr	x8, [x19, #16]
	stp	x0, x8, [x20, #8]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _THR_STACK_DEFAULT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _THR_STACK_DEFAULT@GOTPAGEOFF]
Lloh5:
	adrp	x10, __thr_guard_default@GOTPAGE
Lloh6:
	ldr	x10, [x10, __thr_guard_default@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	ldr	x10, [x10]
	cmp	x10, x0
	ccmp	x8, x9, #0, eq
Lloh9:
	adrp	x8, _qe@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qe@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _mstackq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mstackq@GOTPAGEOFF]
Lloh14:
	adrp	x9, _dstackq@GOTPAGE
Lloh15:
	ldr	x9, [x9, _dstackq@GOTPAGEOFF]
	csel	x0, x9, x8, eq
	mov	x1, x20
	bl	_LIST_INSERT_HEAD
	str	xzr, [x19, #16]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_THR_STACK_USER,4,2             ; @THR_STACK_USER
	.comm	_THR_STACK_DEFAULT,8,3          ; @THR_STACK_DEFAULT
	.comm	__thr_guard_default,8,3         ; @_thr_guard_default
	.comm	_dstackq,4,2                    ; @dstackq
	.comm	_qe,4,2                         ; @qe
	.comm	_mstackq,4,2                    ; @mstackq
.subsections_via_symbols
