	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_sched_setpriority_setup   ## -- Begin function priv_sched_setpriority_setup
	.p2align	4, 0x90
_priv_sched_setpriority_setup:          ## @priv_sched_setpriority_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdx), %rcx
	movq	_priv_sched_setpriority_myproc@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_2
## %bb.1:
	movq	_priv_sched_setpriority_aproc@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
LBB0_2:
	xorl	%eax, %eax
	callq	_fork
	movq	_childproc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	je	LBB0_5
## %bb.8:
	movq	_childproc_running@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, %edi
	callq	_sleep
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movl	$-1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_UID_THIRD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%edi, %esi
	movl	%edi, %edx
	callq	_setresuid
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_err
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_sleep
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_priv_sched_setpriority_aproc,8,3 ## @priv_sched_setpriority_aproc
	.comm	_priv_sched_setpriority_myproc,8,3 ## @priv_sched_setpriority_myproc
	.comm	_childproc,8,3                  ## @childproc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"priv_sched_setup: fork"

	.comm	_UID_THIRD,4,2                  ## @UID_THIRD
L_.str.1:                               ## @.str.1
	.asciz	"setresuid(%d)"

	.comm	_childproc_running,4,2          ## @childproc_running
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_sched_setpriority_setup   ; -- Begin function priv_sched_setpriority_setup
	.p2align	2
_priv_sched_setpriority_setup:          ; @priv_sched_setpriority_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _priv_sched_setpriority_aproc@GOTPAGE
Lloh1:
	ldr	x9, [x9, _priv_sched_setpriority_aproc@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _priv_sched_setpriority_myproc@GOTPAGE
Lloh4:
	ldr	x10, [x10, _priv_sched_setpriority_myproc@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_4
; %bb.1:
	bl	_fork
Lloh6:
	adrp	x8, _childproc@GOTPAGE
Lloh7:
	ldr	x8, [x8, _childproc@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
	tbnz	x0, #63, LBB0_5
; %bb.2:
	cbz	x0, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _childproc_running@GOTPAGE
Lloh10:
	ldr	x8, [x8, _childproc_running@GOTPAGEOFF]
	mov	w9, #1
Lloh11:
	str	w9, [x8]
	mov	w0, #1
	bl	_sleep
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh14:
	adrp	x19, _UID_THIRD@GOTPAGE
Lloh15:
	ldr	x19, [x19, _UID_THIRD@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x1, x0
	mov	x2, x0
	bl	_setresuid
	tbz	x0, #63, LBB0_9
; %bb.8:
	ldr	w2, [x19]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_sleep
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_priv_sched_setpriority_aproc,8,3 ; @priv_sched_setpriority_aproc
	.comm	_priv_sched_setpriority_myproc,8,3 ; @priv_sched_setpriority_myproc
	.comm	_childproc,8,3                  ; @childproc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"priv_sched_setup: fork"

	.comm	_UID_THIRD,4,2                  ; @UID_THIRD
l_.str.1:                               ; @.str.1
	.asciz	"setresuid(%d)"

	.comm	_childproc_running,4,2          ; @childproc_running
.subsections_via_symbols
