	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_Init_Prefork_Server      ## -- Begin function LSAPI_Init_Prefork_Server
	.p2align	4, 0x90
_LSAPI_Init_Prefork_Server:             ## @LSAPI_Init_Prefork_Server
	.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
	movq	_g_prefork_server@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	cmpq	$0, (%r13)
	jne	LBB0_8
## %bb.1:
	movl	$-1, %ebx
	cmpl	$2, %edi
	jl	LBB0_8
## %bb.2:
	movl	%edx, %r14d
	movq	%rsi, %r15
	cmpl	$10000, %edi                    ## imm = 0x2710
	movl	$10000, %r12d                   ## imm = 0x2710
	cmovll	%edi, %r12d
	movq	_s_max_busy_workers@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	%r12d, %ecx
	shrl	%ecx
	incl	%ecx
	movl	%ecx, (%rax)
LBB0_4:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	_g_fnSelect@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
LBB0_7:
	xorl	%eax, %eax
	callq	_getppid
	movq	_s_ppid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_getpid
	movq	_s_pid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	movl	%eax, %esi
	callq	_setpgid
	movq	(%r13), %rax
	movl	%r14d, (%rax)
	movl	%r12d, 4(%rax)
	movzwl	%r12w, %ecx
	imull	$43691, %ecx, %edx              ## imm = 0xAAAB
	shrl	$17, %edx
	cmpw	$3, %cx
	movl	$1, %ecx
	cmovael	%edx, %ecx
	incl	%r12d
	testl	%r14d, %r14d
	cmovnel	%ebx, %edx
	cmovel	%ecx, %r12d
	movl	%edx, 8(%rax)
	movl	%r12d, 12(%rax)
	movabsq	$15461882265900, %rcx           ## imm = 0xE100000012C
	movq	%rcx, 16(%rax)
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_prefork_server,8,3           ## @g_prefork_server
	.comm	_s_max_busy_workers,4,2         ## @s_max_busy_workers
	.comm	_g_fnSelect,8,3                 ## @g_fnSelect
	.comm	_s_ppid,4,2                     ## @s_ppid
	.comm	_s_pid,4,2                      ## @s_pid
	.comm	__SC_PHYS_PAGES,4,2             ## @_SC_PHYS_PAGES
	.comm	_s_total_pages,4,2              ## @s_total_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function LSAPI_Init_Prefork_Server
lCPI0_0:
	.long	300                             ; 0x12c
	.long	3600                            ; 0xe10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_LSAPI_Init_Prefork_Server
	.p2align	2
_LSAPI_Init_Prefork_Server:             ; @LSAPI_Init_Prefork_Server
	.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
Lloh0:
	adrp	x22, _g_prefork_server@GOTPAGE
Lloh1:
	ldr	x22, [x22, _g_prefork_server@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	cmp	w0, #2
	b.lt	LBB0_9
; %bb.3:
	mov	x19, x2
	mov	x20, x1
	mov	w8, #10000
	cmp	w0, w8
	csel	w21, w0, w8, lt
Lloh2:
	adrp	x8, _s_max_busy_workers@GOTPAGE
Lloh3:
	ldr	x8, [x8, _s_max_busy_workers@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_5
; %bb.4:
	lsr	w9, w21, #1
	add	w9, w9, #1
	str	w9, [x8]
LBB0_5:
	mov	w0, #24
	bl	_malloc
	str	x0, [x22]
	cbz	x0, LBB0_9
; %bb.6:
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	cbz	x20, LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _g_fnSelect@GOTPAGE
Lloh5:
	ldr	x8, [x8, _g_fnSelect@GOTPAGEOFF]
Lloh6:
	str	x20, [x8]
LBB0_8:
	bl	_getppid
Lloh7:
	adrp	x8, _s_ppid@GOTPAGE
Lloh8:
	ldr	x8, [x8, _s_ppid@GOTPAGEOFF]
Lloh9:
	str	w0, [x8]
	bl	_getpid
Lloh10:
	adrp	x8, _s_pid@GOTPAGE
Lloh11:
	ldr	x8, [x8, _s_pid@GOTPAGEOFF]
Lloh12:
	str	w0, [x8]
	mov	x1, x0
	bl	_setpgid
	mov	w0, #0
	ldr	x8, [x22]
	stp	w19, w21, [x8]
	and	x9, x21, #0xffff
	mov	w10, #43691
	movk	w10, #43690, lsl #16
	mul	x9, x9, x10
	and	w10, w21, #0xffff
	lsr	x9, x9, #33
	cmp	w10, #3
	csinc	w10, w9, wzr, hs
	cmp	w19, #0
	csel	w9, w9, wzr, eq
	csinc	w10, w10, w21, eq
	stp	w9, w10, [x8, #8]
Lloh13:
	adrp	x9, lCPI0_0@PAGE
Lloh14:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8, #16]
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_g_prefork_server,8,3           ; @g_prefork_server
	.comm	_s_max_busy_workers,4,2         ; @s_max_busy_workers
	.comm	_g_fnSelect,8,3                 ; @g_fnSelect
	.comm	_s_ppid,4,2                     ; @s_ppid
	.comm	_s_pid,4,2                      ; @s_pid
	.comm	__SC_PHYS_PAGES,4,2             ; @_SC_PHYS_PAGES
	.comm	_s_total_pages,4,2              ; @s_total_pages
.subsections_via_symbols
