	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lsapi_check_child_status
_lsapi_check_child_status:              ## @lsapi_check_child_status
	.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	_g_prefork_server@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	movq	24(%rax), %r15
	movq	32(%rax), %rbx
	xorl	%r8d, %r8d
	movl	$0, %r13d
	movl	$0, %ecx
	cmpq	%r15, %rbx
	jae	LBB0_25
## %bb.1:
	movq	%rdi, %r14
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	xorl	%r8d, %r8d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	8(%rbx)
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%ecx
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %r13d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$40, %rbx
	cmpq	%r15, %rbx
	jae	LBB0_24
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r13), %r12d
	cmpl	$0, 32(%rbx)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rax
	subq	24(%rbx), %rax
	movq	(%rsi), %rdx
	cmpq	16(%rdx), %rax
	jle	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %eax
	imull	$-858993459, %eax, %edx         ## imm = 0xCCCCCCCD
	addl	$429496729, %edx                ## imm = 0x19999999
	cmpl	$858993458, %edx                ## imm = 0x33333332
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	ja	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_s_dump_debug_info@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dump_debug_info
	movl	8(%rbx), %eax
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$6, %eax
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str(%rip), %rax
	cmovgeq	%rax, %rdi
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	cmovgeq	_SIGKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %esi
	xorl	%eax, %eax
	callq	_lsapi_log
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rdi
	movl	%r14d, %esi
	callq	_kill
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rbx)
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rsi), %rax
	movl	(%rax), %edx
	subl	%r8d, %edx
	cmpl	4(%rax), %edx
	jg	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	8(%rax), %ecx
	jg	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_s_max_idle_secs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdx
	subq	16(%rbx), %rdx
	addq	$5, %rax
	cmpq	%rax, %rdx
	jle	LBB0_19
	jmp	LBB0_18
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	8(%rbx)
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	incl	%r8d
	movl	%r12d, %r13d
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %r13d
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_g_prefork_server@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_24:
	movq	(%rsi), %rax
LBB0_25:
	movl	(%rax), %esi
	movl	%esi, %eax
	subl	%r13d, %eax
	movl	%eax, %edx
	negl	%edx
	cmovsl	%eax, %edx
	cmpl	$2, %edx
	jb	LBB0_27
## %bb.26:
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lsapi_log                      ## TAILCALL
LBB0_27:
	addq	$24, %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_idle_secs,8,3            ## @s_max_idle_secs
	.comm	_s_dump_debug_info,8,3          ## @s_dump_debug_info
	.comm	_SIGKILL,4,2                    ## @SIGKILL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Force killing runaway process PID: %d with SIGKILL\n"

	.comm	_SIGTERM,4,2                    ## @SIGTERM
L_.str.1:                               ## @.str.1
	.asciz	"Killing runaway process PID: %d with SIGTERM\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_ESRCH,8,3                      ## @ESRCH
L_.str.2:                               ## @.str.2
	.asciz	"Children tracking is wrong: Cur Children: %d, count: %d, idle: %d, dying: %d\n"

	.no_dead_strip	_lsapi_check_child_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lsapi_check_child_status
_lsapi_check_child_status:              ; @lsapi_check_child_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x24, _g_prefork_server@GOTPAGE
Lloh1:
	ldr	x24, [x24, _g_prefork_server@GOTPAGEOFF]
	ldr	x8, [x24]
	ldp	x25, x20, [x8, #24]
	cmp	x20, x25
	b.hs	LBB0_20
; %bb.1:
	mov	x19, x0
	mov	w22, #0
	mov	w26, #0
	mov	w23, #0
Lloh2:
	adrp	x28, l_.str@PAGE
Lloh3:
	add	x28, x28, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	add	w23, w23, #1
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x27
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #40
	cmp	x20, x25
	b.hs	LBB0_21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w27, w26, #1
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	ldr	x9, [x24]
	ldr	x9, [x9, #16]
	sub	x8, x19, x8
	cmp	x8, x9
	b.le	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #8]
Lloh4:
	adrp	x9, _s_dump_debug_info@GOTPAGE
Lloh5:
	ldr	x9, [x9, _s_dump_debug_info@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	mov	w10, #52429
	movk	w10, #52428, lsl #16
	mov	w11, #39321
	movk	w11, #6553, lsl #16
	madd	w10, w8, w10, w11
	mov	w11, #13106
	movk	w11, #13107, lsl #16
	cmp	w10, w11
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_dump_debug_info
	ldr	w8, [x20, #8]
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #5
Lloh7:
	adrp	x8, l_.str.1@PAGE
Lloh8:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x0, x28, x8, gt
Lloh9:
	adrp	x8, _SIGKILL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIGKILL@GOTPAGEOFF]
Lloh11:
	adrp	x9, _SIGTERM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SIGTERM@GOTPAGEOFF]
	csel	x8, x8, x9, gt
	ldr	w21, [x8]
	ldr	w1, [x20]
	bl	_lsapi_log
	cbz	w21, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
	mov	x1, x21
	bl	_kill
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _ESRCH@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ESRCH@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x20]
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	ldp	w9, w10, [x8]
	sub	w9, w9, w23
	cmp	w9, w10
	b.gt	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8, #8]
	cmp	w22, w8
	b.gt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x8, _s_max_idle_secs@GOTPAGE
Lloh20:
	ldr	x8, [x8, _s_max_idle_secs@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x20, #16]
	add	x8, x8, #5
	sub	x9, x19, x9
	cmp	x9, x8
	b.le	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #1
	b	LBB0_3
LBB0_20:
	mov	w23, #0
	mov	w26, #0
	mov	w22, #0
	b	LBB0_22
LBB0_21:
	ldr	x8, [x24]
LBB0_22:
	ldr	w1, [x8]
	subs	w8, w1, w26
	cneg	w8, w8, mi
	cmp	w8, #2
	b.lo	LBB0_24
; %bb.23:
	stp	x22, x23, [sp, #8]
	str	x26, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lsapi_log
LBB0_24:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_g_prefork_server,8,3           ; @g_prefork_server
	.comm	_s_max_idle_secs,8,3            ; @s_max_idle_secs
	.comm	_s_dump_debug_info,8,3          ; @s_dump_debug_info
	.comm	_SIGKILL,4,2                    ; @SIGKILL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Force killing runaway process PID: %d with SIGKILL\n"

	.comm	_SIGTERM,4,2                    ; @SIGTERM
l_.str.1:                               ; @.str.1
	.asciz	"Killing runaway process PID: %d with SIGTERM\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_ESRCH,8,3                      ; @ESRCH
l_.str.2:                               ; @.str.2
	.asciz	"Children tracking is wrong: Cur Children: %d, count: %d, idle: %d, dying: %d\n"

	.no_dead_strip	_lsapi_check_child_status
.subsections_via_symbols
