	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nice                           ## -- Begin function nice
	.p2align	4, 0x90
_nice:                                  ## @nice
	.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	%edi, %r14d
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$0, (%r15)
	movq	_PRIO_PROCESS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_getpriority
	movl	$-1, %ebx
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r15)
	jne	LBB0_6
LBB0_2:
	movl	(%r12), %edi
	addl	%r14d, %eax
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_setpriority
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.3:
	movl	(%r15), %eax
	movq	_EACCES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$-1, %r13d
LBB0_5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movl	%r13d, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_PRIO_PROCESS,4,2               ## @PRIO_PROCESS
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nice                           ; -- Begin function nice
	.p2align	2
_nice:                                  ; @nice
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	str	wzr, [x20]
Lloh2:
	adrp	x22, _PRIO_PROCESS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PRIO_PROCESS@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #0
	bl	_getpriority
	ldr	w8, [x20]
	cmn	w0, #1
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [x22]
	add	w2, w0, w19
	mov	x0, x8
	mov	w1, #0
	bl	_setpriority
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _EACCES@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EACCES@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
Lloh7:
	adrp	x8, _EPERM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	mov	w0, #-1
LBB0_5:
	str	w21, [x20]
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_PRIO_PROCESS,4,2               ; @PRIO_PROCESS
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
