	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_header__set_cmdline       ## -- Begin function perf_header__set_cmdline
	.p2align	4, 0x90
_perf_header__set_cmdline:              ## @perf_header__set_cmdline
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_header_argv@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	cmpq	$0, (%r12)
	je	LBB0_1
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movslq	%edi, %rdi
	movq	_header_argc@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.3:
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	cmpl	$1, %r15d
	je	LBB0_10
## %bb.4:
	movl	%r15d, %esi
	leaq	-1(%rsi), %rdx
	addq	$-2, %rsi
	movl	%edx, %eax
	andl	$3, %eax
	movl	$1, %ecx
	cmpq	$3, %rsi
	jb	LBB0_8
## %bb.5:
	andq	$-4, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	movq	8(%rbx,%rcx,8), %rdi
	movq	%rdi, 8(%rsi,%rcx,8)
	movq	(%r12), %rsi
	movq	16(%rbx,%rcx,8), %rdi
	movq	%rdi, 16(%rsi,%rcx,8)
	movq	(%r12), %rsi
	movq	24(%rbx,%rcx,8), %rdi
	movq	%rdi, 24(%rsi,%rcx,8)
	movq	(%r12), %rsi
	movq	32(%rbx,%rcx,8), %rdi
	movq	%rdi, 32(%rsi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_6
## %bb.7:
	incq	%rcx
LBB0_8:
	testq	%rax, %rax
	je	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdx
	movq	(%rbx,%rcx,8), %rsi
	movq	%rsi, (%rdx,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_9
	jmp	LBB0_10
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_header_argv,8,3                ## @header_argv
	.comm	_header_argc,8,3                ## @header_argc
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_header__set_cmdline       ; -- Begin function perf_header__set_cmdline
	.p2align	2
_perf_header__set_cmdline:              ; @perf_header__set_cmdline
	.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
Lloh0:
	adrp	x21, _header_argv@GOTPAGE
Lloh1:
	ldr	x21, [x21, _header_argv@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	mov	x19, x1
	mov	x20, x0
	sxtw	x8, w20
Lloh2:
	adrp	x9, _header_argc@GOTPAGE
Lloh3:
	ldr	x9, [x9, _header_argc@GOTPAGEOFF]
Lloh4:
	str	x8, [x9]
	mov	w1, #8
	bl	_calloc
	str	x0, [x21]
	cbz	x0, LBB0_8
; %bb.4:
	cmp	w20, #1
	b.lt	LBB0_1
; %bb.5:
	ldr	x8, [x19]
	str	x8, [x0]
	cmp	w20, #1
	b.eq	LBB0_1
; %bb.6:
	mov	w8, w20
	mov	w9, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21]
	lsl	x11, x9, #3
	ldr	x12, [x19, x11]
	str	x12, [x10, x11]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_7
	b	LBB0_1
LBB0_8:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_header_argv,8,3                ; @header_argv
	.comm	_header_argc,8,3                ; @header_argc
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
