	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procargs                       ## -- Begin function procargs
	.p2align	4, 0x90
_procargs:                              ## @procargs
	.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
	movq	%rsi, %r14
	xorl	%eax, %eax
	testl	%edi, %edi
	setg	%al
	leaq	(%rsi,%rax,8), %rax
	movq	_argptr@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	_NOPTS@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_3
## %bb.1:
	movq	_optval@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$2, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%rbx), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_getuid
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_geteuid
	movl	$1, %ecx
	cmpq	%rax, %r12
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_getgid
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_getegid
	xorl	%ecx, %ecx
	cmpq	%rax, %r12
	setne	%cl
LBB0_5:
	movq	_privileged@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movl	$1, %edi
	callq	_options
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	movq	_minusc@GOTPCREL(%rip), %r12
	jne	LBB0_7
## %bb.6:
	cmpq	$0, (%r12)
	jne	LBB0_7
## %bb.8:
	movq	_sflag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movb	$1, %al
	jmp	LBB0_9
LBB0_7:
	movq	_sflag@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	sete	%al
LBB0_9:
	movq	_iflag@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_15
## %bb.10:
	testb	%al, %al
	je	LBB0_15
## %bb.11:
	xorl	%edi, %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movl	$1, %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movl	$1, (%r13)
	movq	_Eflag@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jne	LBB0_15
## %bb.14:
	movl	$1, (%rax)
LBB0_15:
	movq	_mflag@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jne	LBB0_17
## %bb.16:
	movl	(%r13), %ecx
	movl	%ecx, (%rax)
LBB0_17:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.18:
	movq	_optval@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rdx
	movslq	%eax, %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$2, (%rcx,%rdx,4)
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	$0, (%rcx,%rdx,4)
	movl	(%rbx), %eax
	jmp	LBB0_21
LBB0_22:
	movq	(%r14), %rax
	movq	_arg0@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	_sflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	(%r12), %rcx
	jne	LBB0_25
## %bb.23:
	testq	%rcx, %rcx
	jne	LBB0_25
## %bb.24:
	movq	(%r15), %rax
	leaq	8(%rax), %rcx
	movq	%rcx, (%r15)
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_setinputfile
	movq	%rbx, (%r14)
	movq	_commandname@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	(%r12), %rcx
LBB0_25:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.27:
	cmpq	$0, (%rax)
	je	LBB0_29
## %bb.28:
	leaq	8(%rax), %rcx
	movq	%rcx, (%r15)
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%rcx, %rax
LBB0_29:
	movq	_shellparam@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$1, 8(%rcx)
	cmpq	$0, (%rax)
	je	LBB0_33
## %bb.30:
	movl	12(%rcx), %edx
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	incl	%edx
	cmpq	$0, 8(%rax)
	leaq	8(%rax), %rax
	jne	LBB0_31
## %bb.32:
	movq	%rax, (%r15)
	movl	%edx, 12(%rcx)
LBB0_33:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_optschanged                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_argptr,8,3                     ## @argptr
	.comm	_NOPTS,4,2                      ## @NOPTS
	.comm	_optval,8,3                     ## @optval
	.comm	_privileged,4,2                 ## @privileged
	.comm	_minusc,8,3                     ## @minusc
	.comm	_sflag,4,2                      ## @sflag
	.comm	_iflag,4,2                      ## @iflag
	.comm	_Eflag,4,2                      ## @Eflag
	.comm	_mflag,4,2                      ## @mflag
	.comm	_arg0,8,3                       ## @arg0
	.comm	_commandname,8,3                ## @commandname
	.comm	_shellparam,16,3                ## @shellparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procargs                       ; -- Begin function procargs
	.p2align	2
_procargs:                              ; @procargs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	cmp	w0, #0
	cset	w8, gt
	add	x8, x1, w8, uxtw #3
Lloh0:
	adrp	x21, _argptr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _argptr@GOTPAGEOFF]
	str	x8, [x21]
Lloh2:
	adrp	x22, _NOPTS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NOPTS@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh4:
	adrp	x23, _optval@GOTPAGE
Lloh5:
	ldr	x23, [x23, _optval@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	ldr	x9, [x23]
	mov	w10, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w10, [x9, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x11, [x22]
	cmp	x8, x11
	b.lt	LBB0_2
LBB0_3:
	bl	_getuid
	mov	x20, x0
	bl	_geteuid
	cmp	x20, x0
	b.ne	LBB0_5
; %bb.4:
	bl	_getgid
	mov	x20, x0
	bl	_getegid
	cmp	x20, x0
	cset	w8, ne
	b	LBB0_6
LBB0_5:
	mov	w8, #1
LBB0_6:
Lloh6:
	adrp	x9, _privileged@GOTPAGE
Lloh7:
	ldr	x9, [x9, _privileged@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	mov	w26, #1
	mov	w0, #1
	bl	_options
	ldr	x8, [x21]
Lloh9:
	adrp	x20, _minusc@GOTPAGE
Lloh10:
	ldr	x20, [x20, _minusc@GOTPAGEOFF]
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
Lloh11:
	adrp	x24, _sflag@GOTPAGE
Lloh12:
	ldr	x24, [x24, _sflag@GOTPAGEOFF]
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x24]
	cmp	w8, #1
	cset	w26, eq
	b	LBB0_9
LBB0_8:
	str	w26, [x24]
LBB0_9:
Lloh13:
	adrp	x25, _iflag@GOTPAGE
Lloh14:
	ldr	x25, [x25, _iflag@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #0
	ccmp	w26, #0, #4, ne
	b.eq	LBB0_14
; %bb.10:
	mov	w0, #0
	bl	_isatty
	cbz	x0, LBB0_14
; %bb.11:
	mov	w26, #1
	mov	w0, #1
	bl	_isatty
	cbz	x0, LBB0_14
; %bb.12:
	str	w26, [x25]
Lloh15:
	adrp	x8, _Eflag@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Eflag@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #2
	b.ne	LBB0_14
; %bb.13:
	mov	w9, #1
	str	w9, [x8]
LBB0_14:
Lloh17:
	adrp	x8, _mflag@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mflag@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #2
	b.ne	LBB0_16
; %bb.15:
	ldr	w9, [x25]
	str	w9, [x8]
LBB0_16:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.17:
	mov	x9, #0
	ldr	x10, [x23]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x9, x9, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	cmp	w11, #2
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	str	wzr, [x10, x9, lsl #2]
	ldr	w8, [x22]
	b	LBB0_18
LBB0_21:
Lloh19:
	adrp	x22, _arg0@GOTPAGE
Lloh20:
	ldr	x22, [x22, _arg0@GOTPAGEOFF]
	ldr	x8, [x19]
	str	x8, [x22]
	ldr	w8, [x24]
	ldr	x9, [x20]
	cmp	w8, #0
	ccmp	x9, #0, #0, eq
	b.ne	LBB0_23
; %bb.22:
	ldr	x8, [x21]
	add	x9, x8, #8
	str	x9, [x21]
	ldr	x19, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_setinputfile
	str	x19, [x22]
Lloh21:
	adrp	x8, _commandname@GOTPAGE
Lloh22:
	ldr	x8, [x8, _commandname@GOTPAGEOFF]
Lloh23:
	str	x19, [x8]
	ldr	x9, [x20]
LBB0_23:
	ldr	x8, [x21]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_26
; %bb.24:
	ldr	x9, [x8]
	cbz	x9, LBB0_26
; %bb.25:
	add	x9, x8, #8
	str	x9, [x21]
	ldr	x8, [x8]
	str	x8, [x22]
	mov	x8, x9
LBB0_26:
Lloh24:
	adrp	x9, _shellparam@GOTPAGE
Lloh25:
	ldr	x9, [x9, _shellparam@GOTPAGEOFF]
	str	x8, [x9]
	mov	w10, #1
	str	w10, [x9, #8]
	ldr	x10, [x8]
	cbz	x10, LBB0_30
; %bb.27:
	ldr	w10, [x9, #12]
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	add	w10, w10, #1
	ldr	x11, [x8, #8]!
	cbnz	x11, LBB0_28
; %bb.29:
	str	x8, [x21]
	str	w10, [x9, #12]
LBB0_30:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_optschanged
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_argptr,8,3                     ; @argptr
	.comm	_NOPTS,4,2                      ; @NOPTS
	.comm	_optval,8,3                     ; @optval
	.comm	_privileged,4,2                 ; @privileged
	.comm	_minusc,8,3                     ; @minusc
	.comm	_sflag,4,2                      ; @sflag
	.comm	_iflag,4,2                      ; @iflag
	.comm	_Eflag,4,2                      ; @Eflag
	.comm	_mflag,4,2                      ; @mflag
	.comm	_arg0,8,3                       ; @arg0
	.comm	_commandname,8,3                ; @commandname
	.comm	_shellparam,16,3                ; @shellparam
.subsections_via_symbols
