	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AssignPostmasterChildSlot      ## -- Begin function AssignPostmasterChildSlot
	.p2align	4, 0x90
_AssignPostmasterChildSlot:             ## @AssignPostmasterChildSlot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PMSignalState@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	4(%r8), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.1:
	movl	(%r8), %edi
	movq	8(%r8), %r9
	movq	_PM_CHILD_UNUSED@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	leal	1(%rdx), %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edi, %edi
	movl	%edi, %eax
	cmovlel	%edx, %eax
	leal	-1(%rax), %edi
	movslq	%eax, %rcx
	cmpq	%r10, -8(%r9,%rcx,8)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%esi
	cmpl	$2, %esi
	jge	LBB0_2
LBB0_4:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	decq	%rcx
	movq	_PM_CHILD_ASSIGNED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%r9,%rcx,8)
	movl	%edi, (%r8)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMSignalState,8,3              ## @PMSignalState
	.comm	_PM_CHILD_UNUSED,8,3            ## @PM_CHILD_UNUSED
	.comm	_PM_CHILD_ASSIGNED,8,3          ## @PM_CHILD_ASSIGNED
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no free slots in PMChildFlags array"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AssignPostmasterChildSlot      ; -- Begin function AssignPostmasterChildSlot
	.p2align	2
_AssignPostmasterChildSlot:             ; @AssignPostmasterChildSlot
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _PMSignalState@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMSignalState@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w10, [x8, #4]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w9, [x8]
	ldr	x11, [x8, #8]
Lloh3:
	adrp	x12, _PM_CHILD_UNUSED@GOTPAGE
Lloh4:
	ldr	x12, [x12, _PM_CHILD_UNUSED@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	add	w13, w10, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #1
	csel	w0, w10, w9, lt
	sub	w9, w0, #1
	ldr	x14, [x11, w9, sxtw #3]
	cmp	x14, x12
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w13, w13, #1
	cmp	w13, #2
	b.ge	LBB0_2
LBB0_4:
Lloh6:
	adrp	x8, _FATAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	sxtw	x10, w9
Lloh11:
	adrp	x12, _PM_CHILD_ASSIGNED@GOTPAGE
Lloh12:
	ldr	x12, [x12, _PM_CHILD_ASSIGNED@GOTPAGEOFF]
Lloh13:
	ldr	x12, [x12]
	str	x12, [x11, x10, lsl #3]
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PMSignalState,8,3              ; @PMSignalState
	.comm	_PM_CHILD_UNUSED,8,3            ; @PM_CHILD_UNUSED
	.comm	_PM_CHILD_ASSIGNED,8,3          ; @PM_CHILD_ASSIGNED
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no free slots in PMChildFlags array"

.subsections_via_symbols
