	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_children_make              ## -- Begin function fpm_children_make
	.p2align	4, 0x90
_fpm_children_make:                     ## @fpm_children_make
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	_PM_STYLE_DYNAMIC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	testl	%esi, %esi
	jne	LBB0_2
## %bb.7:
	movl	8(%rax), %r14d
	jmp	LBB0_9
LBB0_3:
	movq	_PM_STYLE_ONDEMAND@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.4:
	testl	%esi, %esi
	je	LBB0_8
LBB0_2:
	addl	(%r12), %r14d
	jmp	LBB0_9
LBB0_6:
	movl	12(%rax), %r14d
	jmp	LBB0_9
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	xorl	%eax, %eax
	callq	_fpm_pctl_can_spawn_children
	testq	%rax, %rax
	je	LBB0_20
## %bb.10:
	movl	$2, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%rax), %edi
	movq	8(%r12), %rax
	movl	16(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_zlog
	xorl	%eax, %eax
	callq	_fpm_pctl_can_spawn_children
	testq	%rax, %rax
	je	LBB0_20
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%r12)
	jge	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_fpm_global_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_fpm_globals@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jge	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movb	$0, _fpm_children_make.warned(%rip)
	movq	%r12, %rdi
	callq	_fpm_resources_prepare
	testq	%rax, %rax
	je	LBB0_27
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r15d, (%r13)
	movq	%r13, %rdi
	addq	$4, %rdi
	callq	_fpm_clock_get
	movq	%r13, %rdi
	callq	_fpm_parent_resources_use
	movq	_ZLOG_DEBUG@GOTPCREL(%rip), %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_ZLOG_NOTICE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_20:
	movl	$1, %ebx
	cmpb	$0, _fpm_children_make.warned(%rip)
	jne	LBB0_27
## %bb.21:
	movq	_fpm_global_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_27
## %bb.22:
	movq	_fpm_globals@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jl	LBB0_27
## %bb.23:
	cmpl	%r14d, (%r12)
	jge	LBB0_27
## %bb.24:
	movb	$1, _fpm_children_make.warned(%rip)
	movq	_ZLOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_zlog
	jmp	LBB0_27
LBB0_25:
	movq	_ZLOG_SYSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_zlog
	movq	%r13, %rdi
	callq	_fpm_resources_discard
	jmp	LBB0_27
LBB0_26:
	movq	%r13, %rdi
	callq	_fpm_child_resources_use
	movq	_fpm_globals@GOTPCREL(%rip), %rax
	movl	$1, 4(%rax)
	movq	%r12, %rdi
	callq	_fpm_child_init
	xorl	%ebx, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fpm_children_make.warned,1,2 ## @fpm_children_make.warned
	.comm	_PM_STYLE_DYNAMIC,8,3           ## @PM_STYLE_DYNAMIC
	.comm	_PM_STYLE_ONDEMAND,8,3          ## @PM_STYLE_ONDEMAND
	.comm	_fpm_global_config,4,2          ## @fpm_global_config
	.comm	_fpm_globals,8,2                ## @fpm_globals
	.comm	_ZLOG_SYSERROR,4,2              ## @ZLOG_SYSERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork() failed"

	.comm	_ZLOG_DEBUG,4,2                 ## @ZLOG_DEBUG
	.comm	_ZLOG_NOTICE,4,2                ## @ZLOG_NOTICE
L_.str.1:                               ## @.str.1
	.asciz	"[pool %s] child %d started"

	.comm	_ZLOG_WARNING,4,2               ## @ZLOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"The maximum number of processes has been reached. Please review your configuration and consider raising 'process.max'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_children_make              ; -- Begin function fpm_children_make
	.p2align	2
_fpm_children_make:                     ; @fpm_children_make
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _PM_STYLE_DYNAMIC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PM_STYLE_DYNAMIC@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	cbnz	w1, LBB0_5
; %bb.2:
	ldr	w24, [x8, #8]
	b	LBB0_8
LBB0_3:
Lloh3:
	adrp	x10, _PM_STYLE_ONDEMAND@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PM_STYLE_ONDEMAND@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	cbz	w1, LBB0_7
LBB0_5:
	ldr	w8, [x19]
	add	w24, w8, w2
	b	LBB0_8
LBB0_6:
	ldr	w24, [x8, #12]
	b	LBB0_8
LBB0_7:
	mov	w24, #0
LBB0_8:
	bl	_fpm_pctl_can_spawn_children
	adrp	x25, _fpm_children_make.warned@PAGE
Lloh6:
	adrp	x27, _fpm_global_config@GOTPAGE
Lloh7:
	ldr	x27, [x27, _fpm_global_config@GOTPAGEOFF]
Lloh8:
	adrp	x26, _fpm_globals@GOTPAGE
Lloh9:
	ldr	x26, [x26, _fpm_globals@GOTPAGEOFF]
	cbz	x0, LBB0_16
; %bb.9:
Lloh10:
	adrp	x28, _ZLOG_NOTICE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _ZLOG_NOTICE@GOTPAGEOFF]
Lloh12:
	adrp	x21, l_.str.1@PAGE
Lloh13:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, w24
	b.ge	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x26]
	cmp	w8, #1
	ccmp	w9, w8, #8, ge
	b.ge	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	strb	wzr, [x25, _fpm_children_make.warned@PAGEOFF]
	mov	x0, x19
	bl	_fpm_resources_prepare
	cbz	x0, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x22, x0
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x23, x0
	cbz	w0, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	str	w23, [x0], #4
	bl	_fpm_clock_get
	mov	x0, x22
	bl	_fpm_parent_resources_use
	cmp	w20, #0
Lloh14:
	adrp	x8, _ZLOG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZLOG_DEBUG@GOTPAGEOFF]
	csel	x8, x28, x8, eq
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #16]
	stp	x8, x23, [sp]
	mov	x1, x21
	bl	_zlog
	bl	_fpm_pctl_can_spawn_children
	cbnz	x0, LBB0_10
LBB0_16:
	ldrb	w8, [x25, _fpm_children_make.warned@PAGEOFF]
	mov	w20, #1
	tbnz	w8, #0, LBB0_23
; %bb.17:
	ldr	w8, [x27]
	ldr	w9, [x26]
	cmp	w8, #1
	ccmp	w9, w8, #8, ge
	b.lt	LBB0_23
; %bb.18:
	ldr	w8, [x19]
	mov	w20, #1
	cmp	w8, w24
	b.ge	LBB0_23
; %bb.19:
	strb	w20, [x25, _fpm_children_make.warned@PAGEOFF]
Lloh16:
	adrp	x8, _ZLOG_WARNING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ZLOG_WARNING@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_zlog
	b	LBB0_23
LBB0_20:
	mov	w20, #2
	b	LBB0_23
LBB0_21:
Lloh21:
	adrp	x8, _ZLOG_SYSERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ZLOG_SYSERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_zlog
	mov	x0, x22
	bl	_fpm_resources_discard
	mov	w20, #2
	b	LBB0_23
LBB0_22:
	mov	x0, x22
	bl	_fpm_child_resources_use
	mov	w8, #1
	str	w8, [x26, #4]
	mov	x0, x19
	bl	_fpm_child_init
	mov	w20, #0
LBB0_23:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fpm_children_make.warned,1,2 ; @fpm_children_make.warned
	.comm	_PM_STYLE_DYNAMIC,8,3           ; @PM_STYLE_DYNAMIC
	.comm	_PM_STYLE_ONDEMAND,8,3          ; @PM_STYLE_ONDEMAND
	.comm	_fpm_global_config,4,2          ; @fpm_global_config
	.comm	_fpm_globals,8,2                ; @fpm_globals
	.comm	_ZLOG_SYSERROR,4,2              ; @ZLOG_SYSERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork() failed"

	.comm	_ZLOG_DEBUG,4,2                 ; @ZLOG_DEBUG
	.comm	_ZLOG_NOTICE,4,2                ; @ZLOG_NOTICE
l_.str.1:                               ; @.str.1
	.asciz	"[pool %s] child %d started"

	.comm	_ZLOG_WARNING,4,2               ; @ZLOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"The maximum number of processes has been reached. Please review your configuration and consider raising 'process.max'"

.subsections_via_symbols
