	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_perf_cmd
_prepare_perf_cmd:                      ## @prepare_perf_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx,%rdi)
	leaq	8(%rdi), %rdi
	jne	LBB0_1
## %bb.2:
	addl	$8, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, (%rax,%rdx,8)
	movq	(%rbx,%rdx,8), %rcx
	incq	%rdx
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.6:
	movl	%edx, %ecx
	jmp	LBB0_7
LBB0_3:
	movl	$1, %ecx
LBB0_7:
	movq	$0, (%rax,%rcx,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"perf"

	.no_dead_strip	_prepare_perf_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_perf_cmd
_prepare_perf_cmd:                      ; @prepare_perf_cmd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x8, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, x8]
	add	x8, x8, #8
	cbnz	x9, LBB0_1
; %bb.2:
	add	w0, w8, #8
	bl	_malloc
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
	mov	w9, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x9, #3
	str	x8, [x0, x10]
	ldr	x8, [x19, x10]
	add	x9, x9, #1
	cbnz	x8, LBB0_4
; %bb.5:
	and	x8, x9, #0xffffffff
	b	LBB0_7
LBB0_6:
	mov	w8, #1
LBB0_7:
	str	xzr, [x0, x8, lsl #3]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"perf"

	.no_dead_strip	_prepare_perf_cmd
.subsections_via_symbols
