	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_cmd                      ## -- Begin function write_cmd
	.p2align	4, 0x90
_write_cmd:                             ## @write_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	leaq	L_.str(%rip), %rdx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_os_snprintf
	movl	%eax, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_1:
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %rbx
	addq	%rcx, %rbx
	movl	%r13d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r13d
	subl	%ebx, %r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rcx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_os_snprintf
	movl	%eax, %r15d
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %rax
	addq	%rax, %rbx
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_3
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, -1(%rax,%rcx)
	xorl	%eax, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	" %s"

L_str:                                  ## @str
	.asciz	"Too long command"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_cmd                      ; -- Begin function write_cmd
	.p2align	2
_write_cmd:                             ; @write_cmd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x24, x3
	mov	x3, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	bl	_os_snprintf
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf_error
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x0, l_str@PAGE
Lloh3:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #-1
	b	LBB0_7
LBB0_2:
	cmp	w24, #1
	b.lt	LBB0_6
; %bb.3:
	add	x26, x21, x20
	add	x22, x21, w22, sxtw
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	w27, w24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w26, w22
	ldr	x3, [x19]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x23
	bl	_os_snprintf
	mov	x24, x0
	mov	x0, x25
	mov	x1, x24
	bl	_os_snprintf_error
	cbnz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, w24, sxtw
	add	x19, x19, #8
	subs	x27, x27, #1
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #0
	add	x8, x20, x21
	sturb	wzr, [x8, #-1]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	" %s"

l_str:                                  ; @str
	.asciz	"Too long command"

.subsections_via_symbols
