	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_thread_init              ## -- Begin function __lwp_thread_init
	.p2align	4, 0x90
___lwp_thread_init:                     ## @__lwp_thread_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.6:
	movq	%rsi, 64(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movl	%r13d, %edi
	callq	___lwp_stack_isenough
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_CPU_MINIMUM_STACK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_3:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	___lwp_stack_allocate
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r13d
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	%r13d, (%rbx)
	leaq	52(%rbx), %rdi
	movq	_LWP_THREADQ_MODEFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LWP_STATES_WAITING_FOR_JOINATEXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	___lwp_threadqueue_init
	leaq	48(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	44(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	cmpl	$128, %r14d
	jge	LBB0_8
## %bb.9:
	movq	_LWP_CPU_BUDGET_ALGO_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_LWP_CPU_BUDGET_ALGO_TIMESLICE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	%r12d, 4(%rbx)
	movl	%r15d, 8(%rbx)
	movl	%r14d, 12(%rbx)
	movq	_LWP_STATES_DORMANT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	__lwp_ticks_per_timeslice@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	___lwp_thread_setpriority
	movq	__thr_executing@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	___libc_create_hook
	movl	$1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_MINIMUM_STACK_SIZE,4,2     ## @CPU_MINIMUM_STACK_SIZE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_LWP_THREADQ_MODEFIFO,4,2       ## @LWP_THREADQ_MODEFIFO
	.comm	_LWP_STATES_WAITING_FOR_JOINATEXIT,4,2 ## @LWP_STATES_WAITING_FOR_JOINATEXIT
	.comm	_LWP_CPU_BUDGET_ALGO_NONE,4,2   ## @LWP_CPU_BUDGET_ALGO_NONE
	.comm	_LWP_CPU_BUDGET_ALGO_TIMESLICE,4,2 ## @LWP_CPU_BUDGET_ALGO_TIMESLICE
	.comm	_LWP_STATES_DORMANT,4,2         ## @LWP_STATES_DORMANT
	.comm	__lwp_ticks_per_timeslice,4,2   ## @_lwp_ticks_per_timeslice
	.comm	__thr_executing,4,2             ## @_thr_executing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_thread_init              ; -- Begin function __lwp_thread_init
	.p2align	2
___lwp_thread_init:                     ; @__lwp_thread_init
	.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	x22, x5
	mov	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	str	x1, [x19, #64]
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x23
	bl	___lwp_stack_isenough
Lloh2:
	adrp	x8, _CPU_MINIMUM_STACK_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CPU_MINIMUM_STACK_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w1, w8, w23, eq
	mov	x0, x19
	bl	___lwp_stack_allocate
	cbz	w0, LBB0_5
; %bb.3:
	mov	x23, x0
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	str	w23, [x19]
	add	x0, x19, #52
Lloh7:
	adrp	x8, _LWP_THREADQ_MODEFIFO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LWP_THREADQ_MODEFIFO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _LWP_STATES_WAITING_FOR_JOINATEXIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LWP_STATES_WAITING_FOR_JOINATEXIT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w3, #0
	bl	___lwp_threadqueue_init
	add	x0, x19, #48
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x19, #44
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh13:
	adrp	x8, _LWP_CPU_BUDGET_ALGO_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LWP_CPU_BUDGET_ALGO_NONE@GOTPAGEOFF]
Lloh15:
	adrp	x9, _LWP_CPU_BUDGET_ALGO_TIMESLICE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LWP_CPU_BUDGET_ALGO_TIMESLICE@GOTPAGEOFF]
	cmp	w20, #128
	csel	x8, x8, x9, lt
	ldr	w8, [x8]
	str	w8, [x19, #40]
	stp	w22, w21, [x19, #4]
	str	w20, [x19, #12]
Lloh17:
	adrp	x8, _LWP_STATES_DORMANT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LWP_STATES_DORMANT@GOTPAGEOFF]
Lloh19:
	adrp	x9, __lwp_ticks_per_timeslice@GOTPAGE
Lloh20:
	ldr	x9, [x9, __lwp_ticks_per_timeslice@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	stp	xzr, xzr, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	bl	___lwp_thread_setpriority
Lloh23:
	adrp	x8, __thr_executing@GOTPAGE
Lloh24:
	ldr	x8, [x8, __thr_executing@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x19
	bl	___libc_create_hook
	mov	w0, #1
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_MINIMUM_STACK_SIZE,4,2     ; @CPU_MINIMUM_STACK_SIZE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_LWP_THREADQ_MODEFIFO,4,2       ; @LWP_THREADQ_MODEFIFO
	.comm	_LWP_STATES_WAITING_FOR_JOINATEXIT,4,2 ; @LWP_STATES_WAITING_FOR_JOINATEXIT
	.comm	_LWP_CPU_BUDGET_ALGO_NONE,4,2   ; @LWP_CPU_BUDGET_ALGO_NONE
	.comm	_LWP_CPU_BUDGET_ALGO_TIMESLICE,4,2 ; @LWP_CPU_BUDGET_ALGO_TIMESLICE
	.comm	_LWP_STATES_DORMANT,4,2         ; @LWP_STATES_DORMANT
	.comm	__lwp_ticks_per_timeslice,4,2   ; @_lwp_ticks_per_timeslice
	.comm	__thr_executing,4,2             ; @_thr_executing
.subsections_via_symbols
