	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_command_generator
_client_command_generator:              ## @client_command_generator
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	jne	LBB0_4
## %bb.1:
	movl	$0, _client_command_generator.idx(%rip)
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, _client_command_generator.len(%rip)
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	_client_command_generator.idx(%rip), %rcx
	leal	1(%rcx), %edx
	movl	%edx, _client_command_generator.idx(%rip)
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	_client_command_generator.len(%rip), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:
	movq	%rbx, %rdi
	jmp	LBB0_3
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_strdup                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_client_command_generator.len,4,2 ## @client_command_generator.len
.zerofill __DATA,__bss,_client_command_generator.idx,4,2 ## @client_command_generator.idx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"("

	.comm	_CMD,8,3                        ## @CMD
	.no_dead_strip	_client_command_generator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_command_generator
_client_command_generator:              ; @client_command_generator
	.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, x0
	adrp	x21, _client_command_generator.idx@PAGE
	adrp	x22, _client_command_generator.len@PAGE
	cbnz	w1, LBB0_2
; %bb.1:
	str	wzr, [x21, _client_command_generator.idx@PAGEOFF]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	str	w0, [x22, _client_command_generator.len@PAGEOFF]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_strncmp
	cbz	w0, LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh2:
	adrp	x8, _CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldrsw	x9, [x21, _client_command_generator.idx@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x21, _client_command_generator.idx@PAGEOFF]
	ldr	x20, [x8, x9, lsl #3]
	cbz	x20, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x22, _client_command_generator.len@PAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_strncmp
	cbnz	w0, LBB0_2
; %bb.4:
	mov	x0, x20
	b	LBB0_7
LBB0_5:
	mov	x0, #0
	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_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	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	_strdup
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_client_command_generator.len,4,2 ; @client_command_generator.len
.zerofill __DATA,__bss,_client_command_generator.idx,4,2 ; @client_command_generator.idx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"("

	.comm	_CMD,8,3                        ; @CMD
	.no_dead_strip	_client_command_generator
.subsections_via_symbols
