	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function donice
_donice:                                ## @donice
	.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, %ebx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movl	%edi, %r12d
	movq	_errno@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	callq	_getpriority
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_4:
	testl	%ebx, %ebx
	cmovnel	%r15d, %ebx
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_PRIO_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	cmovgel	%eax, %ebx
	movq	_PRIO_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	cmovlel	%eax, %ebx
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_setpriority
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_fprintf
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	movl	%r14d, %esi
	callq	_warn
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: getpriority"

	.comm	_PRIO_MAX,4,2                   ## @PRIO_MAX
	.comm	_PRIO_MIN,4,2                   ## @PRIO_MIN
L_.str.1:                               ## @.str.1
	.asciz	"%d: setpriority"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"%d: old priority %d, new priority %d\n"

	.no_dead_strip	_donice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function donice
_donice:                                ; @donice
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
	bl	_getpriority
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x24]
	cbz	x8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	cmp	w23, #0
	csel	w8, wzr, w20, eq
Lloh4:
	adrp	x9, _PRIO_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PRIO_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	add	w8, w8, w22
	cmp	w8, w9
	csel	w8, w8, w9, lt
Lloh7:
	adrp	x9, _PRIO_MIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PRIO_MIN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w22, w8, w9, gt
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_setpriority
	tbnz	x0, #63, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	mov	x4, x22
	bl	_fprintf
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	mov	x1, x19
	bl	_warn
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: getpriority"

	.comm	_PRIO_MAX,4,2                   ; @PRIO_MAX
	.comm	_PRIO_MIN,4,2                   ; @PRIO_MIN
l_.str.1:                               ; @.str.1
	.asciz	"%d: setpriority"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"%d: old priority %d, new priority %d\n"

	.no_dead_strip	_donice
.subsections_via_symbols
