	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initialize_new_thread
_initialize_new_thread:                 ## @initialize_new_thread
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	movq	(%rdi), %r12
	shlq	$6, %r12
	movl	16(%rdi), %edi
	callq	_lzma_alloc
	movq	%rax, (%r15,%r12)
	movq	_LZMA_MEM_ERROR@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r12), %r13
	leaq	(%r15,%r12), %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mythread_mutex_init
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r12), %r13
	addq	$12, %r13
	movq	%r13, %rdi
	callq	_mythread_cond_init
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	_THR_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15,%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%r15,%r12)
	movq	%r14, 40(%r15,%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15,%r12)
	movq	_LZMA_NEXT_CODER_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15,%r12)
	leaq	16(%r15,%r12), %rdi
	movq	_worker_start@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_mythread_create
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	callq	_mythread_cond_destroy
LBB0_6:
	movq	%rbx, %rdi
	callq	_mythread_mutex_destroy
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_7:
	movq	(%r13), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_lzma_free
	movq	_LZMA_MEM_ERROR@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	incq	(%r14)
	movq	%r15, 8(%r14)
	movq	_LZMA_OK@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_MEM_ERROR,4,2             ## @LZMA_MEM_ERROR
	.comm	_THR_IDLE,4,2                   ## @THR_IDLE
	.comm	_LZMA_NEXT_CODER_INIT,4,2       ## @LZMA_NEXT_CODER_INIT
	.comm	_worker_start,4,2               ## @worker_start
	.comm	_LZMA_OK,4,2                    ## @LZMA_OK
	.no_dead_strip	_initialize_new_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initialize_new_thread
_initialize_new_thread:                 ; @initialize_new_thread
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0, #24]
	ldr	x24, [x0]
	add	x20, x23, x24, lsl #6
	ldr	w0, [x0, #16]
	bl	_lzma_alloc
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.1:
	add	x22, x20, #8
	mov	x0, x22
	bl	_mythread_mutex_init
	cbnz	x0, LBB0_6
; %bb.2:
	add	x24, x23, x24, lsl #6
	add	x23, x24, #12
	mov	x0, x23
	bl	_mythread_cond_init
	cbnz	x0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _THR_IDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THR_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x24, #56]
	stp	x21, x19, [x24, #40]
	stp	xzr, xzr, [x24, #24]
Lloh3:
	adrp	x8, _LZMA_NEXT_CODER_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LZMA_NEXT_CODER_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x24, #20]
	add	x0, x24, #16
Lloh6:
	adrp	x1, _worker_start@GOTPAGE
Lloh7:
	ldr	x1, [x1, _worker_start@GOTPAGEOFF]
	mov	x2, x20
	bl	_mythread_create
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x23
	bl	_mythread_cond_destroy
LBB0_5:
	mov	x0, x22
	bl	_mythread_mutex_destroy
LBB0_6:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_lzma_free
LBB0_7:
Lloh8:
	adrp	x8, _LZMA_MEM_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LZMA_MEM_ERROR@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [x21]
	add	x8, x8, #1
	stp	x8, x20, [x21]
Lloh10:
	adrp	x8, _LZMA_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LZMA_OK@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_MEM_ERROR,4,2             ; @LZMA_MEM_ERROR
	.comm	_THR_IDLE,4,2                   ; @THR_IDLE
	.comm	_LZMA_NEXT_CODER_INIT,4,2       ; @LZMA_NEXT_CODER_INIT
	.comm	_worker_start,4,2               ; @worker_start
	.comm	_LZMA_OK,4,2                    ; @LZMA_OK
	.no_dead_strip	_initialize_new_thread
.subsections_via_symbols
