	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inf_validate_task_sc
_inf_validate_task_sc:                  ## @inf_validate_task_sc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -72(%rbp)
	movq	$0, -48(%rbp)
	movq	_PI_FETCH_TASKINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$-1, %r14d
	leaq	-48(%rbp), %r12
	leaq	-80(%rbp), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_proc_server@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	leaq	-72(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r12, %r8
	movq	%r13, %r9
	callq	_proc_getprocinfo
	movq	(%rbx), %rcx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax
	movl	(%rax), %r15d
	cmpl	$-1, %r14d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r14d
	cmpl	%r15d, 4(%rcx)
	jl	LBB0_1
LBB0_5:
	xorl	%eax, %eax
	callq	_mach_task_self
	movl	-56(%rbp), %esi
	movq	-48(%rbp), %rdx
	movl	%eax, %edi
	callq	_vm_deallocate
	cmpq	$0, -72(%rbp)
	jle	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_mach_task_self
	movl	-56(%rbp), %esi
	movq	-48(%rbp), %rdx
	movl	%eax, %edi
	callq	_vm_deallocate
LBB0_7:
	movq	(%rbx), %rax
	cmpl	%r15d, 4(%rax)
	jge	LBB0_11
## %bb.8:
	xorl	%eax, %eax
	callq	_target_terminal_ours
	movl	8(%rbx), %esi
	movq	(%rbx), %rax
	movl	%r15d, %edx
	subl	4(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_query
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_target_terminal_inferior
	testl	%r14d, %r14d
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_10:
	movq	(%rbx), %rax
	movl	%r15d, 4(%rax)
	jmp	LBB0_11
LBB0_2:
	movl	$1, (%rcx)
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PI_FETCH_TASKINFO,4,2          ## @PI_FETCH_TASKINFO
	.comm	_proc_server,4,2                ## @proc_server
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pid %d has an additional task suspend count of %d; clear it? "

L_.str.1:                               ## @.str.1
	.asciz	"Additional task suspend count left untouched."

	.no_dead_strip	_inf_validate_task_sc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inf_validate_task_sc
_inf_validate_task_sc:                  ; @inf_validate_task_sc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	str	xzr, [sp, #32]
Lloh0:
	adrp	x8, _PI_FETCH_TASKINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PI_FETCH_TASKINFO@GOTPAGEOFF]
	str	xzr, [sp, #16]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	w22, #-1
Lloh3:
	adrp	x20, _proc_server@GOTPAGE
Lloh4:
	ldr	x20, [x20, _proc_server@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	add	x2, sp, #12
	add	x3, sp, #24
	add	x4, sp, #16
	add	x5, sp, #40
	add	x6, sp, #32
	bl	_proc_getprocinfo
	ldr	x8, [x19]
	cbnz	x0, LBB0_10
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [sp, #24]
	ldr	w21, [x9]
	cmn	w22, #1
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x8, #4]
	mov	x22, x21
	cmp	w8, w21
	b.lt	LBB0_1
LBB0_4:
	bl	_mach_task_self
	ldr	w1, [sp, #24]
	ldr	x2, [sp, #16]
	bl	_vm_deallocate
	ldr	x8, [sp, #32]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
	bl	_mach_task_self
	ldr	w1, [sp, #24]
	ldr	x2, [sp, #16]
	bl	_vm_deallocate
LBB0_6:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cmp	w8, w21
	b.ge	LBB0_11
; %bb.7:
	bl	_target_terminal_ours
	ldr	w1, [x19, #8]
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	sub	w2, w21, w8
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_query
	mov	x20, x0
	bl	_target_terminal_inferior
	cbnz	w20, LBB0_9
; %bb.8:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_9:
	ldr	x8, [x19]
	str	w21, [x8, #4]
	b	LBB0_11
LBB0_10:
	mov	w9, #1
	str	w9, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PI_FETCH_TASKINFO,4,2          ; @PI_FETCH_TASKINFO
	.comm	_proc_server,4,2                ; @proc_server
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pid %d has an additional task suspend count of %d; clear it? "

l_.str.1:                               ; @.str.1
	.asciz	"Additional task suspend count left untouched."

	.no_dead_strip	_inf_validate_task_sc
.subsections_via_symbols
