	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_pr                       ## -- Begin function start_pr
	.p2align	4, 0x90
_start_pr:                              ## @start_pr
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$1, %edi
	movl	$12, %esi
	callq	_xcalloc
	movq	%rax, %r14
	movq	_diffargs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rcx
	movq	%r15, %r8
	callq	_xasprintf
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_stdout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_fflush
	movl	(%r15), %edi
	callq	_rewind
	leaq	-40(%rbp), %rdi
	callq	_pipe
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_err
LBB0_2:
	movq	_PD_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdi
	callq	_pdfork
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.8:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	cmpl	%edi, -36(%rbp)
	je	LBB0_10
## %bb.9:
	callq	_dup
	movl	%eax, 8(%r14)
	movl	-36(%rbp), %edi
	movl	(%rbx), %esi
	callq	_dup2
	movl	-36(%rbp), %edi
	callq	_close
	movl	-36(%rbp), %edi
	callq	_close
LBB0_10:
	movl	-40(%rbp), %edi
	callq	_close
	movl	(%r15), %edi
	callq	_rewind
	movq	-48(%rbp), %rdi
	callq	_free
	xorl	%eax, %eax
	callq	_kqueue
	movl	%eax, (%r14)
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movl	$2, %edi
	callq	_err
LBB0_12:
	movl	$4, %edi
	callq	_xmalloc
	movl	%eax, 4(%r14)
	movl	-52(%rbp), %esi
	movq	_EVFILT_PROCDESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_EV_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_NOTE_EXIT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	movq	$0, (%rsp)
	movl	%eax, %edi
	xorl	%r9d, %r9d
	callq	_EV_SET
	movl	(%r14), %edi
	movl	4(%r14), %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_kevent
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movl	$2, %edi
	callq	_err
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_status@GOTPCREL(%rip), %rax
	orb	$2, (%rax)
	movq	-48(%rbp), %rdi
	callq	_free
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	callq	_err
LBB0_5:
	movl	-40(%rbp), %edi
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, %edi
	je	LBB0_7
## %bb.6:
	callq	_dup2
	movl	-40(%rbp), %edi
	callq	_close
LBB0_7:
	movl	-36(%rbp), %edi
	callq	_close
	movq	__PATH_PR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rcx
	leaq	L_.str.3(%rip), %rdx
	movl	%edi, %esi
	xorl	%r8d, %r8d
	callq	_execl
	movl	$127, %edi
	callq	__exit
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s %s"

	.comm	_diffargs,4,2                   ## @diffargs
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_stdout,4,2                     ## @stdout
L_.str.1:                               ## @.str.1
	.asciz	"pipe"

	.comm	_PD_CLOEXEC,4,2                 ## @PD_CLOEXEC
	.comm	_status,4,2                     ## @status
L_.str.2:                               ## @.str.2
	.asciz	"No more processes"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	__PATH_PR,4,2                   ## @_PATH_PR
L_.str.3:                               ## @.str.3
	.asciz	"-h"

	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.4:                               ## @.str.4
	.asciz	"kqueue"

	.comm	_EVFILT_PROCDESC,4,2            ## @EVFILT_PROCDESC
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_NOTE_EXIT,4,2                  ## @NOTE_EXIT
L_.str.5:                               ## @.str.5
	.asciz	"kevent"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_pr                       ; -- Begin function start_pr
	.p2align	2
_start_pr:                              ; @start_pr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w0, #1
	mov	w1, #12
	bl	_xcalloc
	mov	x19, x0
Lloh3:
	adrp	x8, _diffargs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _diffargs@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	mov	x3, x21
	mov	x4, x20
	bl	_xasprintf
Lloh8:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_signal
Lloh14:
	adrp	x20, _stdout@GOTPAGE
Lloh15:
	ldr	x20, [x20, _stdout@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_fflush
	ldr	w0, [x20]
	bl	_rewind
	add	x0, sp, #16
	bl	_pipe
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_err
LBB0_2:
Lloh18:
	adrp	x8, _PD_CLOEXEC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PD_CLOEXEC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_pdfork
	cbz	w0, LBB0_13
; %bb.3:
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.4:
	ldr	w8, [sp, #20]
Lloh21:
	adrp	x21, _STDOUT_FILENO@GOTPAGE
Lloh22:
	ldr	x21, [x21, _STDOUT_FILENO@GOTPAGEOFF]
	ldr	w0, [x21]
	cmp	w8, w0
	b.eq	LBB0_6
; %bb.5:
	bl	_dup
	str	w0, [x19, #8]
	ldr	w0, [sp, #20]
	ldr	w1, [x21]
	bl	_dup2
	ldr	w0, [sp, #20]
	bl	_close
	ldr	w0, [sp, #20]
	bl	_close
LBB0_6:
	ldr	w0, [sp, #16]
	bl	_close
	ldr	w0, [x20]
	bl	_rewind
	ldr	x0, [sp]
	bl	_free
	bl	_kqueue
	str	w0, [x19]
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #2
	bl	_err
LBB0_8:
	mov	w0, #4
	bl	_xmalloc
	str	w0, [x19, #4]
	ldr	w1, [sp, #12]
Lloh25:
	adrp	x8, _EVFILT_PROCDESC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EVFILT_PROCDESC@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _EV_ADD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EV_ADD@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
Lloh31:
	adrp	x8, _NOTE_EXIT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NOTE_EXIT@GOTPAGEOFF]
Lloh33:
	ldr	w4, [x8]
	mov	w5, #0
	mov	x6, #0
	bl	_EV_SET
	ldp	w0, w1, [x19]
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #2
	bl	_err
LBB0_10:
	ldr	x8, [sp, #24]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
Lloh39:
	adrp	x8, _status@GOTPAGE
Lloh40:
	ldr	x8, [x8, _status@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x2
	str	w9, [x8]
	ldr	x0, [sp]
	bl	_free
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_err
LBB0_13:
	ldr	w0, [sp, #16]
Lloh43:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh44:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	cmp	w0, w1
	b.eq	LBB0_15
; %bb.14:
	bl	_dup2
	ldr	w0, [sp, #16]
	bl	_close
LBB0_15:
	ldr	w0, [sp, #20]
	bl	_close
Lloh46:
	adrp	x8, __PATH_PR@GOTPAGE
Lloh47:
	ldr	x8, [x8, __PATH_PR@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	ldr	x3, [sp]
Lloh49:
	adrp	x2, l_.str.3@PAGE
Lloh50:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x0
	mov	x4, #0
	bl	_execl
	mov	w0, #127
	bl	__exit
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s %s"

	.comm	_diffargs,4,2                   ; @diffargs
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_stdout,4,2                     ; @stdout
l_.str.1:                               ; @.str.1
	.asciz	"pipe"

	.comm	_PD_CLOEXEC,4,2                 ; @PD_CLOEXEC
	.comm	_status,4,2                     ; @status
l_.str.2:                               ; @.str.2
	.asciz	"No more processes"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	__PATH_PR,4,2                   ; @_PATH_PR
l_.str.3:                               ; @.str.3
	.asciz	"-h"

	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.4:                               ; @.str.4
	.asciz	"kqueue"

	.comm	_EVFILT_PROCDESC,4,2            ; @EVFILT_PROCDESC
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_NOTE_EXIT,4,2                  ; @NOTE_EXIT
l_.str.5:                               ; @.str.5
	.asciz	"kevent"

.subsections_via_symbols
