	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeBSDProcessList_readProcessName ## -- Begin function FreeBSDProcessList_readProcessName
	.p2align	4, 0x90
_FreeBSDProcessList_readProcessName:    ## @FreeBSDProcessList_readProcessName
	.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	%rdx, %r14
	movq	%rsi, %r15
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_kvm_getargv
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	leaq	8(%r12), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_strlen
	addl	%eax, %r13d
	incl	%r13d
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_3
LBB0_4:
	movl	%r13d, %edi
	callq	_xMalloc
	movq	%rax, %r15
	movl	$0, (%r14)
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.5:
	addq	$8, %r12
	movq	%r15, %rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movb	$32, (%rax)
	incq	%rax
	movq	(%r12), %rsi
	addq	$8, %r12
	testq	%rsi, %rsi
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_stpcpy
	cmpl	$0, (%r14)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %ecx
	subl	%r15d, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_8
LBB0_9:
	movb	$0, -1(%rax)
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xStrdup                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeBSDProcessList_readProcessName ; -- Begin function FreeBSDProcessList_readProcessName
	.p2align	2
_FreeBSDProcessList_readProcessName:    ; @FreeBSDProcessList_readProcessName
	.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
	mov	x19, x2
	mov	x21, x1
	mov	w2, #0
	bl	_kvm_getargv
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_5
; %bb.2:
	mov	w21, #0
	add	x22, x20, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_strlen
	add	w8, w21, w0
	add	w21, w8, #1
	ldr	x0, [x22], #8
	cbnz	x0, LBB0_3
	b	LBB0_6
LBB0_4:
	ldr	w0, [x21]
	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
	b	_xStrdup
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	bl	_xMalloc
	mov	x21, x0
	str	wzr, [x19]
	ldr	x1, [x20]
	cbz	x1, LBB0_11
; %bb.7:
	add	x20, x20, #8
	mov	w22, #32
	mov	x0, x21
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w22, [x0], #1
	ldr	x1, [x20], #8
	cbz	x1, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	bl	_stpcpy
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w8, w0, w21
	str	w8, [x19]
	b	LBB0_8
LBB0_11:
	sturb	wzr, [x0, #-1]
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
