	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rsi, %r15
	movl	%edi, %ebx
	movq	_PRIO_PROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$0, -44(%rbp)
	leaq	8(%rsi), %r12
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	decl	%ebx
	xorl	%r15d, %r15d
	movl	%ebx, %r14d
	jmp	LBB0_7
LBB0_4:
	leal	-2(%rbx), %r14d
	addq	$16, %r15
	cmpl	$3, %ebx
	jg	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_usage
LBB0_6:
	movq	%r15, %r12
	movl	$1, %r15d
LBB0_7:
	movq	(%r12), %rsi
	leaq	L_.str.1(%rip), %rdi
	leaq	-52(%rbp), %rdx
	callq	_getnum
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	cmpl	$2, %r14d
	jl	LBB0_29
## %bb.10:
	incl	%r14d
	addq	$8, %r12
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_PRIO_PGRP@GOTPCREL(%rip), %rax
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%rax), %r13d
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	decl	%r14d
	addq	$8, %r12
	cmpl	$2, %r14d
	jbe	LBB0_29
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r12), %rsi
	movq	_PRIO_USER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rsi, %rdi
	callq	_getpwnam
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%rax), %esi
	movl	%esi, -44(%rbp)
	jmp	LBB0_27
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_PRIO_USER@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_PRIO_PROCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r12), %rsi
	leaq	L_.str.5(%rip), %rdi
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	-44(%rbp), %rdx
	callq	_getnum
	testq	%rax, %rax
	je	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	jmp	LBB0_13
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	js	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-52(%rbp), %edx
	movl	%r13d, %edi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_donice
	addl	%eax, %ebx
	jmp	LBB0_13
LBB0_28:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r12), %rsi
	leaq	L_.str.6(%rip), %rdi
	callq	_warnx
	jmp	LBB0_25
LBB0_29:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setne	%dil
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_PRIO_PROCESS,4,2               ## @PRIO_PROCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-n"

L_.str.1:                               ## @.str.1
	.asciz	"priority"

L_.str.2:                               ## @.str.2
	.asciz	"-g"

	.comm	_PRIO_PGRP,4,2                  ## @PRIO_PGRP
L_.str.3:                               ## @.str.3
	.asciz	"-u"

	.comm	_PRIO_USER,4,2                  ## @PRIO_USER
L_.str.4:                               ## @.str.4
	.asciz	"-p"

L_.str.5:                               ## @.str.5
	.asciz	"uid"

L_.str.6:                               ## @.str.6
	.asciz	"%s: bad value"

L_.str.7:                               ## @.str.7
	.asciz	"pid"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x27, _PRIO_PROCESS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PRIO_PROCESS@GOTPAGEOFF]
	ldr	w19, [x27]
	str	wzr, [sp, #8]
	add	x22, x1, #8
	subs	w23, w0, #2
	b.gt	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
	ldr	x0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.3:
	mov	w20, #0
	sub	w23, w21, #1
	b	LBB0_7
LBB0_4:
	add	x22, x20, #16
	cmp	w21, #3
	b.gt	LBB0_6
; %bb.5:
	bl	_usage
LBB0_6:
	mov	w20, #1
LBB0_7:
	ldr	x1, [x22]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_getnum
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	cmp	w23, #2
	b.lt	LBB0_27
; %bb.10:
	mov	w28, #0
	add	w25, w23, #1
	add	x24, x22, #8
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh8:
	adrp	x22, l_.str.3@PAGE
Lloh9:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh10:
	adrp	x26, _PRIO_USER@GOTPAGE
Lloh11:
	ldr	x26, [x26, _PRIO_USER@GOTPAGEOFF]
Lloh12:
	adrp	x23, l_.str.4@PAGE
Lloh13:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh14:
	adrp	x8, _PRIO_PGRP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PRIO_PGRP@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	w25, w25, #1
	add	x24, x24, #8
	cmp	w25, #2
	b.ls	LBB0_28
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x24]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x24]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x26]
	ldr	x1, [x24]
	cmp	w19, w8
	b.ne	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x1
	bl	_getpwnam
	cbz	x0, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [x0]
	str	w1, [sp, #8]
	b	LBB0_24
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w19, [x26]
	b	LBB0_12
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w19, [x27]
	b	LBB0_12
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x2, sp, #8
Lloh17:
	adrp	x0, l_.str.7@PAGE
Lloh18:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_getnum
	cbnz	x0, LBB0_26
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x1, [x24]
	add	x2, sp, #8
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getnum
	cbnz	x0, LBB0_26
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [sp, #8]
	tbnz	w1, #31, LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x3, x20
	bl	_donice
	add	w28, w28, w0
	b	LBB0_12
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x1, [x24]
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_warnx
LBB0_26:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w28, w28, #1
	b	LBB0_12
LBB0_27:
	mov	w28, #0
LBB0_28:
	cmp	w28, #0
	cset	w0, ne
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PRIO_PROCESS,4,2               ; @PRIO_PROCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-n"

l_.str.1:                               ; @.str.1
	.asciz	"priority"

l_.str.2:                               ; @.str.2
	.asciz	"-g"

	.comm	_PRIO_PGRP,4,2                  ; @PRIO_PGRP
l_.str.3:                               ; @.str.3
	.asciz	"-u"

	.comm	_PRIO_USER,4,2                  ; @PRIO_USER
l_.str.4:                               ; @.str.4
	.asciz	"-p"

l_.str.5:                               ; @.str.5
	.asciz	"uid"

l_.str.6:                               ; @.str.6
	.asciz	"%s: bad value"

l_.str.7:                               ; @.str.7
	.asciz	"pid"

.subsections_via_symbols
