	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DarwinProcess_getCmdLine       ## -- Begin function DarwinProcess_getCmdLine
	.p2align	4, 0x90
_DarwinProcess_getCmdLine:              ## @DarwinProcess_getCmdLine
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_CTL_KERN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -52(%rbp)
	movq	_KERN_ARGMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$4, -64(%rbp)
	leaq	-52(%rbp), %rdi
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movl	$2, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_sysctl
	cmpl	$-1, %eax
	je	LBB0_27
## %bb.1:
	movl	-72(%rbp), %edi
	callq	_xMalloc
	testq	%rax, %rax
	je	LBB0_27
## %bb.2:
	movq	%rax, %r12
	movl	(%rbx), %eax
	movl	%eax, -52(%rbp)
	movq	_KERN_PROCARGS2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	movslq	-72(%rbp), %rax
	movq	%rax, -64(%rbp)
	leaq	-52(%rbp), %rdi
	leaq	-64(%rbp), %rcx
	movl	$3, %esi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_sysctl
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.3:
	leaq	-68(%rbp), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	4(%r12), %rdi
	movq	-64(%rbp), %rcx
	movq	%r12, %rax
	addq	%rcx, %rax
	cmpq	$5, %rcx
	jl	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rdi)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	cmpq	%rax, %rdi
	jb	LBB0_4
LBB0_6:
	cmpq	%rax, %rdi
	je	LBB0_26
## %bb.7:
	jae	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rdi)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdi
	cmpq	%rax, %rdi
	jb	LBB0_8
LBB0_10:
	cmpq	%rax, %rdi
	je	LBB0_26
## %bb.11:
	movl	$0, (%r15)
	cmpl	$0, -68(%rbp)
	jle	LBB0_26
## %bb.12:
	cmpq	%rax, %rdi
	jae	LBB0_26
## %bb.13:
	leaq	1(%rdi), %r9
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rdi,%rdx)
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movb	$32, (%rax)
	movl	(%r15), %r8d
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%rdi,%rdx), %rax
	incl	%ebx
	testl	%r8d, %r8d
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%edx, (%r15)
	movl	%edx, %r8d
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	-68(%rbp), %ebx
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%r9,%rdx), %rsi
	movq	-64(%rbp), %rcx
	addq	%r12, %rcx
	incq	%rdx
	cmpq	%rcx, %rsi
	jb	LBB0_14
LBB0_21:
	testq	%rax, %rax
	je	LBB0_26
## %bb.22:
	cmpq	%rdi, %rax
	je	LBB0_26
## %bb.23:
	testl	%r8d, %r8d
	jne	LBB0_25
## %bb.24:
	subl	%edi, %eax
	movl	%eax, (%r15)
LBB0_25:
	callq	_xStrdup
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_28
LBB0_26:
	movq	%r12, %rdi
	callq	_free
LBB0_27:
	movq	8(%r14), %rdi
	callq	_xStrdup
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, (%r15)
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_ARGMAX,4,2                ## @KERN_ARGMAX
	.comm	_KERN_PROCARGS2,4,2             ## @KERN_PROCARGS2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DarwinProcess_getCmdLine       ; -- Begin function DarwinProcess_getCmdLine
	.p2align	2
_DarwinProcess_getCmdLine:              ; @DarwinProcess_getCmdLine
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x22, _CTL_KERN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CTL_KERN@GOTPAGEOFF]
Lloh5:
	adrp	x8, _KERN_ARGMAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_ARGMAX@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh7:
	ldr	w8, [x8]
	stp	w9, w8, [x29, #-52]
	mov	w8, #4
	str	x8, [sp, #40]
	stp	xzr, xzr, [sp, #16]
	add	x8, sp, #40
	add	x9, sp, #56
	stp	x9, x8, [sp]
	sub	x0, x29, #52
	mov	w1, #2
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.1:
	ldr	w0, [sp, #56]
	bl	_xMalloc
	cbz	x0, LBB0_15
; %bb.2:
	mov	x21, x0
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _KERN_PROCARGS2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _KERN_PROCARGS2@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-52]
	ldr	w8, [x20]
	stur	w8, [x29, #-44]
	ldrsw	x8, [sp, #56]
	str	x8, [sp, #40]
	stp	xzr, xzr, [sp, #16]
	add	x8, sp, #40
	stp	x0, x8, [sp]
	sub	x0, x29, #52
	mov	w1, #3
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.3:
	add	x0, sp, #52
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	add	x0, x21, #4
	ldr	x9, [sp, #40]
	add	x8, x21, x9
	cmp	x9, #5
	b.lt	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x0]
	cbz	w10, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, #1
	cmp	x0, x8
	b.lo	LBB0_4
LBB0_6:
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.7:
	b.hs	LBB0_12
; %bb.8:
	add	x9, x9, x21
	sub	x10, x9, x0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x0]
	cbnz	w11, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x0, #1
	subs	x10, x10, #1
	b.ne	LBB0_9
; %bb.11:
	mov	x0, x9
LBB0_12:
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	str	wzr, [x19]
	ldr	w9, [sp, #52]
	cmp	w9, #1
	ccmp	x0, x8, #2, ge
	b.lo	LBB0_18
LBB0_14:
	mov	x0, x21
	bl	_free
LBB0_15:
	ldr	x0, [x20, #8]
	bl	_xStrdup
	mov	x20, x0
	bl	_strlen
	str	w0, [x19]
LBB0_16:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.17:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	mov	x9, #0
	mov	w8, #0
	mov	x12, #0
	mov	w10, #0
	mov	w11, #32
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	x12, x13
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x13, x13, #1
	ldr	w14, [sp, #52]
	ldr	x15, [sp, #40]
	add	x15, x21, x15
	add	x9, x9, #1
	cmp	w10, w14
	ccmp	x13, x15, #2, lt
	b.hs	LBB0_26
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	add	x13, x0, x9
	ldrb	w14, [x13]
	cbnz	w14, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	cbz	x12, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	strb	w11, [x12]
	ldr	w8, [x19]
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	add	w10, w10, #1
	cbnz	w8, LBB0_19
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	str	w9, [x19]
	mov	x8, x9
	b	LBB0_19
LBB0_26:
	cbz	x12, LBB0_14
; %bb.27:
	cmp	x12, x0
	b.eq	LBB0_14
; %bb.28:
	cbnz	w8, LBB0_30
; %bb.29:
	sub	w8, w12, w0
	str	w8, [x19]
LBB0_30:
	bl	_xStrdup
	mov	x20, x0
	mov	x0, x21
	bl	_free
	b	LBB0_16
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_ARGMAX,4,2                ; @KERN_ARGMAX
	.comm	_KERN_PROCARGS2,4,2             ; @KERN_PROCARGS2
.subsections_via_symbols
